Docs

Agents

Follow your coding agents on the map. Every connected session is a little character: it hops to each file it reads or edits, as it happens, labeled with what it does, and waits in a queue at the right of the map to think, run commands or wait for you. Open Agents beside the map to read the sessions, search past ones and replay them step by step.

Agents is about what your agents do. To have one explain the code on the map, connect it over MCP: see Explanations. The two work side by side.

Connect an agent

From setup. The first codiluce start (or codiluce setup) offers to connect the agents it finds: their MCP server, and their activity hooks for this repository, in its own agent settings (.claude/settings.local.json, .codex/hooks.json,.cursor/hooks.json…), kept out of Git through .git/info/exclude. Codex runs new hooks once you trust them: open /hooks in Codex.

Agents learn about Codiluce through their hooks. Twelve harness families have adapters: Claude Code, Codex, Cursor, OpenCode, Pi, GitHub Copilot, Gemini CLI, Cline, Google Antigravity, Windsurf / Devin Desktop, OpenClaw and Hermes. Claude Code and Codex are established; the others are newer, so confirm delivery with your installed version. From the repository, preview what an adapter writes, then apply it:

npx codiluce@latest harness setup --agent claude-code
npx codiluce@latest harness setup --agent claude-code --apply

Setup merges the MCP configuration and the activity hooks (or plugin) into the files that harness reads, keeping the entries you have. Add --repo PATH for another repository or worktree. In the map, Agents → Agent connections shows the same configuration for each harness and runtime, whether it was found, whether Codex trusts it (review new hooks with /hooks), and when the last hook arrived; run any action in your agent to confirm delivery.

What you see

Three agent sessions on BookStack's map: Claude Code split into three copies on the files it reads at once, Codex on the search code and Cursor on an uploads controller, each outlined in its session's color; the Agents list beside the map shows the same colored squares.
Three sessions at once on BookStack: Claude Code reads three files in parallel, so it splits into three. The squares match the list.
  • A character per session, on the map itself, in 3D or in the 2D plan. It hops to the file it reads, edits or searches (a search outlines the folder it searched), and stands on a closed folder's roof when the file is inside it. Hops are quick, and it stays at least a second on each file, so you can see where it goes; an agent faster than that has shorter stays until its character catches up.
  • A label beside each character says what it is doing: reading crew.ts, editing store.ts, searching "login", thinking, running a command, waiting for permission, idle.
  • The queue. Every active session has a place in a queue at the right of the map, from the top down in the order the sessions started, idle ones included; a full column starts another to its right. A character waits there for what is about no file: thinking, writing the reply, planning, the web, a command, waiting for your permission. While agents are on the map, a map you have not moved makes room for the queue; otherwise the queue stays on screen, over the map's edge.
  • Copies for parallel work. Files read or edited at the same time split the character: a copy goes to each file and comes back when its call completes.
  • A colored square over each character marks its session; the same square marks the session in the Agents list. Characters on one block stand side by side: that signals overlap, not a proven conflict.
  • Sessions, with their title and status: running, waiting, idle (a turn ended, not the session), finished. A running session lists the files of its current turn, newest first, with its square beside those its characters stand on now.
  • Focus. Open a session to keep only its characters on the map; point at a session in the list to dim the others.
  • Click a path to reveal that file on the map, even one hidden from the map. If the file was added after the last analysis, this click updates the index first.

The map itself is not dimmed while agents work. Show agents on the map turns the characters off and on. They belong to the working tree, so they are hidden while you look at a past commit in History.

Past sessions and replays

Import / refresh history saves the transcripts your harnesses keep for this repository on your machine. Search them by message or title, filter them by agent or by a file or folder they read, edited or added, and read them beside the map.

Replay on the map, in a finished session, plays it again alone on the map: prompts are thinking, tool calls hop to the files they named, and the reply that ends a turn is written in the queue. Calls made together split the character as they did and count as one step. A player over the map plays and pauses the replay, steps back or forward, goes to any step and changes the speed (0.5× to 8×; at 1×, a visit to a file lasts about a second), and says what the agent does in the step, with full paths. Stretches of commands that named no file go by quickly; a long session plays its latest 1,000 messages and calls.

What is observed, and what is not

Only what an agent's hooks report, with a session behind it. There is no file-system watcher, so a change no hook reported is not attributed to anyone.

  • File reads and edits, patches (including both paths of a move) and the folders that searches name carry their paths.
  • A few literal shell reads (cat, head, tail, sed -n) and simple rg or grep searches are read as such. Pipelines, scripts and unfamiliar commands stay plain commands, with no file claimed: an agent that reads fifty files from one Python script stays in the queue, running a command.
  • Known test commands are shown as test runs.
  • A search marks the folder it searched, not every file it matched.
  • A started action is an attempt; only its completion confirms it.

Privacy

The hook forwards each event to the map on your own machine and sends nothing back to the agent. Codiluce keeps paths, search queries, tool names, session titles and statuses, in memory only: at most 500 events and 100 sessions, gone when the map stops. Prompts, transcripts, file contents, patch bodies and command output are discarded on arrival. No API key or model is involved. serve --read-only turns activity off. Imported session history is a separate, explicit step: the transcripts are saved on your machine, in the repository's .codiluce/ state, and never sent anywhere.