/olko-reflection:agent-ops-retrofrom olko-reflection
Retrospective on how the agents themselves are being operated, from local Claude Code transcripts plus the reports other jobs already produce. Answers what is going well, what is going wrong, what the human keeps having to repeat, and where delivery is leaking, then carries every unactioned finding forward with its age. USE THIS AUTOMATICALLY (no need for the user to name it) whenever the user asks to check all conversations, review agent usage, reduce the manual administration of agents, find repeating corrections or issues across sessions, audit skills and the knowledge ledger together, or asks what gaps exist in delivery over a recent window. This is the operator axis: for repository history and shipped work use retro-analysis, for a single finished change use wrap-up.
Ships in olko-reflection. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A retrospective on the operating layer, not the code. It asks whether the agents are being run well: what the human had to repeat, what the guardrails caught, what they cost, and which findings have been reported before and never actioned.
Three retro skills exist and they do not overlap.
| Skill | Looks at | Answers |
|---|---|---|
retro-analysis | Repository history, delivery evidence, code quality | What shipped and how the code is trending |
wrap-up | One finished change | Did this specific piece of work meet its goal |
agent-ops-retro | Transcripts, hooks, skills, ledger, delegation logs | How the agents are being operated |
If the user asks about shipped work, hand off to retro-analysis and say so.
Accept a window: 14d (default), 7d, 30d, or an explicit ISO date range. State the absolute
range at the top of the output. Convert relative dates to absolute.
Several jobs already report on this state. Adding a fifth independent opinion is the failure mode this skill exists to fix, so read their outputs first and only compute what none of them cover.
| Source | Path | Gives you |
|---|---|---|
| Skill audit | ~/.claude/skill-audit/latest.json and the dated .txt beside it | Installed vs never-invoked skills |
| Delegation log | ~/.claude/delegation-metrics/delegations.jsonl | Model, tier, depth, outcome, rework per spawn |
| Tier check | ~/.claude/delegation-metrics/tier-check-*.md | Opus share and spend against a baseline |
| Usage miner | ~/obsidian/cloud-opus/Lead/Automation/Weekly Automation Report *.md | Repeated commands, proposal fatigue, approval queue |
| Miner state | ~/.claude/usage-miner/state/last-run.json | What was staged, queued, blocked |
| Knowledge ledger | ~/.local/share/agent-context/repo/ledger.json | Traps already recorded, so you do not re-derive them |
| Prior run | the previous output of this skill (see Step 6) | Findings to carry forward |
Two traps when reading these:
This is the axis nothing else covers. Run scripts/mine-transcripts.mjs from this skill directory,
or reimplement it, over ~/.claude/projects/**/*.jsonl.
Non-negotiable filters, each of which has burned a previous run:
.timestamp, never by file mtime. A resumed session rewrites old
files and pulls pre-window turns into the window.user record is not a human turn. Exclude tool_result blocks, <system-reminder> wrappers,
<command-name> and hook preambles, task notifications and bash echoes. In one measured corpus
45 percent of user text records were tool echoes, so the raw count nearly doubles the real one.isSidechain records and anything under a subagents/ directory from session and
human-turn counts. Count them separately for the delegation view.Extract: organic human turns per day and per session, turn-length distribution, tool call counts,
tool_result errors with is_error, Agent spawns with subagent_type and model, Skill
invocations, interruptions, compaction events, per-model token usage including cache reads, and
synthetic records naming a rate or spend limit.
Group the organic turns. The strongest automation signal is not raw frequency, it is the number of distinct sessions a correction appears in: a thing said twenty times in one session is one argument, a thing said once in twenty sessions is a missing default.
Report each recurring pattern as: name, count, distinct sessions, two or three verbatim dated quotes, and the one concrete change that removes it. Name the mechanism, not the mood. Write "stops for a one-word ack on reversible steps", not "autonomy could be better".
Produce two explicit lists, never a narrative.
Verified as working: the claim and what proved it. Guardrails that fired correctly count here.
Defects: the mechanism and its consequence. Include the governance frictions, which usually outnumber the external failures: permission denials, classifier blocks, path-gate refusals, agent output failing its own schema. Give each a count and a share of total errors.
Delivery here means whether agent output landed, not whether it was produced.
launchctl list exit codes and each job's own log. A wrapper exit code is
not completion.This is the half that makes the retro compound instead of repeating.
~/.local/share/agent-context/repo/recipes/tools/ledger-index --kind trap --scope <scope>.
A finding the ledger already records is a compliance gap, not a discovery. Say which it is.kind, scope, title,
body, and a why naming the concrete failure. A finding that is only true this week, or only
true in one repository, does not go in the ledger. It goes in the report.recipes/tools/task-claim acquire ledger-append <agent> 20), append without touching any
existing note, run node recipes/tools/validate-ledger.js, assert the note count rose by
exactly the number added and that no prior id vanished, commit, push, then verify
git rev-parse HEAD against git ls-remote origin main and quote both. Release the lease even
on failure.Present the drafted notes to the user and get an explicit go before pushing. The ledger is shared with another agent, so an unrequested push is an external side effect.
The reason four correct reports changed nothing is that each one started clean. This skill does not.
Write the output to a dated file and, on every run, read the previous one. Each finding carries:
first_seen: the date it was first reportedruns_seen: how many consecutive runs have reported itstatus: new, carried, actioned, or closed-not-possibleA finding at runs_seen: 3 or more gets its own section at the top of the report titled with its
age, for example "Open for 3 runs". Reporting the same defect a fourth time without escalating it
is the failure this section prevents. closed-not-possible is a real terminal state and must
record why, so it is not rediscovered.
Use context-repo to resolve a durable private store for the snapshots if one is not already
configured. Do not write snapshots to a repo-local scratch directory.
Lead with a verdict in one line naming what is wrong, not what was analysed. Then, in this order:
Hard rules for the output:
Mining is grunt work. Run the extraction and the per-axis analysis as parallel leaf agents on Sonnet or Haiku, and keep only the synthesis and the ledger decision on the session model. Pass the agents the mined JSON paths rather than the transcripts, and require each to return its full report in its final message: a subagent's transcript is not visible to the caller, and a report that says "see above" arrives empty.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub oleg-koval/agent-skills --plugin olko-reflection8 skills in this plugin
/crash-courseExpert tutor that gets you from zero to working knowledge on any TOPIC fast, grounded in real sources rather than generic filler. Use this whenever the user wants to LEARN, understand, ramp up on, or get up to speed on something and has limited time: a new codebase or project they have been assigned, an unfamiliar technology or framework, a domain concept, an API, a paper, a business area. Triggers on phrases like "help me learn X", "I have N hours to understand X", "teach me X", "get me up to speed on X", "crash course on X", "quiz me on X", "make me a cheat sheet for X", "explain X like I am 5", "I got assigned X and have no context". Runs a timed 4-hour sprint by default, or a single mode on request (cheat sheet, learning ladder, quiz-me, Feynman loop, resource curation). Prefer this over answering a learning request directly, because the value is the structured, interactive, source-grounded teaching loop, not a one-shot dump./retro-analysisProduce a recurring engineering retrospective from repository history, delivery evidence, work patterns, code-quality signals and prior snapshots, in repository, comparison or cross-project mode. Use when the user asks for a retro over shipped work: "run a retrospective", "how did this quarter go", "compare this month to last", "what did we ship", "engineering retro across my repos", or when a scheduled retro job fires. This is the repository axis: for how the agents themselves are being operated use agent-ops-retro, for a single finished change use wrap-up.