Skip to content

Step files

Multi-step patterns (critic, reflexion, constitutional, chain-of-verification, plan-execute, scatter, best-of-n, human) load system prompts from separate .md files for each step.

Step files live alongside AGENT.md in the agent directory:

agents/essay-critic/
├── AGENT.md ← pattern: critic
├── draft.md ← step 1: draft system prompt
├── critique.md ← step 2: critique system prompt
└── refine.md ← step 3: refine system prompt
PatternRequired files
scatterreduce.md
criticdraft.md, critique.md, refine.md
reflexionreflect.md
constitutionalcritique.md, revise.md
chain-of-verificationverify.md, check.md, revise.md
plan-executeexecute.md, verify.md
best-of-njudge.md
humanresume.md

Step files can be plain Markdown (body only) or include optional YAML frontmatter.

You are a meticulous editor. Evaluate the draft for:
1. Factual accuracy
2. Logical flow
3. Writing quality
Provide specific improvement suggestions.
Call finish with key="done" and your critique as value.
---
call:
model:
name: anthropic:claude-opus-4-6
temperature: 0.1
max_tokens: 2048
uses:
- search-web
---
You are a fact-checker with access to web search.
Verify all factual claims in the draft.
Call finish with key="done" and any corrections as value.

The optional frontmatter supports the same call: block as AGENT.md:

Override the model for this specific step:

call:
model:
role: fast # use a cheaper/faster model for this step
temperature: 0.0 # deterministic
max_tokens: 512

Or specify directly:

call:
model:
name: anthropic:claude-opus-4-6 # use a more capable model for this step

Add skills specifically for this step:

call:
uses:
- search-web
- fetch-url

Skills declared in the step file are available only for that step’s react loop.

If a step file has no frontmatter, it inherits the model from the parent AGENT.md’s call.model. If the parent has no call.model either, the default model from tama.toml is used.

Step-level call.uses are additive — they extend (don’t replace) any skills already available.

tama lint checks that all required step files exist:

Terminal window
tama lint
# ✓ agents/essay-critic: ok
# ✗ agents/my-cov: missing required files: check.md, revise.md