{"slug": "feeding-brasscoders-output-to-any-ai-coding-assistant", "title": "Feeding BrassCoders Output to Any AI Coding Assistant", "summary": "BrassCoders writes a plain YAML file, .brass/ai_instructions.yaml, after each scan of a Python codebase, containing severity-sorted findings with file paths, line numbers, and remediation notes. The file is designed to be consumed by any AI coding assistant that can read local files, including Claude Code (which picks it up automatically), Cursor, and Continue (via @file references). This allows developers to triage findings in priority order across different editors without proprietary encoding or plugins.", "body_md": "BrassCoders writes `.brass/ai_instructions.yaml`\n\nafter every scan — plain YAML, no proprietary encoding, no plugin required. Claude Code picks it up automatically in the project directory. Cursor and Continue users can reference it as a context file. The format is the same in all three cases: severity-sorted findings, each with a file path, line number, and remediation note.\n\nOne scan, one file, three editors.\n\nBrassCoders scans your Python codebase, runs 12 static-analysis scanners, and writes a severity-sorted findings file to `.brass/ai_instructions.yaml`\n\n; the file is plain text with no encoding or proprietary structure, so any AI assistant that can read a local file can consume it as context.\n\nThe pattern is: scan before you open the editor, point the editor at the file, triage what the scanner found. The AI assistant reads the severity order, the line numbers, and the remediation notes — and starts at confirmation rather than discovery. This works across editors because the format doesn't depend on any editor-specific feature. It's a file. The editors read files.\n\nBrassCoders writes `.brass/ai_instructions.yaml`\n\nto the project directory, and Claude Code reads files in the project directory as context automatically; no additional configuration puts the findings in front of the model.\n\nRun `brasscoders --offline scan /path/to/project`\n\n, then open Claude Code in the same directory. The `.brass/ai_instructions.yaml`\n\nfile is available as project context for the session. Ask Claude Code to address the findings or triage them and it reads the file, identifies the critical-severity entries first, and works through them in severity order.\n\nThe findings file persists between sessions. The next time you open Claude Code in the same directory, the file is still there unless you've re-scanned and fixed the flagged issues. Unlike a chat prompt, the findings don't reset when you close the editor.\n\nCursor supports `@file`\n\nreferences that add a local file's contents to the AI context for a chat session; pointing it at `.brass/ai_instructions.yaml`\n\ngives the Cursor AI the same severity-sorted findings queue that Claude Code reads automatically.\n\nIn a Cursor chat session, type `@file .brass/ai_instructions.yaml`\n\nto include the findings as context. The Cursor AI reads the file as a structured findings list, can address the highest-severity findings first, and carries line numbers it can use to navigate to the flagged locations. This is the same pattern as the Claude Code workflow — the difference is that you add the context reference manually rather than the editor picking it up automatically.\n\nOne practical note: re-run `brasscoders --offline scan`\n\nbefore opening a new Cursor session after fixing findings. The `.brass`\n\nfile doesn't update automatically. A fixed finding stays in the file until the scan reruns and overwrites it.\n\nContinue supports `@file`\n\nreferences in its chat panel, which lets you include any local file as context for a question; `.brass/ai_instructions.yaml`\n\nworks the same way — type `@file`\n\nin the Continue chat and navigate to the findings file.\n\nFor teams where Continue is the shared AI assistant in VS Code, this makes the BrassCoders findings shareable across the session without re-running the scan on each machine. One person runs `brasscoders --offline scan`\n\n, commits the `.brass/ai_instructions.yaml`\n\nfile to the branch, and the team references it in their Continue sessions. The findings are consistent for everyone working on the same branch.\n\nCheck [Continue's documentation](https://docs.continue.dev/) for the current `@file`\n\nsyntax in your version, as context-provider behavior has evolved across releases.\n\nThe structure is the same regardless of which editor consumes it: severity ordering, line anchors, remediation directions. BrassCoders sorts critical findings above high findings above medium findings before writing the file. Every editor that reads the file inherits that priority order.\n\nThe line number field works the same way in all three: the AI assistant reads the flagged line number, pulls source context from that location, and decides whether the finding is real given the actual code. The file path field works the same way: it's a relative path from the project root, readable by any tool that operates in the project directory.\n\nThe remediation field is the same in all three: a fix direction written before any tool reads the file, based on the pattern the scanner matched. The AI assistant reads the remediation, reads the code, and either generates the fix or dismisses the finding as a false positive.\n\nOne scan. One file. Any editor that reads files.\n\n```\npip install brasscoders\nbrasscoders --offline scan /path/to/your/project\n```\n\n", "url": "https://wpnews.pro/news/feeding-brasscoders-output-to-any-ai-coding-assistant", "canonical_source": "https://dev.to/coppersundev/feeding-brasscoders-output-to-any-ai-coding-assistant-3j8i", "published_at": "2026-07-22 19:00:04+00:00", "updated_at": "2026-07-22 19:31:21.487818+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "machine-learning"], "entities": ["BrassCoders", "Claude Code", "Cursor", "Continue", "VS Code"], "alternates": {"html": "https://wpnews.pro/news/feeding-brasscoders-output-to-any-ai-coding-assistant", "markdown": "https://wpnews.pro/news/feeding-brasscoders-output-to-any-ai-coding-assistant.md", "text": "https://wpnews.pro/news/feeding-brasscoders-output-to-any-ai-coding-assistant.txt", "jsonld": "https://wpnews.pro/news/feeding-brasscoders-output-to-any-ai-coding-assistant.jsonld"}}