AI security review agent for code, plans, and infrastructure
Project description
hiro-agent
AI security review agent for code, plans, and infrastructure. Integrates with Claude Code, Cursor, VSCode Copilot, and Codex CLI to enforce security reviews before commits and plan finalization.
Install
pip install hiro-agent
Quick Start
# Set up hooks for your AI coding tools
hiro setup
# Review code changes
git diff | hiro review-code
# Review an implementation plan
cat plan.md | hiro review-plan
# Review infrastructure configuration
hiro review-infra main.tf
Commands
| Command | Description |
|---|---|
hiro review-code |
Security review of code changes (stdin: git diff) |
hiro review-plan |
STRIDE threat model review of a plan (stdin) |
hiro review-infra |
IaC security review (file arg or stdin) |
hiro setup |
Auto-detect and configure all AI coding tools |
hiro verify |
Verify hook integrity against installed version |
Setup Options
hiro setup # Auto-detect all tools
hiro setup --claude-code # Claude Code only
hiro setup --cursor # Cursor only
hiro setup --vscode # VSCode Copilot only
hiro setup --codex # Codex CLI only
Configuration
Set HIRO_API_KEY to connect to the Hiro platform for organizational context (security policies, memories, org profile). Without it, reviews still run using your ANTHROPIC_API_KEY directly.
export HIRO_API_KEY=hiro_ak_... # Optional: Hiro platform context
export ANTHROPIC_API_KEY=sk-ant-... # Required if HIRO_API_KEY not set
How It Works
hiro setupinstalls hook scripts in.hiro/hooks/and configures your AI coding tool to call them- Hooks track file modifications and block commits until
hiro review-codehas run - Hooks track plan creation and block finalization until
hiro review-planhas run - Review agents use
claude-agent-sdkto spawn a Claude instance that performs the security review - When connected to Hiro (
HIRO_API_KEY), reviews are enriched with your org's security policy, accepted risks, and architecture context
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hiro_agent-0.1.0.tar.gz.
File metadata
- Download URL: hiro_agent-0.1.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc38f3984f30e2a9bbc418e3530ff565fd572ee7ee8b0a4eeba2e75076583944
|
|
| MD5 |
6f92c962a4a648be6572817fe67e4d33
|
|
| BLAKE2b-256 |
fa41447f4cda6bd9dd82b83e5f99c75364c21ff5dbb661a6dcb972ba828c1bba
|
File details
Details for the file hiro_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hiro_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2747f7dea1252d616a7bb558fee2c8ecb21a16636a6534391839ba2dca7f304
|
|
| MD5 |
42cb6cd8a0576253989de63bad15e41d
|
|
| BLAKE2b-256 |
a5445bf54fb0eb8a333a032fb428081602af5833c3aae446f20226a14d5dd032
|