Skip to main content

AgentTakt — Review, edit, and approve AI agent task plans in a ComfyUI-style visual node editor, right in your terminal.

PyPI - Version PyPI - Python Version License: MIT

AgentTakt demo: drag nodes, draw a dependency edge, approve

AgentTakt is an MCP (Model Context Protocol) server and TUI tool. When an AI agent (an "Executor" such as Claude Code) sends a task execution plan over MCP, AgentTakt renders it as a node graph in your terminal. You review it with mouse and keyboard — move, add, and delete nodes, draw dependency edges, edit parameters — then approve, and the edited plan JSON is returned to the Executor for execution.

Claude Code (Executor)
   │ stdio (MCP)                        your other terminal
   ▼                                           │
[agenttakt serve] ── Unix domain socket ──▶ [agenttakt (TUI)]
 MCP server                               review / edit / approve

Features

  • Terminal-native — no web UI; everything runs inside your terminal
  • Visual node editor — rounded nodes, dependency edges, and per-type coloring, powered by Textual
  • Mouse-first editing — drag nodes to move them, draw edges between ports (rubber band), click to select and delete
  • Safe approval loop — cycle detection (DAG guarantee) and other validations at the entry point, returning errors the agent can self-correct

Requirements

  • Python 3.10+ (recommended: uv)
  • A terminal emulator with mouse reporting (iTerm2, WezTerm, kitty, Ghostty, ...)

Installation

If you have uv, no installation is needed. uvx agenttakt fetches and runs AgentTakt on demand, and the .mcp.json example below starts the MCP server the same way.

If you don't have uv, install AgentTakt once:

brew install ryoohshima/tap/agenttakt    # Homebrew
pipx install agenttakt                   # pipx

Installing is also handy for everyday use even with uv — you start the TUI by hand, so plain agenttakt beats typing uvx agenttakt each time:

uv tool install agenttakt

Agent Plugins

This repository is an Agent Plugins 1.0.0 package. In a compatible client, load the repository root as the plugin directory:

AgentTakt/
├── plugin.json     # Portable plugin manifest
├── mcp.json        # MCP server configuration
└── LICENSE

The plugin requires uvx on PATH and runs the published agenttakt package from PyPI. Its uv cache is stored under the client-managed PLUGIN_DATA directory. Start the TUI separately with uvx agenttakt before using the tools. For request_approval, configure a sufficiently long tool timeout in your client (for example, 30 minutes); the portable MCP format has no timeout field.

The development .mcp.json is a separate client-native configuration that runs the local checkout. server.json supplies metadata for the MCP Registry.

Quick Start

AgentTakt runs as two processes: the MCP server, which Claude Code starts for you, and the TUI, which you start yourself in a separate terminal. The TUI is what displays the plan, so start it before asking the Executor for approval.

┌─ Terminal A: you ───────────────────┐   ┌─ Terminal B: Claude Code ───────────┐
│ $ uvx agenttakt                     │   │ $ claude                            │
│                                     │   │                                     │
│   ╭─ grep ───╮                      │   │ > Plan the refactor, then ask       │
│   │ pattern  │───╮                  │   │   me to approve it                  │
│   ╰──────────╯   │                  │   │                                     │
│             ╭────▼─────╮            │   │   calls request_approval(plan)      │
│             │   edit   │            │   │   waiting for approval...           │
│             ╰──────────╯            │   │   (blocked until you decide)        │
│                                     │   │                                     │
│   [a] Approve   [r] Reject          │   │                                     │
└─────────────────────────────────────┘   └─────────────────────────────────────┘
             ▲                                                    │
             ╰──────────────── Unix domain socket ────────────────╯

Running the TUI in the same session as Claude Code does not work. A stdio MCP server has its standard input and output reserved for protocol traffic, so the same process cannot also drive a full-screen terminal UI. That is why the two halves are separate processes talking over a Unix domain socket.

1. Start the TUI (in its own terminal)

uvx agenttakt           # if installed: agenttakt (short alias: agt)

An idle screen appears, waiting for plans from the Executor. Leave this terminal open. If no TUI is running when the Executor calls request_approval, the call fails with:

AgentTakt editor is not running. Ask the user to run "agenttakt" in a separate terminal, then call request_approval again.

On startup the TUI checks PyPI in the background and shows a notification when a newer version is available. Set AGENTTAKT_NO_UPDATE_CHECK=1 to disable the check.

2. Register the MCP server with the Executor (Claude Code)

Add the following to your project's .mcp.json:

{
  "mcpServers": {
    "agenttakt": {
      "command": "uvx",
      "args": ["agenttakt", "serve"],
      "timeout": 1800000
    }
  }
}

3. Request approval from the Executor

When the Executor calls the MCP tool request_approval(plan, summary), the plan appears in the TUI as a node graph. Once the human edits and approves (or rejects) it, the result is returned as:

{ "status": "approved", "plan": { "...edited plan..." }, "reason": null }

See docs/schema.md for the plan JSON format and what to write in each node.

Display-only plans (show_plan)

show_plan(plan, summary) shows a plan in the TUI without waiting for approval — it returns {"status": "displayed"} as soon as the editor receives it. Use it when you just want visibility into what the agent is planning, in any mode (not only plan mode). The plan opens with a [view-only] header; closing it sends nothing back to the Executor.

Agents call request_approval naturally when the host is in plan mode, but they will not volunteer plans outside it. To encourage that, add an instruction like this to your project's CLAUDE.md (or equivalent agent instructions):

## AgentTakt

Whenever you formulate a multi-step plan — in any mode, not just plan mode —
submit it with the AgentTakt `show_plan` tool so the human can see it as a
node graph. Use `request_approval` instead when you need the human's approval
before executing.

Note: a [view-only] plan occupies the editor until dismissed; a later request_approval waits in the queue behind it.

Debug mode (try it without MCP)

uvx agenttakt open examples/sample_plan.json --out edited.json

Loads a plan from a file, opens the editor, and writes the approval result to --out.

Key Bindings

Key Action
a Approve the plan (confirmation dialog)
r Reject the plan (with a reason)
n Add a node
d / Delete Delete the selected node/edge
u / U Undo / Redo
Arrow keys Move the selected node by one cell (fine-tuning)
Escape Clear selection
p Toggle the parameter panel
? Help (controls and how to write type / data)
q Quit

Mouse: drag a node to move it; drag from a node's output port (●, right edge) and release on another node to create an edge.

Edges are drawn as braille Bezier-like curves by default. If they render poorly in your environment, switch to rounded orthogonal lines with --edges orthogonal.

Documentation

  • Plan JSON schema — data model, node fields, what to write in type / data, and validation rules
  • Changelog — release notes for each version

License

MIT

Release files for agenttakt 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agenttakt 0.2.2
File Size Uploaded
agenttakt-0.2.2.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for agenttakt 0.2.2
File Interpreter ABI Platform
agenttakt-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / agenttakt-0.2.2.tar.gz

Download URL agenttakt-0.2.2.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
8790ced07a8bcc73507e24b94ffb27611ef2a1298f907a8a59ba3bf73250f768
BLAKE2b-256 checksum
How to use checksums
c3008f1910be59530eb09907a700dd58a0d8b571fc7d8c2fb7f987777dfba22c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release files / agenttakt-0.2.2-py3-none-any.whl

Download URL agenttakt-0.2.2-py3-none-any.whl
Size 40.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ddf9325fdf18068cdabe15620a38cccf92b4ee8171d2196ae13465e30200cb8
BLAKE2b-256 checksum
How to use checksums
9851862ec5e52006334a4704eb3f5ade96b05b2041349c339d294400adab390e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page