Two commands and a setup step cover almost all of it. Then you hand the YAML to your AI assistant and ship.
brasscoders scanAnalyze your project. Writes .brass/*.yaml with the prioritized findings.
Useful flags:
--fast — skip privacy + content moderation passes--dev — source code only (skip tests, build artifacts)--code / --privacy / --content — narrow scope--offline — guarantee zero outbound network calls (default behavior; flag is for explicitness)brasscoders filterPipe an AI reviewer's JSON output through BrassCoders's noise-reduction. Returns the high-confidence findings.
CRITICAL findings always pass the filter. Style-only Pylint codes (C0301 line-too-long, etc.) are dropped. Per-file caps prevent any single file from dominating output.
BrassCoders is a command you invoke — there's no background daemon and no auto-run. Scanning on every commit is a setup step, and there are two places to wire it in:
brasscoders --offline scan on every push. Enforced on the server, so no developer can skip it.
Either way, with the --fail-on-critical flag BrassCoders exits non-zero (code 2) on critical/high findings — that is what fails the build or blocks the commit. Full setup for both mechanisms: Running BrassCoders on Every Commit.
After a scan, .brass/ contains:
| File | Purpose |
|---|---|
ai_instructions.yaml | Top-level summary; this is what you hand to Claude Code / Cursor |
detailed_analysis.yaml | Every finding, grouped by type |
file_intelligence.yaml | Per-file priorities |
security_report.yaml | Security-only view |
statistics.yaml | Aggregate metrics |
privacy_analysis.yaml | Privacy-only view (only if PII findings exist) |
Directory perms are 0700; YAML files are 0600 (POSIX). BrassCoders scans private source code, so the output is locked down.
Tell your AI assistant where the output lives — it can read the file itself. No copy-pasting required. .brass/ai_instructions.yaml is kept short on purpose so it fits comfortably in any context window.
A typical hand-off prompt:
.brass/ai_instructions.yaml in this project. Address the critical_issues in order. For each one, propose a diff and explain the fix."Claude Code, Cursor, and Continue all have filesystem access — they'll open the YAML, parse it, and work through the findings directly.