Skip to content

Day to day

Use omp as usual. rematch traces each session, can propose a change after you correct the agent, and keeps only what later sessions confirm. Everything on this page is optional.

In a terminal, add --text for readable lines instead of JSON. How /rematch commands map to the CLI: below.

When What rematch does
During a session traces it; no model call
You correct the agent (“no, …”, “revert that”, an interrupt, ≥ 3 tool errors in any 6 consecutive results) flags the session at exit
Next session start starts a reflection in the background, detached, so it runs while you work (about 20 s, up to 3 model calls); shows one line if it staged something
Later matching sessions counts them: 4 clean → kept, 2 recurrences or 2 harms → retired

The reflection uses the models you configured; rematch doctor --text shows which.

Ask You get
/rematch status entries by status, pending flags, whether it is off
/rematch why for the last session: entries loaded, predicate hits, redirects and their class, counters
/rematch library every entry with its raw counts, what is pending approval, whether it carries a fragment that is active in your prompt, its fork path, and whether it is ready to ship (team or fork)
/rematch digest staged, kept or retired since you last looked; approvals waiting (one item per entry: scripts, hook, subagent, prompt text); entries ready to ship, as ship <scope> <name>: <detail> → /rematch ship --scope <scope> --entry <id>, shown once
rematch doctor --text omp version, model roles, plugin linked, ledger state

Read why when something surprises you. It shows exactly why an entry loaded or not (glob hit · predicate miss) and what the classifier called your redirect.

Most /rematch <sub> commands run rematch <sub>. These differ:

In omp In a terminal
/rematch why rematch library why (defaults to the current session)
/rematch library rematch library ls
/rematch disable|rollback|approve|decline … rematch library disable|rollback|approve|decline …
/rematch mark <class> rematch mark --session <current session> --class <class>
/rematch digest rematch digest --cwd <current dir>
rematch library ls --text
rematch library pin <id> # yours: never replaced or retired automatically
rematch library unpin <id>
rematch library disable <id> # retire now (archived with its evidence; never deleted)
rematch library rollback <name> # previous kept version back (skill or agent); the current one retires

See what a past session loaded, as it stood then:

rematch library why <session> --asof 2026-10-20T13:05
Command Effect
/rematch off · /rematch on stop or resume tracing and reflection immediately
REMATCH=0 omp off for one process
/rematch disable <id> retire one entry now
/rematch rollback <skill> previous version back, immediately
rematch uninstall prints what it would remove
rematch uninstall --yes removes every file rematch wrote and nothing else