Skip to main content

Folders, instructions and tools

CatalEx runs an existing agent in its registered folder. That folder is where the provider finds project instructions, tools, configuration and permitted working files.

Choose the agent's folder​

Use an absolute folder path on the computer that runs the agent, such as /absolute/path/to/support. If you add an agent without naming a folder, CatalEx creates one named after the agent in its agents folder. You cannot change an agent's folder later: delete and recreate the agent to move it.

A folder can hold more than one agent, for example a Claude Code agent and a Codex agent that share the same instructions. Give agents with different instructions or tool access their own folders.

For example, a clinic’s doctor agent and patient agent should have separate folders with their own instructions and tool access. Keep private credentials in the package’s intended secret storage rather than copying them into instructions.

Keep the package’s rules​

If you installed an agent package, follow its setup instructions first. CatalEx onboarding should preserve its provider, tool permissions and file boundaries. It may add CatalEx integration instructions and settings; it should not replace the package’s own policy.

A permission request still needs an answer from the person who receives it. Do not broaden a package’s permissions to make a failed tool call disappear.

Test observable behavior​

A saved agent proves that CatalEx knows its folder. A useful reply proves more: ask for a fact from the agent’s tools or files and compare the answer to the source. Test a prohibited request when the package defines restrictions.

By default the agent's files and commands stay in its own folder. To let it reach another folder, add it under Access outside this folder on the agent's Permissions tab; see Tools and permissions.

If it cannot find its tool, inspect the provider and folder configuration and start a new native chat after fixing it. Use troubleshooting to separate a provider login issue from a tool configuration issue.

Refresh CatalEx-managed guidance​

After a CatalEx instruction update, explicitly repeat onboarding for the same folder to inspect and refresh its marked integration block. Preserve the package’s instructions outside those markers and its existing tool restrictions. Saving writing preferences alone does not rewrite the folder. Start a new chat when testing updated retained skill assets.

Tools that serve one person​

A clinic or customer-service MCP tool may start with a fixed person, for example clinic --patient demo. If every chat reuses that value, different people can act on the same records. Check the package’s tool startup before exposing it to messaging.

For a Claude Code MCP server that supports a per-person flag, configure its saved routing without editing the package’s files. When you connect the folder in the app, CatalEx notices a tool started for one fixed person and shows Every chat would act for the same person on the folder's card, with a Setting that picks the person choice when it found more than one. Choose Use for each chat to save it; the folder's files stay as they are. The agent's settings offers the same choice after you change its AI provider or name. From the terminal, use:

catalex agents edit AGENT_ID --person-arg clinic=--patient

Run catalex agents list for the agent ID. Replace clinic with the MCP server name and --patient with its actual supported person flag. CatalEx starts that server with the chat’s person reference. This maps identity; it does not authorize access to another person’s records. Use --person-arg none only when the tool no longer needs that routing. Verify two separate test people cannot see or change each other’s data.

Native tools and permissions​

Use Tools and permissions to choose which tools the agent may use, whether its commands run in a sandbox, which extra folders it may reach and how its actions are approved. A new MCP server still needs its own package setup and sign-in. The folder's settings and native guards stay in force alongside the choices you save in CatalEx.

Messages between agents​

On the agent's settings, the Permissions tab has Message other agents in its CatalEx card. Choose only the agents this one needs to reach. The list includes agents on this computer and, while connected, agents on your other computers. Changes apply from this agent's next message.

See Messages between agents for the terminal commands, delivery states and a test workflow.