Claude Cockpit: a sidebar for Claude Code that shows subagents and background tasks
Claude Cockpit is a mod for Claude Code, licensed under MIT, that adds a sidebar next to the chat in its TUI[1] (text-based interface).
The sidebar is redrawn every second while anything is running. It shows whether the main conversation is working or idle, the model, the context used, the minutes of prompt cache[2] left and the last six tool calls. Below that it lists background shells, Monitors and Workflow runs, plus one block per subagent[3] with elapsed time, tool calls, errors, context size and an estimated cost. A subagent with no activity for three minutes turns yellow and reads quiet, and one waiting for a permission prompt turns red and reads needs approval.
Clicking an agent shows its last eight tool calls and its answer or latest message, and lets you view its transcript, stop it or send it a note. Native notifications appear when an agent fails, when a batch is done, and when a background shell, Monitor or Workflow finishes or fails, while a toast[4] appears when a background agent finishes. When the sidebar is closed, one line above the prompt shows the summary. The mod was built and tested on Claude Code 2.1.322 on macOS. It is installed by cloning the repository into ~/.claude/mods/cockpit and adding that path to CLAUDE_CODE_PLUGIN_DIRS in settings.json, or by running claude --plugin-dir for a single session. Costs are estimates, shown only for subagents, based on a price table in hooks/agents.ts. The cache line assumes the 1-hour prompt cache, and the mod makes no network calls.
Read the original github.comDiscussion
Sources
-
GitHub
Claude Cockpit, for those who still prefer TUI


