Agent files
An agent is a YAML file in./.graph/agents/ or ~/.config/graph/agents/. It names a model role, the tools it may call, and its system prompt. It can also list other agents to call as subagents or hand the conversation to. See Agent file for every field.
Agent networks
An agent network is any mix of agents, plans and tools. One agent calling one plan and one subagent is already a network: Agent Plan Tool An agent chooses its next call each round, and each round is a model call. A plan fixes its steps ahead of time, makes no model call between them, and can run a step over many items at once. Move work an agent repeats into a plan it calls, and keep the agent for the decisions.Delegation
An agent can pass work to other agents in two ways. See Build a multi-agent network for both.Subagents
An agent lists the agents it can call undersubagents, and calls each one as agent__<name> with a prompt. The subagent works in a fresh context and returns its result to the caller, which keeps the conversation. reviewer is a subagent of release_notes.
Handoffs
An agent lists the agents it can hand the conversation to underhandoffs, and hands off with transfer_to_<name>. The new agent takes over the conversation and answers the user from then on.
Where agents run
A plan can also run an inline
agent step, with its own prompt and tools, for one task that doesn’t need its own file.
Built-in agents
graph shipschat, the default for graph ask and graph chat, plus the drafters and workbench agents listed in Built-in agents. An agent file with the same name replaces a built-in. A project file replaces one in your home directory, so committing ./.graph/agents/ gives your whole team the same agents.
Guides
Create an agent in the workbench
Draft an agent with tools and save it.
Talk to an agent
Ask one question or hold a conversation from the terminal.
Optimize an agent with plans
Move repeated tool calls into a plan to make fewer model calls.
Build a multi-agent network
Connect agents with handoffs and subagents.
Customize a built-in agent
Give the
chat agent a researcher subagent.Steer tool choice
Get an agent to call the right plan.
Manage threads
Find, read, continue and delete conversations.