Agents
Agents are reusable instruction profiles for specialized work. Define them once in
ai.json; aix writes them to each editor’s native agent location when that editor has a
documented file format.
{ "agents": { "code-reviewer": { "description": "Review code changes before a PR", "mode": "subagent", "model": "sonnet", "tools": ["Read", "Grep"], "permissions": { "edit": "deny", "bash": "ask" }, "content": "Review the current diff for bugs and missing tests." } }}Use mode: "subagent" for delegated specialists and mode: "primary" for editors that
support switching the main assistant profile. The portable fields are description,
mode, model, tools, permissions, mcp, and the instruction source.
Editor-specific fields live under editor:
{ "agents": { "tester": { "content": "Test the changed behavior.", "editor": { "gemini": { "temperature": 0.2, "maxTurns": 8 } } } }}Supported native destinations:
- Claude Code:
.claude/agents/*.mdand~/.claude/agents/*.md - Cursor:
.cursor/agents/*.mdand~/.cursor/agents/*.md - GitHub Copilot:
.github/agents/*.mdand~/.config/github-copilot/agents/*.md - Gemini:
.gemini/agents/*.mdand~/.gemini/agents/*.md - OpenCode:
.opencode/agents/*.mdand~/.config/opencode/agents/*.md
Codex, Windsurf, and Zed do not currently have aix-managed custom agent files. aix reports configured agents as unsupported for those editors instead of writing a lossy fallback.