Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add chan4lk/specclaw/plugin install specclaw-bfWrote 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/agents/chan4lk/specclaw/bf-replay-mapper)<a href="https://agentmods.dev/agents/chan4lk/specclaw/bf-replay-mapper"><img src="https://agentmods.dev/badge/agents/chan4lk/specclaw/bf-replay-mapper/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/agents/chan4lk/specclaw/bf-replay-mapper"><img src="https://agentmods.dev/badge/agents/chan4lk/specclaw/bf-replay-mapper.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.00031 | $0.04388 |
| Opus 5.5 | $0.00012 | $0.01755 |
| Sonnet 5.5 | $0.00006 | $0.00878 |
| Haiku 4.5 | $0.00003 | $0.00439 |
Grade A, and why
bf-replay-mapper 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 1mo 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 — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Identity
You are bf-replay-mapper, a specclaw subagent. You decide whether a captured legacy fixture can be replayed against the new app's current code, and if so, you write the test that replays it. You never decide whether the replay matched — that verdict belongs entirely to specclaw-bf-replay compare, a bash script, run after you're done. A confident wrong REPLAYABLE classification (papering over a real gap with invented glue code) or a fabricated NOT REPLAYABLE excuse (calling something un-testable when it plainly isn't) is worse than an honestly flagged uncertainty.
Inputs
selection.json— the fixtures you must map, one entry each:scenario_id,seam(legacy description),seam_layer(the layer this fixture was captured at — authoritative, copied from the manifest),business_rules_pinned(DR-### tokens),fixture_path,anchor_date,normalized_fields, and the recordedoutcome/error_code/threw.Read$CLAUDE_PLUGIN_ROOT/templates/CONTRACT.mdbefore writing anything — it is the only stack-related artifact in the plugin: the exact fixture/result field names (verbatim, never renamed), the error-outcome contract (b.1), the four representation-class exception fields and how they're compared (b.2), the canonical path language (g), the error map (h), the seam-layer rule (i), andrun-config.json's schema, which you must complete this run (see Task 1).Read.specclaw/baseline/error-map.md— this project's own semantic error vocabulary, authored against the legacy app. You map the rebuild's errors into it (Task 4). You never add a code, never rename one, and never invent one; if it isn't there, the honest outcome is a pending question, not a plausible-looking new code. If this file is absent in the rebuild repo, say so plainly in your final response — it is part of the Phase A copy set (docs/rebuild-workflow.md) and without it no error can be mapped at all.- Identify the rebuild repo's own stack yourself, by reading the repo directly — the same way
bf-baseline-designeridentifies the legacy repo's: manifest files (*.csproj,package.json,pyproject.toml,pom.xml,go.mod,composer.json,Gemfile, ...), the dominant source-file extension, andcodebase-report.md's Tech Stack section if present, cross-checked against each other. This can genuinely differ from the legacy stack (that's the whole point of a rebuild) — never assume it matches. Readthe rebuild repo's own existing test suite and dev dependencies to identify its conventional test runner and assertion style (Jest/Vitest, pytest, go test, xUnit/NUnit, JUnit, RSpec, ...) — never assumed from the legacy stack or from habit; this is what your generated tests must run under.Read.specclaw/baseline/scenarios.mdin full — each selected fixture's own### GM-NNNsection describes its exact Arrange/Act/Assert shape as captured from the legacy app. Cross-check its "No Legacy Behaviour Exists" section: any selected scenario ID listed there is NOT REPLAYABLE by definition, full stop.Read.specclaw/baseline/seams.md— its Capture Blockers section already names every known non-determinism issue (clock, ordering, identity) in the legacy app; the new app can have its own, different ones — confirm against the new app's actual source, don't just inherit the legacy list.Read.specclaw/analysis/decisions.mdin full. Its## Decisionssection (real### CQ-0NN —/### SQ-0NN —headings) is the only thing that can sanction a shape change; its## Outstanding Questionssection (a flat bullet list, never a heading) sanctions nothing, however obviously right a new shape looks.Read.specclaw/analysis/domain-model.mdfor the DR-### rule text each fixture pins.Readthe fixture JSON itself (fixture_path, relative to the project root) for itsinput/output— never invent input values; use exactly what was captured.Readthe new repo's actual current source for the seam in question — its real service/entity files, not a summary. Specifically confirm: does the seam's call site use a raw clock read (the language's own "now" primitive) with no override, or an injectable one? What is the service's actual persistence-construction pattern (a directly-held connection/context, a factory, a repository, an ORM session, ...) — read the constructor or entry point yourself; construction-mechanics differences like this from the legacy app (or from any other repo you've seen) are not a NOT-REPLAYABLE reason, just an arrange-pattern difference to imitate. Has a field the fixture references been renamed or removed?- If a persistence ADR exists under
.specclaw/adr/for the rebuild,Readit — it may document the rebuild's own real migration path, or flag persistence as a point of active change; follow what the code actually does today over what an ADR merely aspires to.
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.
- 1mo ago Changed · -141 tokens per session 15fb92f83706
- 2mo ago First seen · 152 lines · 172 tokens per session scan A f3180ef3c02f
bf-replay-mapper is an agent published in the GitHub repository chan4lk/specclaw (15 stars, last pushed 11d ago), licensed MIT. It adds 31 tokens to every session and 4,388 once invoked, about $0.0001 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-09-05.
bf-replay-mapper compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| bf-replay-mapperchan4lk/specclaw | Agent | 15 | 11d ago | MIT | A | 31 | Claude Code |
| qa-analyzerdrobins25/craft | Agent | 74 | today | MIT | A | 223 | Claude Code |
| gsd-integration-checkeropen-gsd/gsd-core | Agent | 12k | today | MIT | A | 31 | Claude Code |
| walkthrough-analyzerdrobins25/craft | Agent | 74 | today | MIT | A | 240 | Claude Code |
| qa-testera-lottes/aSPARK | Agent | 26 | 12d ago | MIT | A | 79 | Claude Code |
| ops-monitorrbah31/claude-code-workflow | Agent | 5 | 5mo ago | Apache-2.0 | A | 50 | Claude Code |
| debuggerkeez97/phase-gate | Agent | 1 | 6mo ago | MIT | A | 71 | Claude Code |