Skip to main content

Module record

Module record 

Source
Expand description

What AgentMux’s own record says about an agent’s conversations.

Every agent’s provider output is mirrored into the global transcript store (~/.agentmux/shared/agents/transcripts/filestore.db): zone agent:<id>:current, moved to agent:<id>:archive:<ms> by “New conversation”. For a user agent <id> is its UID (db_agents.id), the same in every channel and version and across account switches, so this record is the one place that holds every session the agent ran — including sessions whose provider transcript is gone (75 of 190 sessions across the 15 agents on one host, measured 2026-09-24). A template launch writes into its template’s shared zone; that zone is not the agent’s alone and is never read here.

Sessions come from the record, not from guessing by folder or account: every line the provider writes carries its session_id. A line without one — a message a person typed, echoed by AgentMux — belongs to the session of the next line that has one, the process that received it. The record only grows until it’s archived, so each zone remembers how far it has been read and a later search reads only what was appended.

Claude’s stream-json only: a line from a provider whose output carries no session_id never starts a session here.