AGENTS.md@examples agentsA
AGENTS.md@examples is agent-read markdown (agents) from ppgranger/token-saver.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Executable examples - Examples teach the root Google Python style policy as well as the API. Import modules by absolute names, subclass `base.Processor`, keep code to 80 columns, and explain nontrivial contracts with Google-style docstrings. Validate Python examples with the root Ruff and Pylint commands. - Keep examples small, runnable, and consistent with the public processor/CLI contracts. A custom processor needs the same anchored hook patterns, routing, priorities, failure preservation, and redaction behavior as built-ins. - Use synthetic output and harmless commands; examples must not require a real cloud account, production database, API key, or installation into the reader's home just to demonstrate compression. - Distinguish sample output from measured benchmark results. If a demo claims a percentage, generate it with the current engine and estimator. - Explain user-processor code loading and the global/environment-only trust boundary for `user_processors_dir`. Do not suggest setting it in project `.token-saver.json`. - When the processor contract changes, update the custom-processor example and verify it with the user-processor tests.
Read the whole file at its exact version.
How to install
mdr add ppgranger/token-saver/examples/AGENTS.md@git:20260919.8bd664bmdr add ppgranger/token-saver/examples/AGENTS.md@sha256:066eb90897495815Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_gsqvisxjhqywqy3q)
1 badge views in 30 days
Versions
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (1188 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
ppgranger/token-saver · 153 stars · license Apache-2.0 · pushed 2026-09-19 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_gsqvisxjhqywqy3q GET https://markdownregistry.com/api/v1/resolve?ref=ppgranger/token-saver/examples/AGENTS.md GET https://markdownregistry.com/api/v1/blob/066eb90897495815908dbb9893878dabc85b0ba318391a4a3a180f28b995a295
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from ppgranger/token-saver
Every file in ppgranger/token-saver