Phase 1: Agent detection + config directories (Domain + Infrastructure readers) #738

Merged
claude merged 6 commits from IW-678-phase-01 into IW-678 2026-10-07 03:26:09 +00:00
Member

Phase 01 implementation for IW-678.

Files

Browse changed files: https://code.iterative.works/iterative-works/iw-cli/-/blob/IW-678-phase-01/

Phase 01 implementation for IW-678. ### Files Browse changed files: https://code.iterative.works/iterative-works/iw-cli/-/blob/IW-678-phase-01/
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiveAgentReader.agents returns agents with their config directory taken from
the process environ, and accepts versioned binaries and claimed spares.
TranscriptReader.tailFor takes the config directories; AgentSessionService
passes each worktree the directories of its agents, else the server's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fake self entry now has an agent's comm and a cwd, so only the
numeric-name filter keeps it out. The no-cmdline test gives each
process its own directory and asserts which one is found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent detection + config directories
All checks were successful
CI / changes (pull_request) Successful in 5s
CI / compile (pull_request) Successful in 1m39s
CI / contract (pull_request) Has been skipped
CI / format (pull_request) Successful in 10s
CI / dashboard-build (pull_request) Successful in 1m26s
CI / lint (pull_request) Successful in 15s
CI / test (pull_request) Successful in 18m20s
9c97477a36
- Find Claude agents by argv[0] as well as comm (versioned binary, claimed bg-spare)
- Read each agent's transcript from its own CLAUDE_CONFIG_DIR via /proc environ
- One config-directory rule (ClaudeConfigDir) for sessions and transcripts
- Server config dir wired to CaskServer as the transcript fallback
claude merged commit 4947745739 into IW-678 2026-10-07 03:26:09 +00:00
claude deleted branch IW-678-phase-01 2026-10-07 03:26:09 +00:00
Sign in to join this conversation.
No description provided.