Skip to content

Add session-status skill to triage claude agents sessions#10

Open
udnisap wants to merge 1 commit into
masterfrom
worktree-session-status-skill
Open

Add session-status skill to triage claude agents sessions#10
udnisap wants to merge 1 commit into
masterfrom
worktree-session-status-skill

Conversation

@udnisap

@udnisap udnisap commented Jul 1, 2026

Copy link
Copy Markdown
Owner

What

Adds a global session-status skill under claude/skills/session-status/ that gives a consolidated readout of all active claude agents (FleetView) background sessions — what each is working on and, crucially, what input it needs to unblock.

FleetView sessions are peers with no cross-session control, so this is a reporting/triage tool, not an orchestrator.

How it works

  • Pulls active sessions from claude agents --json.
  • For each, locates its persisted transcript under ~/.claude/projects/<escaped-cwd>/<sessionId>.jsonl and extracts the first user message (the task) and the last assistant message (what it's waiting on).
  • Deliberately avoids claude logs — it only works while a session's process is alive and returns raw ANSI, so it's unreliable for the (mostly exited) blocked sessions.
  • --json mode emits one structured object per session for programmatic use.
  • Output follows org formatting: MM/DD/YY dates, thousands separators, one-decimal percentages.

Files

  • claude/skills/session-status/SKILL.md — instructs Claude to run the script, present oldest-first, flag parked/finished sessions, and offer confirmation-gated claude stop / surface claude attach commands.
  • claude/skills/session-status/session-status.sh — the engine (bash + jq).

Sits alongside the existing claude/skills/tmux-split skill. Verified end-to-end against a live fleet of 28 active sessions (exit 0, all rendered with populated "waiting on" lines).

https://claude.ai/code/session_01FP7L7pH557LQjN4Qmz8aJT

Consolidated readout of active `claude agents` (FleetView) background
sessions — what each is working on and what input it needs to unblock.
Driven by `claude agents --json` plus persisted transcripts under
~/.claude/projects (claude logs is unreliable for exited processes).
Offers to stop stale sessions and surfaces attach commands.

Claude-Session: https://claude.ai/code/session_01FP7L7pH557LQjN4Qmz8aJT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant