AgentTakt
AgentTakt
Review, edit, and approve AI agent task plans in a ComfyUI-style visual node editor — right in your terminal.
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 / approveFeatures
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
Related MCP server: textual-mcp-server
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 # pipxInstalling 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 agenttaktQuick 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.
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
}
}
}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.jsonLoads a plan from a file, opens the editor, and writes the approval result to --out.
Key Bindings
Key | Action |
| Approve the plan (confirmation dialog) |
| Reject the plan (with a reason) |
| Add a node |
| Delete the selected node/edge |
| Undo / Redo |
Arrow keys | Move the selected node by one cell (fine-tuning) |
| Clear selection |
| Toggle the parameter panel |
| Help (controls and how to write |
| 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
Maintenance
Tools
Related MCP Servers
- Alicense-qualityBmaintenanceMCP server enabling AI agents to interact with terminal applications through structured Terminal State Tree representation. Works with any AI assistant that supports the Model Context Protocol.Last updated6219MIT
- AlicenseAqualityDmaintenanceAn MCP server that lets AI agents launch, interact with, and inspect Textual TUI applications headlessly.Last updated124MIT
- Alicense-qualityBmaintenanceMCP server that lets AI agents see and interact with terminal/CLI applications through virtual terminals and PNG screenshots.Last updated81MIT
- AlicenseBqualityBmaintenanceLocal + remote terminal interaction control MCP Server. Lets AI agents control interactive TUI programs the way a human would.Last updated2912MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Agent Replay Debugger MCP — record every agent step + deterministic replay. Step-debugger for
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ryoohshima/AgentTakt'
If you have feedback or need assistance with the MCP directory API, please join our Discord server