/ax:retrofrom ax
Guided retrospective over the ax agent-experience graph. Walks through open proposals, pending verdicts, and hook effectiveness signals via local ax CLIs.
Ships in ax. 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.
None: SKILL.md is the whole skill.
Closes the self-improvement loop. Claude orchestrates ax improve …
commands; the user decides each row.
Assumes ax (axctl) is on PATH. If ax improve list fails, tell the user
to check docs/development.md#setup (DuckDB dylib setup - no daemon
required) and stop.
ONLY fire on explicit triggers:
/ax:retro slash command (if the plugin marketplace publishes one)Do NOT fire on a generic "look at my recent work" - that risks dragging unrelated context into the loop.
accept emits, and verdict locks.Before the proposal queue, check whether prior sessions still owe a retro. This is the "quota arbitrage" path - idle Opus budget chews through the backlog so the experiment loop has signal next time.
Run:
ax retro pending --since=7 --idle-min=30 --json
Returns sessions in the last 7 days that have no reviewed graph
edge yet AND look finished (explicit ended_at, or last turn is
30min idle). If the list is empty, skip to Step 1.
Show the list to the user as 1 line per session (project · turns · model · reason). Ask:
N session(s) pending retro. Want me to dispatch the retro-reviewer subagent for all of them in parallel, or pick a subset?
On all or <subset>: for each chosen session, write a brief:
ax retro brief --session=<session_id>
This writes .ax/tasks/retro/<key>.md with frontmatter (transcript
path, suggested model, turn count, etc.) and a body that tells the
reviewer what to do.
Dispatch one retro-reviewer subagent per brief, in parallel. Pass
each brief path in the prompt; let the subagent's frontmatter pin
model: opus (override per session if suggested_model differs and
the user asked you to economize).
If the retro-reviewer subagent type doesn't resolve (not installed,
or the active harness is not Claude Code), read and review the brief INLINE
using its required-output instructions instead of abandoning the backlog.
Wait for all subagents. Aggregate results: counts of retros emitted, proposals recommended, model-fit suggestions. Render as a short summary. The user does not approve retro emissions per row - the subagent already wrote them. The user DOES decide on resulting proposals in Step 2.
The reviewed edge now exists for each drained session, so a
re-run of ax retro pending should show fewer rows.
If the user declines Step 0, move on. The backlog stays - next retro picks it up.
Measure first, then read. The checkpoint pass is what turns due windows into current ones; a verdict read taken before it reports whatever the last run happened to leave behind.
Run the prerequisite ALONE and wait for it:
AX_NO_AUTO_INGEST=1 ax improve checkpoint --json
It reads the published snapshot and writes checkpoint judgments only -
no transcript parsing, no guidance edits, no verdict locks. Leave
--force out of an ordinary retro; it rewrites unreviewed windows that
are already current.
On success, run the reads (parallel is fine). Prefix EVERY command - a prefix on the first one leaves the freshness drive on for the rest:
AX_NO_AUTO_INGEST=1 ax improve list --status=open --json
AX_NO_AUTO_INGEST=1 ax improve list --status=accepted --json
AX_NO_AUTO_INGEST=1 ax improve verdict --json
AX_NO_AUTO_INGEST=1 ax retro list --since=7 --json # cluster-derived friction summary
AX_NO_AUTO_INGEST=1 ax hooks summary --since=7 --tail=20 # optional; tolerate failure
If the checkpoint run fails, tell the user measurement is unavailable and continue with proposal review only. Any suggestion already stored belongs to an earlier run - report it as that, and skip the verdict step.
If the checkpoint result reports cacheRefreshRequired above zero, the
opportunity evidence needs deriving; say so, and treat those
experiments as unmeasured. When the user asks for current evidence, run
three operations in order, each awaited on its own: ax ingest (wait
for successful publication), the checkpoint prerequisite, then the
reads.
ax retro list reflects three pattern types now:
Pre-<Tool> guard proposalsCLAUDE.mdAddress recurring <kind> friction proposalsIf any of those surfaced, mention them so the user knows to triage in Step 2.
Compute counts: open proposals (by form), accepted experiments with
locked_verdict IS NONE, and - separately - experiments whose current
view carries a current_reason (insufficient data or a lifecycle state).
Then render to the user as 2-4 lines, e.g.:
7 open proposals (3 skill, 4 guidance). 2 accepted experiments are waiting on a verdict. Hook activity last 7d: 142 invocations, 3 blocking errors. Want to triage proposals first, lock the pending verdicts, or skim hook signals?
If both proposal/verdict queues are empty: tell the user nothing's due
and offer ax ingest --derive-only to refresh evidence.
Order open proposals by frequency desc. For each, in turn:
Run ax improve show <dedupe_sig> --json (or reuse the row from
step 1).
Render as 3-5 lines. Example for a skill proposal:
Schema change guardrail (skill · freq=9 · confidence=high) Hypothesis: schema edits often surface in fix-chains within ~14d. Trigger: fix commits overlap schema files. Behavior: run schema lint + one read/write smoke before edit.
Ask the user: accept, reject, or skip.
Branch:
ax improve accept <dedupe_sig>.
By default this emits a TASK BRIEF and returns its task_path; it
does not install the artifact. Report that path.
Offer: "Want me to implement the brief now?"
If yes: implement it, then run ax improve lint so ax reconciles the
marker it finds on disk and records the installed artifact. Until
lint records one, the experiment has no measurable installation.ax improve reject <dedupe_sig> --reason "<reason>".After the loop, summarize: "Accepted 3, rejected 1, skipped 2."
For each experiment whose latest checkpoint is unlocked
(locked_verdict IS NONE), in age order:
Run AX_NO_AUTO_INGEST=1 ax improve verdict <dedupe_sig> to fetch the
experiment + checkpoint history.
When the current view carries a current_reason, there is no
suggestion to confirm. Report the reason as it is - no opportunities in the window, no detector for this form, retired - and move to
the next experiment. A suggestion in the checkpoints history is
history, not a recommendation.
Otherwise render the current checkpoint as 2-3 lines:
Schema change guardrail - +30s checkpoint 12 opportunities in window, 8 addressed (66%) - observed use. Suggested: adopted.
Ask the user to confirm the suggested verdict OR override:
adopted (artifact is doing real work)ignored (user wrote it but never invoked it)regressed (it made things worse)partial (mixed signal)no_longer_needed (pattern self-resolved; trigger stopped firing)Run ax improve verdict <dedupe_sig> --set <verdict> to lock it. All
five values stay available to the user by hand, including
no_longer_needed, which the algorithm never suggests on its own.
Only run if the user asked for hook review OR if step-1 found ≥3 blocking errors. Light touch - this section is read-only.
Show top hooks from ax hooks summary --since=7 --tail=20 if not
already shown.
If a hook keeps blocking, ask: "Want to inspect a recent
invocation?" Then run
ax hooks invocations --command="<hook>" --tail=5 and render.
Backtest known feedback cases:
ax hooks cases enforce-worktree --tail=50 --window=3
Treat each backtest result as one case type. Report pass/fail/ inconclusive counts.
Interpretation:
hook_progress without a terminal success/blocking event is a
telemetry gap unless correlated with visible behavior.ax hooks init, write a defineHook hook in ~/.ax/hooks/, ax hooks backtest it against history, then ax hooks install --providers=claude,codex.Output a one-paragraph summary:
experiment.created_at + 7d among accepted-but-unlocked
experiments, formatted as "next retro suggested around YYYY-MM-DD".Then ask whether the user wants to commit the scaffolded skill files + proposal-status changes (DB is local, but SKILL.md files are on disk and may belong in version control).
The retro itself produces durable signal that the experiment loop already captures:
Acceptance rate by form - after the session, derive from
proposal.status. If skill-form gets accepted 80% but guidance gets
rejected 80%, the derive-proposals stage is over-eager on the wrong
form. Surface as an observation.
Reject reasons - proposal.reject_reason is a free-text corpus.
After the session run:
ax improve list --status=rejected --json | jq '.[].reject_reason'
Look for repeated phrases ("duplicate of existing hook"). When a pattern emerges, the derive-proposals stage should dedupe against it
Verdict surprises - when the user overrides a suggested verdict, note it. Repeated overrides mean the verdict math is biased.
These are observations, not actions. Report in the close-out; don't write to insight tables.
ax improve list [--form=skill|subagent|hook|guidance|automation] \
[--status=open|accepted|rejected|superseded|all] [--json]
ax improve show <dedupe_sig> [--json]
ax improve accept <dedupe_sig> [--force]
ax improve reject <dedupe_sig> --reason "<text>"
ax improve verdict [<dedupe_sig>] [--set <verdict>] [--json]
ax improve checkpoint [--force] # Step 1 prerequisite; --force only on request
ax improve reset --yes # destructive; only when user requests
ax retro pending [--since=N] [--idle-min=N] [--json] # Step 0 backlog
ax retro brief --session=<id> [--out-dir=<path>] [--json]
ax retro emit --session=<id> [--source=<src>] [--from-file=<json>]
ax retro list [--since=N] [--limit=N] [--json]
ax hooks summary [--since=N] [--tail=N]
ax hooks invocations [--command="<name>"] [--tail=N]
ax hooks cases <case-name> [--tail=N] [--window=N]
--force on accept overwrites an existing SKILL.md scaffold. Only use
when the user explicitly says so.
reset --yes wipes ALL proposal/experiment/checkpoint state. NEVER run
without explicit user confirmation in this session.
ax improve list returns empty → run ax ingest --derive-only once,
retry. If still empty, evidence is genuinely thin; tell the user.ax improve accept reports scaffold_exists → ask the user if they
want --force or to abandon.ax improve verdict --set reports verdict_locked → that experiment
is already finalized; show the locked value and move on.ax improve checkpoint fails → measurement is unavailable for this
retro. Say so, skip Step 3, and keep Step 2 going.ax hooks summary returns nothing → retry with --since=30; if
still empty, the hook telemetry pipeline is idle, surface as a TODO.docs/development.md#setup
(AX_DUCKDB_DYLIB).ax improve accept for every open proposal in a batch; the
user must say yes per row.~/.claude/skills/ directly. The CLI handles that.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (necmttn/ax) — no native marketplace selected
npx claudepluginhub p/necmttn-ax11 skills in this plugin
/ax-extract-workflowReconstruct the workflow behind a past artifact - "what made X work" / "extract workflow from <date|sha>" / "how did we ship Y". Uses ax to find the relevant sessions and narrate the ordered skill arcs that produced the result. Triggers on "what made X work", "how did we build Y", "extract workflow from <date>", "extract workflow from <sha>", "what was the workflow around <topic>", "show me how I shipped <feature>", "reconstruct the recipe for <artifact>". Do NOT fire on generic "show recent activity" - this skill is for reconstructing the workflow behind a specific artifact./ax-repoStar the ax repo, file an issue / bug report, or fork-and-open-a-PR against github.com/Necmttn/ax on the user's behalf, by shelling out to the `gh` CLI. Triggers when the user says "star ax", "star the repo", "I want to support ax", "report this as an ax bug", "file an ax issue", "open an issue on ax", "this looks like an ax bug", "I want to contribute to ax", "fix this in ax", "open a PR against ax", or after an unhandled ax error when the user wants to report it. Acts only on an explicit user request - proactive star prompting is handled deterministically by the CLI (`ax star`), not this skill. Confirms before any account-mutating action (never stars without an explicit yes); falls back to a plain GitHub URL when `gh` is missing or unauthenticated. Do NOT auto-trigger on unrelated GitHub work or other repos./dojoSurplus-quota training loop over the ax graph - the agent burns the remaining 5h/7d plan-quota window on self-improvement: locking pending verdicts, filling briefs, backtesting routing classes, minting proposals, running worktree experiments, and drafting upstream issue reports. Triggers when the user says "/dojo", "enter the dojo", "dojo time", "train overnight", "burn my surplus quota", "dream mode" (legacy name), or invokes /loop /dojo. Requires ax (axctl) on PATH. ax uses embedded DuckDB; no database daemon is required. Do NOT auto-trigger on unrelated work or when the user merely mentions quotas./efficient-dispatchModel-routing orchestration for any expensive frontier model (Fable, Opus, GPT-5.x) - the main model keeps judgment and Q&A review, mechanical subagent dispatches carry an explicit cheaper model, and ax measures whether the routing actually worked. Use when orchestrating codebase-heavy or token-heavy work with subagents, when dispatching Agent tasks without a model, when the user says "route to cheaper models", "efficient dispatch", "optimize model spend", or asks where their token spend goes. Pairs with the route-dispatch hook (deterministic backstop) and `ax dispatches` (evidence). Do NOT fire on single-shot questions or tiny tasks with no dispatching./ax-narrateWrite the agent-generated narration of the current session - the reviewable story of what changed, including what never reaches a PR (user corrections, abandoned attempts, tool failures). Triggers on "narrate this session", "summarize what changed", "write the session story", "narrate what we did", "session narration". Output is .ax/narrations/<session-id>.json for the ax studio narration view. Do NOT fire on "summarize this file" or generic recap questions answered inline - this skill writes a structured artifact./release-announcementDraft or revise ax release announcements and website changelog pages. Triggers when the user says "write release notes", "draft release announcement", "prepare changelog", "release page", "version page", "what changed in vX.Y.Z", "generate announcement for vX.Y.Z", or asks for a release narrative. Uses Release Please range evidence, git changed files/commits, and ax sessions/recall to explain how the release got there. Do NOT trigger for ordinary commit messages or unrelated docs.Other plugins' skills for the same job