Record a session transcript
record_sessionRecord this harness session's transcript id on YOUR session key, so the Dash can show the conversation behind the work and hand a human claude --resume <id>. The watchdog proxy calls this itself once it learns the id (Claude Code's SessionStart hook, Grok's GROK_SESSION_ID); an agent only needs it when running without the proxy. Session keys only. Stores the NAME of the transcript, never its contents. Also records which MODEL ran the session, and whether it is a subagent, when the harness reports them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | The model running this session, as the harness names it (claude-opus-5, gpt-6, grok-4). Send it again when it changes mid-session; the Dash then shows what the session started on. Optional, and often absent: most harnesses never report one. | |
| agentId | No | The subagent's own id, when there is one. Optional. | |
| harness | No | Which harness's id this is (claude-code | grok | codex | gemini | …), for the resume verb. Optional. | |
| agentType | No | When this session is a subagent rather than a person's own conversation, the agent type that spawned it (`general-purpose`, or any name from `.claude/agents/`). Optional. | |
| transcriptId | Yes | The harness's session id, e.g. the uuid Claude Code names the transcript file with. | |
| transcriptKeepDays | No | How many days THIS machine keeps the transcript file, from the harness's own settings (Claude Code's `cleanupPeriodDays`, default 30). The Dash says when the conversation will be gone. Send it only for a harness whose retention you actually read. Optional. |