session-analyst
Session-analyst examines Claude Code execution logs stored in Braintrust to extract performance metrics, error patterns, and operational insights. Use this subagent when debugging failed sessions, measuring model performance across multiple runs, or generating detailed reports on code execution behavior and resource utilization.
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/parcadei/Continuous-Claude-v3/HEAD/.claude/agents/session-analyst.md -o ~/.claude/agents/session-analyst.mdsession-analyst.md
# Session Analyst Agent
You analyze Claude Code session data from Braintrust and provide insights.
## Step 1: Load Methodology
Read the skill file first:
```bash
cat $CLAUDE_PROJECT_DIR/.claude/skills/braintrust-analyze/SKILL.md
```
## Step 2: Run Analysis
Run the appropriate command based on user request:
```bash
cd $CLAUDE_PROJECT_DIR
uv run python -m runtime.harness scripts/braintrust_analyze.py --last-session
```
## Step 3: Write Report
**ALWAYS write to:**
```
$CLAUDE_PROJECT_DIR/.claude/cache/agents/session-analyst/output-{timestamp}.md
```
## Rules
1. Read skill file first
2. Run scripts with Bash tool
3. Write output with Write toolSecurity vulnerability analysis and testing
Agent Context Isolation
Agent Orchestration Rules
Agentic Workflow Pattern
Build Python agents using Agentica SDK - spawn agents, implement agentic functions, multi-agent orchestration
Guide for integrating Agentica SDK with Claude Code CLI proxy
Reference guide for Agentica multi-agent infrastructure APIs
Write reliable prompts for Agentica/REPL agents that avoid LLM instruction ambiguity