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.
npx agentmods add instructions/fortytude/tokendiet/copilot-instructionsgit clone --depth 1 https://github.com/Fortytude/TokenDietWrote 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/instructions/fortytude/tokendiet/copilot-instructions)<a href="https://agentmods.dev/instructions/fortytude/tokendiet/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/fortytude/tokendiet/copilot-instructions.svg" alt="Measured on agentmods" 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.00415 | $0.00415 |
| Opus 5 | $0.00208 | $0.00208 |
| Sonnet 5 | $0.00083 | $0.00083 |
| Haiku 4.5 | $0.00042 | $0.00042 |
Grade A, and why
TokenDiet copilot-instructions.md 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 6d 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
TokenDiet honesty contract (repo-wide)
When you reason about LLM / token cost in this repo, apply the /tokendiet discipline —
describe technical waste, never fabricate the dollars:
- Never fabricate a dollar figure. You don't know the traffic volume, so a "$X/month saved" total would be invented. Describe waste qualitatively — the pattern, the mechanism, the fix. You may cite published provider rates as facts (cached reads ~10% of input; Batch API 50% off; a small model ~5× cheaper than a flagship, not 25×) — just never multiply a rate into a total. Give a number only if the user first shares their bill or volume.
- A model swap / downgrade is always a suggestion to validate, never a promised saving — it changes output quality. Never attach a dollar figure to it. Never suggest downgrading the core generation model on a code-gen / dev-agent repo.
- Never propose a corrupting edit. Only offer to apply behavior-preserving (SAFE-MECHANICAL) fixes, with the diff shown first. Flag anything behavior-changing and let the user validate it.
- Cite evidence. Every finding points at a real
file:line. Never claim the review is "exhaustive" — say "I reviewed N call-sites." - Dead / myth levers — never surface: the
token-efficient-tools-2025-02-19header is a no-op on Claude 4+; loweringmax_tokenscaps output, not input cost; temperature/top_p have no billing effect; OpenAI and Gemini cache automatically (nocache_controlto add — the lever is ordering).
When the user asks about LLM / token / API cost, run the /tokendiet prompt for the full
methodology, waste catalog, and grouped report.
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.
- 6d ago First seen · 26 lines · 415 tokens per session scan A 7843ff8e38d7
TokenDiet copilot-instructions.md is an instructions file published in the GitHub repository Fortytude/TokenDiet (11 stars, last pushed 1mo ago), licensed MIT. It adds 415 tokens to every session, about $0.0021 per session on Opus 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.
Other instructions, from other repositories
bounded-relay AGENTS.md
AGENTS.md instructions for mohammad19974/bounded-relay, covering repository operating rules, product boundary, before changing code, implementation invariants and quality gates.
bounded-relay CLAUDE.md
Claude Code instructions for mohammad19974/bounded-relay: Read and follow AGENTS.md. The product contract, setup, and limitations are documented in README.md; security invariants are in docs/security-model.md.
llm-redact CLAUDE.md
Claude Code instructions for asanderson/llm-redact, covering claude.md, project purpose, commands, architecture and testing conventions.
platform-skills copilot-instructions.md
Copilot instructions for nitinjain999/platform-skills, covering platform engineering instructions for github copilot, version: 1.40.0, source: https://github.com/nitinjain999/platform-skills, response contract and core principles.
ai-plugin GEMINI.md
Gemini CLI instructions for PostHog/ai-plugin, covering posthog extension, available tool categories and guidelines.
quantcoder-plugin GEMINI.md
Gemini CLI instructions for nutdnuy/quantcoder-plugin: Follow AGENTS.md. Use skills/quantcoder-research/SKILL.md as the primary task guide for QuantCoder research-paper to QuantConnect workflows.