Code Auditor MCP
ใช้ทำอะไรได้
ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ
- ต่อแบบ คลาวด์หรือติดตั้งในเครื่อง
- บัญชีหรือคีย์ ไม่ต้องใส่คีย์
- หมวด เครื่องมือนักพัฒนา
คำอธิบายต้นฉบับจากผู้ทำ (อังกฤษ)
Enforces architectural invariants and code quality rules inside your AI agent's edit loop.ติดตั้ง
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ผลตรวจผ่าน 5/5 · สิ่งที่คุณถามผ่านเซิร์ฟเวอร์ของผู้ทำ (www.codeauditormcp.com)
ขั้นแรก: คุณใช้ AI ตัวไหน
เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง
ต่อกับ Claude ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม · ตั้งครั้งเดียวที่ claude.ai หรือแอปบนคอม แล้วใช้ในแชตได้ · บัญชีฟรีเพิ่มได้ 1 ตัว · แผน Team/Enterprise ให้เจ้าของ (Owner) เป็นคนเพิ่ม
เปิดหน้า Connectors ของ Claude
CustomizeConnectors
กด “+ Add” → “Add custom connector” แล้วกรอก 2 ช่องนี้
คัดลอกจากที่นี่ไปวางในช่องชื่อเดียวกันบนหน้าจอของ Claude แล้วกด Continue
Name · ชื่อCode Auditor MCPRemote MCP server URL · ที่อยู่https://www.codeauditormcp.com/api/mcpหัวข้อ Authentication ปล่อยตามที่ Claude ตรวจเจอ แล้วกด Add
เปิดใช้ในแชต
+ConnectorsCode Auditor MCP
ลองเลย
ใช้ Code Auditor MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude บอกว่ากำลังใช้ Code Auditor MCP หรือมีชื่อเครื่องมือของ Code Auditor MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ ChatGPT ได้ เฉพาะแผนองค์กร
ใช้ได้กับ ChatGPT Business, Enterprise หรือ Edu บนเว็บ และแอดมินหรือเจ้าของ workspace ต้องเป็นคนเพิ่ม · ถ้าใช้ Free, Plus หรือ Pro: ChatGPT แผนของคุณยังต่อ MCP เองไม่ได้
เปิดหน้าเพิ่ม MCP ของ ChatGPT บนเว็บ
Plugins+Add custom MCP server
กรอกชื่อและที่อยู่
ใส่ชื่อ แล้ววางที่อยู่ใต้ Connection ติ๊กยอมรับคำเตือน แล้วกด Create as a plugin
Name · ชื่อCode Auditor MCPConnection · ที่อยู่https://www.codeauditormcp.com/api/mcpเลือก Code Auditor MCP ในแชต
เปิดแชตใหม่แล้วเลือก Code Auditor MCP จากรายการปลั๊กอินก่อนพิมพ์
ลองเลย
ใช้ Code Auditor MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า ChatGPT บอกว่ากำลังใช้ Code Auditor MCP หรือมีชื่อเครื่องมือของ Code Auditor MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ OpenAI เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ Claude Code ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม
เปิด Terminal
Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell
วางคำสั่งนี้แล้วกด Enter
claude mcp add --transport http --scope user code-auditor https://www.codeauditormcp.com/api/mcpพิมพ์ /mcp ใน Claude Code
ต้องเห็น Code Auditor MCP ในรายการและขึ้นว่าเชื่อมต่อแล้ว
ลองเลย
ใช้ Code Auditor MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude Code บอกว่ากำลังใช้ Code Auditor MCP หรือมีชื่อเครื่องมือของ Code Auditor MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ Cursor ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม
เปิดแชตของ AI ใน Cursor โหมด Agent
ลองเลย
ใช้ Code Auditor MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Cursor บอกว่ากำลังใช้ Code Auditor MCP หรือมีชื่อเครื่องมือของ Code Auditor MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ VS Code ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม
เปิดแชตของ AI ใน VS Code โหมด Agent
ลองเลย
ใช้ Code Auditor MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า VS Code บอกว่ากำลังใช้ Code Auditor MCP หรือมีชื่อเครื่องมือของ Code Auditor MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม
ที่อยู่สำหรับโปรแกรมที่ต่อผ่านเว็บ
https://www.codeauditormcp.com/api/mcpค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON
ต่อผ่านเว็บ
Claude Code
claude mcp add --transport http --scope user code-auditor https://www.codeauditormcp.com/api/mcpCursor (~/.cursor/mcp.json)
{
"mcpServers": {
"code-auditor": {
"url": "https://www.codeauditormcp.com/api/mcp"
}
}
}VS Code (mcp.json)
{
"servers": {
"code-auditor": {
"type": "http",
"url": "https://www.codeauditormcp.com/api/mcp"
}
}
}ติดตั้งในเครื่อง
Claude Code
claude mcp add --scope user code-auditor -- npx -y code-auditor-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"code-auditor": {
"command": "npx",
"args": [
"-y",
"code-auditor-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"code-auditor": {
"command": "npx",
"args": [
"-y",
"code-auditor-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"code-auditor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"code-auditor-mcp"
]
}
}
}ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
สรุป
ใช้กับโปรแกรมไหนได้
ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569
ต่อผ่านคลาวด์ได้ใน
ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast
ติดตั้งบนเครื่องได้ใน
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
คู่มือที่เกี่ยวข้อง
ทำอะไรได้บ้าง
ชื่อและคำอธิบายเครื่องมือตามที่ server ตอบมาเมื่อ 11 พ.ย. 2569 ผู้ทำเป็นคนเขียน ไม่ใช่เรา แสดงเป็นข้อความล้วน
get_install_commandsReturn the exact install commands for Code Auditor for a given AI agent. Call this when a user asks how to install Code Auditor, or asks for the command for a specific agent (claude, cursor, codex, gemini, agents, zcode, or all).
lookup_ruleReturn the rule kind, description, default severity, detection method, and threshold for a given Code Auditor rule or analyzer. Call this when a user asks what a specific rule does (e.g. import-ban, sql-injection, n+1).
explain_symptomMap a natural-language symptom (e.g. 'my app is slow', 'hardcoded password', 'infinite react loop') to the relevant Code Auditor rule(s) and their fixes. Call this when a user describes a problem rather than naming a rule.
request_ruleRequest a new Code Auditor rule. Call lookup_rule or explain_symptom first to confirm no existing rule covers it. Provide a minimal example that should be flagged and a corrected example that should not. Reduce both to the smallest code that shows the difference, and remove secre
ผลตรวจเบื้องต้นi
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 12 พ.ย. 2569
- ✓ ผ่าน
ตัวตนผู้ทำตรงกับ repo
ชื่อใน registry ยืนยันด้วยบัญชี GitHub BenAHammond ซึ่งเป็นเจ้าของ repo
- ✓ ผ่าน
ยังมีคนดูแล
มีการแก้โค้ดล่าสุด 17 วันที่ผ่านมา
- ✓ ผ่าน
มีสัญญาอนุญาต (license)
ใช้ MIT
- ✓ ผ่าน
- – ไม่เกี่ยว
ล็อกอินแบบ OAuth
ไม่ต้องล็อกอิน
- ✓ ผ่าน
คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง
อ่านคำอธิบายเครื่องมือ 4 ตัวแล้ว ไม่พบคำสั่งแอบแฝงถึง AI
พูดคุย
ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์
ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย
ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx
รีวิวจากผู้ใช้
ยังไม่มีรีวิว
เทียบกับตัวอื่นในหมวด เครื่องมือนักพัฒนาi
- ดาวมากกว่า 89% ของอีก 5810 ตัวในหมวดนี้
- ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 48% ของอีก 5810 ตัวในหมวดนี้
- ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 5810 ตัวในหมวดนี้
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
คำถามที่พบบ่อย
Code Auditor MCP ปลอดภัยไหม?
จากการตรวจเบื้องต้นของเรา ผ่าน 5 จาก 5 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใช้กุญแจหรือรหัสอะไรบ้าง?
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
ตัวนี้รันบนเครื่องหรือบนคลาวด์?
ได้ทั้งสองแบบ จะลงในเครื่องหรือต่อผ่านคลาวด์ก็ได้
ยังมีคนดูแลอยู่ไหม?
repo บน GitHub มีการแก้โค้ดล่าสุด 17 วันที่ผ่านมา และส่งรุ่นล่าสุด (5.0.2) เข้า registry 33 วันที่ผ่านมา
ใช้กับโปรแกรมไหนได้บ้าง?
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT แผน Business ขึ้นไป
ตัวอื่นในหมวดเดียวกัน
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
README จากผู้ทำ
เปิดอ่าน README
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Code Auditor
Architectural invariants enforced inside your AI agent's edit loop. When the agent writes code that breaks a project rule, Code Auditor catches it and blocks the edit. The agent sees the rule's message and fixes itself.
Install
npm install -g code-auditor-mcp
code-audit install --agent all
Two commands to install everywhere. code-audit install --agent all copies the skill to every AI coding tool on your machine. Use --agent for specific tools.
What you get per tool: the skill (SKILL.md), MCP server access, and hook wiring where the tool supports it (blocking on Claude Code and Codex, advisory on Cursor).
code-audit install --list # see the support matrix
Claude Code users can also install via plugin:
claude plugin marketplace add BenAHammond/code-auditor-mcp
claude plugin install code-auditor
The hook auto-installs the auditor on first use via npx.
Requirements
- Node 18+ to run. Node 23.4+ gets the zero-native-install path: Code Auditor uses the built-in
node:sqlitemodule, so nothing needs to compile or download a prebuilt binary on install. - On older Node (18–23.3), Code Auditor falls back to
better-sqlite3, an *optional* dependency whose install script must be approved once on npm 11.2+/12 (they block dependency install scripts by default):npm install-scripts approve better-sqlite3 && npm rebuild better-sqlite3(with pnpm:pnpm approve-builds, then selectbetter-sqlite3).
Configuration
Project-level settings live in .codeauditor.json (invariant rules, analyzer settings, and thresholds). Eleven environment variables additionally tune process-scoped behavior — worker pool size, daemon and job-queue timeouts, the index location, the SQLite backend, and the UI port.
| Variable | Purpose | Accepted values | Default | |
|---|---|---|---|---|
CODE_AUDITOR_WORKERS | Phase-model worker pool size for per-file fan-out. 1 forces the serial path for byte-identical reports. | Positive integer | max(1, cpus − 1) | |
CODE_AUDITOR_RULE_TIMING | Per-rule wall-time accounting (one accumulated timer per rule ID, surfaced in the report). | 1 enables; unset disables | Off | |
CODE_AUDITOR_DAEMON_IDLE_MS | Idle timeout before the daemon shuts down. | Positive finite ms; invalid → default | 300000 (5 min) | |
CODE_AUDITOR_DAEMON_LEASE_TTL_MS | Daemon heartbeat lease TTL. | Finite ms; blank/0 → default | 60000 (60 s) | |
CODE_AUDITOR_DATA_DIR | Overrides the code-index database directory. | Directory path (trimmed; blank → default) | user-level OS cache | |
CODE_AUDITOR_EXIT_ON_FATAL | Exit the MCP server on an uncaught exception / unhandled rejection. | 1 or true | Off | |
CODE_AUDITOR_JOB_TIMEOUT_MS | Per-job timeout for queued audits. | Finite ms, clamped to 60s–4h; below the floor → default | 1800000 (30 min) | |
CODE_AUDITOR_JOB_LEASE_TTL_MS | Heartbeat lease TTL for reclaiming stale running job rows. | Strictly positive finite ms; invalid → default | 30000 (30 s) | |
CODE_AUDITOR_MAX_RUNNING_JOBS | Max concurrently running queued audit jobs. | Integer ≥ 1; invalid → default | 1 | |
CODE_AUDITOR_SQLITE_BACKEND | Forces a SQLite backend. An invalid value is reported as invalid and rejected — never silently probed past. | node-sqlite \ | better-sqlite3 | Auto (probe) |
MCP_UI_PORT | HTTP UI server port (--ui). | Port number; invalid → default | 3001 |
When CODE_AUDITOR_DATA_DIR is set, the index is scoped per project ( /projects/ /index.db) so projects can't leak data into each other. When unset, the index lives in a user-level OS cache ( /code-auditor/projects/ /index.db) so it never lands inside the audited repo.
Prompt examples
"Index the codebase and run a full audit, then walk the violations file-by-file with `code-audit next-file`."
"Create a `.codeauditor.json` that bans lodash imports and prevents `src/languages/` from importing anything in `src/analyzers/`."
"Run a full audit, fix the highest-priority file, and repeat `code-audit next-file` until the tree is clean."
"Sync the code index and audit only what changed vs main."
"Add an ast-pattern rule that blocks `new Function(...)`."
"Add a naming rule requiring hooks in `src/hooks/` to start with `use`."
"Add a call-constraint so `chargeCustomer()` in `src/services/payment.ts` can only be called from `src/api/`."
Rule kinds
Seven kinds. The agent writes them to .codeauditor.json. Bad configs fail the audit, not silently.
| Kind | What it blocks |
|---|---|
import-ban | Banned module imports |
call-constraint | Function calls from unauthorized files |
module-boundary | Imports across module boundaries |
naming | Exported symbols not matching a pattern |
ast-pattern | AST nodes matching an ast-grep pattern |
style-mechanism | Unapproved style mechanisms per file/glob |
no-raw-values | Hardcoded values for specific CSS properties |
Works with your agent
One skill, one CLI, one MCP server. Every agent gets the same audit engine — the hook contract is the only difference.
| Agent | Skill | Hooks / Blocking | MCP | Verified |
|---|---|---|---|---|
| Claude Code | Plugin or code-audit install | Yes — blocking | Yes | 2026-07-19 |
| Cursor | code-audit install --agent cursor (project-only) | Advisory | Yes | 2026-07-19 |
| Codex | code-audit install --agent codex + plugin | Yes — blocking | Yes | 2026-07-19 |
| Gemini CLI | code-audit install --agent gemini | No | Yes | 2026-07-19 |
| VS Code / Copilot | code-audit install --agent agents | No | Yes | 2026-07-19 |
| Other SKILL.md tools | code-audit install --agent agents | No | Yes | 2026-07-19 |
| ZCode | code-audit install --agent zcode | No (plugin-scoped) | Yes | 2026-09-10 |
MCP config generation covers a wider set than skill install. The MCP server's generate tool writes a client config file for any of claude, codex, cursor, gemini, copilot, continue, awsq (AWS Q Developer), codeium (Codeium/Windsurf), vscode, cline, and zcode. Four of those — Continue, AWS Q Developer, Codeium/Windsurf, and Cline — are MCP-only: they have no file-based skill or hook path, so they connect through the generate tool rather than code-audit install.
Hook behavior: Blocking means the diff-scoped changed gate is tripped — an invariant rule that declares gating: true (a binary, per-rule flag, independent of severity) blocks the edit from landing (the agent sees the violation and fixes inline). Advisory means violations are reported through the strongest available feedback channel but the edit has already occurred. Cursor's afterFileEdit hook is fire-and-forget with no output consumption. MCP is available everywhere for shell-less use.
Findings: Deterministic vs Advisory
Code Auditor's built-in rules fall into two categories:
| Category | Meaning | Examples |
|---|---|---|
| Deterministic | Structural fact — an engineer would act on every finding | single-responsibility (300-line functions), solid/method-complexity (cyclomatic complexity > 20), solid/class-size (40+ method classes), dependency-inversion (concrete imports where an interface exists) |
| Advisory | Heuristic signal — may be wrong depending on domain | sql-injection-risk (AST-level string-pattern matching without type info), missing-org-filter (domain-specific — assumes SaaS tenant isolation), unknown-table (requires user-provided schema), dry/duplicate (token-identical blocks) |
Deterministic rules ship at critical or severe. Advisory rules ship at severe or high. Rules proven near-zero precision on a real corpus are disabled by default (off) — users opt in when the rule matches their domain.
Recalibration
Built-in severity defaults are recalibrated from real-corpus triage. The current defaults reflect measurement on three corpora: this tool's own codebase, Gin, and Excalidraw. Six data-access rules that produced near-zero precision across all three corpora are disabled by default.
Every disabled rule documents what corpus it *would* be useful on. Users can restore any rule via severityOverrides in .codeauditor.json:
{
"severityOverrides": { "sql-injection-risk": "critical", "missing-org-filter": "severe", "loop-query": "severe" } }
Severity overrides apply globally (before per-directory path profile caps). Setting a rule to "off" removes it from the output entirely.
SQL Injection Detection
The sql-injection-risk rule is disabled by default (off) after recalibration. On the self-audit corpus, it produced 0% precision — the rule misinterpreted TypeScript pattern-matching code (string constants like 'SELECT', 'FROM', 'WHERE' used for the tool's own SQL detection) as database queries. On the Gin and Excalidraw corpora, precision was also near zero.
When to re-enable it: your project's SQL is constructed via string concatenation or template literals in functions whose sole purpose is query assembly. The rule detects those patterns. For codebases using ORMs or parameterized queries exclusively, the rule produces noise.
To re-enable and block on SQL injection:
{
"severityOverrides": { "sql-injection-risk": "critical" } }
With sql-injection-risk: critical (and the rule marked gating), your agent's hook will block edits that introduce AST-level SQL injection patterns.
Dismissals
Every finding is a measurement, not a verdict — but measurements are occasionally wrong. When the agent hits a false positive (the rule is right in general, wrong for this specific code), it can dismiss *that one instance* rather than work around it:
code-audit dismiss <fingerprint> --reason "generated code, not hand-written"
The comes from the JSON report (every violation carries a fingerprint field). A written `--reason` is required, and the dismissal clears exactly one finding — rule + file + symbol — so the same rule still fires everywhere else. Dismissals live in a committed .codeauditor.dismissals.json, reviewable in a diff.
Anonymous dismissal feedback (opt-in)
The reason an agent gives for dismissing a finding is the most useful signal for improving the rules. Code Auditor can send dismissed findings to an anonymous feedback service that collects them.
It is off by default and turned on only by an explicit opt-in, via any of three methods (in precedence order):
- per-invocation —
code-audit dismiss --telemetry …sends just that one dismissal;--no-telemetrysuppresses one. - environment —
CODE_AUDITOR_TELEMETRY=1(or0) as a machine-level default for headless/CI runs. - persisted —
code-audit telemetry status|enable|disable(or thetelemetryMCP tool), which records the choice in your user config dir.
telemetry enable needs no arguments: it opts in against the built-in service endpoint (overridable for self-hosting). Opting in generates an anonymous install ID: a random value generated locally, never derived from your machine, user, or project, used only to group submissions by source.
What is sent — the tool version, the rule ID, the urgency level, the dismissal reason exactly as typed, a structural AST signature (grammar kinds only, never their contents), a coarse language hint, a timestamp, and the anonymous install ID. What is never sent — source code, identifiers, literals, file paths, or anything derived from your code or environment. Sending is best-effort: offline or an unreachable endpoint is silent and never blocks an edit or fails a gate.
Style Intelligence
Co