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.
git clone --depth 1 https://github.com/JoelYYoung/retrolensWrote 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.
[](https://agentmods.dev/commands/joelyyoung/retrolens/analyze)<a href="https://agentmods.dev/commands/joelyyoung/retrolens/analyze"><img src="https://agentmods.dev/badge/commands/joelyyoung/retrolens/analyze/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.
<a href="https://agentmods.dev/commands/joelyyoung/retrolens/analyze"><img src="https://agentmods.dev/badge/commands/joelyyoung/retrolens/analyze.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00791 |
| Opus 5.5 | $0.00000 | $0.00316 |
| Sonnet 5.5 | $0.00000 | $0.00158 |
| Haiku 4.5 | $0.00000 | $0.00079 |
Grade A, and why
analyze 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.
How it starts
The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
retrolens:analyze Command
Analyze one or more sessions: drill from overview → turns → tool calls, map phases, and produce an analysis artifact.
Full skill reference: Read
./SKILL.md→ Workflow C for the detailed drill-down method.
Prerequisites
Run /retrolens:connect first to connect to a log directory.
Usage
/retrolens:analyze [<session-id>] [--out <file>] [--turns <range>] [--json]
Arguments
<session-id>- A session ID/prefix,latest, or omit to choose interactively
Options
--out <file>- Write analysis to a file (recommended)--turns <range>- Limit scope (e.g.,1-10)--json- Emit structured summary
What This Command Does
Step 1: Ask the user which session(s) to analyze
If no <session-id> is provided, list available sessions and ask:
retrolens ls --json
Found N sessions. Which would you like to analyze?
# Date Turns Title/Preview 1 2026-04-10 23 "Fix CI build errors..." 2 2026-04-09 8 "Add custom reader..." 3 2026-04-08 45 "Refactor plugin structure..." Enter a number, session ID prefix, or
allto compare multiple sessions.
Step 2: Get session overview
retrolens read <ID> --json # overview + turn summaries
Step 3: Drill into key turns
retrolens read <ID> --turn N --json # full turn detail
retrolens read <ID> -t N --tool M # specific tool call
retrolens read <ID> --turns 1-5 --json # range of turns
retrolens read <ID> --diff 1,5 --json # compare two turns
Step 4: Map phases
Identify workflow stages by tool usage patterns:
| Phase | Dominant Tools |
|---|---|
| Research | read_file, semantic_search, grep_search, list_dir |
| Planning | Discussion turns, vscode_askQuestions |
| Implementation | create_file, replace_string_in_file |
| Testing | run_in_terminal with test/build commands |
| Iteration | Repeated edits after errors or user corrections |
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.
- 3mo ago First seen · 96 lines · 0 tokens per session scan A 79707c90e139
analyze is a command published in the GitHub repository JoelYYoung/retrolens (2 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 791 tokens. 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.
analyze compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| analyzeJoelYYoung/retrolens | Command | 2 | 7mo ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 154k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 154k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 154k | today | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 154k | today | MIT | A | 14 | Claude Code |