Argy Code agents and modes
The built-in roles of Argy Code, their default permissions, delegation and customization, so you can choose who works on your code.
Argy Code splits work across several specialized roles: one writes code, one plans without changing anything, one reviews, one audits security. Each has its own set of tools and permissions. This page describes those roles, how to switch between them and how to create your own.
Primary agents and sub-agents
Every agent has a mode:
| Mode | Meaning |
|---|---|
primary | An agent you talk to directly in the TUI or through argy run --agent. |
subagent | An agent called for a bounded task, by a primary agent or by you with @name. |
all | Usable in both roles. |
In the TUI, tab and shift+tab cycle through primary agents, and /agents (or <leader>a) opens the full picker (see TUI slash commands). On the command line, pick the agent with --agent (see the CLI reference).
Primary agents
| Agent | Role | Notable permissions |
|---|---|---|
builder | Default agent. Implements, fixes, refactors, tests and runs. Can delegate to sub-agents. | Default permissions from your configuration; browser navigation and interaction ask for confirmation. |
planner | Research-first architect: produces plans, analyses and audits, and never changes code. | Everything denied except reading, web and the knowledge base; shell limited to read-only inspection; writes limited to the .argy/ folder. Only delegates to generalist, explorer, reviewer and researcher. |
jabber | Fast, direct conversation without orchestration. | Delegation, task list, plan mode and agent creation denied. |
When the agent itself proposes switching to another primary agent, the switch always requires your explicit confirmation.
Specialized sub-agents
| Agent | Mode | Role | Restrictions |
|---|---|---|---|
generalist | subagent | General-purpose multi-step work. | Default permissions. |
explorer | subagent | Fast codebase exploration at an adjustable depth (quick, medium, very thorough). | Writes limited to .argy/. |
navigator | subagent | Browser automation: forms, screenshots, end-to-end tests, accessibility audits, Web Vitals, Electron apps. | Shell, editing and delegation denied. |
reviewer | all | Read-only code review: diffs, commits, pull requests, root causes, architecture. | Write and edit denied; only delegates to explorer. |
researcher | all | Multi-source research in three phases (outline, investigation, synthesis), with a sourced report and confidence levels in .argy/research/. | Very restricted shell; writes limited to .argy/. |
auditor | all | Security audit: SAST (Semgrep), SCA and IaC (Trivy), authorized DAST (Nuclei); installs tools as needed; reports in .argy/audits/. | Writes limited to .argy/; dynamic testing requires your explicit consent; callable only at the first delegation level. |
writer | all | Generates PowerPoint, Excel, PDF and Word documents using your visual identity. | Image generation allowed. |
crafter | all | Creates skills (SKILL.md) or deterministic module bundles, then validates and packages them locally. | Remote creation and publication require confirmation. |
runner | all | Creates and maintains run configurations in argy.json. | — |
trainer | all | Designs interactive training and generates offline learning apps. | Writes limited to .argy/training/; first delegation level only. |
Call a sub-agent directly in your message:
@reviewer review the changes on the current branch
@auditor run a SAST and SCA audit of the repository
@writer produce a PDF summary of this plan
Audits by auditor and the related safeguards are covered in Permissions and security. Bundles built by crafter follow the lifecycle described in Extensions and are published to the Argy Portal catalog.
Delegation
When a primary agent delegates, the sub-agent runs in the background: you can keep typing while it works, and its result arrives between steps. Several sub-agents can run in parallel (for example @auditor and @reviewer).
| Setting | Default | Environment variable |
|---|---|---|
| Maximum delegation depth | 2 levels | ARGY_MAX_DELEGATION_DEPTH |
| Concurrent sub-agents per session | 5 | ARGY_MAX_CONCURRENT_SUBAGENTS |
In the TUI, <leader>down opens a sub-agent's session and <leader>up returns to the parent session.
Plan mode
Plan mode lets the agent propose a plan before changing anything, then exit it to carry the plan out. For research or design work with no risk of code changes, switch to planner with tab.
Missions
/mission sets a persistent goal for the session (see TUI slash commands). The status of tasks tracked by orchestration is shown in the TUI.
Setting the default agent
{
"$schema": "https://argy.cloud/config.json",
"default_agent": "planner"
}
default_agent must point to a primary agent.
Customizing and creating agents
Adjusting an existing agent
The agent key of argy.json adjusts a built-in agent or declares a new one. Disable a built-in agent with disable: true.
| Key | Type | Description |
|---|---|---|
description | string | What the agent does; used to pick the right sub-agent. |
mode | primary | subagent | all | Agent mode. |
model | string | Model in provider/model format. |
variant | string | Model reasoning variant. |
temperature, top_p | number | Sampling parameters (0.0 precise, 1.0 creative). |
prompt | string | The agent's system instructions. |
tools | object | Enable or disable tools ({ "bash": false }). |
permission | object | Agent-specific allow, ask or deny rules. |
steps | number | Maximum iterations per request. |
hidden | boolean | Hide the agent from pickers. |
color | string | Display color. |
disable | boolean | Disable the agent. |
{
"$schema": "https://argy.cloud/config.json",
"agent": {
"docs-writer": {
"description": "Writes and updates the repository documentation",
"mode": "subagent",
"tools": { "bash": false },
"permission": { "edit": { "*": "deny", "docs/**": "allow" } }
},
"trainer": { "disable": true }
}
}
Permission rules are detailed in Permissions and security and other keys in Configuration.
Restrictions you cannot lift
The safeguards of restricted agents (planner, reviewer…) apply after your configuration. A global rule such as "permission": { "bash": "allow" } therefore does not give planner write access.
Creating an agent
Three ways:
argy agent create: guided creation from the command line (--description,--mode,--tools,--model,--path);- a Markdown file in
.argy/agent/<name>.md; - during a session, by asking Argy Code to create the agent: it is saved to
.argy/agent/<name>.mdand available immediately.
argy agent list lists every available agent, and argy debug agent <name> shows an agent's resolved configuration.