Installation¶
Get Agent Flow up and running with Claude Code in minutes.
Prerequisites¶
Before installing Agent Flow, ensure you have:
- Claude Code CLI installed and configured
- Bash shell available (macOS, Linux, or WSL on Windows)
- A project directory where you want to use Agent Flow
Installation Methods¶
Method 0: Claude Code Marketplace (Recommended)¶
This doc is the comprehensive install reference. For the quick-start path, see the README.
The simplest path — no local clone required:
Claude Code fetches the plugin directly from GitHub. Updates via /plugin update agent-flow@josix-plugins.
Method 1: Plugin Directory (Development/Local)¶
Clone or download Agent Flow to a location on your system, then reference it when launching Claude Code:
# Clone the repository
git clone https://github.com/josix/agent-flow.git ~/agent-flow
# Launch Claude Code with the plugin
claude --plugin-dir ~/agent-flow
Method 2: Git Clone¶
For project-specific usage, add Agent Flow as a subdirectory:
# From your project root
git clone https://github.com/josix/agent-flow.git .claude-plugins/agent-flow
# Launch Claude Code with the plugin
claude --plugin-dir .claude-plugins/agent-flow
Method 3: Git Submodule¶
For version-controlled projects:
# Add as submodule
git submodule add https://github.com/josix/agent-flow.git .claude-plugins/agent-flow
# Launch Claude Code with the plugin
claude --plugin-dir .claude-plugins/agent-flow
Directory Structure¶
After installation, Agent Flow contains:
agent-flow/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── agents/ # Agent definitions
│ ├── Riko.md
│ ├── Senku.md
│ ├── Loid.md
│ ├── Lawliet.md
│ └── Alphonse.md
├── commands/ # Command definitions
│ ├── orchestrate.md
│ └── deep-dive.md
├── hooks/ # Hook configurations
│ ├── hooks.json
│ └── scripts/
├── scripts/ # Utility scripts
├── skills/ # Skill definitions
└── docs/ # Documentation
Verify Installation¶
From the plugin directory, run the structural smoke test:
Expected output: ✓ All tests passed with exit code 0. The script validates plugin manifests, hook scripts, agent/skill/command frontmatter, and several runtime edge cases.
Inside Claude Code, confirm the commands are discoverable by typing / and looking for:
- /orchestrate — sequential multi-phase orchestration
- /team-orchestrate — parallel agent teams
- /deep-dive — codebase exploration
Optional: Graphify Integration¶
Agent Flow can share a knowledge graph of your codebase across subagents via an MCP server. To enable it, install graphify with the mcp extra (choose one):
# System Python
pip install 'graphifyy[mcp]'
# Isolated via pipx
pipx install graphifyy
pipx inject graphifyy mcp
Then, in your project:
This builds graphify-out/graph.json. From the next Claude session onwards, Riko, Senku, and Lawliet can query it via MCP tools. See Using Graphify for the full workflow.
Skip this step to use Agent Flow without the graph — orchestration works either way.
Optional: Personal KB Integration¶
If you maintain a personal knowledge base (notes, decisions, past project learnings) that has been indexed with graphify, Agent Flow can share it with Riko, Senku, and Lawliet as cross-project memory.
Prerequisites: Your personal KB must already have graphify-out/graph.json built (see the Graphify Integration section above, applied to your personal notes directory).
Quick setup:
- Add a
personal-kbMCP server entry to~/.claude.jsonpointing to your personal KB's graph file. - Export the env var in your shell profile:
- Restart Claude Code.
See Using Personal KB for the complete setup guide, including MCP server configuration examples and verification steps.
Skip this step to use Agent Flow without personal KB recall — orchestration works either way.
Configuration¶
State Directory¶
Agent Flow creates a .claude/ directory in your project for state files:
your-project/
└── .claude/
├── orchestration.local.md # Created by /orchestrate
└── deep-dive.local.md # Created by /deep-dive
Add to your .gitignore:
Environment Variables¶
Agent Flow uses these environment variables (set automatically by Claude Code):
| Variable | Description |
|---|---|
CLAUDE_PLUGIN_ROOT |
Plugin installation directory |
TOOL_NAME |
Current tool being used (in hooks) |
TOOL_INPUT |
Tool input JSON (in hooks) |
Project Context Detection¶
On session start, Agent Flow detects your project type:
| Marker File | Detected Type |
|---|---|
package.json |
Node.js |
pyproject.toml |
Python |
Cargo.toml |
Rust |
go.mod |
Go |
pom.xml |
Java (Maven) |
build.gradle |
Java (Gradle) |
This affects which verification commands are used.
Troubleshooting¶
Commands Not Found¶
If /orchestrate or /deep-dive are not recognized:
- Verify plugin path is correct
- Check that
commands/directory exists - Ensure command files have
.mdextension
Agents Not Responding¶
If agents don't exhibit specialized behavior:
- Check that
agents/directory contains all.mdfiles - Verify agent names match (case-sensitive)
- Check for YAML frontmatter syntax errors
Hooks Not Triggering¶
If hooks don't seem to activate:
- Verify
hooks/hooks.jsonexists and is valid JSON - Check script permissions:
chmod +x hooks/scripts/*.sh - Verify
${CLAUDE_PLUGIN_ROOT}resolves correctly
State File Errors¶
If state files cause issues:
- Remove existing state files:
rm -f .claude/*.local.md - Ensure
.claude/directory exists:mkdir -p .claude - Check disk permissions for writing
Updating¶
To update Agent Flow:
# If cloned directly
cd ~/agent-flow
git pull
# If using submodule
git submodule update --remote .claude-plugins/agent-flow
Uninstalling¶
To remove Agent Flow:
- Stop using the
--plugin-dirflag - Optionally remove the plugin directory:
- Remove state files:
Next Steps¶
- Your First Orchestration - Run all 5 agents end-to-end on a seed task
- Quick Start Guide - 5-minute introduction
- Using Orchestrate - Execute complex tasks
- Using Deep-Dive - Explore codebases
- Architecture Overview - Understand the system