retrospect

retrospect is a command for Claude Code from opsmill/infrahub-mcp. It costs 18 tokens per session (1,971 once invoked), scanned A, a copy of speckit.opsmill.retrospect, Apache-2.0.

A command for reviewing an agent session to find problems in how context and project guidance were managed. It produces a report and routes possible improvements to approved follow-up options such as a local note, a pull request, or an issue.

In plain words
What is it for?
Use it after a session to identify gaps in repository instructions, skills, templates, guides, and architecture documentation before deciding what action to take.
Why use it?
It turns recurring confusion or missing guidance into specific improvements for future coding sessions.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it after a session to identify gaps in repository instructions, skills, templates, guides, and architecture documentation before deciding what action to take.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/opsmill/infrahub-mcp/retrospect
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/opsmill/infrahub-mcp

Made for: Claude Code.

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 retrospect

README.md
[![agentmods](https://agentmods.dev/badge/commands/opsmill/infrahub-mcp/retrospect/github.svg)](https://agentmods.dev/commands/opsmill/infrahub-mcp/retrospect)
Your own site
<a href="https://agentmods.dev/commands/opsmill/infrahub-mcp/retrospect"><img src="https://agentmods.dev/badge/commands/opsmill/infrahub-mcp/retrospect/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 retrospect

Your own site · 80×15
<a href="https://agentmods.dev/commands/opsmill/infrahub-mcp/retrospect"><img src="https://agentmods.dev/badge/commands/opsmill/infrahub-mcp/retrospect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,971 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 98% copy Near-identical to another mod 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.00018 $0.01971
Opus 5 $0.00009 $0.00986
Sonnet 5 $0.00004 $0.00394
Haiku 4.5 $0.00002 $0.00197

Measured 6d ago against content hash 95f7e24d6ebe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

retrospect 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 6d 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.

Origin

This is a copy

98% identical to speckit.opsmill.retrospect — 9 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.specify/extensions/opsmill/commands/retrospect.md · 176 lines

How it starts

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

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty). Treat it as optional scope guidance, such as a focus area, a pasted transcript summary, or a preferred disposition.

Outline

Run a retrospective on the current agent session while the work is still fresh in context. The goal is to identify concrete improvements to the repository's context-management surface area: AGENTS.md, CLAUDE.md, .claude/settings.json, .agents/skills/, .agents/commands/, .specify/templates/, dev/knowledge/, dev/guides/, dev/guidelines/, dev/adr/, and product or architecture decisions that caused avoidable friction.

This command closes the loop from "the agent struggled with X" to "X is captured as an approved repo improvement, dedicated PR, GitHub issue, or local-only note."

Operating Constraints

  • Stay read-only until the user approves the report and any disposition buckets. Do not edit files, commit, push, or create GitHub issues before approval.
  • Present the full retrospective before taking action. Ask for explicit approval per disposition bucket: fix-now, open-pr, github-issue, and local-only.
  • For fix-now, present a diff preview or precise patch plan before writing files. Apply only the approved changes.
  • For github-issue, defer to the existing create-issue skill when available; if it is unavailable, use gh issue create only after the user approves the exact issue content.
  • Respect AGENTS.md guardrails. Ask First topics, including database migrations, GraphQL schema changes, new dependencies, CI/CD workflow changes, and authentication or authorization changes, are never auto-applied. Route them to open-pr or github-issue.
  • Never edit generated files. If a finding points at generated output, identify the source template or generator instead.
  • Do not treat personal preferences as repo policy. Use local-only for non-project-specific workflow preferences.

Phase 1: Resolve Session Context

Read the full file on GitHub · 176 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. 6d ago First seen · 176 lines · 18 tokens per session scan A 95f7e24d6ebe

Subscribe to this mod's changes

retrospect is a command published in the GitHub repository opsmill/infrahub-mcp (10 stars, last pushed 2d ago), licensed Apache-2.0. It adds 18 tokens to every session and 1,971 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to speckit.opsmill.retrospect, differing in 9 lines, and is treated as a copy.