Contenox permissions and built-in tools: files, shell, git
Updated Fact-checked
Contenox permissions are rules checked before every tool call an agent makes. Each file read, file change, command, git step or mission is either allowed, asks you first, or is blocked. Out of the box, agents read and change files in your project without asking, run your builds and tests without asking, and ask before any other command.
You change the rules on the Permissions page. Nothing is hidden: every rule is a setting you can see, and the file behind it is one click away.
What it looks like#
You ask an agent to fix a failing test. It reads the test and the code without asking,
changes src/cart.js without asking, and runs npm test without asking, because that
command is on the default allow list. Then it wants to run npm install, and the chat
shows a Permission required card with the exact command. You click Allow or
Deny. If it later tries rm -rf build, you get another card, because rm always
asks. The Diff pane shows every file the agent changed.

What can the agent do without asking?#
New chats use the default permission set. The top of the Permissions page shows which set new chats use.

| Area | Default rule | Exceptions |
|---|---|---|
| Read files | Allowed | .env, .env.*, *.pem and *.key files ask first |
| Change files | Allowed | Never allowed: .git/, .ssh, .gnupg, shell startup files such as .bashrc, autostart folders, system folders such as /etc and /usr, and Contenox’s own approval policy files |
| Run commands | Asks first | Common read-only and test commands run without asking (see below). Disk-wiping programs such as mkfs, fdisk and shred are never allowed |
| Git | Inspection and git_add run without asking |
git_commit, git_checkout_branch, git_restore and git_push ask first |
| Start missions | Allowed |
Commands that run without asking include git status, git diff, git log, ls,
cat, grep, go test, go build, npm test, npm run build, npm run lint,
pytest and ruff check. On Windows the same goes for read-only PowerShell and cmd
commands such as Get-ChildItem, Get-Content, Select-String, dir and type.
A command on that list still asks if the line contains a redirect such as >, or a
$( ) or backtick substitution.
Can it delete my files?#
Not without asking you first under the default set. The file tools create and change
files, but they don’t delete. Deleting takes a command, and these programs always ask,
even inside an otherwise allowed command: rm, mv, cp, dd, chmod, chown,
sudo, > and >>, plus on Windows Remove-Item, del, rmdir, Move-Item,
Copy-Item, Set-Content, Out-File, Invoke-WebRequest, Invoke-Expression and
Start-Process.
Changing a file is allowed without asking. Review those changes in the Diff pane, and set Change files to Ask me first if you want a card with the diff before each one.
File tools also stay inside the project folder, skip folders such as node_modules,
.git/ and dist/, and an agent must read a file before it can overwrite it.
Can it read my .env or SSH keys?#
.env, *.pem and *.key files in the project ask first, so you see the request before
the agent sees the file.
Credential stores are blocked in every shipped set, including the most permissive one:
- SSH and GPG keys, and private key files such as
id_rsaandid_ed25519 - cloud CLI credentials:
.aws,.azure,.kube,.config/gcloudand others - Windows credential stores and PowerShell history
- password managers and OS keyrings, such as
.password-store, 1Password, Bitwarden and KeePassXC files - browser profiles for Chrome, Chromium, Firefox and Brave on macOS and Linux
- shell history and login files such as
.bash_history,.netrc,.git-credentials,.npmrcand.docker/config.json
For more on keeping secrets out of an agent’s reach, see Keep secrets away from AI agents.
How do I stop it asking so often?#
Change the rule, not the prompt. Contenox has no “always allow” button on the approval card, on purpose: every rule you rely on stays visible on the Permissions page.
- Open Permissions in the sidebar.
- Choose the set new chats use, or choose New set and base it on an existing one.
- Under Commands, find Allow without asking: commands that start with and add
the commands you run all the time, such as
npm run e2eormake check. - Click Save.
Each area, Read files, Change files, Run commands, Start missions and Answer mission questions, has a choice of Allow, Ask me first or Block. Under it you can add exceptions:
- Ask me first for these paths and Never allow these paths
- Allow without asking: commands that start with
- Always ask me first for these programs and Never allow these programs
- When a command contains $( ) or backticks: Ask me first, Block or Treat like any other command
To change the rules for one project only, open the project’s menu in the sidebar and
choose Permissions. Those changes are saved in the project’s .contenox folder and
apply only there.
To see or edit the rules as text, choose Open agents.toml on the Permissions page.
Which other permission sets are there?#
| Set | What it does |
|---|---|
| read_only | Reads the project, changes nothing. File changes, commands, staging, commits, checkouts and restores are blocked |
| ask_always | Reads freely, asks before every change or command, except read-only git commands |
| auto_edit | Changes files without asking; commands still ask |
| default | Like auto_edit, with the longer list of commands that run without asking, and git_add without asking |
| strict | Blocks anything no rule names, and asks before every command, even ls |
| dev | Allows anything no rule names, still asks before risky commands and commits |
The credential blocks and the list of files that are never changed apply to all of them.
Which tools does an agent have?#
| Tool group | Tools | What they do |
|---|---|---|
local_fs |
read_file, read_file_range, list_dir, grep, find_files, stat_file, count_stats |
Read, list and search files in the project |
local_fs |
write_file, edit_file, sed |
Create or change files |
local_shell |
local_shell |
Run one command in the project |
shell_session |
shell_session_run, shell_session_read |
Run commands in a longer-lived shell and read its output |
native-git |
git_status, git_diff, git_log, git_show, git_branch_list, git_blame |
Inspect the repository |
native-git |
git_add, git_commit, git_checkout_branch, git_restore, git_push |
Change the index, branches or history |
mission |
mission_start, mission_list, mission_report and others |
Start and follow missions: tasks an agent runs on its own |
The permission set decides what each call may do. Some agents also get fewer tools: the reviewer agent has file reads and git inspection only, with no shell and no write tools, and the planner agent has only mission tools.
The Tools section of the Permissions page lists every tool group found on your machine, so you can set one rule for a whole group, or leave it on Follow the rules above.
When the rules are not enough#
- Edits don’t ask. Under the default set the agent changes files without a card. The Diff pane is where you review them, before anything is committed.
- Approving is still a decision. A card shows the exact command or diff, but a
npm testcan run any script the project defines. Read before you click Allow. - An allowed command does what the program does. Adding
make deployto the allow list lets the agent deploy. Keep the list to commands that are safe to run any time. - Missions run on their own. In the default set, an agent may start a mission without asking. Everything the mission then does follows the same rules, and its approvals wait for you.
- Text the agent reads can contain instructions. A file, issue or web page can try to steer the model. Rules that block or ask are what stop that from turning into an action. See AI agent permissions.
Related#
Add an MCP server: connectors from MCP serversAdd an MCP server: Claude Code, Codex, OpenCode, Contenox HarnessHow to add an MCP server in Claude Code, Codex, OpenCode and Contenox Harness: local and remote servers, sign-in, per-chat switches, hiding single tools, and permissions.
OpenAPI services as tools: connectors from HTTP APIsOpenAPI AI agent tools: turn any HTTP API into toolsTurn an OpenAPI spec into AI agent tools: Contenox Harness makes each operation a tool, with tokens, logins and permissions. What Claude Code and Codex need.
Why does my coding agent keep asking for permission?: the same question across other agentsWhy does Claude Code or Codex keep asking for permission?Claude Code, Codex, Copilot or Cursor keeps asking for permission? The real cause in each tool, the exact rule or setting that fixes it, and what to keep asking.
Quickstart: install Contenox and run your first chatGet started with Contenox HarnessInstall Contenox Harness, connect ChatGPT or a local model, get your first reply, and choose the folder, permissions and tools for your first project.
AI agent permissions: what to allow, ask and block, in any toolAI agent permissions: what to allow, ask and blockAI agent permissions for coding agents: a safe starting rule set, real config for Claude Code and Codex, the gaps in command rules, and when to skip prompts.
Keep secrets away from AI agentsHow to keep secrets away from AI agents (and out of git)How to keep secrets away from AI agents: block .env reads in Claude Code, OpenCode and Codex, stop keys leaking through commands, and what to do if one leaked.
Git workflow with AI agents: commits, branches and reviewGit workflow with AI agents: branches, worktrees and undoA git workflow with AI agents: start clean, one branch per task, commit checkpoints, undo safely, and run agents in parallel with worktrees. Commands to copy.