Multiple agents. One verdict. Zero blind spots.
Project description
CrossFire is an AI-powered multi-agent security review tool. It runs three independent AI agents, forces them to debate every finding under adversarial cross-examination, and only surfaces what survives. False positives get eliminated before they reach you.
Why CrossFire
- No SAST, no rules engine — agents read and reason, not pattern-match
- Three pipelines — whole-repo audit, GitHub PR diff review, or continuous baseline-aware delta scanning
- Purpose-aware — intent inference understands what the repo is supposed to do, so intended capabilities aren't flagged as bugs
- Independent reviews — agents never see each other's output; blind spots from one are caught by another
- Adversarial debate — every finding is stress-tested before it reaches you
- Live terminal UI — animated phase-by-phase status, per-agent spinners, debate chat viewer
Installation
Requires Python 3.11+.
pip install xfire
Or from source:
git clone https://github.com/Har1sh-k/xfire
cd xfire
pip install -e ".[dev]"
You need at least one agent CLI or API key:
| Agent | CLI | API key env |
|---|---|---|
| Claude | claude.ai/code | ANTHROPIC_API_KEY |
| Codex | github.com/openai/codex | OPENAI_API_KEY |
| Gemini | ai.google.dev | GOOGLE_API_KEY |
Quick Start
# Initialize config
xfire init
# Verify agents are reachable
xfire test-llm
# Audit the whole repo
xfire code-review .
# Review a GitHub PR
xfire analyze-pr --repo owner/repo --pr 123 --github-token $GITHUB_TOKEN
# Baseline-aware delta scan
xfire scan . --since-last-scan
# Stream live debate chat as each agent responds
xfire code-review . --debate
# Full debug trace + markdown log
xfire code-review . --debug
# Play synthetic UI demo (no LLM calls — all 3 debate scenarios)
xfire demo --ui
# Run one specific UI demo scenario
xfire demo --ui --scenario both_accept
Configuration
Run xfire init to generate .xfire/config.yaml. The key settings:
agents:
claude:
enabled: true
mode: cli # cli | api
codex:
enabled: true
mode: cli
gemini:
enabled: true
mode: cli
severity_gate:
fail_on: high # minimum severity to fail CI
min_confidence: 0.7
Full config reference: docs/architecture.md
CI/CD Integration
Stateless PR Review
- name: xfire security review
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
pip install xfire
xfire analyze-pr \
--repo ${{ github.repository }} \
--pr ${{ github.event.pull_request.number }} \
--github-token ${{ secrets.GITHUB_TOKEN }} \
--format sarif --output xfire.sarif --post-comment
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: xfire.sarif
Baseline-Aware Scan (recommended for main)
- name: Restore xfire baseline
uses: actions/cache@v4
with:
path: .xfire/baseline/
key: xfire-baseline-${{ github.ref_name }}
- name: xfire baseline scan
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
pip install xfire
xfire scan . --since-last-scan --format sarif --output xfire.sarif
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: xfire.sarif
- name: Save xfire baseline
uses: actions/cache/save@v4
with:
path: .xfire/baseline/
key: xfire-baseline-${{ github.ref_name }}
Development
make setup # install with dev dependencies
make test # run all tests
make test-unit # unit tests only
make lint # lint + type-check
make format # auto-fix formatting
make demo # run synthetic UI demo (no LLM calls)
For architecture details, pipeline diagrams, component inventory, and data models see docs/architecture.md.
License
GNU General Public License v3.0 — see LICENSE for details.
Built with structured adversarial reasoning. No rules engines. No regex scanners.
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 xfire-0.1.2.tar.gz.
File metadata
- Download URL: xfire-0.1.2.tar.gz
- Upload date:
- Size: 210.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23c1e39c9087146a94b5e66318681cbaeb88dc53206dc982e9a17b3bd1b61659
|
|
| MD5 |
2c6629f2487e0c5175685df857844ea6
|
|
| BLAKE2b-256 |
7b4f3986c797ca0cce63b8732e3df870e9d577aa011450b2a99d192b4e32365e
|
File details
Details for the file xfire-0.1.2-py3-none-any.whl.
File metadata
- Download URL: xfire-0.1.2-py3-none-any.whl
- Upload date:
- Size: 162.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4745b92a8a6b7ae9ca5eabcd7441f91f5ba6468ee5f1fbd35c48668b36416b5b
|
|
| MD5 |
fddf216897a8a312782354c6b6c94e33
|
|
| BLAKE2b-256 |
765357141f7d56d92859006fc7a7503c26e1fd86d5a60d60d764be6a0c04421d
|