audit-agent

audit-agent is a command for Claude Code from algolia/skills. It costs 24 tokens per session (708 once invoked), scanned A, original, MIT.

A read-only checker for an Algolia Agent Studio agent configuration. It looks for mismatches between the agent's instructions and tools, plus settings that could make evaluations expensive.

In plain words
What is it for?
Use it to inspect a live agent or saved configuration and produce a ranked list of fixes.
Why use it?
It finds problems before the agent runs paid tests. It does not call the agent, change files, or publish anything.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to inspect a live agent or saved configuration and produce a ranked list of fixes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/algolia/skills/audit-agent
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.

Clone the repo
git clone --depth 1 https://github.com/algolia/skills

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/algolia/skills/audit-agent"><img src="https://agentmods.dev/badge/commands/algolia/skills/audit-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 708 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.00024 $0.00708
Opus 5.5 $0.00010 $0.00283
Sonnet 5.5 $0.00005 $0.00142
Haiku 4.5 $0.00002 $0.00071

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

Security

Grade A, and why

audit-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 yesterday.

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.

commands/audit-agent.md · 59 lines

How it starts

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

Audit Agent (zero-cost static audit)

Read an Agent Studio agent's configuration and return a ranked fix list. No completions, no judge calls, no writes: this costs nothing and should run before any paid evaluation (/improve-agent).

Load the agent-studio-evaluations skill first. For CLI mechanics (install, auth, profiles) see the algobot-cli skill; for what a healthy agent looks like see the algolia-agent-studio skill (its Anti-Patterns section and references/agent-studio-guide.md).

Step 1: Get the config

Use a live agent id, or a config saved earlier (for example the output of algobot agents get <AGENT_ID>, or algobot agents export <AGENT_ID> --output agent.json). Do not paste credentials into the file.

Step 2: Run the audit

SKILL_DIR is the directory containing the agent-studio-evaluations skill's SKILL.md (wherever your agent installed it); the script lives in its scripts/ folder.

python3 "$SKILL_DIR/scripts/audit_agent.py" <AGENT_ID>
# or, offline:
python3 "$SKILL_DIR/scripts/audit_agent.py" agent.json

Run it with --help for options. The script only reads; it never patches or publishes.

Step 3: Read the findings

The script prints a ranked markdown fix list. Defect classes it checks:

Check Why it matters
Backticked identifiers in instructions that match no tools[].name / type or attached index name Observed: a prompt named a display tool that was not attached under that name, and a prompt told the agent to search an index or tool that was not attached. The agent cannot follow either instruction.
Search tool with null searchParameters Default retrieval is large (20 full records with highlight and snippet markup), which inflates input tokens and latency. See Integration Facts in the algolia-agent-studio guide.
max_iterations set to 0 0 falls back to the service default (observed); set an explicit value if you want a specific tool-loop budget.
Deprecated config keys Stale keys that agents scaffold 2.1.0 strips (for example enableAlgoliaMcp); remove them from saved configs.

Read the full file on GitHub · 59 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. yesterday First seen · 59 lines · 24 tokens per session scan A 1ce0e6d147b5

Subscribe to this mod's changes

audit-agent is a command published in the GitHub repository algolia/skills (12 stars, last pushed 2d ago), licensed MIT. It adds 24 tokens to every session and 708 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-10-27.