agentleFS
whit3rabbitwhit3rabbit/rabbit-writes/skills/rabbit-rewrites/CLAUDE.md

rabbit-writes / rabbit-rewrites

CLAUDE.md0 starsChanged 2 months agoMITView on GitHub

Benchmarks and drives the model-backed rewrite path over an OpenAI-compatible endpoint. The rewrite engine itself (rwlib/endpoint.py, rwlib/rewrite.py) lives in skills/rabbit-writes/scripts/rwlib/ and is documented there. This skill's own scripts exercise that engine rather than owning it.

The file

Files
CLAUDE.md

rabbit-rewrites

Benchmarks and drives the model-backed rewrite path over an OpenAI-compatible endpoint. The rewrite engine itself (rwlib/endpoint.py, rwlib/rewrite.py) lives in skills/rabbit-writes/scripts/rwlib/ and is documented there. This skill's own scripts exercise that engine rather than owning it.

Commands

# Run the skill test suite (the model battery, and the bench that scores against it)
python3 skills/rabbit-rewrites/tests/run.py

# Benchmark a running endpoint against the battery
python3 skills/rabbit-rewrites/scripts/bench.py --model-endpoint http://127.0.0.1:8080/v1 --model-name qwen2.5-3b

# Repeat for a stabler pass rate, and save JSON
python3 skills/rabbit-rewrites/scripts/bench.py --repeat 3 --json > qwen2.5-3b.json

Structure

  • scripts/bench.py: The model-benchmarking runner.
  • scripts/battery.json: The passages scored in the benchmark.
  • references/models.md: Recommended local models, download sources, and quantization notes.

Gotchas

  • A battery case that raises no findings is invisible from reading the file. Three of the original twelve in battery.json did: one used technical-blog vocabulary the register correctly exempts, one used a hedge not in the lexicon, and one was 24 words under the 120-word floor that gates every stylometric finding (wc >= 120 in scan.py). The bench happily printed a pass rate over nine cases while reporting twelve. test_every_battery_case_actually_raises_a_finding is the guard, and test_every_battery_case_carries_a_fact_to_lose is the other half: a case with no number, path, or quotation in it can only ever measure fluency, never preservation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.