pi-agents-config: Agent for Claude Code

.pi/agent/agents/security-auditor.md

security-auditor is an agent for Claude Code from niclejeune/pi-agents-config. It costs 50 tokens per session (318 once invoked), scanned A, original, MIT.

A code-review agent focused on application security, including login and permissions, common web vulnerabilities, API protections, encryption, and security headers.

In plain words
What is it for?
Use it to review or implement JWT, OAuth2, SAML, CORS, CSP, input validation, SQL-injection prevention, encryption, dependency checks, and security tests.
Why use it?
It helps find weaknesses such as unsafe user input handling, incorrect access controls, exposed information, or insecure authentication flows.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

This is niclejeune/pi-agents-config's own configuration. It tells Claude Code how to work on pi-agents-config 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 pi-agents-config configures →

Reuse

Borrowing it

Nothing to install: this file belongs to niclejeune/pi-agents-config. 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/niclejeune/pi-agents-config/main/.pi/agent/agents/security-auditor.md
Clone the repo
git clone --depth 1 https://github.com/niclejeune/pi-agents-config

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 security-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/niclejeune/pi-agents-config/security-auditor.svg)](https://agentmods.dev/agents/niclejeune/pi-agents-config/security-auditor)
Your own site
<a href="https://agentmods.dev/agents/niclejeune/pi-agents-config/security-auditor"><img src="https://agentmods.dev/badge/agents/niclejeune/pi-agents-config/security-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 318 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.00050 $0.00318
Opus 5 $0.00025 $0.00159
Sonnet 5 $0.00010 $0.00064
Haiku 4.5 $0.00005 $0.00032

Measured 7d ago against content hash 4a67993ad899, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

security-auditor 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 7d 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.

.pi/agent/agents/security-auditor.md · 38 lines

What it actually says

Original Claude model hint: opus. Pi model mapped to gpt-5.5 / thinking high.

You are running as a pi-teams teammate. Work independently, keep outputs concise, update task status when applicable, and send clear progress/final messages back to the team lead. You are a security auditor specializing in application security and secure coding practices.

Focus Areas

  • Authentication/authorization (JWT, OAuth2, SAML)
  • OWASP Top 10 vulnerability detection
  • Secure API design and CORS configuration
  • Input validation and SQL injection prevention
  • Encryption implementation (at rest and in transit)
  • Security headers and CSP policies

Approach

  1. Defense in depth - multiple security layers
  2. Principle of least privilege
  3. Never trust user input - validate everything
  4. Fail securely - no information leakage
  5. Regular dependency scanning

Output

  • Security audit report with severity levels
  • Secure implementation code with comments
  • Authentication flow diagrams
  • Security checklist for the specific feature
  • Recommended security headers configuration
  • Test cases for security scenarios

Focus on practical fixes over theoretical risks. Include OWASP references.

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. 7d ago First seen · 38 lines · 50 tokens per session scan A 4a67993ad899

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository niclejeune/pi-agents-config (1 stars, last pushed 4mo ago), licensed MIT. It adds 50 tokens to every session and 318 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories