Agents

Tommy gives your coding-agent sessions memnos memory.

A memnos-native coding orchestrator, published independently as tommy-orchestrator. It sits in front of a coding-agent CLI — Claude Code, Codex, aider, goose, cursor-agent or kiro — and gives that session the persistent, shared memory it wouldn’t have on its own.

$ uv tool install tommy-orchestrator
Read the full guide →
One binary, two entry points

What Tommy is

Tommy is not a domain-capability agent — it doesn’t read code, write diffs, or review a merge request itself. It launches a coding-agent CLI, gives that session your relevant memnos memory up front, and — on its interactive path — hands it a coordinator system prompt built on one rule: a coordinator that does the work itself has become the thing it’s supposed to dispatch to. The real implementation happens inside the harness session Tommy launches, using that harness’s own subagent mechanism — not inside Tommy.

tommy — interactive CLI

Resolves your config, runs a memnos health check, builds a layered system prompt, and launches your configured harness in the foreground with that prompt attached — staying alive to capture its transcript once the harness exits.

tommy --mcp — MCP server

Runs as an MCP stdio server that an editor — Claude Desktop, Cursor, Continue, Zed — drives directly over JSON-RPC, instead of a human running the CLI at a terminal. Exposes 14 tools, including tommy_recall, tommy_dispatch, tommy_status and tommy_handoff.

The gap it sits in front of

Why it exists

Every fresh coding-agent session starts with no memory of yesterday’s work — the harness itself is stateless between invocations. Tommy sits in front of that gap.

Recalls before it dispatches

Tommy queries memnos for context relevant to the task and front-loads it into the harness’s prompt — the harness session itself won’t call memnos on its own initiative unless it’s separately wired to.

Journals after

On the interactive CLI path, Tommy ingests the harness’s own session transcript into memnos and consolidates it, so decisions made during the session become recallable in the next one. This step is Claude-Code-specific today.

Guards against duplicate work

If you (or a teammate) run more than one Tommy session against the same ticket at once, a memnos lease — acquire, heartbeat, release — keyed on the work item is meant to stop two sessions from picking it up independently.

Routes to the right model or harness

Rather than always reaching for the same model regardless of task, a static routing table or (with SMART_ROUTING on) a memnos-backed policy corpus picks the model/harness tier for the work.

Supervises whichever harness you use

A built-in registry knows how to launch claude, codex, aider, goose, cursor-agent and kiro as a subprocess — plus TOML drop-ins for anything the registry doesn’t know yet.

Bounds fan-out, keeps it auditable

Rather than dispatching everything at once, the coordinator prompt asks for wave-based dispatch, typed PURPOSE headers, and named tasks — so a human reviewing a session can tell what was dispatched, to what, and why.

New

Hands a task to a different harness, auditably

People increasingly run more than one harness — Claude Code for one task, Codex for another, a Cursor session for a third. tommy_handoff turns that into a durable, state-machined record instead of a freeform chat message: Tommy does not launch or dispatch the receiving harness for you — the receiving session picks the handoff up itself, via tommy_handoff_status or its own recall. What Tommy guarantees is the record.

a handoff's full lifecycle, three MCP tool calls
tommy_handoff(
  task_id="auth-pkce-migration", to_harness="codex",
  context_summary="refactor auth module to use PKCE",
  expected_deliverable="PR with PKCE flow + tests",
)
→ {"ok": true, "handoff_id": "a1b2c3d4e5f6", "state": "offered", "hop": 1, "hop_limit": 8}

# the codex session accepts it, works, marks it done — each hop its own audited write
tommy_handoff_transition(handoff_id="a1b2c3d4e5f6", new_state="accepted")
tommy_handoff_transition(handoff_id="a1b2c3d4e5f6", new_state="completed")

tommy_handoff_status(handoff_id="a1b2c3d4e5f6")
→ {"state": "completed", "hop": 3, "is_terminal": true,
   "history": [{"state":"offered",...},{"state":"accepted",...},{"state":"completed",...}]}

State-machined, not freeform

Every hop moves through offered → accepted → in_progress → completed | escalated — an invalid transition (skipping a state, acting on a terminal handoff) is rejected, not silently accepted.

Hop-capped

A hard cap per task_id (tommy.yaml: handoff_hop_limit, default 8), enforced across re-offers after an escalation — not just within one handoff_id's own chain — so two agents can't hand a task back and forth indefinitely.

Context-pruned, not transcript-dumped

Every offer attaches a memnos-recall-scoped context bundle built from the task summary — the receiving agent gets relevant memory, not the full conversation that led up to it.

Cross-vendor by construction: the receiving side can be any harness Tommy supervises, not just another session of the same tool. Building your own multi-agent handoff logic instead of using Tommy? The same primitives — a handoff memory type and memnos's exact-enumeration /memory/by_type endpoint — are callable directly from memnos-sdk or REST.

No fine print

How it works, honestly

Tommy is two different things that both get called “the orchestrator.” Knowing which is which is the most important thing to understand about how Tommy actually behaves.

Real code · always runs

Layer 1 — Tommy's own Python process

A launcher and memory bridge. It detects harnesses on PATH, builds the prompt, opens a control-channel socket, launches the harness as a subprocess, writes “session started/ended” facts to memnos, and — on the interactive CLI path only — ingests the finished Claude Code session's transcript and consolidates it. This talks to memnos directly through memnos-sdk and doesn't depend on anything the harness does.

System prompt · needs harness MCP wiring

Layer 2 — the coordinator prompt (core.md)

The lease/routing/wave-dispatch rules described above are not implemented in Tommy's Python code — they're a system prompt attached to the harness session. Whether the harness actually acquires a lease or calls corpus_check depends entirely on that specific harness's own LLM session choosing to follow the instruction, using memnos MCP tools that must be separately registered with it.

Layer 2 only does something once the harness you're launching has memnos registered as its own MCP server — a separate, one-time setup per harness (memnos claude-setup for Claude Code, memnos agent-setup codex for Codex). Skip that step and core.md's instructions to call recall, lease_acquire or corpus_check simply have nothing to call. And transcript journaling — part of Layer 1 — looks specifically for a Claude Code session transcript today; running a different harness through Tommy doesn't get that step yet. Full breakdown in the guide →

Harnesses

Launches whichever CLI you already use

✓ Claude Code
✓ Codex
✓ aider
✓ goose
✓ cursor-agent
✓ kiro

Plus any harness that isn't in the built-in registry yet, via a ~/.memnos/harnesses/*.toml drop-in.

Install & run

Two commands to get started

Requires Python ≥ 3.10. Talks to memnos over HTTP — it doesn't need the full memnos server package installed in the same environment.

install & first-time setup
# uv (recommended)
uv tool install tommy-orchestrator

# fallback if you don't have uv
pip install tommy-orchestrator

# first-time setup — writes tommy.conf, copies prompt layers you can edit
tommy --install

# launch — recalls context, runs your configured harness, journals after
tommy

Want the full reference?

CLI flags, MCP tool signatures, the control-channel wire protocol, configuration keys, and every documented limitation — the complete Tommy guide covers all of it.