Skip to content

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:

ModeMeaning
primaryAn agent you talk to directly in the TUI or through argy run --agent.
subagentAn agent called for a bounded task, by a primary agent or by you with @name.
allUsable 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

AgentRoleNotable permissions
builderDefault agent. Implements, fixes, refactors, tests and runs. Can delegate to sub-agents.Default permissions from your configuration; browser navigation and interaction ask for confirmation.
plannerResearch-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.
jabberFast, 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

AgentModeRoleRestrictions
generalistsubagentGeneral-purpose multi-step work.Default permissions.
explorersubagentFast codebase exploration at an adjustable depth (quick, medium, very thorough).Writes limited to .argy/.
navigatorsubagentBrowser automation: forms, screenshots, end-to-end tests, accessibility audits, Web Vitals, Electron apps.Shell, editing and delegation denied.
reviewerallRead-only code review: diffs, commits, pull requests, root causes, architecture.Write and edit denied; only delegates to explorer.
researcherallMulti-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/.
auditorallSecurity 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.
writerallGenerates PowerPoint, Excel, PDF and Word documents using your visual identity.Image generation allowed.
crafterallCreates skills (SKILL.md) or deterministic module bundles, then validates and packages them locally.Remote creation and publication require confirmation.
runnerallCreates and maintains run configurations in argy.json.—
trainerallDesigns 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).

SettingDefaultEnvironment variable
Maximum delegation depth2 levelsARGY_MAX_DELEGATION_DEPTH
Concurrent sub-agents per session5ARGY_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.

KeyTypeDescription
descriptionstringWhat the agent does; used to pick the right sub-agent.
modeprimary | subagent | allAgent mode.
modelstringModel in provider/model format.
variantstringModel reasoning variant.
temperature, top_pnumberSampling parameters (0.0 precise, 1.0 creative).
promptstringThe agent's system instructions.
toolsobjectEnable or disable tools ({ "bash": false }).
permissionobjectAgent-specific allow, ask or deny rules.
stepsnumberMaximum iterations per request.
hiddenbooleanHide the agent from pickers.
colorstringDisplay color.
disablebooleanDisable 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:

  1. argy agent create: guided creation from the command line (--description, --mode, --tools, --model, --path);
  2. a Markdown file in .argy/agent/<name>.md;
  3. during a session, by asking Argy Code to create the agent: it is saved to .argy/agent/<name>.md and available immediately.

argy agent list lists every available agent, and argy debug agent <name> shows an agent's resolved configuration.

See also