agentdiff 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 7.1 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
agentdiff 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
agentdiff 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:cargo install(推荐) cargo install agentdiff # 方式二:从源码编译 git clone https://github.com/codeprakhar25/agentdiff cd agentdiff cargo build --release # 二进制在 ./target/release/agentdiff
# 查看帮助 agentdiff --help # 基本运行 agentdiff [options] <input> # 详细使用说明请查阅文档 # https://github.com/codeprakhar25/agentdiff
# agentdiff 配置说明 # 查看配置选项 agentdiff --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export AGENTDIFF_CONFIG="/path/to/config.yml"
<p align="center"> <strong>Line-level attribution for AI-assisted code. Audit every agent, model, and prompt across your entire git history.</strong> </p>
<p align="center"> <a href="https://github.com/codeprakhar25/agentdiff/releases"><img src="https://img.shields.io/github/v/release/codeprakhar25/agentdiff?style=flat-square" alt="Latest release"></a> <a href="https://github.com/codeprakhar25/agentdiff/stargazers"><img src="https://img.shields.io/github/stars/codeprakhar25/agentdiff?style=flat-square" alt="GitHub stars"></a> <a href="LICENSE-MIT"><img src="https://img.shields.io/badge/license-MIT%20%2F%20Apache--2.0-blue?style=flat-square" alt="License"></a> <a href="https://github.com/codeprakhar25/agentdiff/actions"><img src="https://img.shields.io/github/actions/workflow/status/codeprakhar25/agentdiff/ci.yml?style=flat-square&label=CI" alt="CI"></a> <img src="https://img.shields.io/badge/agents-7%2B-blueviolet?style=flat-square" alt="Agents supported"> <img src="https://img.shields.io/badge/built_with-Rust-orange?style=flat-square" alt="Built with Rust"> </p>
---
agentdiff hooks into every major AI coding agent — Claude Code, Cursor, Codex, Copilot, Windsurf, OpenCode, Gemini — and writes a permanent, commit-scoped attribution record to your repository. Each record captures the agent name, model, prompt excerpt, and exact line ranges. All of it queryable from the CLI, no server required.
Watch the launch demo to see the attribution workflow end-to-end.
agentdiff list
agentdiff list — 5 entries
# COMMIT TIME AGENT MODEL FILE(S) LINES TRUST PROMPT
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 a1b2c3d4 Apr 14 09:12 claude-code claude-sonnet-4-6 src/commands/push.rs 1-47 92 "fix ordering: write local ref before…"
2 b2c3d4e5 Apr 14 09:44 codex o4-mini src/store.rs +2 112-198, 201-230 — "add fetch_ref_content helper"
3 c3d4e5f6 Apr 13 18:01 cursor cursor-fast src/cli.rs 305-381 — "add status --remote args struct"
4 d4e5f6a7 Apr 13 17:30 opencode claude-sonnet-4-6 src/main.rs 80-94 88 "wire remote_status dispatch"
5 e5f6a7b8 Apr 13 14:22 human — README.md — — —
---
git clone https://github.com/codeprakhar25/agentdiff.git cd agentdiff cargo build --release mkdir -p ~/.local/bin install -m 0755 target/release/agentdiff ~/.local/bin/agentdiff ```
</details>
---
curl -fsSL https://agentdiff.site/install | sh
Requirements: Python 3.7+ on PATH, Git 2.20+, Rust 1.85+ (installed automatically if missing)
<details> <summary>Other install methods</summary>
```bash
agentdiff install-skill --scope project agentdiff install-skill --scope global # optional personal default
agentdiff init --no-git-hook
agentdiff install-skill --scope project ```
agentdiff install-skill --scope project writes .cursor/skills/agentdiff-context/SKILL.md in the current repo. Use --scope global for a personal default, and --force to overwrite an existing skill file.
When used with --post-pr-comment, context reports are filtered to commits on the current PR branch and update the existing AgentDiff comment when possible.
---
agentdiff keys init
```bash
agentdiff list
agentdiff list — 6 entries
# COMMIT TIME AGENT MODEL FILE(S) LINES TRUST PROMPT
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 a1b2c3d4 Apr 14 09:12 claude-code claude-sonnet-4-6 src/commands/push.rs 1-47 92 "fix ordering: write local ref befor…"
2 b2c3d4e5 Apr 14 09:44 codex o4-mini src/store.rs +2 112-198, 201-230 — "add fetch_ref_content helper"
3 c3d4e5f6 Apr 13 18:01 cursor cursor-fast src/cli.rs 305-381 — "add status --remote args struct"
4 d4e5f6a7 Apr 13 17:30 opencode claude-sonnet-4-6 src/main.rs 80-94 88 "wire remote_status dispatch"
5 e5f6a7b8 Apr 12 11:04 windsurf claude-sonnet-4-6 src/init.rs 44-68 — "remove legacy .agentdiff dir creat…"
6 f6a7b8c9 Apr 11 16:22 human — README.md — — —
<details> <summary>agentdiff list flags</summary>
```bash
agentdiff configure
agentdiff configure --all
agentdiff configure --agents cursor,codex,opencode
agentdiff configure --no-copilot --no-antigravity
Config lives at ~/.agentdiff/config.toml:
schema_version = "1.0"
scripts_dir = "~/.agentdiff/scripts"
capture_prompts = true # set false to omit prompt excerpts from traces
[[repos]]
path = "/home/user/my-project"
slug = "-home-user-my-project"
```bash
agentdiff config show ```
---
agentdiff install-ci
agentdiff can preserve lightweight intent and files-read context so reviewers and local agents can understand why a change was made, not just which lines were attributed.
```bash
Run once to write both workflow files into your repo:
agentdiff install-ci
git add .github/workflows/agentdiff-*.yml
git commit -m "ci: add agentdiff consolidation and policy workflows"
This writes two workflows:
agentdiff-consolidate.yml — triggers on PR merge: consolidates per-branch traces into the permanent store and posts an attribution comment to the PR.agentdiff-policy.yml — triggers on every PR: runs agentdiff policy check and posts GitHub check annotations if rules are violated.For repos that need a custom pipeline, the manual equivalent:
```yaml
on: [pull_request] permissions: contents: read checks: write
jobs: agentdiff: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0
- name: Install agentdiff run: | curl -fsSL https://raw.githubusercontent.com/codeprakhar25/agentdiff/main/install.sh | bash echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Fetch agentdiff refs run: git fetch origin '+refs/agentdiff/:refs/agentdiff/' || true
- name: Verify signatures run: agentdiff verify
- name: Policy check run: agentdiff policy check --format github-annotations ```
---
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,agentdiff 在Agent工作流赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | agentdiff |
| 原始描述 | 开源AI工作流:Line-level attribution for AI-assisted code. Audit every agent, model, and pr。⭐28 · Rust |
| Topics | workflowaiattributionclaude-codecopilotcursorrust |
| GitHub | https://github.com/codeprakhar25/agentdiff |
| License | Apache-2.0 |
| 语言 | Rust |
收录时间:2026-05-22 · 更新时间:2026-05-22 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端