# Crit — GitHub-style Inline Comments for Agents > Crit opens files and git diffs in a browser for GitHub-style inline comments and round diffs; verified 322★ and includes `/crit` integrations for agents. ## Install Copy the content below into your project: ## Quick Use ```bash brew install crit cd /path/to/your/repo crit # auto-detect changed files and open a browser UI crit status ``` ## Intro Crit opens files and git diffs in a browser for GitHub-style inline comments and round diffs; verified 322★ and includes `/crit` integrations for agents. **Best for:** Anyone iterating with coding agents who wants precise, line-level feedback loops **Works with:** Claude Code/Cursor/Copilot/Aider/Cline/Windsurf and any agent that can follow the review loop **Setup time:** 3-8 minutes ### Key facts (verified) - GitHub: 322 stars · 23 forks · pushed 2026-05-13. - License: MIT · owner avatar + repo URL verified via GitHub API. - README-backed entrypoint: `crit`. ## Main - Use Crit after each agent iteration: leave line-level comments, click Finish, and let the agent respond with a targeted patch instead of re-reading entire files. - Prefer the `/crit` command integration when your agent supports it; it automates the wait-review-act loop. - Keep `agent_cmd` configured only in `~/.crit.config.json` (README security note) to avoid repo-level command injection. ### Source-backed notes - README shows install options including `brew install crit` and `go install ...@latest`. - README lists core commands: `crit`, `crit plan.md`, `crit status`, `crit cleanup`, plus PR helpers like `crit push`/`crit pull`. - README includes a security note: project-level configs cannot set `agent_cmd`; only the global config can, to prevent malicious repos executing commands. ### FAQ - **Does it work only with Claude?**: No — README says it works with many agents; it’s a review UI + loop. - **Can I review git diffs automatically?**: Yes — `crit` without args auto-detects changed files and shows diffs. - **Is it safe to enable live agent execution?**: Use it only on trusted repos; follow the README security model for `agent_cmd`. ## Source & Thanks > Source: https://github.com/tomasz-tomczyk/crit > License: MIT > GitHub stars: 322 · forks: 23 --- ## Quick Use ```bash brew install crit cd /path/to/your/repo crit # auto-detect changed files and open a browser UI crit status ``` ## Intro Crit 用浏览器把文件与 git diff 变成“GitHub 式行内评论 + 回合 diff”的审阅闭环;已验证 322★,并提供面向多种 agent 的 `/crit` 集成方式与工具集成说明。 **Best for:** 频繁和 coding agent 迭代、需要精确到行的反馈闭环的开发者 **Works with:** Claude Code/Cursor/Copilot/Aider/Cline/Windsurf 等,以及任何可执行审阅闭环的 agent **Setup time:** 3-8 minutes ### Key facts (verified) - GitHub:322 stars · 23 forks;最近更新 2026-05-13。 - 许可证:MIT;作者头像与仓库链接均已通过 GitHub API 复核。 - README 中可对照的入口命令:`crit`。 ## Main - 每次 agent 产出后用 Crit 做一次“行内评论”:写清要改的行,Finish 后让 agent 精准回改,避免反复通读全文。 - 如果你的 agent 支持 `/crit`,优先用它把“等待审阅→执行修改”的闭环自动化。 - 按 README 的安全提示:`agent_cmd` 只放在全局 `~/.crit.config.json`,避免仓库级配置导致命令注入风险。 ### Source-backed notes - README 提供安装方式:包括 `brew install crit` 与 `go install ...@latest`。 - README 列出核心命令:`crit`、`crit plan.md`、`crit status`、`crit cleanup`,以及 PR 辅助的 `crit push/pull`。 - README 的安全提示:项目级配置不能设置 `agent_cmd`,只能在全局配置中设置,以避免恶意仓库触发命令执行。 ### FAQ - **只支持 Claude 吗?**:不是。README 表示它适配多种 agent,本质是审阅 UI + 反馈闭环。 - **能自动审阅当前分支 diff 吗?**:可以。无参数运行 `crit` 会自动检测变更并展示 diff。 - **开启实时执行安全吗?**:仅在可信仓库使用,并遵循 README 的 `agent_cmd` 安全模型。 ## Source & Thanks > Source: https://github.com/tomasz-tomczyk/crit > License: MIT > GitHub stars: 322 · forks: 23 --- Source: https://tokrepo.com/en/workflows/crit-github-style-inline-comments-for-agents Author: Script Depot