mission-control

Reviewed at commit be7cfba New version, not yet reviewed

A pane with every subagent and tool call live, plus a code map of the files they read and write, with a Haiku call that describes each file's changes.

Made by
Hamza Zafar
What we checked

Adds /mission, a pane with a live tree of the main agent, its subagents and every tool call, plus a map of the files Claude reads and edits. On macOS and Linux the map is drawn with headless Chrome; on Windows and WSL it is a file tree plus a temp page in your browser. After a turn it sends Claude's edits to Haiku on your own account for one-line descriptions.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since 70a1894; the rest carries over from the review at that commit. Registers session.start (registers /mission, one-second clock, detects Windows via $.env OS), turn.start, agent.spawn, tool.call (observes every tool call and passes it through unchanged, recording label, status and timing), turn.complete, command.run for mission, and ui.render for Pane and AbovePrompt. The shared hooks/bands.ts reads <CLAUDE_CONFIG_DIR or ~/.claude>/claude-code-mods/bands.json once per session, only to sort bands. For calls with a file_path it reads that file with $.fs.read (code and doc extensions only, first 200 KB) to find relative imports. After the main turn it calls $.model.complete with haiku and, per edited file, a short folder/name and up to 300 characters of old and new text (400 of written content). Code view, macOS and Linux: writes map.svg and a PNG to $TMPDIR/mission-control and runs a fixed sh -c script (fixed argv, paths passed as arguments) that starts headless Chrome with its own throwaway profile in that folder and screenshots the local file:// SVG, then kills only that Chrome process. Changes in this version: WSL is detected by reading /proc/version for 'microsoft' or 'wsl' and then treated like Windows (text map plus browser page); under WSL the page is written to $TMPDIR (default /tmp)/mission-control-map.html, and pressing b runs a fixed-argv 'wslpath -w <path>' (5 s timeout) and then explorer.exe with the resulting Windows path; on Windows it still writes %TEMP%\mission-control-map.html and opens it with explorer.exe. The text map is now drawn as a tree of files under the files that import them, with the notes beside or under each file, and a pane refresh is nudged 5.5 s after a file touch. The page contains file names and the model-written descriptions, has no script, stays in the temp folder after the session and is not served. No network calls of its own, no settings edited; state stays in memory atoms. The ../types import is an ambient type file (types/index.d.ts) and is not run.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): yes
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of mission-control

/mission opens a live map of the main agent, its subagents and every tool call, plus a code map of the files they touch.

Made this mod? Add a badge to your README

modsforClaude badge for mission-control

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/mission-control.svg)](https://modsforclaude.com/mods/mission-control/)

← All mods