agents/ Role Directory
agents/ stores worker/subagent definitions. Prefer .a3s/agents/ for new A3S projects. Migration projects may still read .claude/agents/, but new docs and projects should use .a3s/agents/.
These files are not the main AgentDir. They are invoked by task, parallel_task, session.task(...), session.tasks(...), or autoDelegation. The parent session still owns final synthesis, verification, and permission boundaries.
Agent File
name is the call name. description drives automatic routing. The body describes the worker role. Tool fields narrow visible capabilities; do not rely on the worker merely promising not to do risky things.
Manual Delegation
Fixed flows are better as manual delegation or programmable orchestration. Automatic delegation fits goals where the parent agent should choose specialists.
Automatic Delegation
Automatic delegation depends on descriptions and confidence scoring. Write descriptions that say when to use the agent, not just what the role is called.
Practices
- Keep one role per file.
- Make descriptions useful for routing and bodies useful for execution.
- Ask workers to return evidence, risks, and next steps.
- Keep publish, delete, push, and other high-risk permissions out of default workers.
- Use
workerAgentsorregisterWorkerAgent()for dynamic one-off workers.