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/bayesimpact/bayes-platformWrote 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/bayesimpact/bayes-platform/no-private-repo-refs)<a href="https://agentmods.dev/rules/bayesimpact/bayes-platform/no-private-repo-refs"><img src="https://agentmods.dev/badge/rules/bayesimpact/bayes-platform/no-private-repo-refs/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/bayesimpact/bayes-platform/no-private-repo-refs"><img src="https://agentmods.dev/badge/rules/bayesimpact/bayes-platform/no-private-repo-refs.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.00426 | $0.00426 |
| Opus 5.5 | $0.00170 | $0.00170 |
| Sonnet 5.5 | $0.00085 | $0.00085 |
| Haiku 4.5 | $0.00043 | $0.00043 |
Grade A, and why
no-private-repo-refs 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 28d 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.
What it actually says
No private-repo references in this public repo
bayesimpact/bayes-platform is public. Anything written here is world-readable: commits, PR titles/bodies, comments, code, docs, changelogs, branch names that spell a private repo, CI logs you paste into PRs.
Forbidden in this repository
Never put any of the following into commits, PRs, comments, docs, code, or changelogs:
- Links or names of private GitHub repos (especially
bayesimpact/internal-issues) Closes/Fixes/Refs/Part oftrailers that point at a private repo issue (e.g.Closes bayesimpact/internal-issues#137,Refs: bayesimpact/internal-issues#137)- Internal-only URLs, tickets, or tracker IDs that only resolve inside a private org repo
Tracking a private security/internal issue is fine in chat with the user. Do not mirror that reference into the public git history or GitHub UI.
What to write instead
- Describe the change on its own (no private issue link).
- If a public bayes-platform issue exists, link that (
Closes #1234). - If work was driven by a private issue only, omit the reference entirely.
# ❌ BAD — leaks a private tracker into the public repo
Closes bayesimpact/internal-issues#137
Refs: bayesimpact/internal-issues#137
# ✅ GOOD — no private tracker
# (no Closes/Refs line, or Closes #<public bayes-platform issue>)
Before every commit and gh pr create / gh pr edit
Scan the message/body for internal-issues, other private repo slugs, and bayesimpact/ links that are not bayesimpact/bayes-platform. Remove them before committing or publishing.
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.
- 28d ago First seen · 39 lines · 426 tokens per session scan A 54c30c2cbe73
no-private-repo-refs is a cursor rule published in the GitHub repository bayesimpact/bayes-platform (23 stars, last pushed yesterday), licensed MIT. It adds 426 tokens to every session, about $0.0017 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-10-09.
no-private-repo-refs compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| no-private-repo-refsbayesimpact/bayes-platform | Cursor rule | 23 | yesterday | MIT | A | 426 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 185k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 101k | yesterday | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 75k | yesterday | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | yesterday | Apache-2.0 | A | 0 | Cursor |
| prefer-direct-imports-over-module-mocksprisma/orm | Cursor rule | 48k | yesterday | Apache-2.0 | A | 0 | Cursor |
| shared-plane-packagesprisma/orm | Cursor rule | 48k | yesterday | Apache-2.0 | A | 0 | Cursor |