AutoMax
Guides

Agents

Provider-agnostic AI roles that plan, generate, heal, upgrade and review tests, and only write proposals.

What you'll learn

Which agent roles exist, what each reads and produces, how the adapter keeps AutoMax independent of one LLM vendor, how proposals are reviewed, and how cost is bounded.

Roles

RoleInputOutput
plannera goal, the running app through Playwright MCP or the source tree and OpenAPIdocs/test-plans/<name>.md with tagged scenarios
generatora plan, a goal or a recorded specfeature file, only-unmatched steps, page object
healera failing scenario, its error, ARIA snapshot and locator statsa page-object or step patch, re-run result
upgradera git diff range or two OpenAPI versionsnew and updated scenarios, data rows, deprecation list
reviewerchanged featuresreview notes and optional data-driven refactors

Adapter

Roles do not know which model runs them. --adapter, AUTOMAX_LLM_PROVIDER or agents.provider in the project YAML picks one; when none is set AutoMax auto-detects in this order: ANTHROPIC_API_KEYclaude CLI → codex CLI → OPENAI_API_KEYfake.

AdapterRuns onNeedsNotes
claudeClaude Agent SDK + bundled Playwright MCPANTHROPIC_API_KEYfull tool loop, budgets enforced by the SDK
claude-codeyour logged-in Claude Code CLI (claude -p)claude loginno API key; uses your subscription; tools via the automax MCP server
codexyour logged-in OpenAI Codex CLI (codex exec)codex loginno API key; ChatGPT account; tools via the automax MCP server, read-only sandbox
openai-compatibleany chat-completions endpoint with tool callingOPENAI_API_KEY (+ OPENAI_BASE_URL)Azure, Ollama, vLLM …
fakescripted responsesnothingtests and --dry-run

LLM keys and logins are yours and billed by the provider; AutoMax's own API tokens are free. See Claude Code and Codex CLI and Tokens and keys.

Commands

bun run automax agent plan     -p demo-shop --goal "checkout with a discount code"
bun run automax agent generate -p demo-shop --plan docs/test-plans/checkout.md
bun run automax agent heal     -p demo-shop --scenario <fingerprint>
bun run automax agent upgrade  -p demo-shop --diff main..feature/x
bun run automax agent review   -p demo-shop
bun run automax agent generate -p demo-shop --goal "login" --dry-run --adapter fake
bun run automax proposals list
bun run automax proposals show <id>
bun run automax proposals accept <id> --branch automax/<id>

Budgets

automax.project.yaml
agents:
  models: { planner: claude-opus-5, generator: claude-opus-5, healer: claude-opus-5 }
  maxTurns: { healer: 30 }
  budgetUsd: { default: 2, planner: 5 }
  maxRunsPerJob: 3

Every job records model, turns and cost; a job stops at its budget.

Claude Code

automax agent install-claude writes .claude/agents/automax-*.md, .mcp.json and the repository's AGENT.md/SKILL.md, so Claude Code users get the same roles as the CLI.

Next steps

On this page