debrief-analyst

debrief-analyst is an agent for Claude Code from martineserios/thebrana. It costs 46 tokens per session (2,201 once invoked), scanned A, original, MIT.

A session review agent that examines recent work to find mistakes, lessons, and recurring patterns. It reports findings for approval instead of changing files.

In plain words
What is it for?
Use it after implementation work or when an important lesson appears. It checks commits, changed files, failed commands, reversions, and available session events.
Why use it?
It helps turn a completed coding session into specific lessons without mixing analysis with file changes.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; names the NotebookEdit tool.

Part of the brana plugin — 53 skills, 4 commands, 14 agents shipped together

Good fit Use it after implementation work or when an important lesson appears. It checks commits, changed files, failed commands, reversions, and available session events.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/martineserios/thebrana/debrief-analyst
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/martineserios/thebrana

Made for: Claude Code.

Or install brana, the plugin that ships this one along with the rest of its 53 skills, 4 commands, 14 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debrief-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/martineserios/thebrana/debrief-analyst/github.svg)](https://agentmods.dev/agents/martineserios/thebrana/debrief-analyst)
Your own site
<a href="https://agentmods.dev/agents/martineserios/thebrana/debrief-analyst"><img src="https://agentmods.dev/badge/agents/martineserios/thebrana/debrief-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debrief-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/martineserios/thebrana/debrief-analyst"><img src="https://agentmods.dev/badge/agents/martineserios/thebrana/debrief-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,201 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.02201
Opus 5.5 $0.00018 $0.00880
Sonnet 5.5 $0.00009 $0.00440
Haiku 4.5 $0.00005 $0.00220

Measured 3mo ago against content hash cc4049980d11, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debrief-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

system/agents/debrief-analyst.md · 232 lines

How it starts

The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debrief Analyst

You are a session analysis agent. Your job is to extract errata, learnings, and patterns from a work session. You do NOT modify files — you return classified findings to the main context for the user to approve and write.

Step 1: Gather evidence

Collect what happened:

# Recent commits in the relevant repo
git log --oneline -20

# Files changed
git diff --stat HEAD~10..HEAD 2>/dev/null || git diff --stat

# Any failed commands or reverted changes
git reflog --no-decorate -20

# Session event data (if available — from Wave 1 hooks)
# Look for correction, cascade, and test-write events.
#
# IMPORTANT (t-1311): /tmp/brana-session-*.jsonl is GLOBAL across all repos.
# Filter events to the current repo before analysis, otherwise findings
# leak across projects (see feedback_cross-project-session-bucketing.md).
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
ls /tmp/brana-session-*.jsonl 2>/dev/null && for f in /tmp/brana-session-*.jsonl; do
  echo "=== $(basename $f) ==="
  # jq filter: only events whose repo_root or cwd matches this repo
  if [ -n "$REPO_ROOT" ] && command -v jq >/dev/null 2>&1; then
    FILTERED=$(jq -c --arg root "$REPO_ROOT" '. | select((.repo_root // .cwd // "") | startswith($root))' "$f" 2>/dev/null)
    echo "$FILTERED" | grep -c '"outcome":"correction"' 2>/dev/null && echo "corrections found (this repo)"
    echo "$FILTERED" | grep -c '"cascade":true' 2>/dev/null && echo "cascades found (this repo)"
    echo "$FILTERED" | grep -c '"outcome":"test-write"' 2>/dev/null && echo "test-writes found (this repo)"
  else
    grep -c '"outcome":"correction"' "$f" 2>/dev/null && echo "corrections found (unfiltered)"
    grep -c '"cascade":true' "$f" 2>/dev/null && echo "cascades found (unfiltered)"
    grep -c '"outcome":"test-write"' "$f" 2>/dev/null && echo "test-writes found (unfiltered)"
  fi
done

Also read any context provided in the prompt (session summary, conversation highlights).

Step 2: Classify findings

Read the full file on GitHub · 232 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 232 lines · 46 tokens per session scan A cc4049980d11

Subscribe to this mod's changes

debrief-analyst is an agent published in the GitHub repository martineserios/thebrana (3 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 2,201 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

debrief-analyst compared with agents from other repositories

debrief-analyst next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debrief-analystmartineserios/thebranaAgent3yesterdayMITA46Claude Code
formal-verifierswingerman/engineerAgent16721d agoMITA74Claude Code
panel-adviserswingerman/engineerAgent16721d agoMITA0Claude Code
archcore-auditorarchcore-ai/pluginAgent582mo agoApache-2.0B43Claude Code
archcore-assistantarchcore-ai/pluginAgent582mo agoApache-2.0C50Claude Code
Project Manager AgentFujigo-Software/f5-framework-claudeAgent2410mo agoMITA15Claude Code
specwright-integration-testerObsidian-Owl/specwrightAgent97mo agoMITA43Claude Code