agnix AGENTS.md

Project instructions for agnix, a linter that checks configuration for AI-agent skills, hooks, MCP servers, memory, and plugins. They describe its Rust workspace, rule files, certainty levels, testing requirements, and documentation.

In plain words
What is it for?
Use them to add or update validation rules, work across agnix's Rust components, build release binaries, and add tests for changes.
Why use it?
They keep the machine-readable rules and documentation in sync and help agents preserve the project's safety and quality requirements.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/agent-sh/agnix/agents-md
Clone the repo
git clone --depth 1 https://github.com/agent-sh/agnix

Made for: Codex, OpenCode.

Per session 2,708 This file is loaded in full into every session.
When invoked 2,708 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02708 $0.02708
Opus 5 $0.01354 $0.01354
Sonnet 5 $0.00542 $0.00542
Haiku 4.5 $0.00271 $0.00271

Measured 2d ago against content hash 86169395717e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agnix 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 2d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 225 lines

How it starts

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

Project Memory: agnix

Linter for agent configurations. Validates Skills, Hooks, MCP, Memory, Plugins.

Repository: https://github.com/agent-sh/agnix

Project Instruction Files

  • CLAUDE.md is the project memory entrypoint for Claude Code.
  • AGENTS.md is a byte-for-byte copy of CLAUDE.md for tools that read AGENTS.md (Codex CLI, OpenCode, Cursor, Cline, Copilot).
  • Keep them identical (tests enforce this).

Critical Rules

  1. Rust workspace - agnix-rules (data), agnix-core (lib), agnix-cli/agnix-lsp/agnix-mcp (binaries), agnix-wasm (WASM bindings)
  2. rules.json is source of truth - knowledge-base/rules.json is the machine-readable source of truth. When adding a new rule, add it to BOTH rules.json AND VALIDATION-RULES.md. CI parity tests enforce this.
  3. Plain text output - No emojis, no ASCII art
  4. Certainty filtering - HIGH (>95%), MEDIUM (75-95%), LOW (<75%)
  5. Release binaries - Compile with LTO, strip symbols
  6. Track work in GitHub issues - All tasks tracked there
  7. Task is not done until tests added - Every feature/fix must have quality tests
  8. Documentation - Keep long-form docs in README.md, SPEC.md, and knowledge-base/ (especially knowledge-base/VALIDATION-RULES.md). Keep CLAUDE.md/AGENTS.md for agent instructions only.
  9. Always follow the skill/command flow as instructed - No deviations
  10. No unnecessary files - Don't create summary files, plan files, or temp docs unless specifically required
  11. Never merge without waiting for the revuto-review check to end successfully - It might take time, but this is the major quality gate and most thorough review.
  12. You MUST follow the flow phases one by one - If they state to use subagents, tools, or any specific method, you must follow it exactly as described.
  13. You MUST address all comments and reviews - If reviewers leave comments, even minor ones, and even if not a requested change, you must address them all before merging. If you disagree, respond in the review comments. Minor comments must still be addressed.
  14. Use single dash for em-dashes - In prose, use - (single dash with spaces), never -- (double dash). This does not apply to CLI flags like --help or --fix.

Read the full file on GitHub · 225 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. 2d ago First seen · 225 lines · 2,708 tokens per session scan A 86169395717e

Subscribe to this mod's changes

agnix AGENTS.md is an instructions file published in the GitHub repository agent-sh/agnix (400 stars, last pushed 3d ago), licensed Apache-2.0. It adds 2,708 tokens to every session, about $0.0135 per session on Opus 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-30.