Skip to content

Agent Trail 0.1.0-alpha.9 — Background work counts

Pre-release
Pre-release

Choose a tag to compare

@NotYaz NotYaz released this 02 Nov 16:27
2ea2c19

Agent Trail no longer calls a Claude session idle while work it started is still running.

  • Background work counts: when a Claude turn ends while a Bash command it started is still running, such as a background build or a loop waiting on a long training job, the session stays Working until the command exits. Menus, Jump entries and the card tooltip say Working in background, and the tooltip names when the command started.
  • How it knows: Claude runs each Bash command in its own process group, while MCP servers stay in Claude's. Agent Trail lists the session process's children and counts only those that lead their own group and started before the turn ended. A process started after the turn ended, such as a hook, does not count.
  • Privacy: only each child's parent, process group and start time are read, through libproc. No arguments or environment are read, and no extra processes are started.
  • Diagnostics: AgentTrailInspect --live reports backgroundSince.

Limits: a background command that never exits keeps its session Working until it ends or the session closes. A job that fully detaches from the session, with no command still waiting on it, cannot be tied to a session. Codex and Grok status is unchanged.

Validation: 299 tests pass on Apple Silicon, including new tests against real spawned processes. On a machine with 16 live Claude sessions across two profiles, the session waiting on a long job reads Working, and the idle sessions whose only children are MCP servers stay Idle.

The universal2 ZIP supports Apple Silicon and Intel Macs on macOS 14+. It is ad-hoc signed and not Apple-notarized, so Gatekeeper may block downloaded builds; building locally remains the supported alpha starting point. Assistant runtime formats are private and version-dependent.