Skip to main content
When someone says something is wrong with a session (“the agent is stuck”, “the build keeps failing”, “what did Claude do?”), this playbook gathers enough state to either fix it or hand it back to the human with full context. Every command is runtm-api; the dashboard shows the same panels.

Step 1: identify the session

If you have a session id, use it. Otherwise discover it:

Step 2: capture full session state in one pass

Run these together for a complete snapshot:
This is the equivalent of opening the session in the dashboard and inspecting every panel.

Step 3: look at filesystem state

Step 4: follow live events (if a prompt is mid-run)

Each stdout line is a JSON envelope:

Step 5: interpret common failure modes

Step 6: take corrective action

Step 7: when to escalate to the human

Stop and ask before:
  • Deleting a session that has uncommitted work (check workspace-state for dirty files first).
  • Running runtm-api guardrails cleanup --yes, which destroys every stuck session in the org.
  • Rewinding history past the user’s last manual prompt.
  • Saving a snapshot of a fix-session that is not fully verified.

Multi-session sweep

When the question is “what is going on across all our sessions?”, chain:
That is a one-screen overview equivalent to the dashboard’s Activity tab.

Gotchas

  • Awaiting approval looks like a hang. Check approvals list before cancelling anything.
  • Paused is not broken. Any exec, file or prompt command resumes it; do not destroy a paused session to “fix” it.
  • A denied command is silent to the agent’s caller. The transcript shows the permission decision and its reason; template guardrails resolve shows the rule.
  • session list pages, it does not filter. Use session search with --source, --template, --created-after to find the run you mean.