Skip to main content

AgentTakt

PyPI - Version PyPI - Python Version License: MIT

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

AgentTakt editor screen

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

With uv you can run AgentTakt directly via uvx agenttakt — no installation needed. For regular use, install with either:

uv tool install agenttakt     # uv
pipx install agenttakt        # pipx

Quick Start

1. Start the TUI (human side, separate terminal)

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

An idle screen appears, waiting for plans from the Executor.

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
    }
  }
}

[!IMPORTANT] Setting timeout (milliseconds) explicitly is required. The request_approval tool blocks until the human finishes reviewing. MCP progress notifications do not extend client-side timeouts, so the default would cut the request off before approval. The example above sets 30 minutes (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.

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

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agenttakt-0.1.1.tar.gz (198.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agenttakt-0.1.1-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file agenttakt-0.1.1.tar.gz.

File metadata

  • Download URL: agenttakt-0.1.1.tar.gz
  • Upload date:
  • Size: 198.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agenttakt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f354c323c1730ebf9e87108feccb8dcf44843b241cc9d3a13d4503c9a7881798
MD5 29a25966deff874f9bb1bfd3bf7f73d6
BLAKE2b-256 2cb946fc25088ffe661587a269e6bf3040993f471d339d41c4ef02b182b340f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for agenttakt-0.1.1.tar.gz:

Publisher: release.yml on ryoohshima/AgentTakt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agenttakt-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: agenttakt-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agenttakt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 abd7420c5eb864ae509d3f1bc104089734ecb3099b6c0084623cd717e4042e9e
MD5 dd1f866661e0c5e9a5e18ba4aa37a94e
BLAKE2b-256 8d4ed7cfb78cd55853d8ef27a582993a11c35db6a0aa25ea346a90ffdfe46d4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for agenttakt-0.1.1-py3-none-any.whl:

Publisher: release.yml on ryoohshima/AgentTakt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page