Skip to main content

brevio-core

Catches the mistakes coding agents repeat before they merge: a pull-request gate with no model call and no API key.

Save this as .github/workflows/brevio-core.yml:

name: brevio-core
on:
  pull_request:
  merge_group:
permissions:
  contents: read
  pull-requests: write     # the comment on the pull request
  security-events: write   # the upload to code scanning
jobs:
  brevio-core:
    name: brevio-core
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
        with:
          fetch-depth: 0
      - uses: Brevio-Ventures/brevio-core@v0.11.0
        with:
          sarif: true

It catches what review keeps finding in agent-written code:

  • secrets written into source, eval on a non-literal in JavaScript, TypeScript and Python, and any casts in TypeScript;
  • type errors silenced with @ts-ignore, and exceptions dropped by an empty catch (JavaScript, TypeScript) or except: pass (Python);
  • waitForTimeout sleeps in end-to-end tests, images without alt text, and div click handlers a keyboard cannot reach.

No API key, no model. scan, the agent hook and the MCP server use no network and send nothing.

These are line-level pattern checks on the lines a change adds, not AST or dataflow analysis. The catalogue has 129 rules: brevio-core scan checks 14 scanned rules, and the other 115 are documented rules, written down for review and for agents, with no scanner in this package yet. Every finding links to its rule page: what it catches, why, a bad and a good example.

Run it without installing

Version 0.11.0, Python 3.10 or newer, no runtime dependencies. In a repository, scan the lines your change adds:

uvx brevio-core@0.11.0 scan --diff
uvx brevio-core@0.11.0 score
pipx run --spec brevio-core==0.11.0 brevio-core scan --diff

Or install it, then run it the same way:

pip install brevio-core==0.11.0
brevio-core scan --diff

Or download brevio-core.pyz from the GitHub release, check where it was built, and run it with any python3:

gh attestation verify brevio-core.pyz --repo Brevio-Ventures/brevio-core
python3 brevio-core.pyz scan --diff

To scan whole files instead, name them, or nothing for the current folder:

brevio-core scan

Compared with ESLint, Semgrep and CodeQL

brevio-core complements them; keep them.

  • Where they win. They parse the code, so they see types, the syntax tree and, in Semgrep and CodeQL, data flowing across lines and files. They have far more rules and editor integration. brevio-core matches patterns line by line on the lines you add, so it misses a mistake spread over several lines and can flag a line that is fine in context.
  • What this adds. Rules picked from the mistakes coding agents repeat, an agent hook that scans after each edit, an MCP server an agent can call, learn to turn one fix into a local guard, and a page per rule written for people and agents. Nothing to configure and no dependency.

Use

brevio-core scan src/                 # files or folders
brevio-core scan --diff origin/main   # only the lines added against a base
brevio-core scan --diff --sarif out.sarif

The exit code is 0 when nothing is found, 1 when there are findings and 2 for a usage error.

Additional commands for local workflows:

  • brevio-core score (preview): count the findings of a scan by rule and say what to run next (--markdown, --json).
  • brevio-core check: pre-PR flight check (rules, test custody, test imports, conflict markers and complexity).
  • brevio-core brief: file-scoped rules & trap memory briefing before agent edits.
  • brevio-core init --personal: personal stealth mode via .git/info/exclude without touching tracked files.
  • brevio-core aeo --generate-llms: score built HTML pages and generate missing llms.txt.

GitHub Action

The workflow at the top runs the scan on the lines a pull request adds. It writes the report to the job summary and marks each finding on the changed file. With pull-requests: write it keeps one comment on the pull request up to date while there are findings, and marks it resolved once they are gone; a pull request from a fork gets the summary only. With sarif: true and security-events: write it uploads the findings to code scanning. It needs no secret and no API key. The tag v0.11.0 runs exactly brevio-core 0.11.0. To follow the latest release instead, write uses: Brevio-Ventures/brevio-core@v0; to pin a commit, see SECURITY-REVIEW.md. It runs on pull_request, merge_group and push, and refuses any other event.

pre-commit

repos:
  - repo: https://github.com/Brevio-Ventures/brevio-core
    rev: v0.11.0
    hooks:
      - id: brevio-core

Rules

A rule has a page under docs/rules: what it catches, why, and what to write instead.

What it does not claim

This release publishes no benchmark. When a reproducible one exists, its method and data will be published with the number.

Questions and support

Ask questions and propose rules in GitHub Discussions; report bugs and false positives as issues, with the forms; a verdict on the precision page has a form of its own. Support is best effort, with a first response within a week (SUPPORT.md).

Project

Made by Brevio.

Metadata

Release files for brevio-core 0.11.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 brevio-core 0.11.0
File Size Uploaded Provenance Actions
brevio_core-0.11.0.tar.gz 94.9 kB With provenance Details for brevio_core-0.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brevio-core 0.11.0
File Interpreter ABI Platform Actions
brevio_core-0.11.0-py3-none-any.whl Python 3 none any Details for brevio_core-0.11.0-py3-none-any.whl

Total release size: 196.5 kB

Release files / brevio_core-0.11.0.tar.gz

Download URL brevio_core-0.11.0.tar.gz
Size 94.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2c55148e00f28d935108546820c60ac17131fab93a03bf6a656486ca42dcf0a1
BLAKE2b-256 checksum
How to use checksums
61b246eec2c3a6f184329861dc860741fd29ac44fe33da6c6a73d4851128ead2
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 14, 2026.

Transparency log

Release files / brevio_core-0.11.0-py3-none-any.whl

Download URL brevio_core-0.11.0-py3-none-any.whl
Size 101.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
619b71b96cac8cea7615ef5f12c1b83e8606d351b831d87b9cf054e498b29ed2
BLAKE2b-256 checksum
How to use checksums
9fdd8d103dbca204c11ca49bca18c98f277d581fb93753cb75c4baf776e6ce63
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 14, 2026.

Transparency log

Security for brevio-core 0.11.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 brevio_core-0.11.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 14, 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