Agent runner
apps/agent-runner orchestrates staged subagent roles for feature, hotfix, and release workflows.
Stages
- Planner
- Implementer
- Reviewer
- Release
Run
Generate and apply patch automatically
--auto enables both --generate and --apply.
Subagents
Subagents are opt-in and loaded from markdown files.CLI flags
--subagents <path>: directory, file, or glob for subagent markdown files--subagent-mode <sequential|parallel>: execution mode (default:sequential)
--subagents requires --generate or --auto.
Subagent file format
Create files under.ai/agents/*.md:
name(required)description(required)provider(openaiorclaude, optional)model(optional)tools(optional)maxTurns(optional)
- Uses markdown body if present
- Falls back to
promptfrontmatter if body is empty
Configuration
The agent-runner requires environment variables for AI code generation. You can set these via:-
.envfile (recommended): Copy.env.exampleto.envand configure: - Environment variables: Export directly in your shell
OpenAI Provider (default)
Claude Provider
Supported workflows
featurehotfixreleasebugfixalias tohotfix
Artifacts
Workflow artifacts are saved to:/.ai/tasks/artifacts/<task-id>/
Expected outputs:
plan.mdimplementer.mdimplementer.patchreview.mdrelease.mdsubagents/*.prompt.md(when--subagentsis enabled)subagents/*.patch(when--subagentsis enabled)
Notes
- Patch apply is opt-in through
--applyor--auto - Verification runs through canonical
bun run verify