

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# cacheengine — standalone prompt-cache engine23Capability-driven planner plus provider-native wire compiler. Runtime needs no4gateway process, network, database, or control plane. `engine.go` is5provider/model agnostic; standalone wire compilers and `profiles.go` bind6current provider contracts while7`Driver`/profile resolver seams add providers without planner changes.8`cachebench` alone owns optional live replay I/O.910## Layout1112- `types.go` — public capability, plan, result, driver, observation contracts.13- `engine.go` — stable-prefix frontier, break-even math, volatile/drift guard,14 scoped affinity-key sharding.15- `native.go`, `openai.go`, `wire_anthropic_bedrock.go` — strict built-in JSON16 extraction and wire edits. Production graph imports no gateway adapter;17 parity tests compare standalone Anthropic/Bedrock behavior to those adapters.18- `profiles.go` — built-in model thresholds, TTLs, economics, attribution.19- `raw_usage.go` — provider cache-counter normalization; no dollar minting.20- `cmd/cache-experiment` — offline transformation/economics fixtures only.21- `cachebench/` + `cmd/cachebench` — strict 97% request/token gates,22 semantic-equivalence check, bounded public-corpus import, trace export, and23 provider-observation replay.24- `cmd/cache-replay` — opt-in live replay: exact trace reconstruction, provider25 HTTP auth/SigV4, pre-send full-trace equivalence, bounded absolute-time26 concurrency, task-verifier protocol, private retained evidence, no retry.27- `cachebench/scripts/` — hash-pinned LMCache download and parquet-to-JSONL28 streaming helpers; PyArrow is optional benchmark tooling, never runtime code.2930## Correctness invariants3132- Original bytes survive malformed, unsupported, caller-managed, record,33 non-PAYG, volatile, drifting, or untransformable requests.34- Never reorder or rewrite semantic prompt content. Add provider-native cache35 controls only; OpenAI string-to-content-block conversion is wire-equivalent36 and only used where explicit breakpoint grammar requires it.37- `Scope` is required and hashed before provider-visible routing keys. Native38 profiles bind one provider explicitly.39- `Epoch` means one frozen stable prefix. Changed bytes require `StartEpoch`;40 silent prefix drift passes through.41- `ExpectedCalls` means reuse inside provider TTL. Unknown token counts or cache42 economics remain zero/unavailable, never guessed.43- Standalone applied results are `inferred`; pass-through/observe-only results44 are `none`; `VerifiedSavingsUSD` is always zero. Managed gateway owns any45 verified accounting method.46- Custom drivers return original bytes and zero optimizer IDs on uncertainty.47- Public boundary: never import `cloud/...`.4849## Proof5051```bash52cd public53go test -race ./cacheengine/...54go vet ./cacheengine/...55go test ./cacheengine -run '^$' -fuzz '^FuzzOptimizeMalformedBuiltinsPassThrough$' -fuzztime=5s56go test ./cacheengine/cachebench -run '^$' -fuzz '^FuzzAgentCorpusJSONLFailClosed$' -fuzztime=5s57go test ./cacheengine/cachebench -run '^$' -fuzz '^FuzzObservationJSONLFailClosed$' -fuzztime=5s58go test ./cacheengine/cachebench -run '^$' -fuzz '^FuzzTraceJSONLFailClosed$' -fuzztime=5s59go test ./cacheengine/cachebench -run '^$' -fuzz '^FuzzVerificationCommandOutputFailClosed$' -fuzztime=5s60go test -run '^$' -bench BenchmarkOptimizeOpenAIExplicit -benchmem ./cacheengine61go run ./cacheengine/cmd/cache-experiment62go run ./cacheengine/cmd/cachebench63go run ./cacheengine/cmd/cache-replay -help64```6566See `README.md` for embedding and custom-driver examples.67
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| JuliusBrussee/cavemanCLAUDE.md · 98k | CLAUDE.md | archgitdo-notagent-behaviour+1 | 73/100 | today | |
| JuliusBrussee/cavemanagents/AGENTS.md · 98k | AGENTS.md | agent-behaviour | 16/100 | today | |
| JuliusBrussee/cavemanagents/CLAUDE.md · 98k | CLAUDE.md | stylearchsecurityagent-behaviour | 64/100 | today | |
| JuliusBrussee/cavemanbrowse/CLAUDE.md · 98k | CLAUDE.md | testarch | 59/100 | today | |
| JuliusBrussee/cavemanengine/AGENTS.md · 98k | AGENTS.md | stylearch | 66/100 | today | |
| JuliusBrussee/cavemanengine/CLAUDE.md · 98k | CLAUDE.md | stylearch | 58/100 | today | |
| JuliusBrussee/cavemanextension/AGENTS.md · 98k | AGENTS.md | buildteststylearch+1 | 73/100 | today | |
| JuliusBrussee/cavemanextension/CLAUDE.md · 98k | CLAUDE.md | buildteststylearch+1 | 73/100 | today | |
| JuliusBrussee/cavemanintegrations/CLAUDE.md · 98k | CLAUDE.md | stylearch | 55/100 | today | |
| JuliusBrussee/cavemanmcp/AGENTS.md · 98k | AGENTS.md | stylearch | 79/100 | today | |
| JuliusBrussee/cavemanmcp/CLAUDE.md · 98k | CLAUDE.md | stylearch | 79/100 | today | |
| JuliusBrussee/cavemanmem/AGENTS.md · 98k | AGENTS.md | stylearchperformanceagent-behaviour | 67/100 | today | |
| JuliusBrussee/cavemanmem/CLAUDE.md · 98k | CLAUDE.md | stylearchperformanceagent-behaviour | 71/100 | today | |
| JuliusBrussee/cavemanpackages/agent/CLAUDE.md · 98k | CLAUDE.md | archtesting-strategysecuritydependencies+2 | 34/100 | today | |
| JuliusBrussee/cavemanpackages/cli/AGENTS.md · 98k | AGENTS.md | stylearchdependenciesmonorepo | 71/100 | today | |
| JuliusBrussee/cavemanpackages/cli/CLAUDE.md · 98k | CLAUDE.md | stylearchdependenciesmonorepo | 71/100 | today | |
| JuliusBrussee/cavemanpackages/create-caveman-agent/CLAUDE.md · 98k | CLAUDE.md | archdependenciesmonorepoagent-behaviour | 36/100 | today | |
| JuliusBrussee/cavemanpackages/graders/AGENTS.md · 98k | AGENTS.md | teststylearchtypes+3 | 75/100 | today | |
| JuliusBrussee/cavemanpackages/graders/CLAUDE.md · 98k | CLAUDE.md | teststylearchtypes+3 | 75/100 | today | |
| JuliusBrussee/cavemanpackages/kit/AGENTS.md · 98k | AGENTS.md | stylearchdependenciesmonorepo | 63/100 | today |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| stacklok/toolhiveCLAUDE.md · 2.0k | CLAUDE.md | buildteststylearch+4 | 100/100 | 14 days ago | |
| Adit-Jain-srm/NightmareNetCLAUDE.md · 46 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 14 days ago | |
| microsoft/playwrightCLAUDE.md · 95k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 7 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.5k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 14 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 14 days ago | |
| tphakala/birdnet-goCLAUDE.md · 1.6k | CLAUDE.md | buildtestlint-formatstyle+8 | 100/100 | today | |
| tyrchen/geektime-bootcamp-aiw7/genslides/backend/CLAUDE.md · 230 | CLAUDE.md | testlint-formatstylearch+6 | 100/100 | 9 days ago | |
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 7 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/juliusbrussee-caveman-cacheengine-claude)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.