agnix-agent

agnix-agent is an agent for Claude Code from agent-sh/agnix. It costs 32 tokens per session (600 once invoked), scanned A, original, Apache-2.0.

An agent that checks configuration files with the agnix command-line tool. It can target configurations for tools such as Claude Code, Cursor, or Codex.

In plain words
What is it for?
Use it to validate agent configuration files, optionally enable automatic fixes, enforce strict warning handling, and choose a tool-specific rule set.
Why use it?
It finds configuration errors and warnings without requiring manual inspection of every rule.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the agnix plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it to validate agent configuration files, optionally enable automatic fixes, enforce strict warning handling, and choose a tool-specific rule set.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add agent-sh/agnix
Claude Code
/plugin install agnix

Made for: Claude Code.

Or install agnix, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

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 agnix-agent

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/agent-sh/agnix/agnix-agent"><img src="https://agentmods.dev/badge/agents/agent-sh/agnix/agnix-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 600 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00032 $0.00600
Opus 5.5 $0.00013 $0.00240
Sonnet 5.5 $0.00006 $0.00120
Haiku 4.5 $0.00003 $0.00060

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

Security

Grade A, and why

agnix-agent 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 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.

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.

plugin/agents/agnix-agent.md · 44 lines

What it actually says

Agnix Agent

Run the agnix CLI on the path the caller gives and return the results as structured data for /agnix.

The prompt carries Path (default .), Fix, Strict and Target (generic, claude-code, cursor, codex or kiro). Run the CLI yourself as described in the plugin's skills/agnix/SKILL.md (Read it if you need the reference; it is in ${CLAUDE_PLUGIN_ROOT}/skills/agnix/SKILL.md, or Glob for **/agnix/*/skills/agnix/SKILL.md). Do not load it with the Skill tool: the skill shares its name with the /agnix command, which would spawn this agent again.

  1. agnix --version. If agnix is missing, return the block with "success": false and an "error" naming the install commands (npm install -g agnix or cargo install agnix-cli).
  2. agnix [--strict] [--target <target>] <path>. Leave --target off for generic. The text output marks fixable diagnostics with [fixable] and ends with a count line.
  3. If Fix is true: agnix --fix [--target <target>] <path>, then run step 2 again so the result shows what remains. Modify files only in this step, since the caller asked for fixes only when Fix is true.

End your reply with:

=== AGNIX_RESULT ===
{
  "path": ".",
  "target": "generic",
  "filesChecked": N,
  "errors": N,
  "warnings": N,
  "fixable": N,
  "fixed": N,
  "diagnostics": [
    {"file": "SKILL.md", "line": 3, "level": "error", "rule": "AS-004", "message": "Invalid name", "fixable": true}
  ],
  "success": true
}
=== END_RESULT ===

success is false when agnix could not run; findings in the configs are not a failure. fixed is the drop in the fixable count across the fix, and 0 unless Fix was true. filesChecked comes from agnix --format json <path> (files_checked) if the text output does not give it.

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 · -13 lines · +9 tokens per session 5c58e05babf7
  2. 3mo ago First seen · 57 lines · 23 tokens per session scan A 68a069beb0be

Subscribe to this mod's changes

agnix-agent is an agent published in the GitHub repository agent-sh/agnix (503 stars, last pushed yesterday), licensed Apache-2.0. It adds 32 tokens to every session and 600 once invoked, about $0.0001 per session on Opus 5.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.

Related

agnix-agent compared with agents from other repositories

agnix-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agnix-agentagent-sh/agnixAgent503yesterdayApache-2.0A32Claude Code
incident-responderechoVic/blade-codeAgent18115d agoMITA36Claude Code
devops-troubleshooterechoVic/blade-codeAgent18115d agoMITA42Claude Code
performance-engineerechoVic/blade-codeAgent18115d agoMITA40Claude Code
silent-failure-hunterfuxicodex/FuxiAgent3.2k7d agononeA0Claude Code
patch-generatorfuxicodex/FuxiAgent3.2k7d agononeA37Claude Code
type-design-analyzerfuxicodex/FuxiAgent3.2k7d agononeA110Claude Code