Takt is an agentic system for orchestrating specialized AI coding workers (Codex or Claude Code) against a Git-native task graph.
AI coding agents are powerful but undisciplined — they skip tests, forget documentation, and lose context across long tasks. Takt enforces a structured development process: every feature is decomposed into discrete units of work called beads, each assigned to a specialized agent type with a defined role and guardrails. Nothing gets skipped because the scheduler won't let it.
Takt is intentionally opinionated. Spec-driven development — writing a human-readable spec before any code is written — is optional but strongly recommended: it forces clarity upfront and gives agents the context they need to make good decisions. The built-in takt spec command complements the process by providing a structured workflow for creating, planning, and tracking specs through to completion (see docs/documents.md). takt init also installs spec-management skills that wrap it.
- Structured pipeline — every feature flows through planning, implementation, testing, documentation, and review. Agents cannot skip steps or drift out of scope.
- Git-native isolation — each bead runs in its own Git worktree, so parallel agents never step on each other.
- Self-healing — blocked beads, merge conflicts, and test failures automatically create corrective work items rather than silently failing.
- Backend-agnostic — works with Claude Code or Codex; switch with a flag or environment variable.
- Multi-project orchestration — coordinate work across many takt projects from one place via the sibling
takt-fleetCLI: fan out ad-hoc beads, trigger runs, aggregate status, and keep an audit log of every fleet operation. - Observable — a terminal UI, telemetry, and structured JSON handoffs give full visibility into what agents are doing and why.
Beads are the unit of work — a self-contained task with a title, description, assigned agent type, and a lifecycle: open → ready → in_progress → done (or blocked). Every feature is decomposed into a graph of beads by the planner. Bead state is stored as JSON files inside .takt/beads/ and is version-controlled alongside your code.
Agent types define the role and guardrails for each bead:
| Type | Role |
|---|---|
developer |
Writes and modifies code |
tester |
Writes and runs tests |
documentation |
Updates docs and memory files |
review |
Reviews changes; produces an approved / needs_changes verdict |
planner |
Decomposes a spec into a bead graph |
recovery |
Auto-created when an agent fails to produce structured output |
investigator |
Read-only analysis tasks (tech debt surveys, audits); no code changes |
defect |
Lightweight post-merge bug fix — fix + regression test in one bead, followed only by a review |
When a developer bead completes, the scheduler automatically creates tester, documentation, and review followup beads — you don't wire these up manually. Defect beads skip the test and documentation followups (the defect agent writes its own regression test inline) and produce a single review followup; investigator and recovery beads produce none.
Architecture Decision Records (ADRs) are the canonical home for non-feature architectural decisions — choices that aren't tied to a specific spec but should persist across sessions: technology choices, architectural principles, project-wide constraints. See docs/adr.md for the full operator guide and CLI reference.
Before installing, make sure the following are in place:
- Git repository — the target directory must be a git repo (
git initif needed). - Agent runner CLI — install the backend you plan to use:
- Claude Code:
npm install -g @anthropic-ai/claude-code - Codex:
npm install -g @openai/codex
- Claude Code:
- Python 3.11+ and
uv(recommended) orpip.
With uv (recommended):
uv tool install agent-taktWith pip:
pip install agent-taktInstalling agent-takt puts both takt (the per-project orchestrator) and takt-fleet (the cross-project manager) on your PATH — no separate install needed.
Verify the install:
takt --version
takt-fleet --versionRun from the root of your git repository — new or existing:
takt initThis starts an interactive prompt: choose your runner backend (Claude Code or Codex), parallel worker count, and project stack. Takt supports Python, Node.js, TypeScript, Go, Rust, and Java (Maven) out of the box, with pre-filled test and build commands for each. Select Other to enter custom commands.
takt init is safe to run on any existing project. It only adds new files and never modifies your existing code. It updates .gitignore, seeds docs/memory/ with project conventions files, installs guardrail templates, and creates a single commit (chore: takt init scaffold).
Once installed, verify the setup:
takt summaryThis should print bead counts (all zeros on a fresh project) without errors.
The typical workflow: write a spec, let the planner decompose it into beads, run the scheduler to execute them.
1. Write a spec describing what you want built. Specs are Markdown files in specs/drafts/. They work best when they are concrete: include an objective, the specific changes needed, and verifiable acceptance criteria. Example:
## Objective
Add a /health endpoint that returns {"status": "ok"} with HTTP 200.
## Changes
- Add GET /health route to src/app.py
- Return {"status": "ok"} as JSON
## Acceptance Criteria
- GET /health returns HTTP 200
- Response body is {"status": "ok"}
- All existing tests still passUse takt spec (for example takt spec create "My feature" and takt spec set status planned <spec-id>) to create and manage specs through their lifecycle. See docs/documents.md.
2. Plan and run:
# Dry run — prints bead graph but creates nothing
takt plan specs/drafts/my-feature.md
# Persist beads (required to actually create the work items)
takt plan --write specs/drafts/my-feature.md
# Start the scheduler — workers pick up ready beads automatically
takt --runner claude run --max-workers 4
# Monitor progress
takt summary
takt tuiThe planner creates a feature root bead with developer child beads, each scoped to a focused change. When a developer bead completes, the scheduler automatically creates tester, documentation, and review followup beads.
When all beads in a feature are done, merge the feature branch:
takt merge <feature_root_bead_id>Run takt tui for a live view of the bead graph, agent output, and scheduler state:
These examples use the installed takt executable. In a source checkout, use uv run takt.
Use takt <command> --help or takt <command> <subcommand> --help for all options.
Global options such as --root <path> and --runner codex go before the command.
takt --version # Print the installed version
takt init # Initialise a project
takt upgrade # Upgrade managed assets
takt upgrade --dry-run # Preview asset changes
takt asset list # List tracked assets and their status
takt asset mark-owned "templates/**" # Protect matching assets from upgrades
takt asset unmark-owned "templates/**" # Return matching assets to upgrade managementtakt plan specs/drafts/example.md --write # Plan a spec and create beads
takt --runner claude run --max-workers 4 # Run eligible beads with four workers
takt run --feature-root <feature-id> # Run only one feature tree
takt retry <bead-id> # Requeue a blocked bead
takt handoff <bead-id> --to tester --summary "Verify the fix" # Create a handoff bead
takt summary # Show counts and next actionable beads
takt summary --feature-root <feature-id> # Show status for one feature tree
takt tui # Open the interactive terminal UI
takt merge <feature-id> # Merge a completed feature into mainSee Working with Specs for planning modes and Merge Safety for merge flags.
takt bead create --agent developer --title "Update import" --description "Update the CSV importer"
takt bead list --plain --status blocked # List blocked beads
takt bead show <bead-id> --field status # Read one field from a bead
takt bead update <bead-id> --description "Revise the import task"
takt bead label <bead-id> urgent # Add a label
takt bead unlabel <bead-id> urgent # Remove a label
takt bead set-priority <bead-id> high # Set high priority (use normal to clear it)
takt bead claims --plain # Show active file-scope claims
takt bead history <bead-id> --limit 10 # Show recent lifecycle events
takt bead graph --feature-root <feature-id> --output graph.md # Export a Mermaid graph
takt bead delete <bead-id> # Delete a leaf bead in open, ready, or blocked statustakt spec init # Create the spec directory structure
takt spec create "CSV export" # Create a draft spec
takt spec list --status draft # List draft specs
takt spec show <spec-id> --full # Read a spec
takt spec set status planned <spec-id> # Update its lifecycle status
takt spec set feature-root <feature-id> <spec-id> # Link a feature tree
takt spec set tags "export,csv" <spec-id> # Replace its tags
takt spec set priority high <spec-id> # Set its priority
takt spec set description "Export records as CSV" <spec-id>
takt spec migrate specs/drafts/legacy.md # Add managed frontmatter to a legacy spec
takt spec remove <spec-id> # Delete a spec
takt spec validate # Check spec integrity
takt spec search "CSV export" # Search specs
takt spec reindex --check # Preview rebuilding the spec search index
takt adr new "Use SQLite for local storage" # Create a draft ADR
takt adr list --status approved # List approved ADRs
takt adr show <adr-id> # Read an ADR
takt adr approve <adr-id> # Approve a draft ADR
takt adr reject <adr-id> # Reject a draft ADR
takt adr supersede <adr-id> --by <replacement-id> # Record a replacement decision
takt adr validate # Check ADR integrity
takt adr search "local storage" # Search ADRs
takt adr reindex --check # Preview rebuilding the ADR search indexSee the document lifecycle reference for spec and ADR workflows.
takt telemetry --feature-root <feature-id> --days 14 # Aggregate recent run metrics
takt audit <bead-id> --output audit.md # Export a feature audit report
takt trace list --bead <bead-id> # List captured traces
takt trace show <bead-id> --errors # Inspect errors in a trace
takt trace analyze --feature-root <feature-id> # Analyse traces for a feature tree
takt trace backfill --bead <bead-id> --dry-run # Preview capture of missing tracesSee the trace reference for capture, storage, and analysis.
takt memory init # Initialise the database and embedding model
takt memory add "Use the shared CSV parser" --namespace global
takt memory search "CSV parser" --namespace global
takt memory ingest docs/memory/conventions.md --namespace global
takt memory delete <entry-id> # Delete a memory entry by UUID
takt memory stats # Show memory entry counts
takt memory namespace list # List namespaces
takt memory namespace show global # Show recent entries in a namespaceFor one-off tasks, create a bead without a spec:
takt bead create \
--title "Add feature X" \
--agent developer \
--description "Implement X by modifying src/foo.py"For post-merge bugs found during real-world use, use the lightweight defect workflow instead of writing a spec. A defect bead bundles the fix and a regression test in a single execution and spawns only a -review followup:
takt bead create \
--agent defect --type defect \
--title "Fix off-by-one in pagination" \
--description "Page size of 10 returns 9 items when total > 10. Repro: GET /items?page=1 returns items[0:9] instead of items[0:10]. Affected: src/api/pagination.py."--agent defect and --type defect must be used together — any mismatch is rejected at parse time.
The takt merge command runs two preflight checks before merging to main:
-
Merge-main preflight (skippable with
--skip-rebase): Merges the currentmainbranch into your feature branch to catch conflicts early. If conflicts are detected, amerge-conflictbead is created for you to resolve. -
Test gate (skippable with
--skip-tests): Runs your configured test suite to validate the merge. Test failures also create amerge-conflictbead.
If a conflict bead is created, run the scheduler to resolve it, then retry:
takt --runner claude run
takt merge <feature_root_bead_id>Merge-conflict beads track the specific files involved, appear as open and ready for a developer to fix, and block the merge until resolved.
Configure the test gate in .takt/config.yaml:
common:
test_command: "uv run pytest tests/ -n auto -q"
test_timeout_seconds: 120Takt seeds two memory files at takt init time that agents read at runtime:
docs/memory/conventions.md— project coding conventions, architecture notes, and decisions agents should followdocs/memory/known-issues.md— known bugs, quirks, or workarounds relevant to your stack
Keep these up to date as your project evolves. They are not managed by takt upgrade and are never overwritten.
Runtime config lives in .takt/config.yaml. The default backend is codex; switch to Claude Code:
takt --runner claude run
# or
export AGENT_TAKT_RUNNER=claudeOnce you're using takt across more than one repository, the takt-fleet sibling CLI lets you treat them as a fleet: register projects once, fan out ad-hoc beads across a tagged subset, trigger runs, and watch a merged event stream. Each fleet operation is recorded as a queryable run log, so you can answer "what did I run across my projects last week, and how did each one do?" later.
# Register projects (one-time)
takt-fleet register ~/Projects/api-svc --tag python --tag backend
takt-fleet register ~/Projects/web-ui --tag typescript --tag frontend
# Aggregate state across the fleet
takt-fleet summary --tag python
# Fan out a one-shot bead, then trigger execution
takt-fleet dispatch --title "Audit dependencies for tech debt" \
--description "..." --tag python
takt-fleet run --tag python --runner claude
# Inspect what happened
takt-fleet runs list
takt-fleet runs show FR-<id>See docs/fleet.md for the full command reference, the project interaction contract, and the run-log schema.
- Single stack per project —
taktassumes one language, one test command, and one build pipeline per repository. Monorepos with multiple stacks or frameworks (e.g. a Python backend and a JavaScript frontend) are not well supported: the test command is global, and agent guardrails are not stack-aware. - Local execution only — agents and fleet operations run against locally-cloned projects. There is no support for remote/networked projects or cloud-based execution.
- Claude Code and Codex only — no support for other AI backends (GPT-4, Gemini, etc.).
- Fixed followup pipeline — every developer bead automatically generates tester, documentation, and review followups. Defect, investigator, and recovery beads have their own (smaller) followup rules, but the developer followup pipeline itself is not configurable per bead or per feature; you cannot opt an individual developer bead out of specific followup types.
- No human-in-the-loop gates — there is no built-in mechanism to pause the pipeline and require explicit human approval before proceeding. Operator actions in the TUI can block beads manually, but this is not automated.
- Context window limits — very large changes may exceed agent context limits. Beads need to be sized accordingly; the planner helps but cannot guarantee this automatically.
- No rollback — if a merged feature introduces a regression, there is no automated rollback mechanism. Recovery goes through the normal bead pipeline.
Takt is self-hosting: all code changes — including bug fixes — go through the bead pipeline. The takt codebase is developed using takt itself.
git clone https://github.com/oscarrenalias/takt
cd takt
uv syncuv run pytest tests/ -n auto -qSee docs/development.md for project layout, guardrails, telemetry, and contribution guidelines.
- Onboarding guide —
takt initand project setup - Fleet manager —
takt-fleetCLI for managing multiple takt projects - TUI reference — keyboard bindings, panels, refresh modes
- Development guide — layout, guardrails, testing, telemetry
- Multi-backend agents — Codex vs Claude Code configuration
- Scheduler telemetry — telemetry schema and storage

