Skip to main content

Agent

Use this page to reference agent prompts, models, tools, budgets, and subagents.

Limits​

spec:
limits:
maxToolOutputTokens: 8000 # a longer tool output is cut, with a note to the model
maxSubmitRetries: 2 # corrective messages before the turn fails
summarizeTokens: 60000 # summarize the context past this many tokens; null turns it off
summarizeKeepMessages: 20 # the last messages always kept

Fields​

AgentSpec (spec)​

FieldTypeDefaultMeaning
harnessstrbasicThe harness that runs the agent: basic, deep, acp or a plugin's.
systemPromptstr or nullnullThe prompt inline, or None when it is a file.
systemPromptFilestr or nullnullThe prompt as a file next to the manifest.
writesstrrequiredThe Schema of the artifact the agent produces.
readslist[str][]The artifacts the agent reads; a name ending in ? is optional.
budgetBudgetBudget()The agent's own budget ceilings.
limitsAgentLimitsAgentLimits()The harness's limits.
modelstr or nullnullThe model alias to start with, for the basic harness.
toolslist[str][]The tools the agent may call, by name.
workspaceAccessread or write or nullnulldeep: read or write access to the workspace.
executeboolFalsedeep: whether the agent may run commands in the sandbox.
extraToolslist[str][]deep: built-in tools added to the default set.
subagentslist[SubagentSpec][]deep: the subagents the agent may hand work to.
agentstr or nullnullacp: the AcpAgent manifest the agent runs.
permissionsdict[str, allow or deny or ask]{}acp: the start permission per tool name.

Budget (spec.budget)​

FieldTypeDefaultMeaning
tokensint or nullnullThe token ceiling.
toolCallsint or nullnullThe tool-call ceiling.
costUsdfloat or nullnullThe cost ceiling in US dollars.
wallTimeduration or nullnullThe wall-clock ceiling.
maxTurnsint or nullnullThe turn ceiling.

AgentLimits (spec.limits)​

FieldTypeDefaultMeaning
maxToolOutputTokensint8000The tokens of a tool result kept before it is cut.
maxSubmitRetriesint2How many times the harness retries a rejected artifact submission.
summarizeTokensint or null60000Summarise the context past this many tokens; null turns it off.
summarizeKeepMessagesint20How many recent messages summarization keeps verbatim.

SubagentSpec (spec.subagents)​

FieldTypeDefaultMeaning
namestrrequiredThe subagent's name, as the parent refers to it.
descriptionstrrequiredWhat the subagent is for; the parent sees it.
systemPromptstr or nullnullThe prompt inline, or None when it is a file.
systemPromptFilestr or nullnullThe prompt as a file next to the manifest.
toolslist[str][]The tools the subagent may call: a subset of the parent's.
modelstr or nullnullThe model alias; inherited from the parent when absent.

See also​