evalstate avatar

Session Investigator

When fast-agent sessions go sideways, this is your forensics kit. It walks you through the session directory structure, shows you how to parse session.json and history files, and gives you jq commands to correlate tool calls with results, track timing across LLM and tool invocations, and spot common failure patterns like unanswered tool calls or duplicate user messages. The real value is in the investigation recipes: finding tool loops, calculating session statistics, matching sub-agent traces to main sessions via monotonic clock values. If you've ever stared at a 300-message history wondering where things went wrong, these jq snippets will save you an hour of manual JSON archaeology.

GitHub stars
3.8K
last updated
Jun 11, 2026

Install

$ npx -y skills add evalstate/fast-agent --skill session-investigator --agent claude-code

Installs into .claude/skills of the current project.

Files

Session Investigator

Diagnose fast-agent session issues by examining session and history files.

Session Directory Structure

Sessions are stored in .fast-agent/sessions/<session-id>/:

2601181023-Kob2h3/
├── session.json              # Session metadata
├── history_<agent>.json      # Current agent history
└── history_<agent>_previous.json  # Previous save (rotation backup)

Session IDs encode creation time: YYMMDDHHMM-<random> (e.g., 2601181023 = 2026-01-18 10:23).

Key Files

session.json

{
  "name": "2601181023-Kob2h3",
  "created_at": "2026-01-18T10:23:24.116526",
  "last_activity": "2026-01-18T10:39:42.873467",
  "history_files": ["history_dev_previous.json", "history_dev.json"],
  "metadata": {
    "agent_name": "dev",
    "first_user_preview": "is it possible to override..."
  }
}

history_.json

Sponsors

Details

Repository
github.com/evalstate/fast-agent
Categories
Code Review & Quality, AI & Agent Building, Debugging
License
Apache-2.0
First seen
Jun 11, 2026

More from evalstate/fast-agent

All 2
1ganyuanran avatardispatching-parallel-agentsganyuanran/aegisWhen you've got multiple independent failures after a refactor, this is about spinning up separate agents to tackle each problem domain...0skills.sh installs
2geekjourneyx avatarai-daily-newsgeekjourneyx/ai-daily-skillFetches AI news from smol.ai RSS and generates structured markdown with intelligent summarization and categorization. Optionally creates beautiful HTML webpages0skills.sh installs
3github avataraws-cloudwatch-investigationgithub/awesome-copilotReusable investigation patterns for AWS CloudWatch: Logs Insights query templates, alarm-to-deployment correlation, blast-radius narrowing decision tree, and Pr0skills.sh installs
4github avatarincident-postmortemgithub/awesome-copilotUse when an outage, production incident, or significant service degradation has occurred and the team needs to write a structured blameless post-mortem. Trigger0skills.sh installs
5hoangnguyen0403 avatardesign-solutionhoangnguyen0403/agent-skills-standardTurn an approved PRD or implementation goal into SRS/FRS technical requirements (How), architecture, contracts, and verification decisions.0skills.sh installs
6hoangnguyen0403 avatarskill-benchmarkhoangnguyen0403/agent-skills-standardBenchmark AI skill effectiveness by measuring implementation quality against legacy constraints.0skills.sh installs