retro

retro is a command for Claude Code from alifanov/darkflow. It costs 32 tokens per session (1,000 once invoked), scanned A, original, MIT.

A weekly review of an automated work loop, rather than the product it works on. It records failures and wasted runs, then proposes limited rule or tuning changes for a person to apply.

In plain words
What is it for?
Use it to inspect run history, task outcomes, costs, and past hypotheses, then write metrics, up to three proposed rule changes, and one allowed tuning change.
Why use it?
It helps reveal repeated problems in the process without allowing the review to change protected rules by itself.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to inspect run history, task outcomes, costs, and past hypotheses, then write metrics, up to three proposed rule changes, and one allowed tuning change.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/alifanov/darkflow/retro
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/alifanov/darkflow

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 retro

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/alifanov/darkflow/retro"><img src="https://agentmods.dev/badge/commands/alifanov/darkflow/retro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 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,000 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.00032 $0.01000
Opus 5.5 $0.00013 $0.00400
Sonnet 5.5 $0.00006 $0.00200
Haiku 4.5 $0.00003 $0.00100

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

Security

Grade A, and why

retro 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 yesterday.

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.

templates/.claude/commands/darkflow/retro.md · 74 lines

How it starts

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

You review how the Dark Flow loop worked this week — not the product. You find repeated failures and wasted runs and propose fixes to the loop's rules. You never edit prompts, commands, docs/auto-approve.md, .darkflow.d/constraints.md or any guard parameter yourself: those are gate 5 — you propose, a human applies. The one thing you may change directly is a tuning parameter inside its bounds (Step 5).

Step 1 — Read the week (structured data first)

Load the project config (contract in .darkflow.d/claude.md → Project config). Uses: language.

~/.darkflow/df runs all --limit 500        # every run: time, routine, cost, summary (exit:N = failed)
~/.darkflow/df task list --state all       # statuses, sources, comments (verify-task verdicts live there)
~/.darkflow/df profit --days 14

Plus docs/state/hypotheses.md (Closed: refuted / abandoned this week), docs/state/tuning.md, and the previous ## Retro section in docs/logs/. Open a session transcript only for one concrete failure you need to understand — never as a sweep.

Step 2 — Loop metrics (write them, every run)

Metric How
Hypotheses confirmed / verdicts Closed rows with a date in the last 7 days
Cost per shipped task sum of run costs ÷ tasks closed this week
Review fail rate verify-task fail comments ÷ all verify-task verdicts
Escalations tasks that moved to needs-human this week, grouped by reason
Post-merge reverts Post-deploy check … fail comments
Runs with cost and no outcome routine runs that cost money and produced no task, no verdict, no log section

Step 3 — Look for repeats

  • the same failure reason twice or more (same check, same error, same reviewer complaint);
  • a routine that spends and yields nothing accepted (its tasks get rejected or closed unfixed);
  • findings the owner rejects again and again (closed proposed tasks of one source/kind);
  • a check the reviewer fails that fix-issues could have run itself.

Read the full file on GitHub · 74 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. yesterday First seen · 74 lines · 32 tokens per session scan A c3fb744cd9d3

Subscribe to this mod's changes

retro is a command published in the GitHub repository alifanov/darkflow (4 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 1,000 once invoked, about $0.0001 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-11-30.

Related

retro compared with commands from other repositories

retro next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
retroalifanov/darkflowCommand4yesterdayMITA32Claude Code
localgetsentry/toolkitCommand977yesterdaynoneA0Claude Code
issuegetsentry/toolkitCommand977yesterdaynoneA0Claude Code
authgetsentry/toolkitCommand977yesterdaynoneA0Claude Code
debug-filesgetsentry/toolkitCommand977yesterdaynoneA0Claude Code
apigetsentry/toolkitCommand977yesterdaynoneA0Claude Code
eventgetsentry/toolkitCommand977yesterdaynoneA0Claude Code