coograph: Instructions file for Codex

AGENTS.md

coograph AGENTS.md is an instructions file for Codex, OpenCode from paullukic/coograph. It costs 2,544 tokens per session, scanned C, original, MIT.

Repository instructions for Coograph that describe how agents are started, which rules they follow, and when its code graph and change proposal process are required.

In plain words
What is it for?
Use them when initializing Coograph, inspecting its code, checking unfinished proposals, or making repository changes.
Why use it?
They provide the session-start checks and workflow for navigating the project and handling changes safely.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

This is paullukic/coograph's own configuration. It tells Codex and OpenCode how to work on coograph 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 coograph configures →

Reuse

Borrowing it

Nothing to install: this file belongs to paullukic/coograph. 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/paullukic/coograph/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/paullukic/coograph

Made for: 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 coograph AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/paullukic/coograph/agents-md"><img src="https://agentmods.dev/badge/instructions/paullukic/coograph/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,544 This file is loaded in full into every session.
When invoked 2,544 The same file — it is already loaded in full.
Security scan C 1 finding. 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.02544 $0.02544
Opus 5.5 $0.01018 $0.01018
Sonnet 5.5 $0.00509 $0.00509
Haiku 4.5 $0.00254 $0.00254

Measured 11d ago against content hash 5840ddba0140, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

coograph AGENTS.md scanned grade C with 1 finding 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 11d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Tool-neutral rules. Read automatically by VS Code Copilot, OpenAI Codex CLI, OpenCode and other AGENTS.md-aware agents; Claude Code imports it from CLAUDE.md. Each rule lives in exactly one file: hard rules and work
AGENTS.md · 122 lines

How it starts

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

Agent Context

Invocation

If the user types /coograph-init, $coograph-init, or asks to "initialize the project" / "set up coograph" / "wire up coograph in this repo", follow .github/skills/coograph-init/SKILL.md exactly. That single procedure is the source of truth across every tool.

If the user types /coograph-doctor, $coograph-doctor, or asks to "check the install" / "run the doctor", follow .github/skills/coograph-doctor/SKILL.md: a read-only health check that offers each fix before applying it.

Note for Codex CLI: / is reserved for built-in commands. The Codex skill at .agents/skills/coograph-init/SKILL.md auto-triggers from description match, or invoke explicitly with $coograph-init.

Hard rules

🛑 HARD RULE — CODE-GRAPH FIRST. Before any codebase search, navigation, tracing, or exploration you MUST use the code-graph MCP tools first (mcp__code-graph__*). Only fall back to sqlite3 .code-graph/graph.db, and only then to Glob/Grep/Read, if the code-graph DB is genuinely NOT present in the workspace. Convenience is not a valid reason to skip. See § Tool Preferences below.

🛑 HARD RULE — OPENSPEC OR STOP. For any change that modifies 2+ files, touches a spec, alters a public interface, or adds new behavior, you MUST create an OpenSpec in openspec/changes/<date>-<slug>/ and WAIT for user approval BEFORE writing code. Exemptions are narrow and literal:

  • Typo fix in a single file
  • Comment/docstring-only edit
  • Config-value bump the user explicitly dictates (e.g., "set X=2")
  • Follow-up fix for an already-approved, in-progress OpenSpec

"Trivial," "obvious," "I already know what to do," "small," and "just one tweak" are NOT exemptions. If in doubt → propose, don't code. See § Workflow below.

Read the full file on GitHub · 122 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. 11d ago Changed · +2 lines · +57 tokens per session 5840ddba0140
  2. 1mo ago Changed · +76 lines · +1,729 tokens per session 86b6cd7bdc44
  3. 1mo ago Changed · +2 lines · +95 tokens per session b53da13f647c
  4. 2mo ago First seen · 42 lines · 663 tokens per session scan C 6f57b1a53ba0

Subscribe to this mod's changes

coograph AGENTS.md is an instructions file published in the GitHub repository paullukic/coograph (17 stars, last pushed 12d ago), licensed MIT. It adds 2,544 tokens to every session, about $0.0102 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

coograph AGENTS.md compared with instructions from other repositories

coograph AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coograph AGENTS.mdpaullukic/coographInstructions file1712d agoMITC2,544Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode