greptile
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGreptile CLI Review
Greptile CLI 审查
Run Greptile () for automated branch review before push. Pair with
for the default pre-CI workflow — both tools catch different issues
and mirror CI.
greptilecoderabbit在推送前运行Greptile()进行自动化分支审查。搭配****使用以实现默认的CI前工作流——这两款工具能发现不同的问题,且与CI流程同步。
greptilecoderabbitRelationship to analyze-* skills
与analyze-*技能的关系
The , , and skills are for
manual or agent-driven pre-review checks—they run concrete commands (lintro,
ripgrep, coverage, etc.) and produce structured findings before you open a PR.
analyze-codeanalyze-projectanalyze-testsThis skill uses Greptile CLI for external AI branch review. Follow the and
skills (or the skill, which includes them) before invoking Greptile.
Do not duplicate full analyze rubrics here.
linttestcommitanalyze-codeanalyze-projectanalyze-tests本技能使用Greptile CLI进行外部AI分支审查。在调用Greptile之前,请先执行和技能(或包含这两者的技能)。请勿在此重复完整的analyze检查规则。
linttestcommitRelationship to coderabbit
与coderabbit的关系
Default pre-push flow when CI runs both tools:
text
commit → [greptile ‖ coderabbit] → prEach step names the skill to follow.
Run greptile and coderabbit in parallel () when possible. Greptile is typically
faster (~1 min). Do not re-run on unchanged code.
‖当CI同时运行两款工具时,默认的推送前流程如下:
text
commit → [greptile ‖ coderabbit] → pr每个步骤标注了后续应执行的技能。
尽可能并行()运行greptile和coderabbit。Greptile通常速度更快(约1分钟)。请勿对未修改的代码重复运行。
‖Prerequisites
前置条件
bash
greptile login
greptile whoamiInstall: or see Greptile CLI.
npm i -g greptilebash
greptile login
greptile whoami安装方式: 或查看 Greptile CLI。
npm i -g greptileCommands
命令
- — Review current branch vs main (default for agents)
greptile review -b main --agent - — Findings inline with relevant code
greptile review --diff - — Machine-readable output (use instead of
greptile review --jsonfor parsing)--agent - — Continue the latest unfinished review
greptile review --resume - — Reopen a past review
greptile review show [ID]
--agent--text--json- — 审查当前分支与main分支的差异(Agent默认使用该命令)
greptile review -b main --agent - — 在相关代码旁内嵌显示检查结果
greptile review --diff - — 生成机器可读格式的输出(解析时使用该命令替代
greptile review --json)--agent - — 继续最近未完成的审查
greptile review --resume - — 重新查看过往审查记录
greptile review show [ID]
--agent--text--jsonRules
规则
- Max 2 Greptile runs per change set (workflow discipline)
- Commit before running — Greptile reviews branch commits vs base; uncommitted changes are ignored
- Default to unless the repo uses a different default branch
-b main - Run from the repository root on the feature branch
- 每个变更集最多运行2次Greptile(遵循工作流规范)
- 运行前先提交代码 — Greptile审查分支提交与基准分支的差异;未提交的变更会被忽略
- 默认使用,除非仓库使用其他默认分支
-b main - 在功能分支的仓库根目录下运行命令
Usage
使用方法
When asked to run Greptile or as part of pre-push review:
- Ensure changes are committed and lint/tests pass
- Run (can run parallel with CodeRabbit)
greptile review -b main --agent - Analyze findings; address critical/major issues
- After fixes to Greptile-sensitive areas, optional verification pass
- Track run count (max 2 per change set)
For Raycast extension PRs, run static greps from before the CLI review.
pr-raycast当需要运行Greptile或作为推送前审查的一部分时:
- 确保变更已提交,且lint和测试通过
- 运行(可与CodeRabbit并行运行)
greptile review -b main --agent - 分析检查结果;处理严重/主要问题
- 在修改Greptile重点关注的区域后,可选择性进行验证
- 记录运行次数(每个变更集最多2次)
对于Raycast扩展PR,在运行CLI审查前,请先执行中的静态grep检查。
pr-raycastDifferences from CodeRabbit
与CodeRabbit的差异
| CodeRabbit | Greptile | |
|---|---|---|
| Scope | | Branch commits vs base only |
| Agent output | | |
| Base branch | | |
| 项目 | CodeRabbit | Greptile |
|---|---|---|
| 审查范围 | | 仅对比分支提交与基准分支 |
| Agent输出格式 | | |
| 基准分支参数 | | |