Tools and permissions
An agent uses the tools its Claude Code or Codex setup supplies. CatalEx lets you narrow that set for one agent: how its actions are approved, whether it runs commands in a sandbox, which folders it may reach, and which built-in and connected tools it may use. The folder's own denials, mandatory approvals, hooks and platform restrictions always stay in force.
In the app
Choose Agents, then Settings on the agent's tile, then the Permissions tab. Every change saves on its own and the page shows Saved at the top. The tab holds these cards, each collapsible; a collapsed card says how many of its rows are on, for example 3 of 5 on.
| Card | What it holds |
|---|---|
| Approvals | How the agent's actions are approved |
| CatalEx | Share media, Charts, Interactive cards and Message other agents |
| Claude Code tools or Codex tools | The provider's built-in tools, the sandbox and extra folders |
| Connected tools | One row per tool server, with a checkbox for each of its tools |
The CatalEx card is covered in Engagement and writing and Messages between agents. The rest of this page covers the other three.
Choose approvals
In the Approvals card, open the dropdown and choose one:
| App choice | CLI value | Behavior |
|---|---|---|
| Use global settings | inherit | Keep the AI tool's own approval settings |
| Always ask | manual | Ask a person before actions that need approval |
| Agent recommends | automatic | Let Claude Code decide within its native guards; not offered for Codex |
| Always approve | none | Never ask: the agent runs in its CLI's full-access mode and can do anything this computer account can |
| Always deny | deny | Never ask anyone, the owner included: tools you allowed run and anything else is refused |
A new agent starts on Use global settings. CatalEx never chooses Always approve or Always deny for you. A choice the AI tool cannot offer in this setup is disabled, with the reason under the card.
While Always approve is chosen, the page shows: Risky: with no approval, the agent can run any command and change any file this computer account can without asking, and anyone who can message it can ask it to. Use it only for an agent whose every possible sender you trust.
With Always deny, the page shows Never asks. Tools you allowed run; anything else is refused. Use it for an agent that must never raise an approval request in any chat. Changing the approval choice does not cancel a running turn when it widens approvals, that is, a move to Always approve, or from Always ask to Agent recommends:
- Claude Code takes the new choice at once. Under Always approve it allows every permission request of the running turn from then on, including requests already waiting, so they no longer need an answer. Deny rules and tools you turned off still apply.
- Codex finishes the running turn under the old choice.
The next message then starts the session under the saved choice and continues the same conversation. Any other change, such as a stricter choice, restarts the agent's session before its next turn. Under Always approve, the agent never asks. A move to another AI tool that cannot enforce Always deny is refused and nothing is saved.
Choose built-in tools, the sandbox and folders
The Claude Code tools or Codex tools card lists the provider's built-in tools as checkbox rows. A row with several tools has a chevron: expand it to turn each tool on or off, or tick the row to switch them all. Claude Code offers these rows; Codex offers the ones marked below.
| Row | What it lets the agent do |
|---|---|
| Sandbox commands (both) | Run its programs and commands in the AI tool's sandbox, kept to the folders it can use. On for a new agent |
| Terminal (both) | Run programs and commands. Claude Code splits it into Run programs and commands and Run programs in the background |
| Files (Claude Code) | Read files, Find files, Search in files, Edit files, Create files and Build Python notebooks, in the folders it can use |
| Internet access (both) | Search the web, Open web pages (Claude Code only) and Programs and commands, which lets the programs it runs reach the internet |
| Look at images, Goals (Codex) | Open images in its folders; keep a goal across a long task |
| Create subagents (both) | Start helpers that get the same tools as this agent. Claude Code splits it into Start helpers, Follow up with helpers and Stop helpers |
| Task list (both) | Keep a private checklist on long tasks |
| Skills, Scheduling, Notifications, Data from connected tools, Separate copy, Claude sharing (Claude Code) | Use skills; schedule work for later; show notifications; read documents that connected tools share; work in a separate copy of a git repository; publish pages or send files outside CatalEx |
A new agent starts with Sandbox commands on, Programs and commands under Internet access off, Terminal off, and the web, task list and skills tools on (Codex: web search, images, task list and goals). Turning Terminal on shows Risky: with terminal access on, the agent can run any command on this computer.
The Files row (Claude Code) and the card itself (Codex) end with Access outside this folder. By default the agent's files and commands stay in its own folder. To add another folder:
- Tick Access outside this folder, or expand it and choose Add folder.
- Pick the folder in the file dialog. This works only in the CatalEx app.
- To stop offering a folder, choose Remove folder beside it, or untick the row to remove all of them.
A tool no row names is listed under Other · New, off, so you can review it before turning it on.
Choose connected tools
Connected tools holds the tool servers from the agent's folder, its plugins and your account's connectors. Expand a server to turn single tools on or off, or tick the server to switch them all. A line under each server says where it comes from, for example From your Claude account, and whether you must sign in to it in Claude Code or Codex first. A server marked CatalEx can't limit this is shown as it runs and can't be changed here.
The page lists the agent's tools in the background when you open it, so you do not need to refresh. New tools appear unselected. Choose Refresh connected tools (the circular arrow) to import what the folder's configuration turns on. Selecting a server does not install it, sign it in or grant it permissions beyond its native settings.
Check that the choices apply
A change is stored first and applied when a session starts or resumes. Under the agent's name the page may show Waiting to apply tool permissions. and then Tool permissions applied. Then test a permitted action and a deliberately refused one in a chat.
If a chat finds a tool source the saved choices do not list, it is refused and the page says A chat found a tool source these tools don't list. Refresh tools, review them and save to use it. Review the cards and change a checkbox to save. If a save is refused after you switch AI tool, the page says PROVIDER cannot keep this agent's tool limits. with Review tool access; nothing is saved.
A Claude Code agent whose sandbox cannot start (for example on Linux without the sandbox tools, or native Windows, which has none) fails with AGENT_SANDBOX_UNAVAILABLE. Turn Sandbox commands off or fix the computer.
With the CLI
Read the saved policy and the discovered tools:
catalex agents tools --agent AGENT_ID
catalex agents tools --agent AGENT_ID --discover
Reading starts nothing. --discover may start the agent briefly, without a prompt, to list every tool source its chats load, which starts its tool servers. It never signs in or grants trust.
One flag is enough for a change. CatalEx reads the saved settings, keeps every choice you leave out, generates the operation ID and sends the complete request, then prints the operation ID:
catalex agents tools --agent AGENT_ID --builtin-tool-on Read,Glob,Grep
catalex agents tools --agent AGENT_ID --builtin-tool-off Edit,Write
catalex agents tools --agent AGENT_ID --terminal-access off --approval-mode manual
catalex agents tools --agent AGENT_ID --sandbox on --command-internet off --add-folder /absolute/path/to/shared
catalex agents tools --agent AGENT_ID --tool-off SERVER_ID:delete_file
--builtin-tool-on NAMESand--builtin-tool-off NAMESadd built-in tools to, or remove them from, the saved selection. A name is the tool's own name, such asReadorGlob, or an inventory ID from theserverslist.--builtin-tool NAMESreplaces the whole selection instead (an empty value keeps none) and cannot be combined with the other two. Leaving all three out keeps the saved choice. A new agent starts with only the web tools, the task list and skills on; file tools, the terminal, subagents and the rest are off.--mcp-servertakes optional server IDs, repeated or comma-separated. The list is complete: optional servers you leave out of an explicit flag are turned off, and--mcp-server ''turns off every optional server. Left out, it keeps the saved choice. Required communication stays on.--terminal-accessisinherit,offoron.--approval-modeisinherit,manual,automatic,noneordeny. Terminal tools follow--terminal-access.--sandbox on|offruns the agent's commands in its CLI's sandbox.--command-internet on|offlets those commands reach the internet.--add-folder /absolute/path/to/sharedand--remove-folder PATHchange the extra folders, repeated or comma-separated. A folder must be an absolute path of an existing directory, not the agent's own.--tool-off SERVER_ID:TOOLand--tool-on SERVER_ID:TOOLturn one tool of a selected server off or on.
To be strict, give --revision, --inventory-revision, --mcp-server, --terminal-access or --approval-mode yourself: a stale revision is then refused, which means someone changed the policy or the tools since you looked. Read again and review rather than forcing an old inventory. An agent with no saved tool settings yet needs those flags given; run --discover first.
After a lost reply, repeat the same command with the printed --operation-id, --revision and --inventory-revision. --apply replays a complete saved operation after a lost reply; it does not make a pending change take effect.
Expected result: a saved change reads state pending, code TOOLS_APPLICATION_UNCONFIRMED and next_action apply_tools until the agent's next message. The agent loads its saved tools when it opens a session, and CatalEx marks them applied once that session proves them. The one step is to send the agent a message, for example catalex chats send CHAT_ID --wait, and read catalex agents tools --agent AGENT_ID again. Saving again does not make it take effect sooner. Pending, failed or unsupported is not success.
Turn on read-only file access
A new agent cannot read its folder's files. To let it read and search them without letting it edit anything, turn on only the built-in tools Read, Glob and Grep. They reach only the agent's folder and its extra folders (how each AI tool enforces it). Ask the person first.
catalex agents tools --agent AGENT_ID --builtin-tool-on Read,Glob,Grep
The agent must have had one chat first, because Claude Code reports its built-in tools only then; onboarding and the setup-check chat count. The state starts as pending and becomes applied at the agent's next message. Ask the agent about a file again after that message. An earlier release than 0.1.19 refuses this command for missing flags (--operation-id, --revision and the rest); Set up with an AI agent has a script for it.
How each AI tool enforces it
- Claude Code gets the sandbox, folder limits and per-tool denials through its own settings for each session. Reads and writes outside the agent's folder and its extra folders are blocked, and so are
..and symbolic-link escapes. With the sandbox on, the home directory outside those folders is also unreadable to its commands. - Codex gets a workspace-write sandbox with the extra folders writable, even under Always approve. A folder that already uses a Codex permission profile keeps it.
- A selected server marked Not loaded does not stop the agent: it answers without that server. Required CatalEx tools must load.
- A policy saved before these choices existed keeps its earlier behavior until you save it.
Change isolation or AI tool without losing choices
Changing a Claude Code agent's isolation (catalex agents edit AGENT_ID --isolation folder) or its AI tool carries the saved choices into the new setup. A server with the same source, native name and launch command keeps its selection; a new server stays unselected for review; a server no longer offered drops out. Terminal and approval choices are kept. A move that cannot keep a restriction such as Always deny fails with AGENT_TOOLS_NOT_CARRIED.