-
-
Notifications
You must be signed in to change notification settings - Fork 205
Investigating Sessions and Agents
An investigation should answer four questions: what was requested, who performed each part, what actually happened, and what evidence supports the conclusion.
Open the session and establish:
- provider, project, source, start time, and current state;
- the original user intent or earliest available transcript context;
- whether subagents were created;
- the newest event and newest transcript timestamp;
- token/cost totals and any unusual spike.
Do not jump directly to the final error. The preceding tool call, permission decision, or agent handoff often explains it.
For each agent, note its parent, task, state, and latest activity. A main agent marked waiting may be behaving correctly while a child is still working. Conversely, a child marked active with no advancing events may be the actual stalled unit.
Useful CLI cross-checks include:
npx ccam sessions
npx ccam session <session-id>
npx ccam agents --session <session-id>
npx ccam events --session <session-id>
npx ccam transcript <session-id>Run npx ccam <command> --help for the current filters and output modes.
Build a compact timeline:
- user request or task creation;
- agent delegation;
- tool invocation;
- tool result or error;
- agent response, retry, or termination.
Timestamps from different machines can be misleading if clocks drift. For remote sources, also compare event order and transcript file activity.
| Symptom | Likely layer | Next check |
|---|---|---|
| No session exists | Hook/import | Hook Health |
| Session exists, no recent events | Producer or ingestion | Process state, hook logs, remote source status |
| Events exist, UI is old | Client/live connection | Reload and compare CLI/API output |
| Tool failed but agent continued | Workload/tool | Inspect later transcript entries |
| Costs seem wrong | Pricing/usage normalization | Audit an Expensive Session |
A good incident note includes the session ID, source, provider, affected time range, last good event, first bad event, active filters, and whether CLI/API results matched the browser. Redact prompts, paths, and tool results before sharing outside the trusted team.
Related recipes: Trace a Failed Tool Call and Recover Missing History.
Start Here · Localized product Wiki · Repository · Releases · Security · Report an issue
Guidance tracks the current master branch. For a deployed release, consult the repository documentation at that release tag before changing configuration.
CCAM Handbook
Use CCAM
- Read the dashboard
- Sessions and agents
- Kanban and tasks
- Tokens and costs
- Run agents
- Personal settings
Operate CCAM
- Deployment guide
- Hook health
- Security
- Backups and retention
- Prometheus and Grafana
- Remote machines
- Upgrades and rollback
- Incident runbooks
Automate and extend
- CLI patterns
- MCP workflows
- Alerts and webhooks
- Dynamic workflows
- Skills and plugins
- Safe config explorer
- Integration patterns
Help