Borrowing it
Nothing to install: this file belongs to bleak-ai/gcontext. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bleak-ai/gcontext/main/AGENTS.mdgit clone --depth 1 https://github.com/bleak-ai/gcontextWrote 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/bleak-ai/gcontext/agents-md)<a href="https://agentmods.dev/instructions/bleak-ai/gcontext/agents-md"><img src="https://agentmods.dev/badge/instructions/bleak-ai/gcontext/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.
<a href="https://agentmods.dev/instructions/bleak-ai/gcontext/agents-md"><img src="https://agentmods.dev/badge/instructions/bleak-ai/gcontext/agents-md.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.00667 | $0.00667 |
| Opus 5.5 | $0.00267 | $0.00267 |
| Sonnet 5.5 | $0.00133 | $0.00133 |
| Haiku 4.5 | $0.00067 | $0.00067 |
Grade A, and why
gcontext 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.
How it starts
The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.
gcontext
gcontext gives a coding agent a handbook: a folder of Markdown files with the knowledge and the know-how of a project. When a session of the agent is finished, gcontext proposes what that session adds to the handbook. A new handbook on one machine accepts the proposal by itself, and gcontext undo takes it back. Else a person accepts or rejects each proposal, or the server accepts it by itself. The agent reads the handbook at the start of each session.
These are the rules for anyone who works on this repo, a person or a coding agent.
The handbook of this repo
docs/ is the handbook of gcontext. It holds what is true now and the reasons. Start at docs/index.md: its table says what to read for each task. Read only what your task needs. The vision is docs/product/vision.md. Where another document says something else, the vision holds.
manual/ holds the pages for users. The README links them.
Rules
- A model call costs money. Run one only when you mean it. A model call is
claude -p, a Jev call, a capture, a Preanalyse, Ask, and a Claude build of the fact index. Which command makes one: docs/development/checks/model-calls.md. - During development, never write in
~/.gcontext, in your handbooks, or in a project repository. SetGCONTEXT_DATA_DIRto a temporary folder. - Do not write unit tests. The proof of a change is the E2E test and the type check (
npm run check, 0 errors). Which proof: docs/development/checks/. - Before you change a prompt, a template, a rules file, or a handbook, read docs/development/text-changes/.
- Prompt texts live in their own
.mdfiles next to the code that uses them, with{{...}}blanks. No prompt text in a.tsfile. - Use
uv runfor Python. No pip, and no direct Python command. - Use short sentences, plain words, and active voice. No en dashes, no em dashes. Use the words of docs/product/words/ in text that a user sees. Do not use
andin file or folder names. - Keep secrets in env files outside the repo.
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.
- today Changed · +1 tokens per session 73f9224679a6
- yesterday First seen · 33 lines · 666 tokens per session scan A af72b2566d50
gcontext AGENTS.md is an instructions file published in the GitHub repository bleak-ai/gcontext (25 stars, last pushed today), licensed MIT. It adds 667 tokens to every session, about $0.0027 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-11-29.
gcontext AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gcontext AGENTS.mdbleak-ai/gcontext | Instructions file | 25 | today | MIT | A | 667 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,230 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 3,303 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 289k | 2d ago | MIT | A | 4,393 | Codex, OpenCode |