Add commands to Action Allowlist
If brave mode is not explicitly enabled, Junie will ask for user approval before running terminal commands, MCP tools, and other types of actions that are considered to be sensitive by the coding agent.
You can manually add or remove allowed commands by editing the ~/.junie/allowlist.json file.
There are three types of actions that can be allowed with the allowlist.json file:
fileEditing– Opening or editing files outside the project by Junie CLI.executables– Running terminal commands by Junie CLI, including execution of tests, running apps, or build actions.mcpTools– Usage of Model Context Protocol (MCP) tools by Junie CLI.
An example allowlist.json file looks as follows:
Each rule must specify either a prefix or a pattern, along with an action (allow or ask). Select the appropriate action type and edit its rules array:
Field | Description |
|---|---|
| Set a literal string to match all commands that start with it. |
| Set a pattern using wildcard characters (Glob syntax):
|
| The action to take for the command. Possible values:
|
Rules are evaluated top to bottom, with the first match taking precedence. Thus, in the following example, npm install will ask for permission, but npm test will be allowed automatically: