Skip to content

Getting started

Getting AgentFlow running in a project takes three steps: prepare a git repository, run the installer, and let one session finish the project-specific setup. Everything AgentFlow adds lives inside a single .agentflow/ folder, so it never collides with your own docs/, tasks/ or tools/ directories.

Requirements

  • git with a main branch and at least one commit.
  • Python 3.10 or newer - the core tools use only the standard library, so there are no third-party runtime dependencies to install.
  • The CLI of the AI tool you plan to work with (for example claude, codex or devin), because worker sessions are launched through it.
  • PowerShell 7 only on Windows, for the optional compatibility wrapper and conductor helpers; the launcher itself is pure Python and cross-platform.

Install

Point the installer at the root of your git repository. Always preview first:

python <AgentFlow>/.agentflow/tools/install.py /path/to/project --dry-run
python <AgentFlow>/.agentflow/tools/install.py /path/to/project

<AgentFlow> is the folder where you cloned the AgentFlow template. The dry run lists every action before anything is written; the installer deletes nothing and keeps the existing content of AGENTS.md, CLAUDE.md and .gitignore - its managed lines go between agentflow:begin and agentflow:end markers.

For a workspace (one folder holding several product repositories), add --workspace --git-init: the workspace root becomes a small memory repository while the product repositories stay untouched.

Finish the setup

The installer copies files; one session then adapts them to your project. Start a session in the project and ask it to finish the install:

AgentFlow is installed in .agentflow/. Finish the install:
.agentflow/docs/ai-handoff-protocol.md, section
"Installing or updating AgentFlow", "Install".
Worktrees folder: <your worktrees folder>.

That session fills in .agentflow/docs/project-rules.md (main branch, worktrees folder, preflight deny rules, tool routing), creates the Task Ledger with python .agentflow/tools/ledger.py show, and commits once. Pick a worktrees folder outside cloud sync - D:\tmp or ~/worktrees are typical.

Your first task

After setup, work flows through Task Files. You describe a goal to the Orchestrator session (/start-role orchestrator); it writes .agentflow/tasks/T-NNN-*.md files naming the role, allowed files, checks and acceptance criteria, then launches workers with python .agentflow/tools/run_task.py. Each worker gets a fresh session, an isolated git worktree and one commit; acceptance runs the task’s own checks verbatim before anything merges.

Prefer a single session instead? /start-session runs Single Mode, where one session does the work and maintains project memory itself.