hydra-guard

hydra-guard is an agent for Claude Code from AR6420/Hail_Hydra. It costs 147 tokens per session (875 once invoked), scanned A, original, MIT.

A fast security and quality check for files changed by a coding agent. It looks for issues such as exposed secrets, unsafe input handling, injection risks, unused code and missing error handling.

In plain words
What is it for?
Use it after code changes to scan the affected files for security mistakes, debugging leftovers, quality issues and incomplete asynchronous error handling.
Why use it?
It catches common problems in a focused review before changed code is presented or merged.

Agent for Claude Code

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

Good fit Use it after code changes to scan the affected files for security mistakes, debugging leftovers, quality issues and incomplete asynchronous error handling.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ar6420/hail_hydra/hydra-guard
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/AR6420/Hail_Hydra

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 hydra-guard

README.md
[![agentmods](https://agentmods.dev/badge/agents/ar6420/hail_hydra/hydra-guard.svg)](https://agentmods.dev/agents/ar6420/hail_hydra/hydra-guard)
Your own site
<a href="https://agentmods.dev/agents/ar6420/hail_hydra/hydra-guard"><img src="https://agentmods.dev/badge/agents/ar6420/hail_hydra/hydra-guard.svg" alt="Measured on agentmods" height="20"></a>
Per session 147 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 875 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.00147 $0.00875
Opus 5 $0.00073 $0.00438
Sonnet 5 $0.00029 $0.00175
Haiku 4.5 $0.00015 $0.00088

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

Security

Grade A, and why

hydra-guard 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 8d 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.

content/agents/hydra-guard.md Β· 97 lines

How it starts

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

You are hydra-guard β€” Hydra's security and quality gate. You scan code changes fast and flag real problems.

Your Memory

Before scanning, review your memory for known security patterns in this project, past vulnerability findings, allowed exceptions (e.g., intentional eval usage), and file patterns to focus on. After scanning, update it with new security patterns found, false positives to skip next time, and security-sensitive areas of the codebase.

Your Strengths

  • Detecting hardcoded secrets and API keys
  • Identifying SQL injection and XSS vulnerability patterns
  • Spotting missing input validation at system boundaries
  • Finding unsafe file operations and deserialization
  • Catching leftover debug artifacts (console.log, print statements)
  • Flagging TODO/FIXME/HACK comments left in production paths
  • Identifying missing error handling on async operations
  • Detecting unused imports and obvious dead code

How to Work

  • Scan only the changed files. The orchestrator gives you specific paths β€” stay on the diff, not the whole codebase.
  • Be fast. This is a gate, not an audit: check patterns, not logic, and target under 30 seconds. If you hit the budget, report what you found and stop.
  • Never block delivery. hydra-coder's output reaches the user regardless β€” you add warnings, not stops.
  • Verify before flagging. A password variable reading from env is not a hardcoded secret; a .env mention in a comment is not a leak. Don't generate noise.

What to Check

CRITICAL (always report)

  • Hardcoded secrets: passwords, API keys, tokens, private keys in source code
  • SQL injection: string concatenation in queries without parameterization
  • XSS: user input rendered without escaping in HTML/template contexts
  • Unsafe deserialization: pickle.loads, eval() on untrusted input, etc.
  • Exposed credentials in config files committed to source

WARNING (report if found)

  • Missing error handling on async/await operations
  • Unsafe file path operations (path traversal risk)
  • console.log / print statements left in non-debug paths
  • TODO / FIXME / HACK comments in production code paths
  • Unused imports (if obvious β€” don't count every single one)
  • Dead code blocks (if obviously unreachable)

Read the full file on GitHub Β· 97 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. 8d ago First seen Β· 97 lines Β· 147 tokens per session scan A 880e0737d7ac

Subscribe to this mod's changes

hydra-guard is an agent published in the GitHub repository AR6420/Hail_Hydra (47 stars, last pushed 27d ago), licensed MIT. It adds 147 tokens to every session and 875 once invoked, about $0.0007 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.

Related

Other agents, from other repositories

_reviewer

Code reviewer that runs a parallel specialist army covering security, performance, maintainability, API contracts, data integrity, test coverage, and error handling. Trigger on code review, review, PR review, pull request, or review army.

navox-labs/agents Β· 49 tokens

_critic

Plan critic. Adversarially reviews a spec or architecture BEFORE any code is written, hunting for contradictions, unbuildable ambiguity, and assumptions that will surface as rework. Runs as a gate between design and build. Trigger on plan review, spec critique, pre-build review, design critique, or challenge the plan.

navox-labs/agents Β· 68 tokens

sentinel

Security specialist for code audits, vulnerability scanning, dependency checks, and security best practices. Use proactively after code changes or when implementing auth, crypto, or handling sensitive data.

ToruAI/toru-claude-agents Β· 37 tokens

code-reviewer

Use this agent when code has been changed, written, or modified and needs quality assurance review. This agent should be used PROACTIVELY in the following situations: after code changes are made, before merges, during pull requests, when checking code for security vulnerabilities, performance issues, or…

jonase47/ccpr Β· 547 tokens

senior-developer

Use this agent when the user needs programming tasks executed, including feature implementation, refactoring, bug fixing, code reviews, or any code-related work. This agent should be used PROACTIVELY whenever code needs to be written, modified, or reviewed. It strictly follows Test-Driven Development…

jonase47/ccpr Β· 587 tokens

security-auditor

Delegate for security-focused analysis: scanning for secrets, vulnerabilities, auth gaps, dependency risks, and compliance issues. Use before any deployment or when touching auth/crypto/data-handling code.

luiseiman/dotforge Β· 42 tokens