Session Pattern Analyzer — Development agent for Claude Code
Analyzes Claude Code session JSONL files to extract execution patterns: plan-ratio, delegation, parallel usage, handoff, repeated n-grams, tool frequency.
How to install Session Pattern Analyzer
Installs to ~/.claude/agents/henry-1981-context-first-harness-session-pattern-analyzer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/henry-1981/context-first-harness/HEAD/.claude/agents/session-pattern-analyzer.md -o ~/.claude/agents/henry-1981-context-first-harness-session-pattern-analyzer.md Restart Claude Code, or start a new session, for it to be picked up.
What Session Pattern Analyzer does
name: session-pattern-analyzer description: "Analyzes Claude Code session JSONL files to extract execution patterns: plan-ratio, delegation, parallel usage, handoff, repeated n-grams, tool frequency. Uses jq on tool_use metadata only — never reads prompt text. Scales via split+parallel when many sessions exist. Returns SESSION_REPORT JSON." tools: Read, Grep, Glob, Bash
session-pat
Alternatives in Development
- Fable Orchestrator — Staged-execution orchestrator for large, multi-part, or multi-session tasks 837 ★
- Chain Executor — Executes delegated chain steps with context isolation 186 ★
- Performance Monitor — Monitor agent execution, track token usage, measure response quality, and optimize workflows 93 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Rea Orchestrator
Primary routing agent — enforces .rea/policy.yaml autonomy level, checks HALT before delegation, and routes no
Feedback Analyzer
Analyzes user feedback from multiple sources (reviews, tickets, surveys, interviews) to extract themes, sentim
Summarizer
Draft a session-handoff summary so a fresh agent can continue with zero conversation context. Locates the curr
Hatch3r Handoff Preparer
Prepare a canonical handoff document capturing mid-work session state. Invoked by /hatch3r-handoff prepare and
Factory Block Tests
The tests phase of one block inside a factory solve session, blast radius, red tests and a ## Handoff for the
Serp Extract
Extracts and normalizes SERP snapshots with provider metadata, organic results, and SERP features.
Related Skills
Morning Debrief Analyzer
This prompt transcribes morning debrief audio recordings using OpenAI Whisper and analyzes the transcript to e
Analyze Patterns
Analyze ~/.claude/tool_logs/operations.jsonl operation logs to identify repeated patterns across sessions and
Image Read Cache
Agent Skill that caches LLM image descriptions as XMP metadata inside image files, reducing token usage by ~92