Skip to content

Agent config

Every field of an agent's agent.json.

Each agent lives in vteam/agents/<name>/. AGENT.md is required and holds only the system prompt; its presence is what makes the directory an agent. Orchestrator behavior is configured in an optional agent.json next to it (missing = all defaults):

vteam/agents/coder/agent.json
{
"$schema": "../../agent.schema.json",
"model": "sonnet",
"cron": "0 */6 * * *",
"worktree": true,
"input": "task",
"autoPR": true,
"prCreateLabels": ["vteam"]
}

vteam init writes vteam/agent.schema.json so editors can autocomplete and validate agent.json through the $schema reference. Cross-field rules (e.g. readOnly requires worktree) are not in the JSON Schema; vteam checks them when it loads the agent.

Validation is strict: unknown keys are rejected everywhere, including inside memory and onFinish. Invalid JSON fails with Invalid JSON in <name>/agent.json; schema violations fail with Invalid config in <name>/agent.json: followed by one line per offending path.

YAML frontmatter is rejected: an AGENT.md, MEMORY.md or ON_FINISH.md that starts with --- is a load error. Agents in the old format must be converted by hand: move the frontmatter fields into agent.json and leave only the prompt in the markdown file.

Field Default Description
model none Claude model passed to claude --model (e.g. "sonnet", "opus", "haiku", or a full model ID). Omit to use Claude Code’s default.
cron none Default cron expression (5 fields: minute hour day month weekday), used when you enable the agent’s cron in the TUI or with vteam cron enable. Setting it does not schedule the agent. Validated on load.
worktree false Run in an isolated git worktree; push branch on commit
readOnly false Run in a worktree but skip commit/push/PR (requires worktree: true, incompatible with autoPR). The agent runs freely; readOnly only prevents the orchestrator from committing/pushing afterward.
output none "task" to produce findings that the orchestrator creates as aven tasks (incompatible with autoPR and readOnly). When omitted, the agent uses generic content output. All agents share a unified output schema; output controls only the content field type.
input none "task" to pick from the aven todo queue; "pr" to respond to PR review comments (requires worktree: true); "review" to review other people’s open PRs and post the review (requires worktree: true and readOnly: true, see Reviewer)
taskFilter none Requires input: "task". Map of aven metadata key → value, list of values, or null (key missing). Picks only matching tasks. See Triage and routing.
reviewFilter none Requires input: "review". Which PRs to review: authors (logins or usernames; empty or missing = anyone), drafts (default false), skipLabels (PRs with any of these labels are skipped).
prTriggerLabel none Label signalling “this PR needs work” (e.g. vteam:changes-requested); the orchestrator discovers PRs by this label and removes it after the agent pushes
autoPR false Create a pull request after pushing
prCreateLabels none Labels applied to created PRs (auto-created if they don’t exist)
resolveThreads false Requires input: "task" and worktree: true. On a PR follow-up, resolve each review thread the agent replied to
allowedTools none Claude Code tools the agent may use (same syntax as the --allowedTools CLI flag, e.g. ["Read", "Bash(git *)"]). When set, the agent gets no other built-in tools; omit it for Claude Code’s default set. MCP tools from your Claude Code config stay available.
disallowedTools none Claude Code tools the agent may NOT use (same syntax as the --disallowedTools CLI flag)
memory none Curation agent settings: model, allowedTools, disallowedTools, and the log budget maxLines. Requires MEMORY.md. See Per-agent memory.
onFinish none Hook settings: model, allowedTools, disallowedTools. Requires ON_FINISH.md. See On-finish hooks.