# Sourcery — Instant AI Code Reviews > Sourcery is an automated AI code reviewer for GitHub PRs plus an IDE assistant, helping teams reduce review time with summaries and inline suggestions. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use 1. Install the GitHub App: - https://github.com/apps/sourcery-ai/installations/new 2. Open a PR and wait for Sourcery to comment with summary + suggestions. 3. (Optional) Install the IDE plugin (VS Code / JetBrains) from the links in the README. ## Intro Sourcery is an automated AI code reviewer for GitHub PRs plus an IDE assistant, helping teams reduce review time with summaries and inline suggestions. - **Best for:** teams that want lightweight review assistance on every PR without asking reviewers to write repetitive feedback - **Works with:** GitHub PR workflows, Sourcery GitHub App, optional IDE plugins for interactive refactors - **Setup time:** 6 minutes ## Practical Notes - Public repos/open source are free per README; private repos mention a 14-day free trial - README states code diffs may be sent to OpenAI/Anthropic providers, and data retention is limited (up to 30 days) — review your policy needs ## When It’s a Good Fit (and When It Isn’t) Sourcery shines for “always-on” feedback loops: - Fast summaries so reviewers orient quickly - Suggestion hints for readability/perf issues - Consistent style reminders without human nagging But it’s not a substitute for security ownership or architectural review. A good practice is to pair it with: - A lightweight PR checklist (threat model, logging, tests) - A security review gate for risky repos - Clear rules on what code can be shared with third-party model providers If you need strict policy, make sure your team’s data handling requirements match the README’s privacy notes. ### FAQ **Q: Is it free for open source?** A: The README states it’s free for public repos; private repos have a trial and paid plans. **Q: Does it send code to model providers?** A: Yes. The README mentions using OpenAI and Anthropic for parts of reviews. **Q: Can I use it in the IDE?** A: Yes. The README links to VS Code and JetBrains integrations. ## Source & Thanks > Source: https://github.com/sourcery-ai/sourcery > License: MIT > GitHub stars: 1,811 · forks: 97 --- ## 快速使用 1. 安装 GitHub App: - https://github.com/apps/sourcery-ai/installations/new 2. 打开一个 PR,等待 Sourcery 自动发布摘要与建议。 3. (可选)按 README 链接安装 IDE 插件(VS Code / JetBrains 等)。 ## 简介 Sourcery 是自动化 AI code reviewer:可作为 GitHub PR 评审机器人提供摘要与逐行建议,也提供 IDE 助手形态,用来缩短 review 周期并减少重复性评审反馈,适合“每个 PR 都要看”的团队。 - **适合谁:** 希望每个 PR 都有轻量 review 辅助、减少重复性评审意见的团队 - **可搭配:** GitHub PR 工作流、Sourcery GitHub App、可选 IDE 插件用于交互式重构 - **准备时间:** 6 分钟 ## 实战建议 - README 说明:公有仓库/开源项目可免费使用;私有仓库提供 14 天试用 - README 说明:diff 可能会发送给 OpenAI/Anthropic,且保留期最长 30 天——请结合团队合规策略评估 ## 适用场景与边界 Sourcery 适合“持续在线”的反馈环: - 先给出摘要,帮助 reviewer 快速定位重点 - 对可读性/性能等提出建议,减少重复点评 - 用一致的风格提醒替代人工唠叨 但它不应替代安全负责人或架构评审。更合理的搭配是: - PR checklist(威胁模型、日志、测试等) - 对高风险仓库的安全审计 gate - 明确哪些代码允许发送给第三方模型服务 如果你的团队对数据合规要求更严格,请先对照 README 的隐私说明评估是否匹配。 ### FAQ **开源仓库免费吗?** 答:README 说明公有仓库免费;私有仓库有试用期与付费方案。 **会把代码发给模型服务吗?** 答:会。README 提到会使用 OpenAI 与 Anthropic 来生成部分评审内容。 **能在 IDE 里用吗?** 答:可以,README 提供 VS Code 与 JetBrains 等集成链接。 ## 来源与感谢 > Source: https://github.com/sourcery-ai/sourcery > License: MIT > GitHub stars: 1,811 · forks: 97 --- Source: https://tokrepo.com/en/workflows/sourcery-instant-ai-code-reviews Author: Agent Toolkit