agent-wiki: Instructions file for Codex

AGENTS.md

agent-wiki AGENTS.md is an instructions file for Codex, OpenCode from psecor/agent-wiki. It costs 4,177 tokens per session, scanned B, original, MIT.

A project documentation standard and service for keeping one agent-readable AGENTS.md wiki per project. It includes rules, an indexer, a read-only web interface, and an API.

In plain words
What is it for?
Use it to define AGENTS.md files, build searchable project and topic indexes, validate documentation, and browse project links, backlinks, and raw documents.
Why use it?
It gives coding agents a consistent place to learn a project's purpose, architecture, deployment details, and known problems. Indexing and validation make those documents easier to search and check.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 agent-wiki AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/psecor/agent-wiki/agents-md"><img src="https://agentmods.dev/badge/instructions/psecor/agent-wiki/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,177 This file is loaded in full into every session.
When invoked 4,177 The same file — it is already loaded in full.
Security scan B 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.04177 $0.04177
Opus 5.5 $0.01671 $0.01671
Sonnet 5.5 $0.00835 $0.00835
Haiku 4.5 $0.00418 $0.00418

Measured 1mo ago against content hash 99634cb5d876, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

agent-wiki AGENTS.md scanned grade B 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 1mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

**Production updates:** `git pull && (cd service && npm install && npm run build) && (cd ui && npm install && npm run build) && sudo systemctl restart agent-wiki`.
AGENTS.md · 255 lines

How it starts

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

AGENTS.md — agent-wiki

What This Is

A documentation standard and supporting service for per-project agent-readable wikis. Each project in your workspace gets a single AGENTS.md describing intent, architecture, deployment, gotchas, and cross-project links. This repo defines the spec, hosts cross-cutting topics, and runs a small read-only browser/API.

Status

Spec + indexer + server + UI + sweeper. All pieces working:

  • Spec defined (spec/schema.md), template (spec/template.md), topics tier rules (spec/topics.md).
  • Indexer parses frontmatter + sections + links, validates, writes index/{projects,topics,backlinks,search,validation}.json. Also writes generated backlinks footers back into source AGENTS.md files (write_backlinks.ts).
  • Read-only HTTP API in service/src/server/ with Google OAuth (allowlist) + file-based sessions, mounted at PATH_PREFIX (default /wiki). JSON endpoints for projects, topics, search, validation, raw doc bodies.
  • React + Vite UI in ui/, served by the Express process from ui/dist/. Pages: Home, Project, Topic, Search, Validation, Login. Markdown rendered with react-markdown + remark-gfm; cross-doc links rewritten to in-app routes.
  • Sweeper service in service/src/sweeper/: gathers per-project git activity since last_updated, calls the Claude API (streaming, 32k max_tokens, string-aware brace-counter parser), applies section-level patches, updates frontmatter. CLI supports per-project runs, --all fan-out, and --dry-run. Sweeper auth supports both ANTHROPIC_API_KEY and the Claude Code CLI's own credentials.
  • Optional automation: on Linux, a daily user-mode systemd timer (agent-wiki-sweeper.timer) runs sweeper --all && indexer build; on macOS, an equivalent LaunchAgent (agent-wiki-sweeper.plist) does the same. A Claude Code Stop-hook (deploy/sweep-on-stop.sh) fires per-project sweeps async, debounced to 60 min/project, and is portable across both OSes.

Read the full file on GitHub · 255 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. 1mo ago Changed · +1 lines · +90 tokens per session 99634cb5d876
  2. 2mo ago First seen · 254 lines · 4,087 tokens per session scan B cb0b4b5215ca

Subscribe to this mod's changes

agent-wiki AGENTS.md is an instructions file published in the GitHub repository psecor/agent-wiki (2 stars, last pushed 1mo ago), licensed MIT. It adds 4,177 tokens to every session, about $0.0167 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

agent-wiki AGENTS.md compared with instructions from other repositories

agent-wiki AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-wiki AGENTS.mdpsecor/agent-wikiInstructions file21mo agoMITB4,177Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode