In Plain English:Think of brevio-core as a checklist that reads your diff. It doesn't replace your compiler or linter; it looks for the specific traps that coding agents fall into.
brevio-core is a Python package with no runtime dependencies (standard library only, Python 3.10 or newer). It documents 129 rules. `brevio-core scan` checks 14 of them on the lines a change adds, and `scan --surface` checks 9 more. The rules are line-level pattern checks, not AST or dataflow analysis, and they are TypeScript and React first. The Brevio Harness is a separate commercial product that runs on your own server; it is not needed to use brevio-core.
Catching a Silent Type Cast
Flagged (Before)Exit 1
// src/users.ts: an agent silences the type checker with 'as any'
export function parseUserData(raw: unknown): UserPayload {
return raw as any;
}Fixed (After)Exit 0
// Validate the data instead of casting it
export function parseUserData(raw: unknown): UserPayload {
return UserPayloadSchema.parse(raw);
}Terminal Output:
brevio-core scan src/users.ts
src/users.ts:2: [R9.1] Untyped escape hatch `as any` or `z.any()` in production source
brevio-core: 1 finding(s) in 1 file(s), 0 baselined, 0 silenced