refit

refit is a skill for Claude Code from RobinNorberg/oh-my-copilot. It costs 61 tokens per session (1,217 once invoked), scanned A, a copy of refit, MIT.

A cross-session review of how an AI coding environment worked, using traces, logs, friction reports, and planning notes. It turns recorded problems into proposed environment changes, with user approval required before anything is written.

In plain words
What is it for?
Use it to inspect agent sessions, identify the source of recurring friction, and direct each finding to a check, tool, workflow setting, or information source.
Why use it?
It helps find repeated stalls, retries, missing information, and other workflow problems that are easy to miss when reviewing code alone.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the oh-my-copilot plugin — 63 skills, 21 commands, 20 agents, 11 hooks, 1 MCP server shipped together

Good fit Use it to inspect agent sessions, identify the source of recurring friction, and direct each finding to a check, tool, workflow setting, or information source.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robinnorberg/oh-my-copilot/refit
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.

Any agent
npx skills add RobinNorberg/oh-my-copilot --skill refit
Clone the repo
git clone --depth 1 https://github.com/RobinNorberg/oh-my-copilot

Made for: Claude Code.

Or install oh-my-copilot, the plugin that ships this one along with the rest of its 63 skills, 21 commands, 20 agents, 11 hooks, 1 MCP server.

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 refit

README.md
[![agentmods](https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/refit/github.svg)](https://agentmods.dev/skills/robinnorberg/oh-my-copilot/refit)
Your own site
<a href="https://agentmods.dev/skills/robinnorberg/oh-my-copilot/refit"><img src="https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/refit/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 refit

Your own site · 80×15
<a href="https://agentmods.dev/skills/robinnorberg/oh-my-copilot/refit"><img src="https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/refit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,217 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 91% 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.00061 $0.01217
Opus 5.5 $0.00024 $0.00487
Sonnet 5.5 $0.00012 $0.00243
Haiku 4.5 $0.00006 $0.00122

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

Security

Grade A, and why

refit 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

91% identical to refit — 8 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.

skills/refit/SKILL.md · 55 lines

How it starts

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

Refit

Refit surveys the environment the agent worked in — not the code it produced (review and verify own that) and not one launch run's lessons (the sediment pass owns that). Every kind of work leaves friction behind: a ralph loop that kept tripping on the same check, an autopilot run that stalled waiting for a signal, a debugging session where the decisive output was never captured anywhere. OMC instruments all of it. Refit reads the instruments and converts recorded friction into environment changes, so the next run starts in a better yard.

Evidence first

The survey starts from OMC's instruments, not from a checklist. Read before asking the user anything:

  • trace_timeline / trace_summary — where turns stalled, repeated, or fanned out wastefully
  • omg session friction report — friction the session recorded about itself
  • .omg/logs/ and session state — errors, retries, swallowed failures
  • plan notepads .omg/notepads/*/issues.md and problems.md — problems that accumulated across a plan
  • the repo's own check surface (package.json scripts, CI workflows) — read before proposing any new check, because a check that exists but sits unwired or silently broken is the finding, not a reinvention

Findings emerge from what the data shows. An empty survey is a valid result and is stated plainly; an invented finding is the same violation as skipping the survey. A repo with no wired automated checks is itself a finding, not a neutral default.

Four fix-owner surfaces

Every finding names the surface that owns its fix. A finding that fits no surface is declined, explicitly and with the reason.

  1. Deterministic check — the failure was mechanical: a fixed syntactic pattern, a banned API, an import shape, a file-location rule. The fix is a lint rule, hook, or CI job — whichever the repo's existing guardrails make cheapest. Default to building the check over writing the rule.
  2. Steering surface — the failure was a judgement call no guardrail substitutes for: cross-file consistency, matches-surrounding-style. The fix lands in the matching docs/standards/ volume, or in CLAUDE.md/AGENTS.md within the thin-entry budget the launch sediment pass defines. Navigation pointers over prose.
  3. Tool surface — the drag was tooling itself: expensive or token-inefficient MCP calls, missing automation, checks too slow to be run when they matter. The fix lands in .mcp.json, scripts/, hooks, or OMC config.
  4. Information surface — the agent needed a signal it could not reach: dev-server logs, service state, third-party readonly access. The fix tees the log, exposes the state, or documents the access path.

Read the full file on GitHub · 55 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 Changed · +8 lines 827606a3d8b9
  2. 13d ago First seen · 47 lines · 61 tokens per session scan A c1ca8c9574ba

Subscribe to this mod's changes

refit is a skill published in the GitHub repository RobinNorberg/oh-my-copilot (5 stars, last pushed 2d ago), licensed MIT. It adds 61 tokens to every session and 1,217 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to refit, differing in 8 lines, and is treated as a copy.