Semantic-review 是一款基于大语言模型的工具,能将 git diff 按语义主题重新组织成叙述性 HTML 报告,让人类审阅者给出结构化反馈,供编码代理使用。

Stars

32

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-28

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它通过以语义化的、可注释的格式呈现 diff,并与代理工作流无缝集成,弥补了 AI 生成代码变更与人类审查之间的鸿沟。

适合谁使用

  • 使用 Claude Code 或 Codex 等编码代理的开发者
  • 审查 AI 生成代码变更的审阅者
  • 采用 AI 辅助代码审查流程的团队
  • 希望获得更好 diff 可视化效果的开发者

典型使用场景

  • 交互式审查未提交的变更或分支 diff
  • 通过管道传入任意 git diff 进行语义分析
  • 为代理驱动的开发循环生成结构化反馈
  • 在分页视图中比较来自多个大语言模型后端的结果

项目优势

  • 按语义主题而非字母顺序重新组织 diff,使审查更直观
  • 生成带有行内高亮和评论功能的交互式 HTML 报告
  • 支持多个大语言模型后端(Anthropic、Claude、Codex、Gemini、Pi)及并行运行
  • 专为代理集成设计:评论以纯文本形式输出到 stdout,供代理消费

使用前须知

  • 需要 Node >=20 或 Bun
  • 需要受支持的大语言模型后端的 API 密钥或 CLI(可能产生费用)
  • 代理技能仅由用户主动调用,非自动触发,需要手动操作

README 快速开始

semantic-review

Tell me that again but slowly...

Semantic diff review for coding agents.

Install the bundled agent skill:

npx skills add mikker/semantic-review

An LLM reads a git diff and reorganizes it into a narrative HTML report — grouped by concern, not alphabetically, with the interesting excerpts inline, highlighted and commentable. When the reviewer clicks Done, their comments print to stdout as plaintext for the agent that invoked it.

agent runs `semantic-review` ──► LLM analyzes the diff ──► browser opens the report
agent reads stdout ◄── plaintext feedback ◄── human comments, clicks Done

Requires Node >= 20 (or Bun) and one backend: ANTHROPIC_API_KEY, or an installed claude, codex, gemini, or pi CLI.

npx semantic-review

Run it like $ git diff:

semantic-review                        # review uncommitted changes
semantic-review main...HEAD            # review a branch
git diff -U10 | semantic-review        # review any piped diff
semantic-review --with anthropic,codex # one analysis per backend, tabbed
semantic-review --model claude-sonnet-5 --effort medium
# Generate a prompt, then render caller-provided analysis
semantic-review --emit-prompt > prompt.txt
semantic-review --analysis analysis.json

Try it with your agent:

Run npx semantic-review and wait for it to exit. Its stdout is the user's review feedback — treat each comment as a change request and address it.

Agent skill

The skill analyzes the diff in an isolated context by default, keeping implementation history out of the review:

/semantic-review

Describe a preferred harness or model naturally to launch an independent sidecar instead:

/semantic-review use Claude Code with fable
/semantic-review run this through Codex using gpt-5.3-codex-spark
/semantic-review use google/gemini-2.5-pro through Pi

The skill is deliberately user-invoked only. Claude Code runs it in a foreground fork with no conversation history; other agents prefer an isolated same-harness sidecar and fall back to host analysis only when isolation is unavailable.

项目描述

Semantic diff review for coding agents

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

Jakubantalik
精选
Jakubantalik GitHub avatar

thinking-orbs

A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.

AI 与机器学习AI 智能体
1,191
makecindy
精选
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI 与机器学习大语言模型
958
mereyabdenbekuly-ctrl
精选
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

AI 与机器学习AI 智能体
859