agnostic-ai: Instructions file for Codex

AGENTS.md

agnostic-ai AGENTS.md is an instructions file for Codex, OpenCode from Chemaclass/agnostic-ai. It costs 2,522 tokens per session, scanned B, original, MIT.

A repository instruction guide for coding agents working on the agnostic-ai project. It describes the code layout, generated files, development commands, and project rules.

In plain words
What is it for?
Use it when changing agnostic-ai code, adapters, documentation, editor extensions, or release-related files.
Why use it?
It gives an agent the project-specific context needed to make changes without editing generated files or skipping required checks.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 agnostic-ai AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chemaclass/agnostic-ai/agents-md"><img src="https://agentmods.dev/badge/instructions/chemaclass/agnostic-ai/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,522 This file is loaded in full into every session.
When invoked 2,522 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.02522 $0.02522
Opus 5.5 $0.01009 $0.01009
Sonnet 5.5 $0.00504 $0.00504
Haiku 4.5 $0.00252 $0.00252

Measured today against content hash c5dff9c736c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

agnostic-ai 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 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

`sync --scope user` edits files the user and other tools also write (`~/.claude.json`, `~/.codex/config.toml`):
AGENTS.md · 190 lines

How it starts

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

agnostic-ai development

agnostic-ai emits native AI tool configuration from portable specs. Go code: cmd/, internal/. Web client: ui/, with its built bundle committed in ui/embedded/. Companion app: companion/, its own Go module that root Go commands skip. Docs site: docs/site/. Editor extensions: editors/.

Edit canonical specs in .agnostic-ai/ and agnostic-ai.yaml, then run go run ./cmd/agnostic-ai sync. Most native tool files are generated and ignored. The root AGENTS.md and CLAUDE.md and the Claude Code cloud setup files (.claude/settings.json, .claude/hooks/) are generated and tracked: commit them with the spec change, and CI fails when they drift. See CONTRIBUTING.md#generated-files.

Paths here are repository-root relative. Start with CONTRIBUTING.md; docs/internal/contributing.md#choose-checks-for-your-change picks the checks. Read docs/internal/adding-adapters.md for adapter work. Run checks once the change set is complete; releases need make ci-local.

Delegate independent work with disjoint ownership: fast models for lookups, midrange for bounded changes, high reasoning for design, debugging and verification. One caller runs expensive checks.

Rules

shared-memory-policy

Read and save the project memory that every AI coding tool shares.

This project keeps two memories that every AI coding tool shares: project memory in .agnostic-ai/memory/, committed for the team, and personal memory in .agnostic-ai/local/memory/, kept out of Git. If agnostic-ai.local.yaml sets memory.personal: repo, personal memory is the folder your session context names, or that agnostic-ai memory path prints. Each folder has a MEMORY.md index: one line per fact, linking a topic file beside it. If an index is not in your context, read it before a task. Open a topic file only when its line is relevant.

Read the full file on GitHub · 190 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. today Changed · -30 tokens per session c5dff9c736c4
  2. 2d ago Changed · +2 tokens per session d57c23fcc6f7
  3. 6d ago First seen · 190 lines · 2,550 tokens per session scan B 548f432afa67

Subscribe to this mod's changes

agnostic-ai AGENTS.md is an instructions file published in the GitHub repository Chemaclass/agnostic-ai (32 stars, last pushed today), licensed MIT. It adds 2,522 tokens to every session, about $0.0101 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

agnostic-ai AGENTS.md compared with instructions from other repositories

agnostic-ai AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agnostic-ai AGENTS.mdChemaclass/agnostic-aiInstructions file32todayMITB2,522Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot