RD

raye-deng/open-code-review

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

40 stars 4 forks 质量 62 趋势 12NOASSERTION

🤖 AI 生成代码的代码质量门。检测幻觉包、虚构依赖、陈旧 API 等。MCP 服务器 + CLI + CI/CD 动作。

概览

检测幻觉导入、陈旧API、过度工程和安全反模式——由本地大型语言模型和任何兼容OpenAI的提供商驱动。免费。自托管。6种语言。 任何生成代码的AI工具——如果写代码,OCR会审核。 AI编码助手(Copilot、Cursor、Claude)生成代码: 开放代码审查检测所有这些 — 跨 , 。 L3 结合了三个分析层以实现最大覆盖: 运行 Ollama 进行 100% 本地分析,或者连接到任何远程 LLM 提供商——接口是一样的。 让AI自动修复它发现的问题。申请前请审核更改。 针对 的语言特定检测器,以及幻觉包数据库(npm、PyPI、Maven、Go 模块):

概述(AI 翻译)

第一个专门为AI生成代码构建的开源CI/CD质量门。 检测幻觉导入、陈旧 API、过度工程和安全反模式——这些都由本地大型语言模型和任何兼容 OpenAI 的提供商驱动。 免费。自助托管。支持6种语言。

工作对象

任何生成代码的AI工具——如果它写代码,OCR会审核。

人工智能剥削者错过了什么

AI编码助手(Copilot、Cursor、Claude)生成的代码包含传统工具完全忽略的缺陷:

缺陷 示例 ESLint / 声纳四分之一
幻觉进口 import { x } from 'non-existent-pkg' ❌小姐
过时的API 使用训练数据中的弃用API ❌遗漏
上下文窗口伪影 文件间逻辑矛盾 ❌未中
过度设计的模式 不必要的抽象,死代码 ❌错过了
安全反模式 硬编码示例秘密,eval() ❌部分

开放代码审查能检测所有这些——跨6种语言,且免费**。

演示

📄 查看完整的交互式HTML报告

快速预览

深度扫描(L3)——工作原理

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Open Code Review

The first open-source CI/CD quality gate built specifically for AI-generated code. Detects hallucinated imports, stale APIs, over-engineering, and security anti-patterns — powered by local LLMs and any OpenAI-compatible provider. Free. Self-hostable. 6 languages.

Works With

Any AI tool that generates code — if it writes it, OCR reviews it.

What AI Linters Miss

AI coding assistants (Copilot, Cursor, Claude) generate code with defects that traditional tools miss entirely:

Defect Example ESLint / SonarQube
Hallucinated imports import { x } from 'non-existent-pkg' ❌ Miss
Stale APIs Using deprecated APIs from training data ❌ Miss
Context window artifacts Logic contradictions across files ❌ Miss
Over-engineered patterns Unnecessary abstractions, dead code ❌ Miss
Security anti-patterns Hardcoded example secrets, eval() ❌ Partial

Open Code Review detects all of them — across 6 languages, for free.

Demo

📄 View full interactive HTML report

Quick Preview

在 GitHub 查看完整 README

安装

npx -y @opencodereview/mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "open-code-review": { "command": "npx", "args": ["-y", "@opencodereview/mcp-server"] } } }