Skip to main content

Cyberjury

CI PyPI Python License Downloads

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 a changed line. It skips code outside the diff, so it cannot replace a repository review.
  • Repository review checks every source file in the repository and anchors each finding to the line that needs fixing.

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 CYBERJURY_API_KEY, because the example sets every other setting to its default. When you change CYBERJURY_PROVIDER, also change CYBERJURY_BASE_URL and CYBERJURY_MODEL. Clear CYBERJURY_STATE_DIR to follow XDG_DATA_HOME.

Setting Meaning
CYBERJURY_PROVIDER Model provider, openai or anthropic, default openai.
CYBERJURY_API_KEY Provider API key, required.
CYBERJURY_BASE_URL Provider endpoint, default https://api.openai.com/v1 for OpenAI and https://api.anthropic.com for Anthropic.
CYBERJURY_MODEL Model name, default gpt-6.1-sol for OpenAI and claude-opus-5-5 for Anthropic.
CYBERJURY_CONCURRENCY Number of model requests run in parallel, default 8.
CYBERJURY_STATE_DIR Review state directory, default ~/.local/share/cyberjury, or $XDG_DATA_HOME/cyberjury when XDG_DATA_HOME is set.

Review

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

A repository review of a Git work tree, or of a directory inside one, 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. Running a repository review again 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, which groups findings that one code change fixes into issues.

When a review ends, it prints its records to stdout as cyberjury.record/v1 JSON, with the attempt record last. Each record has a status of ok, incomplete, failed, or interrupted. A failed or incomplete record also has an error whose code is config, input, busy, model, or internal.

Exit code Meaning
0 The review finished ok.
1 The review ended incomplete or failed with a busy or model error. Running it again can finish it.
2 The review failed with a config or input error, or its arguments were invalid. Running it again works only after the cause is fixed.
3 The review failed with an internal error. Running it again does not fix it.
130 The review was interrupted by SIGINT, such as Ctrl+C.
143 The review was interrupted by SIGTERM.

Metadata

Release files for cyberjury 0.6.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.6.0
File Size Uploaded Provenance Actions
cyberjury-0.6.0.tar.gz 130.9 kB With provenance Details for cyberjury-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 285.2 kB

Release files / cyberjury-0.6.0.tar.gz

Download URL cyberjury-0.6.0.tar.gz
Size 130.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a382820c035b69781c4cb023b281215d3ac46e3155804b6662fffc67e75991b2
BLAKE2b-256 checksum
How to use checksums
758ac4081b9187df9d75bd9c820131e3b900e2d87c923d7b49f738f3f2d92bd9
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 23, 2026.

Transparency log

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

Download URL cyberjury-0.6.0-py3-none-any.whl
Size 154.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
737b64daf49a8d974d723b456fb0e27ddbb5c4ff2842eb01e45dce39647d3dff
BLAKE2b-256 checksum
How to use checksums
05052bfefb9216727de8289be346018ae4991eae70ecee6454e74fd5e3c88b0d
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 23, 2026.

Transparency log

Security for cyberjury 0.6.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cyberjury-0.6.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 23, 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