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.
git clone --depth 1 https://github.com/coddy-project/coddy-agentWrote 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/rules/coddy-project/coddy-agent/testing)<a href="https://agentmods.dev/rules/coddy-project/coddy-agent/testing"><img src="https://agentmods.dev/badge/rules/coddy-project/coddy-agent/testing/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/rules/coddy-project/coddy-agent/testing"><img src="https://agentmods.dev/badge/rules/coddy-project/coddy-agent/testing.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.03298 | $0.03298 |
| Opus 5.5 | $0.01319 | $0.01319 |
| Sonnet 5.5 | $0.00660 | $0.00660 |
| Haiku 4.5 | $0.00330 | $0.00330 |
Grade A, and why
testing 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 today.
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 — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testing (Go)
Commands
- Express run (what agents run before finishing):
make test- Runs
make test-agent-rules,make ui-build,make ui-test(the SPA's vitest suite), then onego test -tags=http,ui,scheduler,memory,cli,gateway,swarm,metrics,browser,desktop ./...- the whole tree with every optional module compiled in, which is what the shipped binary contains. Minutes, not tens of minutes.
- Runs
- Shipped-tag CI suite:
make testruns once inTest suite (all tags)with the full shipped tag set. The localmake test-matrixwalks every combination inTEST_TAG_SETS(Makefile) - untagged, single tags, pairs and the shipped set - but CI does not run that exhaustive matrix. When a build-tag boundary changes (a_stub.go, anAvailableconst, a//go:buildline), run the affected combination locally withgo test -tags=<set> ./....make lintalso checks the untagged and shipped builds. - Race detector:
make test-raceruns the whole tree undergo test -racewith every tag butui; CI runs it on every pull request (job Race detector). Run it before the push when a change touches goroutines, locks or channels, or a test harness that drives a live loop (the console's UI loop, a runningApp, a godog step reading state a worker writes).GOFLAGS=-count=3 make test-racerepeats every test, which a test that leans on process-wide state (a counter,bgtask.Default()) has to survive. Every package is clean under it: a race it reports is fixed where it lives (a stub's field read under the stub's own lock, a channel handed to a handler goroutine as a local), never skipped. - Prompt-cache group:
make test-cacheruns thefeatures/prompt_cache_*.featurespecs and every test namedTestPromptCache*- what each request sends the provider: one system message for the whole session, a history that only grows at its end, every rule at most once and none that no path brought in. It is part ofmake test; run it on its own when a change touches the system prompt, the rules, the history, the send boundary, the compaction fold or the prompt-suggestion side call, and give a new test of that kind theTestPromptCacheprefix so it joins the group. The side call (internal/session/prompt_suggestion.go) re-issues the finished turn's own provider input with one request-only message appended, so its request differs from the turn's in nothing a provider keys its cache on: the model, the tools, the reasoning level and, on Anthropic, the thinking budget, which followsmax_tokensand is why the output bound is lowered only where the turn asked for no reasoning.TestPromptCacheSuggestionReusesTheTurnsPrefixholds the cache mark to the turn's last real message;make test-perf(BenchmarkPromptSuggestionCacheSplit) reports what one suggestion reads, writes and pays for in full. The compaction fold is the second such call (internal/agent/compact_cached.go): a summarizer that is the session's own model is asked with the turn's own request cut at the boundary, andfeatures/prompt_cache_compaction.featureholds every message in front of its instruction to what the turn had already sent, the results collapsing in batches (resultEvictionBatch) included;BenchmarkCompactionCacheSplitreports what a session of thirty turns reads fresh against what it reads back. - Performance group:
make test-perfruns the benchmarks (Benchmark*in theperf_test.gofiles), whichmake testnever runs: timings of the work a turn repeats and the context a session over this repository's own rules costs (system-tokens,request-tokens,duplicate-rulesmetrics).BENCH=<regexp>narrows them,BENCHTIME=5xsets the runs. A benchmark goes into the package'sperf_test.go, not into its functional tests. - Targeted run while iterating:
go test ./path/to/pkg -run TestName -count=1 - Touching a file behind
//go:build windows, or any signature it shares with_other.go/ the rest of the tree: also runmake check-windowsandmake lint-windows.make testandmake lintrun on the host, so the Windows half ofinternal/platform(and anything else with a per-OS file) is never compiled by them.check-windowscross-builds andgo vets every non-uitag combination, test files included. CI runs both (.github/workflows/tests-on-pr.yaml), plus the complete Go suite (go test ./...with the shipped tag set) on a realwindows-latestrunner (job Test suite (Windows)), so every_windows_test.gofile runs there (internal/platform,internal/textenc, the drive-letter glob anchoring ofinternal/rulesand the rest) and every test that writes files or compares paths meets the runner's CRLF checkout. The platform packages and the console suite run onmacos-latestas well (jobtest-macos), which also builds the console and drives the binary through a real pty withexamples/cli/cli_e2e_startup.py; the Linux Surface end-to-end tests job runs that script too, and the Telegram stand (tgfake) job runsexamples/gateway/tg_e2e_offline.sh: the built binary against the release binary of tgfake (the versiongo.modpins, installed by tgfake's own action; guidedocs/contributing/tgfake.md), no Telegram and no model. The Go suite never opens a pty, so this is the only check of the console's terminal path. - Touching a file behind a BSD constraint (
darwin || freebsd,(linux && !android) || freebsd), or a signature it shares with the rest of the tree: also runmake check-freebsdandmake lint-freebsd. FreeBSD takes the BSD half of the per-OS files - thexucredpeer check ofinternal/localipc, thestatfsofinternal/platform, the Kimi credential store ofinternal/llm, thekern.proc.pidsysctlexternal/desktopreads a process's parent from - and the host gate compiles none of them.check-freebsdcross-builds andgo vets both published architectures with the test files; CI runs both plus the binary and the platform suites inside a real FreeBSD virtual machine (job FreeBSD build and native tests), because cross-compiling is not proof the binary runs there. - Touching a file behind
//go:build android, orinternal/platform/android.gothat it calls: also runmake check-android. The Android build (GOOS=androidwith cgo, linked by the NDK against Bionic for arm64 and x86_64, published for Termux) compilesandroid_init.goand the cgo guardandroid_nocgo.go, which no host gate sees;check-androidrunsgo vetover it with the NDK compiler (scripts/android-cc.sh), test files included, and CI runs it in the Android cross-build job, which also builds both release binaries, checks that each is a position-independent executable naming/system/bin/linker64with no library Android does not ship, and uploads them as artifacts. The decisions themselves are plain functions tested on every Unix host (features/android_termux.feature,internal/platform/android_test.go). A new place that builds anexec.Cmdcallsplatform.AdaptCommandbeforeStart;TestEverySpawnSiteAdaptsTheCommandfails otherwise. - HTTP server core is
//go:build http. Embedded UI tests compile withgo test -tags=http,ui ./external/httpserver. SPA-freehttpbuild uses//go:build http && !uihandlers underexternal/httpserver. Session memory REST uses//go:build http && memory(memory_http.go); withoutmemory,memory_http_stub.goregisters no routes.
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.
- today Changed · -42 tokens per session d4a3c77f6425
- 15d ago Changed · +1 lines · +204 tokens per session 2216aac558cf
- 16d ago Changed · +118 tokens per session 8516099b6d11
- 17d ago Changed · +155 tokens per session 659d66c9e795
- 23d ago Changed · +1 lines · +135 tokens per session 83c0c275613e
- 1mo ago Changed · +2 tokens per session 68eab214bc35
- 1mo ago Changed · +1 lines · +145 tokens per session c7ed484b0ce2
- 1mo ago Changed · -35 tokens per session a0214aae7d77
- 1mo ago Changed · +2 tokens per session 49a8795929aa
- 1mo ago First seen · 56 lines · 2,614 tokens per session scan A 53f9c1a50fde
testing is a cursor rule published in the GitHub repository coddy-project/coddy-agent (215 stars, last pushed today), licensed MIT. It adds 3,298 tokens to every session, about $0.0132 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-08-30.
testing compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| testingcoddy-project/coddy-agent | Cursor rule | 215 | today | MIT | A | 3,298 | Cursor |
| sciclaw-papercutssciclaw/sciclaw | Cursor rule | 11 | 4mo ago | none | A | 607 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 202k | 9d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | today | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Codex, Cursor |
| prefer-direct-imports-over-module-mocksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Codex, Cursor |