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.
npx skills add dimetron/pi-go --skill verify-history-rewritegit clone --depth 1 https://github.com/dimetron/pi-goWrote 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/skills/dimetron/pi-go/verify-history-rewrite)<a href="https://agentmods.dev/skills/dimetron/pi-go/verify-history-rewrite"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/verify-history-rewrite/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/skills/dimetron/pi-go/verify-history-rewrite"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/verify-history-rewrite.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.00130 | $0.02435 |
| Opus 5.5 | $0.00052 | $0.00974 |
| Sonnet 5.5 | $0.00026 | $0.00487 |
| Haiku 4.5 | $0.00013 | $0.00244 |
Grade A, and why
verify-history-rewrite 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 20d 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 — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Verify the history-rewrite path
A session's event list is rewritten from four places. One of them is not gated on whether a turn is running, and one of them cuts without checking that a tool call and its result stay on the same side. Both are reachable by a user today; neither is caught by a test, because a test cannot easily produce the interleaving.
The properties: history is only rewritten between turns, and a compaction cut never separates a tool call from its result.
This model reports two findings that were real and are now fixed. Both rules broke on the shipped code when the model was written; both are green now because the code was changed, not because a rule was weakened. See Findings for each, the path that reached it, and the test that now holds it.
The model was changed with the fixes: SlashCompact now rounds its cut and
GaugeClearsMidTurn ends the turn instead of leaving it running. That is the only
legitimate way to make a broken rule green — change the model to match the code,
then confirm the break still reproduces. The regression check at the bottom of this
skill is what keeps it honest.
If a finding is real and not yet fixed, declare the rule in
hack/formal/history/known-findings.txt (one rule name per line). check.sh
then prints BROKE history: <rule> / known finding, declared in ... and exits
0; an undeclared break still exits 1. Remove the line when the fix lands — if
the rule keeps reproducing, the fix is not covered by the model.
Does my change touch the verified code
git diff --stat <sync-commit>..HEAD -- \
internal/session/autocompact.go internal/session/compaction.go \
internal/session/compaction_shed.go internal/session/store.go \
internal/agent/agent.go internal/tui/commands.go internal/tui/context_rule.go \
internal/tui/tui.go internal/tui/agent_loop.go
Model covers (each model step names the call it stands for):
| Model action | Code |
|---|---|
RunTurn |
a turn appends its call and its result together; agent.go:801-823 |
BeginTurn / FinishTurn |
a turn starts and settles; agent_loop.go:2013-2075 |
AutoCompacts |
runPreTurn → AutoCompact → advanceToCleanBoundary; autocompact.go:60-140, 148-161 |
SlashCompact |
/compact → FileService.Compact; store.go:1306-1352 |
GaugeClearsMidTurn |
gauge [x] → clearConversation → ClearEvents; tui.go:994-996, commands.go:291-333 |
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.
- 20d ago First seen · 187 lines · 130 tokens per session scan A 2abd1e05116b
verify-history-rewrite is a skill published in the GitHub repository dimetron/pi-go (232 stars, last pushed 6d ago), licensed MIT. It adds 130 tokens to every session and 2,435 once invoked, about $0.0005 per session on Opus 5.5. 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-11-09.
verify-history-rewrite compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| verify-history-rewritedimetron/pi-go | Skill | 232 | 6d ago | MIT | A | 130 | Claude Code, Codex |
| test-fixpatriceckhart/zot | Skill | 372 | today | MIT | A | 17 | Claude Code |
| find-tracesaxiomhq/cli | Skill | 60 | 6d ago | MIT | A | 37 | Claude Code |
| troubleshoot-tervaterva-sh/terva | Skill | 5 | yesterday | MIT | A | 83 | Claude Code, Codex |
| golang-lintalexastrum/skl | Skill | 11 | 5d ago | MIT | A | 100 | Claude Code |
| golang-troubleshootingalexastrum/skl | Skill | 11 | 5d ago | MIT | A | 130 | Claude Code |
| golang-samber-oopsalexastrum/skl | Skill | 11 | 5d ago | MIT | A | 74 | Claude Code |