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.8.0
        with:
          sarif: true

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

  • secrets written into source, eval on input, and any casts on data from outside;
  • type errors silenced with @ts-ignore, and exceptions caught and dropped;
  • fixed sleeps in end-to-end tests, images without alt text, and 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 123 rules: brevio-core scan checks 12 scanned rules, and the other 111 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.8.0, Python 3.10 or newer, no runtime dependencies. In a repository, scan the lines your change adds:

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

Or install it, then run it the same way:

pip install brevio-core==0.8.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

Use it from your agent

Three ways, all local: no model call and no API key.

Wire the scan into your coding agents. In the project folder:

brevio-core hook install

It finds the coding agents set up in the folder or on the machine and attaches the scan to each, so every edit is checked against the rules. It also installs the agent skill (skills/brevio-core/SKILL.md), which tells the agent when to run the commands and how to read a finding. It replaces any older skill text and a second run changes nothing.

Run it as an MCP server. Add this to the mcpServers block of any client that supports MCP servers over stdio (the settings file differs by client, the shape does not):

{
  "mcpServers": {
    "brevio-core": {
      "command": "brevio-core",
      "args": ["mcp"]
    }
  }
}

Without a global install, use "command": "uvx" and "args": ["brevio-core@0.8.0", "mcp"]. Start the client in the project folder: the server reads that folder and nothing else. The tools are scan (paths, or a diff base), explain (a rule id, returns the rule page), list_rules and learn (compiles a fixed defect into a guard).

Learn from a fix. brevio-core learn turns the last fix into a guard. See docs/agent-tools.md for learn, hook install, gain, add and mcp.

What ESLint, Biome and typescript-eslint don't cover

Linters check how code is written: syntax, types and style. Several mistakes agents make are valid code to them, and are what these rules look for. From the rule pages:

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: compute the repository's AI-Code Readiness Score and letter grade (--badge, --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.8.0 runs exactly brevio-core 0.8.0. To follow every 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.8.0
    hooks:
      - id: brevio-core

Rules

Each 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. Support is best effort, with a first response within a week (SUPPORT.md).

Project

Made by Brevio.

Metadata

Release files for brevio-core 0.8.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.8.0
File Size Uploaded Provenance Actions
brevio_core-0.8.0.tar.gz 95.7 kB With provenance Details for brevio_core-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 199.8 kB

Release files / brevio_core-0.8.0.tar.gz

Download URL brevio_core-0.8.0.tar.gz
Size 95.7 kB
Tags Source
SHA-256 checksum
How to use checksums
55c40ab23f5d28de0c8b6e43e86ec705e2afc374ef06d30e4332fb244e9e4153
BLAKE2b-256 checksum
How to use checksums
331fb056b803367b9d5a5799ca56217f94d51669a4600cce483f679696acba74
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 7, 2026.

Transparency log

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

Download URL brevio_core-0.8.0-py3-none-any.whl
Size 104.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc784e174b5d3e63a9cded1ffa5996368613c7cd1fadf5b53cda21a46cf6fd89
BLAKE2b-256 checksum
How to use checksums
665b6d3df6773e374b84ee3d26874713451766dfd1a1cd4075cf61ef952eb613
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 7, 2026.

Transparency log

Security for brevio-core 0.8.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.8.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 7, 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