Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

docs: stop naming the magus monitor as a session-record reader

Jack Rudenko855f1527ad57
diff --git a/ROADMAP.md b/ROADMAP.md
index 8e60a30e..1ab7979d 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -617,7 +617,7 @@ finding id in `ai-docs/reports/mcp-magmux-panes/session-record/implementation-lo
prehydrate. Trigger: the next change to `team(mode="run")` start-up ordering.
- **C-L1 — an `invalid_args` spawn model is recorded as `pane_lost`.** Trigger: the next change to
`create_session` argument handling.
-- **C-L5 — accounting freezes at the terminal transition.** The Magus monitor reads `tokens.json`, so it is
+- **C-L5 — accounting freezes at the terminal transition.** Outside observers read `tokens.json`, so they are
unaffected today. Trigger: a consumer that reads final tokens from the session row instead.
- **gpt-5-mini cost is estimated** (`stats/*.json` prices it at $2/$8 per M with `is_estimated:true`), so
`cost_usd` may be overstated for it. Trigger: the catalog publishing real gpt-5-mini pricing.
diff --git a/ai-docs/architecture/mcp-sessions.md b/ai-docs/architecture/mcp-sessions.md
index 5261cf74..bfbc808f 100644
--- a/ai-docs/architecture/mcp-sessions.md
+++ b/ai-docs/architecture/mcp-sessions.md
@@ -155,8 +155,8 @@ not answered (RB2).
open; `to` is the session event of the new state (`sessionEventFor`: `running`, `tool_executing`,
`completed`, `failed`, `cancelled`, `timeout`, …), never another wait (the phase table has no
wait-to-wait edge). The vocabulary outlived the push it was named for: the field is a record
-contract the monitor reads, so it keeps those words. It is append-only because an observer polling the directory (the magus
-`claudish` plugin monitor) must see a wait that opened and closed between two of its reads — a
+contract outside observers read, so it keeps those words. It is append-only because an observer polling the directory
+must see a wait that opened and closed between two of its reads — a
marker file that exists only during the wait cannot give it that.
The writer is the pane's `onTransition` hook: synchronous, every wire-state change, never
@@ -192,10 +192,10 @@ every runtime file (`output.log`, `events.jsonl`, `tokens.json`, `waits.jsonl`,
}
```
-It exists for observers OUTSIDE this process — the magus `claudish` plugin monitor polls the
-sessions directory and reports progress to the Claude Code window that started a run.
+It exists for observers OUTSIDE this process, which poll the sessions directory to report
+progress to the Claude Code window that started a run.
`claudeSessionId` is the pane's `--session-id` uuid, the transcript's basename. For a pane session
-`mcpPid` is also the pane record's owner, and the watchers make the monitor's liveness inference
+`mcpPid` is also the pane record's owner, and the watchers make an observer's liveness inference
sound: when the writer dies, its panes die with it.
**`hostPid` is structural, computed once at startup** (`hostPidFrom`, `mcp-session/parent-session.ts`).
@@ -550,7 +550,7 @@ the same facts from the records. The frames were never a keepalive either (next
Where the facts are now: `list_sessions` rows (`state`, `activity`, `idle_seconds`, accounting),
`get_output`, `get_diagnostics`, `capture_session`, and the session records (`spawn.json`,
-`waits.jsonl`, `meta.json`, `events.jsonl`, `screen.txt`), which the magus monitor reads and which
+`waits.jsonl`, `meta.json`, `events.jsonl`, `screen.txt`), which outside observers read and which
are byte-identical to before. `waits.jsonl` keeps the same event names in its `to` field.
`team` progress is `team(mode:"status")`. The `notifications/progress` keepalive stays.
diff --git a/ai-docs/architecture/team-lifecycle.md b/ai-docs/architecture/team-lifecycle.md
index 3206ab8f..424dc53f 100644
--- a/ai-docs/architecture/team-lifecycle.md
+++ b/ai-docs/architecture/team-lifecycle.md
@@ -200,7 +200,7 @@ Returning early has a cost: the run's completion is not pushed to the caller at
all. The run's own `status.json` sits wherever the caller pointed `path`, which
no outside observer knows. Review panels finished unseen
for days this way. So `team(mode:"run")` also writes a record into the sessions
-directory the magus `claudish` plugin monitor already watches:
+directory that outside observers already watch:
- `<sessionsDir>/team-<8 hex>/spawn.json` — `kind: "team"`, `teamPath`, `slots`,
`hostPid`, `mcpPid` (and `launcherPid`, `parentClaudeSessionId` when they
diff --git a/docs/usage/mcp-server.md b/docs/usage/mcp-server.md
index 6a57dab2..7c64e82f 100644
--- a/docs/usage/mcp-server.md
+++ b/docs/usage/mcp-server.md
@@ -471,8 +471,7 @@ the same for a team slot.
Every `create_session` session keeps its record under `~/.claudish/sessions/<session_id>/`
(`CLAUDISH_SESSIONS_DIR` overrides the root). Tools that watch sessions from outside the MCP
-server — such as the magus `claudish` plugin's monitor — read these files; they are a stable
-contract.
+server read these files; they are a stable contract.
| File | Written | Contents |
|------|---------|----------|