Skip to main content

Cyberjury

AI-assisted security review for code diffs and repositories.

  • Diff review checks the changes in a Git range, with the repository as context, and anchors each finding to the changed line it concerns.
  • Repository review checks a repository in focused units and groups the findings into issues. Code outside a diff is not covered by a diff review, so a clean diff review is no substitute for it.

Structural code analysis covers C, C++, Go, Java, JavaScript, Python, Rust, Solidity, TypeScript, and TSX. Files in other languages are still reviewed from their raw source.

Install

pip install cyberjury

Configure

All settings come from a .env file in the working directory, and an exported shell value overrides the file. Copy .env.example to .env and fill in what you use.

Setting Meaning
CYBERJURY_PROVIDER Model provider, openai or anthropic, default openai.
CYBERJURY_API_KEY Provider API key, required.
CYBERJURY_BASE_URL Provider endpoint, set it to use a gateway or proxy, default https://api.openai.com/v1 for OpenAI and https://api.anthropic.com for Anthropic.
CYBERJURY_MODEL Model name, default gpt-6-astra for OpenAI and claude-fable-5-1 for Anthropic.
CYBERJURY_CONCURRENCY Number of review units or issue link judgments run in parallel, default 8.
CYBERJURY_STATE_DIR Review state directory, each review under reviews/<review-id>, default $XDG_DATA_HOME/cyberjury, or ~/.local/share/cyberjury when XDG_DATA_HOME is unset.

Review

cyberjury review diff origin/main...HEAD /path/to/app
cyberjury review repository /path/to/repo

A repository review of a Git work tree covers the tracked files and the untracked files Git does not ignore, but not the contents of Git submodules. A plain directory is covered completely. Re-running a repository review resumes open work. Use --fresh to start a new review session.

Output

A review stores its results in reviews/<review-id> under CYBERJURY_STATE_DIR. The findings of each attempt are in attempts/<attempt>/findings.json, grouped into issues of findings that one code change fixes.

Each stage, review unit, issue link judgment, and attempt produces a cyberjury.record/v1 JSON record with a status (ok, incomplete, failed, interrupted, or running) and, when it is failed or incomplete, an error with a code (config, input, busy, model, or internal). The review prints progress to stderr as records are written, and prints the stage records and then the attempt record to stdout when it ends.

Exit Code Meaning
0 The review finished ok.
1 The review ended incomplete or failed busy. Running it again can finish it.
2 The review failed with a config or input error, or its arguments were invalid. Fix the cause, such as a key, permission, or model the provider rejected, before running it again.
3 The review failed with an internal error. Running it again does not fix it.
130 The review was interrupted by the operator.
143 The review was interrupted by SIGTERM.

Metadata

Release files for cyberjury 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cyberjury 0.4.0
File Size Uploaded Provenance Actions
cyberjury-0.4.0.tar.gz 128.0 kB With provenance Details for cyberjury-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cyberjury 0.4.0
File Interpreter ABI Platform Actions
cyberjury-0.4.0-py3-none-any.whl Python 3 none any Details for cyberjury-0.4.0-py3-none-any.whl

Total release size: 279.9 kB

Release files / cyberjury-0.4.0.tar.gz

Download URL cyberjury-0.4.0.tar.gz
Size 128.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7cd9b5ba7391ff3a033cdc74c19f478b43b3344053a6dc5e05a618193f699f4f
BLAKE2b-256 checksum
How to use checksums
b0a2fc260aaa266ea215ceaac2935de524bdb215ccc7012f6b0275979f71dc7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / cyberjury-0.4.0-py3-none-any.whl

Download URL cyberjury-0.4.0-py3-none-any.whl
Size 152.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6e033a245a4a02284b17c86f691267de994e444671530a40335604e3258eb2e
BLAKE2b-256 checksum
How to use checksums
bc41ae41de47f530f51122f409712543d3c88a5f5a3f0a07f609377d97ce381f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for cyberjury 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cyberjury-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page