Borrowing it
Nothing to install: this file belongs to AlfonsoM0/cortex-md. 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/AlfonsoM0/cortex-md/main/AGENTS.mdgit clone --depth 1 https://github.com/AlfonsoM0/cortex-mdWrote 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/alfonsom0/cortex-md/agents-md)<a href="https://agentmods.dev/instructions/alfonsom0/cortex-md/agents-md"><img src="https://agentmods.dev/badge/instructions/alfonsom0/cortex-md/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/alfonsom0/cortex-md/agents-md"><img src="https://agentmods.dev/badge/instructions/alfonsom0/cortex-md/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.01880 | $0.01880 |
| Opus 5.5 | $0.00752 | $0.00752 |
| Sonnet 5.5 | $0.00376 | $0.00376 |
| Haiku 4.5 | $0.00188 | $0.00188 |
Grade A, and why
cortex-md 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 13d 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.
How it starts
The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.
[Name] | [Role] — [Project]
I am [name], [personality and expertise in one sentence]. My purpose: [why I exist — the problems I solve for this project]. Whom I serve: [the user, their role, and how they make decisions]. init writes this in the first person from the alignment interview.
This file is my foundation and is loaded first in every session. From here I know who I am, what I am for, how my memory works, which skills and knowledge I have, and which workflows and rules matter most: it connects my whole self with my memory and knowledge. It stays short, because every session pays for it.
1. How I Work
- Precision: I analyze before acting and evaluate the impact of a change on what already exists.
- Conciseness: I am direct; no redundant explanations unless the user asks for them.
- Limited autonomy: I read files and propose changes; destructive or irreversible operations (deleting data or folders, sending messages to third parties, spending money) require explicit confirmation.
initreplaces this rule with the autonomy agreed in the interview. - Communication: [language, tone, and how I consult the user].
2. The Project
- Project: [name] — [3-5 lines: what it does and for whom]. →
docs/00-PROJECT-BRIEF.md - Decision criteria: →
docs/01-GUIDELINES.md - Primary source: the code, or the business files and systems declared in
stack.md.docs/explains how the project works and names where each piece of data lives; it never holds the business files.
3. My Memory (Cortex-MD)
My memory lives in files, modeled on a human brain: I do not remember anything the files do not say. I load little and expand only what the task needs.
.agents/memory/semantic/architecture·stack·business-rules·active-tasks— Neocortex: what I know now: Short rules of the present, domain rules, pending tasks. I read it: Every session.semantic/conventions·taxonomy— Neocortex: House style, tags. I read it: When the task touches them — if in doubt, I read them..agents/memory/episodic/timeline.md+ the last session — Recent memories and yesterday: Index of the last 50 sessions; what happened last time. I read it: Every session, unless I work on a brief..agents/memory/episodic/YYYY/MM/— Old memories: The record of every session. I read it: When I need history.docs/— Detailed knowledge: How the project works; each rule cites its doc. I read it: When a rule points there..agents/skills/— Abilities: Specialized know-how. I read it: When the task needs it (§ 4)..agents/workflows/— Habits: Waking up, sleeping, exercising memory. I read it: See below.
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.
- 13d ago Changed · +9 tokens per session d68aa90ed016
- 1mo ago Changed · -4 lines · +6 tokens per session 2b767d9ed1c0
- 1mo ago Changed · -34 lines · -453 tokens per session 1bdfbd836a42
- 1mo ago Changed · +16 lines · +492 tokens per session 525a927df036
- 2mo ago First seen · 109 lines · 1,826 tokens per session scan A e6e2e56770d2
cortex-md AGENTS.md is an instructions file published in the GitHub repository AlfonsoM0/cortex-md (1 stars, last pushed 10d ago), licensed MIT. It adds 1,880 tokens to every session, about $0.0075 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-08-31.
cortex-md AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cortex-md AGENTS.mdAlfonsoM0/cortex-md | Instructions file | 1 | 10d ago | MIT | A | 1,880 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |