tokensave: Instructions file for Claude Code

AGENTS.md

tokensave AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from aovestdipaperino/tokensave. It costs 3,395 tokens per session, scanned A, original, MIT.

Repository instructions for Tokensave, including contribution rules, build and lint commands, tests, and its non-standard test and benchmark setup. The repository is a Rust project, and its instructions require reporting checks and limitations for resource-sensitive changes.

In plain words
What is it for?
Use it when changing Tokensave code, choosing its build mode, running workspace tests or Clippy, handling issues, or preparing a pull request.
Why use it?
It gives an agent the repository's required workflow instead of relying on generic Rust practices. It also records important rules for issue handling, resource management, and CI checks.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PreToolUse hook event, but also the file is AGENTS.md. Also seen: mentions subagents; mentions AGENTS.md; mentions Codex.

This is aovestdipaperino/tokensave's own configuration. It tells Claude Code, Codex and OpenCode how to work on tokensave itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tokensave configures →

Reuse

Borrowing it

Nothing to install: this file belongs to aovestdipaperino/tokensave. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/aovestdipaperino/tokensave/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/aovestdipaperino/tokensave

Made for: Claude Code, Codex, OpenCode.

Wrote 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.

agentmods badge for tokensave AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/aovestdipaperino/tokensave/agents-md/github.svg)](https://agentmods.dev/instructions/aovestdipaperino/tokensave/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/aovestdipaperino/tokensave/agents-md"><img src="https://agentmods.dev/badge/instructions/aovestdipaperino/tokensave/agents-md/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.

agentmods 80×15 button for tokensave AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aovestdipaperino/tokensave/agents-md"><img src="https://agentmods.dev/badge/instructions/aovestdipaperino/tokensave/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,395 This file is loaded in full into every session.
When invoked 3,395 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.03395 $0.03395
Opus 5.5 $0.01358 $0.01358
Sonnet 5.5 $0.00679 $0.00679
Haiku 4.5 $0.00340 $0.00340

Measured today against content hash 225a24e34d68, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tokensave AGENTS.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 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.

AGENTS.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

This file provides guidance to the agent when working with code in this repository.

Keeping agent guidance current

Treat AGENTS.md on the original repository's master branch (aovestdipaperino/tokensave) as the baseline for shared repository guidance. Before changing this file or preparing a branch for merge, compare it with the latest upstream master version and incorporate missing shared instructions. Preserve branch-specific instructions and intentional differences; do not blindly replace the file. If upstream cannot be checked, disclose that limit.

Update this file in the same change whenever build/test commands, architecture, tooling, contributor policies, or release workflows make its guidance outdated. Keep shared rules synchronized between master and beta, and verify the instructions against the affected branch's files before committing. Report any remaining differences and why they are needed in the handoff.

Graphs and diagrams

Every graph and diagram created or updated for repository documentation MUST use Mermaid. Embed Mermaid source in fenced mermaid code blocks in Markdown so GitHub can render it and contributors can edit it directly.

README consistency and installation

Keep README.md synchronized between master and beta. Installation instructions are the only permitted branch-specific difference in README content; keep all other content the same, including the beta announcement. Record this rule identically in both branches' AGENTS.md files.

  • On master, preserve the stable installation guide: Homebrew (brew install aovestdipaperino/tap/tokensave), crates.io (cargo install tokensave), cargo binstall tokensave, Windows Scoop (add https://github.com/aovestdipaperino/scoop-bucket as the tokensave bucket, then scoop install tokensave), and prebuilt binaries from the latest release added to PATH. Retain the Cargo medium/lite variants and the documented release archive table.
  • On beta, preserve installation directly from the beta branch: cargo install --git https://github.com/aovestdipaperino/tokensave.git --branch beta --locked --force. Retain the alternative of cloning beta and running cargo build --release --locked with the pinned toolchain, then adding the resulting binary to PATH, plus the source-based medium/lite variants. Keep the explanation that Homebrew, Scoop, crates.io, cargo-binstall, and published release binaries install stable releases; no prebuilt beta archives are published. Preserve the schema-migration/full-reindex notice, disposable-checkout advice, and link to the master guide for returning to stable.
  • Preserve these installation differences when merging or synchronizing the branches. The beta announcement on both branches may continue to show the explicit beta installation command.

Read the full file on GitHub · 188 lines

Changes

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.

  1. today Changed · +1 lines · +57 tokens per session 225a24e34d68
  2. yesterday Changed · +24 lines · +315 tokens per session 0a1f4e0496da
  3. 2d ago Changed · +70 lines · +815 tokens per session 6564ed63ef21
  4. 3d ago Changed · +15 lines · +167 tokens per session 90d13a67d437
  5. 6d ago Changed · +5 lines · +71 tokens per session 5c1ea024815b
  6. 8d ago First seen · 73 lines · 1,970 tokens per session scan A ed27d80cfc42

Subscribe to this mod's changes

tokensave AGENTS.md is an instructions file published in the GitHub repository aovestdipaperino/tokensave (681 stars, last pushed today), licensed MIT. It adds 3,395 tokens to every session, about $0.0136 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-20.

Related

Other instructions, from other repositories

flow-like copilot-instructions.md

Copilot instructions for Rheosoph/flow-like, covering flow-like wasm node development — rust, project overview, build & test, architecture and pin types.

Rheosoph/flow-like · 1,349 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens