@riclara/agentflow
v1.1.0
Published
Configure a multi-agent development workflow across Claude Code, Codex, Cowork, and OpenCode.
Readme
agentflow
Language: English | Español
agentflow is a Node.js CLI that configures a multi-agent development workflow
for Claude Code, Cowork, Codex CLI, Codex App, and OpenCode.
It generates four specialized agents:
- planner
- implementer
- tester
- documenter
The orchestration logic lives in the generated agentflow skill for Claude and
Codex. OpenCode gets the agent definitions for manual execution.
Background article: Multi-Agent AI Development Pipeline
Install the CLI
Install agentflow globally once:
npm install -g @riclara/agentflowThen, inside each project where you want the workflow:
cd my-projectCommands
agentflow init
agentflow status
agentflow update
agentflow config
agentflow ejectWhat v3 adds
- The planner is write-capable for feature artifacts and may write only
docs/features/<slug>/plan.mdanddocs/features/<slug>/review.md. - Plans now separate
## Implementation Tasks,## Test Tasks, and## Test Files. - Generated skills maintain
docs/features/<slug>/activity.logand pause cleanly withPAUSED_RATE_LIMIT, including resume instructions. agentflow statusreportsTemplate Health(healthy,stale, orincompatible) from the generated files on disk, not only from.agentflow.json.agentflow updaterewrites managed files when templates are stale or out of date, while preserving custom models and marker-merged content.
Initialization: which command to run in each case
Case 1: brand new project or project that never used agentflow
Run:
agentflow initUse this when:
- there is no
.agentflow.json - you want
agentflowto generate the agents for the first time - you want to select tools, models, language, framework, and test runner
Case 2: project already initialized with agentflow
Run:
agentflow status
agentflow update
agentflow statusUse this when:
- the project already has
.agentflow.json - you want to migrate old prompts/templates to the latest version
- you want to verify whether generated files are
healthy,stale, orincompatible
This is the right flow for testing migrations. Do not re-run init unless you
actually want to reinitialize the project.
Case 3: project already has Claude/Codex/OpenCode config, but not agentflow
Run:
agentflow initDuring init, agentflow will merge into:
CLAUDE.mdAGENTS.mdopencode.json.codex/config.toml
and generate the agent files it manages.
Case 4: project was initialized, but status shows incompatible
Start with:
agentflow status
agentflow updateIf incompatible remains, the project likely has missing or unmanaged files.
In that case, re-running agentflow init is the simplest recovery path.
What agentflow init generates
Depending on the selected tools:
- Claude Code / Cowork:
.claude/skills/agentflow/SKILL.md.claude/agents/planner.md.claude/agents/implementer.md.claude/agents/tester.md.claude/agents/documenter.md- workflow section in
CLAUDE.md
- Codex CLI / Codex App:
.codex/agents/planner.toml.codex/agents/implementer.toml.codex/agents/tester.toml.codex/agents/documenter.toml.agents/skills/agentflow/SKILL.md- workflow section in
AGENTS.md
- OpenCode:
.opencode/agents/planner.md.opencode/agents/implementer.md.opencode/agents/tester.md.opencode/agents/documenter.mdagentsection merged intoopencode.json
It also creates .agentflow.json and the base docs/ directory.
Daily usage
Automatic mode
Use automatic mode when the tool supports the generated agentflow skill.
- Claude Code / Cowork:
/agentflow <describe your feature>- Codex CLI / Codex App:
$agentflow <describe your feature>Automatic mode runs the full pipeline:
- planner writes
docs/features/<slug>/plan.md - user approves or requests changes
- implementer executes
## Implementation Tasks - planner reviews into
docs/features/<slug>/review.md - tester executes
## Test Tasksand writes tests from## Test Files - documenter updates docs after tests pass
Manual mode
Use manual mode when:
- you want to run one phase at a time
- you are debugging the workflow
- you are using OpenCode
Claude Code / Cowork
Run the agents directly:
@agent-planner plan: <feature>
@agent-implementer implement docs/features/<slug>/plan.md
@agent-planner review against docs/features/<slug>/plan.md
@agent-tester write and run tests
@agent-documenter write documentationCodex CLI / Codex App
Ask Codex to spawn the named agents:
Spawn the planner agent to plan: <feature>
Spawn the implementer agent to implement docs/features/<slug>/plan.md
Spawn the planner agent to review against docs/features/<slug>/plan.md
Spawn the tester agent to write and run tests
Spawn the documenter agent to write documentationOpenCode
OpenCode does not support skills, but each agent is configured to suggest the next command when it finishes. Start the pipeline with a single message to the planner:
@planner Plan this feature and write the result to docs/features/<slug>/plan.md.
Feature: <describe your feature>The planner will write the plan and end its response with the exact command to run next. Follow the suggestions to move through the pipeline:
planner → implementer → planner (review) → tester → documenterEach agent tells you what to run when it finishes, including the correct
docs/features/<slug>/ path. If a review or test phase fails, the agent
suggests the fix command instead of the next phase.
What to tell each agent
These are the expected task shapes when you run agents manually.
Planner: create a plan
Use this when the feature has not been planned yet.
Plan this feature and write the result to docs/features/<slug>/plan.md.
The plan must include:
- ## Summary
- ## Implementation Tasks
- ## Test Tasks
- ## Test Files
- ## Acceptance Criteria
Feature: <your feature request>Implementer: execute the plan
Use this after the plan is approved.
Read docs/features/<slug>/plan.md and execute only ## Implementation Tasks.
Ignore ## Test Tasks.
Mark completed implementation tasks with [x].Planner: review the implementation
Use this after implementation or after fixes.
Review the implementation against docs/features/<slug>/plan.md.
Check only ## Implementation Tasks and ## Acceptance Criteria for this phase.
Do not mark ## Test Tasks as missing before testing starts.
Write results to docs/features/<slug>/review.md starting with:
## Status: APPROVED | NEEDS_CHANGESTester: write and run tests
Use this after the implementation passes review.
Read docs/features/<slug>/plan.md.
Execute only ## Test Tasks.
Create only the files listed in ## Test Files.
Write and run tests with the configured test command.
If tests fail, update docs/features/<slug>/review.md with:
## Status: NEEDS_CHANGES
## Test FailuresDocumenter: update docs
Use this only after tests pass.
Read docs/features/<slug>/plan.md and the final implementation.
Update README.md and any relevant docs to match the approved, tested behavior.Template Health
agentflow status validates the generated planner, tester, and skill files
against the workflow invariants:
- planner can write only feature artifacts
- skills use
docs/features/<slug>/andactivity.log - tester follows
## Test Tasksand## Test Files
If a managed file is present but missing v3 invariants, it is reported as
stale.
If a required file is missing or no longer managed by agentflow, it is
reported as incompatible.
Recommended maintenance flow
Use these commands in this order:
agentflow status
agentflow update
agentflow statusThat gives you:
- a health report before changing anything
- migration of managed files if they are stale or outdated
- a final confirmation that the project is healthy
Repository Automation
For CI, npm publishing, and branch protection setup, see
docs/repository-setup.md.
Automatic versioning is now based on Conventional Commits through
release-please.
