Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

takt

> AI 编程
Open source

TAKT Agent Koordination Topology - Define how AI agents coordinate, where humans intervene, and what gets recorded — in YAML

1.3K stars0 likes1 views
WebsiteGitHub

About

TAKT Agent Koordination Topology - Define how AI agents coordinate, where humans intervene, and what gets recorded — in YAML

TAKT

English | 日本語 | 简体中文

Stop babysitting AI coding agents.

TAKT is an open-source CLI that turns AI coding agents into repeatable development workflows. Define planning, implementation, review, fix loops, human checkpoints, permissions, and output contracts in YAML, then run tasks with isolated worktrees and traceable logs.

Instead of asking one agent to remember the whole process, TAKT gives each step its own role, context, and transition rules. Agents can code, but the workflow decides what happens next.

  • Run plan → implement → review → fix loops as explicit workflow steps
  • Keep context focused with step-specific personas, policies, knowledge, instructions, and output contracts
  • Execute queued tasks in isolated worktrees and inspect logs and reports afterward
  • Use Claude Code, Claude SDK, Codex SDK, OpenCode SDK, Pi SDK, the official DeepSeek Harness SDK, Cursor, GitHub Copilot CLI, or Kiro as providers

TAKT Agent Koordination Topology orchestrates multiple AI agents with review loops, managed prompts, and per-step permissions.

Talk to AI to define what you want, queue it as a task, and run it with takt run. Planning, implementation, review, and fix loops are defined in YAML workflow files, so the process is not left to the agent's discretion. TAKT coordinates Claude Code, Codex, OpenCode, Pi, the official DeepSeek Harness SDK, Cursor, GitHub Copilot CLI, and Kiro CLI as agents with different roles, permissions, and context.

TAKT is built primarily for AI coding workflows, but the same model applies beyond coding: any task where multiple AI agents need to coordinate, or where review, judgment, and feedback loops can improve task quality.

TAKT is built with TAKT itself (dogfooding).

Why TAKT

AI coding agents do not automatically create a stable development process. In long-running work, they forget instructions, accumulate polluted context, blur implementation and review responsibilities, and often force humans to repeat the same feedback again and again.

Adding more rules to prompts, CLAUDE.md, or skills can help, but it cannot enforce the process. Whether the rules are followed is still left to the agent's behavior.

TAKT treats AI agents as something to be controlled from the outside, not simply trusted.

Workflows define the phases, and each step receives its own persona, policy, knowledge, instruction, and output contract. TAKT manages implementation, review, fix, and re-review flows declaratively. By separating responsibilities, knowledge, and constraints, then giving each agent only what it needs for the current step, TAKT improves task quality without bloating context.

Reviews cannot be silently skipped. Findings route work back to fix steps, and human judgment can be requested when needed. Tasks run in isolated worktrees, and each step leaves logs and reports so the path from task to PR remains traceable.

TAKT runs all of this as a reusable agent process built from roles, phases, judgments, and feedback loops, so the development process stays reviewable and reproducible without constant human intervention.

Try It in 5 Minutes

From a Git repository with at least one commit:

bash
npm install -g takt

# Talk to AI, describe a task, use /go, then choose "Queue as task"
takt

# Execute queued tasks in isolated worktrees
takt run

# Review diffs, merge, retry, requeue, or delete task branches
takt list

If this is your first run, configure a provider in ~/.takt/config.yaml or use the API key environment variables listed in Configuration. SDK-based providers such as claude-sdk, codex, opencode, and pi can run with Node.js; deepseek-harness additionally requires the uv-managed environment created by takt deepseek-harness install on a supported platform; CLI-based providers require their external CLIs.

Video Tutorial

Follow the written tutorial with these hands-on walkthroughs:

Chapter 1 Chapter 2

TAKT vs Plain AI Coding Agents

Plain AI coding agents TAKT
The prompt asks the agent to follow a process The YAML workflow owns the process
Review steps can be forgotten or skipped Review and fix loops are explicit transitions
One long context keeps growing Each step receives only the context it needs
Implementation and review responsibilities blur Personas, permissions, and output contracts separate responsibilities
Work often lands directly in the current tree Queued tasks run in isolated worktrees by default
The path from task to result is hard to audit Logs and reports preserve the path from task to PR
The same process must be recreated by memory Workflows are reusable, reviewable, and versionable

Requirements

TAKT requires Node.js >=22.22.0.

The provider you choose determines whether you need to install an external CLI or can run on Node.js alone via a TypeScript SDK.

These providers run via SDK (no CLI required, Node.js only):

  • claude-sdk — @anthropic-ai/claude-agent-sdk
  • codex — @openai/codex-sdk
  • opencode — @opencode-ai/sdk
  • pi — @earendil-works/pi-coding-agent

The deepseek-harness provider uses a managed environment that TAKT builds with uv and runs through a private JSON-RPC bridge. On a supported platform, run takt deepseek-harness install once before first use. npm install and npm lifecycle hooks never build this environment, and starting the provider during an install is unsupported because the provider does not wait for the installer lock.

The managed environment uses uv-managed CPython 3.12 and the fixed SDK/runtime versions declared in the shipped pyproject.toml and uv.lock. Linux x64/arm64 with glibc >= 2.28 and macOS arm64 >= 14.0 are supported; Windows, macOS x64, Linux musl, older Linux glibc, and older macOS fail fast, and TAKT does not silently fall back to another provider. A system Python installation is not required. Configure the standard uv network settings, such as UV_INDEX_URL, proxy, and certificate variables, when access to the package index requires them; TAKT passes those settings to the install command while --locked keeps the shipped lock authoritative. Install preflight requires uv >= 0.11.0 and rejects a missing, unparseable, or older uv before deleting the existing managed environment.

If package-index access was previously configured with pip, migrate to uv's standard UV_INDEX_URL, proxy, and certificate environment variables; uv sync --locked uses the shipped lock as the dependency source.

The install --python option and provider python_path option have been removed because the managed environment is the only supported interpreter. Set DEEPSEEK_API_KEY and optionally DEEPSEEK_BASE_URL in the environment. This provider is a developer-preview compatibility surface; use the opt-in live smoke procedure in the configuration guide before relying on a new SDK/runtime pair.

These providers require an external CLI:

  • claude — Claude Code
  • claude-terminal — Claude Code driven in an interactive terminal session (also requires tmux)
  • copilot — GitHub Copilot CLI
  • cursor — Cursor Agent
  • kiro — Kiro CLI

Optional:

  • GitHub CLI (gh) — for takt #N (GitHub Issue tasks)
  • GitLab CLI (glab) — for GitLab Issue/MR integration (auto-detected from remote URL)

OAuth usage: Whether OAuth is permitted varies by provider and use case. Check each provider's terms of service before using TAKT.

Quick Start

Install

bash
npm install -g takt

With Nix flakes:

bash
nix run github:nrslib/takt
nix profile install github:nrslib/takt

The Nix package installs the TAKT CLI itself. External CLI providers, git, and gh/glab still need to be installed and available on PATH or configured separately as described in Requirements.

Talk to AI and queue tasks

$ takt

Select workflow:
  ❯  default (current)
      Quick Start/
     ️ Development/
      Review/

> Add user authentication with JWT

[AI clarifies requirements and organizes the task]

> /go

Proposed task:
  ...

What would you like to do?
    Execute now
    Create GitHub Issue
  ❯ Queue as task          # ← normal flow
    Continue conversation

Choosing "Queue as task" saves the task to .takt/tasks/. Run takt run to execute — TAKT creates an isolated worktree, runs the workflow (plan → implement → review → fix loop), and offers to create a PR when done.

bash
# Execute queued tasks
takt run

# You can also queue from GitHub Issues
takt add #6
takt add #12

# Execute all pending tasks
takt run

"Execute now" runs the workflow directly in your current directory without worktree isolation. Useful for quick experiments, but note that changes go straight into your working tree.

Manage results

bash
# List task branches — merge, retry, requeue, force-fail, or delete
takt list

How It Works

The name TAKT comes from the German word for "beat" or "baton stroke," used in conducting to keep an orchestra in time. TAKT uses workflow and step consistently in both user-facing and implementation-facing terminology.

A workflow is defined by a sequence of steps. Use steps, initial_step, and max_steps. Each step specifies a persona (who), permissions (what's allowed), and rules (what happens next). Here's a minimal example:

yaml
name: plan-implement-review
initial_step: plan
max_steps: 10

steps:
  - name: plan
    persona: planner
    edit: false
    rules:
      - condition: Planning complete
        next: implement

  - name: implement
    persona: coder
    edit: true
    required_permission_mode: edit
    rules:
      - condition: Implementation complete
        next: review

  - name: review
    persona: reviewer
    edit: false
    rules:
      - condition: Approved
        next: COMPLETE
      - condition: Needs fix
        next: implement    # ← fix loop

Rules determine the next step. COMPLETE ends the workflow successfully, ABORT ends with failure. See the Workflow Guide for the full schema, parallel steps, and rule condition types.

Reusable step definitions can be stored in .takt/steps/ and expanded with uses before validation. See the Workflow Guide for fragment lookup and override rules.

Workflow files live in workflows/ as the official directory name.

When the same workflow name exists in multiple locations, TAKT resolves in this order: .takt/workflows/ → ~/.takt/workflows/ → builtins.

Recommended Workflows

Workflow Use Case
default Standard development workflow. Scenario-based planning and test-first development with dynamic implementation companions, multi-perspective parallel peer review, adjudication, and a convergent fix loop.
maintenance A default variant for existing codebases: preserves contracts outside the change scope and limits work to causally related changes.
simple Lightweight workflow with the same minimal structure as pure; TAKT selects applicable domain facets per change, always including AI antipattern and architecture guidance.
pure Minimal workflow with no injected domain facets — trusts the model's own judgment and skill selection.
takt-default The workflow used to develop TAKT itself. Directly applicable to other CLI tool development.
takt-default-team A takt-default variant that runs implementation and remediation th

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptagent-orchestrationagent-teamai-agentsclaude-code

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.