Expand description
Live stock-Codex session discovery.
Codex does not publish a peer registry or a supported attachment endpoint, but its process keeps every rollout it currently owns open. This module joins that process-owned file descriptor back to the persisted catalog path. The rollout’s last explicit lifecycle event then distinguishes an executing turn from a merely running session. No timing or CPU heuristic is used.
Enums§
- Codex
Peer Status - Activity proven for a rollout owned by stock Codex.
Functions§
- live_
rollouts - Every Codex rollout currently held open by a stock
codexprocess, with the narrowest activity state its own event stream proves. - rollout_
cwd - The working directory a rollout’s conversation runs in, from its first
session_metarecord. - rollout_
session - A rollout’s session id and, for a subagent thread, its parent’s id.
- rollout_
status - Activity for a discovered catalog path owned by a currently running Codex.
- session_
of_ process - The Codex session a process runs: the root rollout (one with no parent
thread) among the files
pidholds open, as(session id, rollout path).Nonewhenpidholds no Codex rollout.