Skip to main content

AI security review agent for code, plans, and infrastructure

Project description

hiro-agent

AI security review agent for code, plans, and infrastructure.

What this project does

  • Reviews code diffs for security issues
  • Reviews implementation plans with threat-modeling prompts
  • Reviews infrastructure configs for security misconfigurations
  • Scans repositories with multi-skill, wave-based security investigations (experimental)

It integrates with Claude Code, Cursor, VSCode Copilot, and Codex CLI to enforce review workflows before commits and plan finalization.

Install

# Recommended (isolated environment, works on macOS/Linux)
pipx install hiro-agent

# Or with pip in a virtual environment
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

# Experimental: full-repo scan
hiro scan

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 scan Full-repo multi-skill security scan (experimental/beta)
hiro chat "<question>" Ask security questions about current repo
hiro setup Auto-detect and configure all AI coding tools
hiro upgrade Update installed hooks/configs to latest package behavior
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

More details: docs/configuration.md

How It Works

  1. hiro setup installs hook scripts in .hiro/hooks/ and configures your AI coding tool to call them
  2. Hooks track file modifications and block commits until hiro review-code has run
  3. Hooks track plan creation and block finalization until hiro review-plan has run
  4. Review agents use claude-agent-sdk to spawn a Claude instance that performs the security review
  5. When connected to Hiro (HIRO_API_KEY), reviews are enriched with your org's security policy, accepted risks, and architecture context

Stability

  • Primary/release-gated workflows: review-code, review-plan
  • Secondary workflow: review-infra
  • Experimental workflow: scan

Architecture and Methodology

  • Architecture: docs/architecture.md
  • Scan methodology: docs/scan-methodology.md
  • Troubleshooting: docs/troubleshooting.md
  • Development: docs/development.md

Contributing

  • Contribution guide: CONTRIBUTING.md
  • Code of conduct: CODE_OF_CONDUCT.md
  • Security reporting: SECURITY.md

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hiro_agent-0.1.3.tar.gz (141.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hiro_agent-0.1.3-py3-none-any.whl (83.5 kB view details)

Uploaded Python 3

File details

Details for the file hiro_agent-0.1.3.tar.gz.

File metadata

  • Download URL: hiro_agent-0.1.3.tar.gz
  • Upload date:
  • Size: 141.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hiro_agent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7de7f6dd3deec0acb7583fb3d19b0f203d83b4633bd79f15d45ff14883902ff1
MD5 272e465e70daf3b6a3bd04050eb8a033
BLAKE2b-256 caf58d09a27a9cfa3955de86827991a2251f52f13f5305548b0b4bf21768fe24

See more details on using hashes here.

Provenance

The following attestation bundles were made for hiro_agent-0.1.3.tar.gz:

Publisher: publish.yml on telophasehq/hiro-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hiro_agent-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: hiro_agent-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 83.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hiro_agent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fece2f756450d49327913c2e0cfcf1f812e9abc954701079257748d7382b89e9
MD5 c4672b3c30ade11ced5f4024050cd14d
BLAKE2b-256 c10f15637f5de398ea87c227d15d13e282de4bd72a21c304520faa7739008c2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hiro_agent-0.1.3-py3-none-any.whl:

Publisher: publish.yml on telophasehq/hiro-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page