octo-retro

octo-retro is a command for Claude Code from CES-Ltd/Lumi. It costs 12 tokens per session (1,477 once invoked), scanned A, a copy of octo-retro, MIT.

A command that builds an engineering retrospective from Git history, the record of changes made to a codebase. It reports commit patterns, contributor activity, frequently changed areas, work sessions, and AI-related commit tracking.

In plain words
What is it for?
Reviewing the last 24 hours, 7, 14, or 30 days of development and identifying contributors, hotspots, and work patterns.
Why use it?
It turns raw Git history into a time-based view of how the team and codebase have been changing.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the octo plugin — 10 skills, 47 commands shipped together

Good fit Reviewing the last 24 hours, 7, 14, or 30 days of development and identifying contributors, hotspots, and work patterns.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ces-ltd/lumi/octo-retro
View source ↗ CES-Ltd/Lumi
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/CES-Ltd/Lumi

Made for: Claude Code.

Or install octo, the plugin that ships this one along with the rest of its 10 skills, 47 commands.

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 octo-retro

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/ces-ltd/lumi/octo-retro"><img src="https://agentmods.dev/badge/commands/ces-ltd/lumi/octo-retro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 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,477 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 88% 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.00012 $0.01477
Opus 5 $0.00006 $0.00739
Sonnet 5 $0.00002 $0.00295
Haiku 4.5 $0.00001 $0.00148

Measured 11d ago against content hash 1b706d8d86b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

octo-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 11d 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

88% identical to octo-retro — 5 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.

resources/seed/octopus/commands/octo-retro.md · 207 lines

How it starts

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

Retro — Engineering Retrospective from Git History

Your first output line MUST be: 🐙 Octopus Retrospective

Generate data-driven engineering retrospectives by mining git history. Surfaces commit patterns, contributor breakdown, hotspots, session analysis, and AI-assisted commit tracking.

Usage

/octo:retro              # Last 7 days (default)
/octo:retro 24h          # Last 24 hours
/octo:retro 14d          # Last 14 days
/octo:retro 30d          # Last 30 days

Instructions

When the user invokes /octo:retro, you MUST follow these steps exactly.

1. Parse Time Window

Accept an optional argument for the time window. Default to 7d if none provided.

Supported formats:

  • 24h — last 24 hours (--since='24 hours ago')
  • 7d — last 7 days (--since='7 days ago')
  • 14d — last 14 days (--since='14 days ago')
  • 30d — last 30 days (--since='30 days ago')

Map the argument to a git --since value. If the argument does not match a supported format, warn the user and fall back to 7d.

2. Gather Git Data

Run the following git commands to collect raw data. Each command MUST be executed — do NOT skip any.

Commit list:

git log --oneline --since='<window>' --no-merges

LOC changes (lines added/removed per file):

git log --numstat --since='<window>' --no-merges --format=''

Contributor leaderboard:

git shortlog -sn --since='<window>' --no-merges

Hotspot analysis (files modified most often):

git log --format='' --name-only --since='<window>' --no-merges | sort | uniq -c | sort -rn | head -20

PR merge count (merge commits):

git log --oneline --since='<window>' --merges | wc -l

Commit timestamps for session detection:

git log --format='%at %H %s' --since='<window>' --no-merges

AI-assisted commit detection:

git log --since='<window>' --no-merges --format='%H' | xargs -I{} git log -1 --format='%b' {} | grep -ci 'Co-Authored-By:'

Read the full file on GitHub · 207 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. 11d ago First seen · 207 lines · 12 tokens per session scan A 1b706d8d86b1

Subscribe to this mod's changes

octo-retro is a command published in the GitHub repository CES-Ltd/Lumi (31 stars, last pushed 4mo ago), licensed MIT. It adds 12 tokens to every session and 1,477 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to octo-retro, differing in 5 lines, and is treated as a copy.