lcc

Workers that recall instead of re-reading

An orchestrating agent that starts a worker (claude -p, codex exec, a script) has two bad options for passing context. Pasting the big outputs fills the worker’s context, and a summary loses the exact error, path or line. With lcc, the parent passes ids instead. The worker gets the lcc MCP server and uses its recall tool to fetch the outputs it needs, byte for byte. The server also offers lcc’s other tools; the worker is only told to use recall.

  1. Write the handoff. lcc handoff <session> writes a packet with the requests, files, last error and the 30 most recent stashed ids (HANDOFF.md). It checks their hashes newest first, up to 8 MB of blobs, and marks the rest “not checked”. It is not a full inventory of the stash. A parent that only wants to pass a few outputs can put their ids straight in the prompt.
  2. Start the worker with the lcc MCP server, on the same machine and with the same LCC_STASH_DIR. Give it the packet or the ids.

Claude Code:

claude -p "$(cat .lcc/handoff/3f9a1c0d8e7b.md)

Continue the task above. Use the lcc recall tool for any stashed output you need." \
  --mcp-config '{"mcpServers": {"lcc": {"command": "lcc", "args": ["mcp"]}}}' \
  --allowedTools mcp__lcc__recall < /dev/null

Codex CLI:

codex exec -c 'mcp_servers.lcc.command="lcc"' -c 'mcp_servers.lcc.args=["mcp"]' \
  "$(cat .lcc/handoff/3f9a1c0d8e7b.md)

Continue the task above. Use the lcc recall tool for any stashed output you need." < /dev/null

Any other MCP client takes the same stdio server, lcc mcp. To point the worker at another stash, set LCC_STASH_DIR in the server’s env: "env": {"LCC_STASH_DIR": "/path"} in the JSON, or -c 'mcp_servers.lcc.env.LCC_STASH_DIR="/path"' for Codex. < /dev/null stops the CLI from waiting for stdin.

Measured 2026-11-07. A test run with one failing test was stashed in an empty stash, and a worker was given only its 12-character id. Each worker called recall and replied with the FAILED line, character for character:

Gemini CLI, Cursor and other clients were not tested.

What the worker can and cannot do