agnix
AGENTS.md501 starsChanged 10 months agoApache-2.0View on GitHub
Linter for agent configurations. Validates Skills, Hooks, MCP, Memory, Plugins. Repository: https://github.com/agent-sh/agnix build_unchecked() (cfg(test) or the __internal_unchecked feature) and the __internal module are for tests, fuzz targets and benches only; agnix_core::normalize_line_endings is stable at the crate root. The public API surface and its stability rules are in CONTRIBUTING.md.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- avifenesh/agnixword for word, first seen Oct 9, 2026
Other versions1 project uses a version of this.
Word for word · 1
- avifenesh/agnix★ 501100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- agnixSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Wait for the revuto-review check to pass before merging: it is the most thorough review.
- Very specific: line 108
Add it to both rules.json and VALIDATION-RULES.md.
- Very specific: line 109
Run node scripts/sync-rule-bookkeeping.js (add --validators=N if you registered a new validator).
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Memory: agnix
Linter for agent configurations. Validates Skills, Hooks, MCP, Memory, Plugins.
Repository: https://github.com/agent-sh/agnix
Rules
knowledge-base/rules.jsonis the source of truth for rules. A new rule goes into bothrules.jsonandknowledge-base/VALIDATION-RULES.md; CI parity tests fail when they drift. See "Adding a rule" below.- Output is plain text: no emojis, no ASCII art.
- Certainty levels: HIGH (>95%), MEDIUM (75-95%), LOW (<75%).
- Release binaries are compiled with LTO and stripped.
- Track work in GitHub issues.
- A feature or fix is done when a test covers it.
- Long-form docs live in
README.md,SPEC.mdandknowledge-base/(especiallyknowledge-base/VALIDATION-RULES.md). This file holds agent instructions only. Create no summary, plan or scratch docs unless the task needs them. - Wait for the
revuto-reviewcheck to pass before merging: it is the most thorough review. If revuto is capped or unavailable, do not wait; a self-review is enough, noted in the PR body. - Address every review comment before merging, minor ones included. If you disagree, reply in the review thread.
- In prose, write a spaced single dash (
-), not--. CLI flags like--helpor--fixare fine.
Architecture
Crate dependency graph
agnix-rules (data-only, generated from rules.json)
↓
agnix-core (validation engine)
↓
├── agnix-cli (command-line interface)
├── agnix-lsp (language server protocol)
├── agnix-mcp (MCP server)
└── agnix-wasm (WebAssembly bindings)Project layout
crates/
├── agnix-rules/ # Rule definitions (build-time generated)
├── agnix-core/ # Core: parsers, schemas, validators, diagnostics
├── agnix-cli/ # CLI binary (clap)
├── agnix-lsp/ # LSP server (tower-lsp, tokio)
├── agnix-mcp/ # MCP server (rmcp)
└── agnix-wasm/ # WASM bindings for browser/runtime integrations
editors/
├── neovim/ # Neovim plugin
├── vscode/ # VS Code extension
├── jetbrains/ # JetBrains IDE plugin
└── zed/ # Zed extension
knowledge-base/ # 763 rules, 75+ sources, rules.json
tests/fixtures/ # Test cases by categoryagnix-core modules
parsers/: frontmatter, JSON and Markdown parsing.schemas/: types for skill, hooks, agent, MCP, Cline, Roo and other tool configs.rules/: validators implementing theValidatortrait (rules/mod.rs).config.rs,config/builder.rs:LintConfigandLintConfigBuilder(fields are private; build withLintConfig::builder()...build()?),ConfigError,ToolVersions,SpecRevisions.diagnostics.rs:Diagnostic,Fix,DiagnosticLevel,ValidationOutcome,LintError(=CoreError),LintResult.file_types/:FileType,detect_file_type(), and theFileTypeDetectortrait withFileTypeDetectorChain(chain of responsibility;with_builtin(),prepend,push).registry.rs:ValidatorRegistryand its builder,ValidatorProviderfor external validators. Validators areSend + Sync + 'staticbecause the registry caches one instance each and shares them across threads.pipeline.rs:validate_project(),validate_file()returningLintResult<ValidationOutcome>.fixes.rs(auto-fix engine),eval.rs(rule precision/recall/F1),file_utils.rs(safe I/O: symlink rejection, size limits),fs.rs(FileSystemtrait withRealFileSystemandMockFileSystem).
build_unchecked() (cfg(test) or the __internal_unchecked feature) and the __internal module are for tests, fuzz targets and benches only; agnix_core::normalize_line_endings is stable at the crate root. The public API surface and its stability rules are in CONTRIBUTING.md.
Validation flow
CLI args → LintConfig → validate_project()
→ Directory walk (ignore crate, respects .gitignore)
→ detect_file_type() per file (path-based, no I/O)
→ Parallel validation (rayon)
→ Validators from registry run sequentially per file
→ Project-level checks (AGM-006, XP-004/005/006, VER-001) via rules/project_level
→ Output (text/JSON/SARIF)LSP
The backend holds Arc<ArcSwap<LintConfig>> for lock-free config reads, an immutable Arc<ValidatorRegistry> and a document cache. Validation runs in spawn_blocking() because it is CPU-bound and sync. Handled events: did_open, did_change, did_save, did_close, did_change_configuration, codeAction, hover.
Commands
cargo check # Compile check
cargo test # Tests and doc tests
cargo nextest run --workspace # Optional process-per-test runner
cargo build --release # Build binaries
cargo run --bin agnix -- . # Run CLI
cargo run --bin agnix-lsp # Run LSP server
cargo run --bin agnix-mcp # Run MCP server
bash scripts/preflight.sh # Quick local checks; --full before pushingRun the tests a change touches, scoped to a crate or integration binary, for example cargo test -p agnix-core --test fix_integration. Cargo is the local and CI default. Nextest is optional, uses two test processes by default (raise --test-threads only within the machine's CPU budget), and skips doc tests, so pair it with cargo test --workspace --doc. Dev and test builds keep line-tables-only debug info for file and line backtraces.
CI runs lint and the workspace merge contracts on owner PRs and pushes to main; owner PRs run scoped tests locally before pushing. External contributors' PRs, the daily run, manual runs, PRs labeled full-suite and release validation run the full suite.
Rules reference
763 rules defined in knowledge-base/rules.json (source of truth), 763 validation rules across 66 validators. Human-readable docs: knowledge-base/VALIDATION-RULES.md. IDs are [CATEGORY]-[NUMBER] (AS-004, CC-HK-001).
Adding a rule
- Add it to both
rules.jsonandVALIDATION-RULES.md. Each rule inrules.jsonneeds completeevidencemetadata (source_type,source_urls,verified_on,applies_to,normative_level,tests); the schema is inVALIDATION-RULES.md. - Run
node scripts/sync-rule-bookkeeping.js(add--validators=Nif you registered a new validator). It updatestotal_rulesandlast_updatedinrules.json, the count phrases in AGENTS.md and README.md, thecrates/agnix-rules/rules.jsonmirror and the website docs. CI runs it with--check.
Tool support tiers
Tiers set maintenance priority. Coverage is tracked separately: eleven tools on the active roster have validators; two entries below are planned. See knowledge-base/RESEARCH-TRACKING.md and .github/tool-release-baselines.json for coverage and monitoring.
- S (test always): Claude Code, Codex CLI
- A (test on major changes): Kiro CLI, OpenCode, Pi
- B (test on significant changes): Antigravity CLI, Grok Code
- C (community-reported maintenance): Muse Code, Kimi Code (validators pending)
- D (nice-to-have maintenance): GitHub Copilot, Cline, Cursor, legacy Gemini CLI
Dropped from active support: Continue, Aider, Amazon Q, Tabnine, Codeium, Devin, Windsurf and Amp. Do not poll their releases or prioritize their validation. Existing Amp and Windsurf/Devin checks remain for compatibility. Kiro's .amazonq fallback is Kiro compatibility only.
Removed: Roo Code (discontinued 2026-05-15; validators removed in 0.59.0).
The roster is owner-selected. A tier assignment does not establish validation coverage. Pi, Antigravity CLI, Grok Code and Kimi Code releases are monitored automatically. Muse Code remains manually monitored. Agent Skills and MCP standards remain monitored independently.
Validation scope
agnix is CPU-only Rust and WASM tooling. Pick the checks the change touches from scripts/preflight.sh: format, lint, tests, rule bookkeeping and parity, packaging. A change that adds GPU, runtime or model behavior, or claims about it, needs native qualification on that hardware before any support claim.
References
SPEC.md: technical referenceknowledge-base/INDEX.md: knowledge navigation- https://agentskills.io
- https://modelcontextprotocol.io
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

