session-reviewer

session-reviewer is an agent for Claude Code from luiseiman/dotforge. It costs 46 tokens per session (937 once invoked), scanned A, original, MIT.

A session-review tool that examines agent conversations and project history for repeated corrections, frustrations, and troublesome tool use. It records findings as possible rules, working practices, or error notes.

In plain words
What is it for?
Use it after long sessions or when reviewing triggered insights. It can identify repeated instructions, reverted changes, negative feedback, and other signs that the agent’s process needs improvement.
Why use it?
It helps reveal recurring problems that are easy to miss during a long coding session. The records make it easier to decide what should change in future work.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the dotforge plugin — 25 skills, 25 commands, 7 agents, 8 hooks shipped together

Good fit Use it after long sessions or when reviewing triggered insights. It can identify repeated instructions, reverted changes, negative feedback, and other signs that the agent’s process needs improvement.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/luiseiman/dotforge/session-reviewer
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/luiseiman/dotforge

Made for: Claude Code.

Or install dotforge, the plugin that ships this one along with the rest of its 25 skills, 25 commands, 7 agents, 8 hooks.

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 session-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/luiseiman/dotforge/session-reviewer/github.svg)](https://agentmods.dev/agents/luiseiman/dotforge/session-reviewer)
Your own site
<a href="https://agentmods.dev/agents/luiseiman/dotforge/session-reviewer"><img src="https://agentmods.dev/badge/agents/luiseiman/dotforge/session-reviewer/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 session-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/luiseiman/dotforge/session-reviewer"><img src="https://agentmods.dev/badge/agents/luiseiman/dotforge/session-reviewer.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 937 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.00937
Opus 5.5 $0.00018 $0.00375
Sonnet 5.5 $0.00009 $0.00187
Haiku 4.5 $0.00005 $0.00094

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

Security

Grade A, and why

session-reviewer 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 9d 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.

agents/session-reviewer.md · 108 lines

How it starts

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

You are a session analysis specialist. You review conversation transcripts and project history to detect patterns that should become rules, practices, or error records.

Agent Memory

Before starting, read .claude/agent-memory/session-reviewer.md if it exists — it contains previously detected patterns and their disposition (incorporated, dismissed, watching).

After completing analysis, append new findings:

## {{YYYY-MM-DD}} — Session review
- **Pattern:** {{what was detected}}
- **Action:** {{incorporated into X / dismissed because Y / watching}}

Detection Framework

Scan conversation history and project files for these signal categories:

1. Correction Signals (High priority)

  • User says "don't use X", "why did you do X?", "I didn't ask for that"
  • User reverts a change (git checkout, manual undo)
  • User repeats the same instruction >2 times
  • User explicitly corrects output format or approach

2. Frustration Signals (High priority)

  • Short negative responses: "no", "wrong", "that's not what I meant"
  • User re-explains something already stated in CLAUDE.md
  • User manually does something the agent should have done
  • Escalating detail in repeated instructions (sign of miscommunication)

3. Tool Usage Patterns (Medium priority)

  • Same command failing repeatedly with different args
  • Agent using wrong tool for the job (grep when should use Glob, etc.)
  • Unnecessary file reads (reading files not relevant to the task)
  • Missing verification steps (no test run after code change)

4. Recurring Issues (Medium priority)

  • Same type of bug appearing across sessions (check CLAUDE_ERRORS.md)
  • Same files being edited and reverted repeatedly
  • Patterns in git log: fix → revert → fix cycles

5. Rule Violations (Low priority)

  • Changes that don't follow project CLAUDE.md conventions
  • Commits that violate naming or scope rules
  • Missing tests for new functionality

Analysis Process

  1. Read recent git log (last 20 commits) for revert/fix cycles
  2. Read CLAUDE_ERRORS.md for recurring error types
  3. Read .claude/agent-memory/ for cross-agent patterns
  4. Grep for correction patterns in conversation if transcript available
  5. Categorize findings by severity and actionability

Read the full file on GitHub · 108 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. 9d ago Changed e9eb2490bd76
  2. 1mo ago First seen · 108 lines · 46 tokens per session scan A f41b2294f53a

Subscribe to this mod's changes

session-reviewer is an agent published in the GitHub repository luiseiman/dotforge (8 stars, last pushed 10d ago), licensed MIT. It adds 46 tokens to every session and 937 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

Other agents, from other repositories

harness-optimizer

Self-optimization agent that analyzes the Hangar configuration (hooks, skills, rules, context modes, agents) and recommends improvements for reliability, performance, and token efficiency.

claude-hangar/claude-hangar · 39 tokens

performance-optimizer

Active performance analysis agent. Profiles applications, identifies bottlenecks, optimizes bundles, detects memory leaks, and verifies Core Web Vitals. Use when performance issues are suspected or before production deployment.

claude-hangar/claude-hangar · 43 tokens

security-reviewer

Quick security check for code and projects. Checks OWASP Top 10, dependency vulnerabilities, secrets, CORS, CSP and common security issues. Use when user mentions "security check", "is this secure", "check before deploy", or wants a quick security review without full audit.

claude-hangar/claude-hangar · 61 tokens

loop-operator

Manages autonomous execution workflows with safety guardrails. Use when running multi-step tasks that need checkpoint verification, stall detection, and recovery procedures.

claude-hangar/claude-hangar · 32 tokens

architect

Software architecture specialist for system design, scalability, and technical decisions. Use PROACTIVELY when planning new features, refactoring large systems, or making architectural decisions.

claude-hangar/claude-hangar · 35 tokens

commit-reviewer

Pre-commit review for staged changes. Checks for debug code, secrets, missing tests and unintended files. Use when: "review commit", "check staged", "pre-commit review", "what have I staged".

claude-hangar/claude-hangar · 48 tokens