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/davis7dotsh/better-context/agents-mdgit clone --depth 1 https://github.com/davis7dotsh/better-contextWhat 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 | $0.00452 | $0.00452 |
| Opus 5 | $0.00226 | $0.00226 |
| Sonnet 5 | $0.00090 | $0.00090 |
| Haiku 4.5 | $0.00045 | $0.00045 |
Grade A, and why
better-context 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 yesterday.
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
AGENTS.md
Critical Rules
- ONLY use
bun- never npm/yarn - NEVER run dev/build commands (
bun dev,bun build)
Source of Truth
When working on this project, apps/docs is the documentation for the server and cli. Make sure when changing something about how an endpoint or command works, you update the documentation in apps/docs. And if you change something that makes it different from the docs, ask me about it. This does not apply to apps/web or apps/sandbox.
Commands
Root Commands
- Type check all:
bun run check:all - Format all:
bun run format:all
Package-Specific Commands
After making changes in a specific package, run its check script:
| Package | Check Command | Format Command |
|---|---|---|
apps/cli |
bun run check:cli |
bun run format:cli |
apps/web |
bun run check:web |
bun run format:web |
apps/server |
bun run check:server |
bun run format:server |
apps/sandbox |
bun run check:sandbox |
bun run format:sandbox |
apps/server-simple |
bun run check:server-simple |
bun run format:server-simple |
packages/shared |
bun run check:shared |
bun run format:shared |
Code Style
- Runtime: Bun only. No Node.js, npm, pnpm, vite, dotenv.
- TypeScript: Strict mode enabled. ESNext target.
- Imports: External packages first, then local. Use
.tsextensions for local imports. - Bun APIs: Prefer
Bun.file,Bun.serve,bun:sqlite,Bun.$over Node equivalents. - Testing: Use
bun:testwithimport { test, expect } from "bun:test".
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.
- yesterday First seen · 39 lines · 452 tokens per session scan A 3d8ad16487fa
better-context AGENTS.md is an instructions file published in the GitHub repository davis7dotsh/better-context (1,157 stars, last pushed 4mo ago), licensed MIT. It adds 452 tokens to every session, about $0.0023 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
localdocs-mcp CLAUDE.md
Claude Code instructions for dylan-gluck/localdocs-mcp: This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
scalar AGENTS.md
Instructions for scalar/scalar, covering agents.md - ai agent guide for scalar, project overview, prerequisites, first-time setup and commands.
ratel AGENTS.md
Instructions for ratel-ai/ratel, covering agents.md — working in the ratel repo, build & test, rust, ts and python (from src/sdk/python/; needs uv).
Context-Engine GEMINI.md
Instructions for Context-Engine-AI/Context-Engine, covering ai agent rules for context-engine mcp tools, stop — read this first, glossary, tool selection decision tree and requirements.
open-knowledge AGENTS.md
AGENTS.md instructions for inkeep/open-knowledge, covering openknowledge agent guide, start here, commands, repo layout and public mirror rules.
elastic-docs-skills CLAUDE.md
Instructions for elastic/elastic-docs-skills, covering elastic docs skills — project guide, what this repo is, repository layout, skill anatomy and categories.