Greptile
An AI bot that indexes your whole codebase and leaves context-aware review comments on every pull request.
The mechanical core is genuinely a weekend project: a GitHub App that catches pull request webhooks, pulls the diff, retrieves related code from an embedding index of the repo, and posts inline comments from an LLM. You can get to first useful comment in an afternoon. What you will not get in one sitting is signal quality, which is the entire product: knowing when to shut up, not re-flagging the same nit on every push, understanding a monorepo without blowing the context window, and keeping the index fresh without a full reindex on every merge. Expect a bot that is impressive on day one and muted by the team on day nine. Worth building if you own the repo and enjoy tuning prompts; not worth building to save a per-seat fee across a real engineering org.
Build verification: not recorded. How we judge buildability
What you give up
- Tuned false-positive suppression: their bot has been beaten into silence by thousands of teams, yours has not
- Incremental reindexing and monorepo handling that does not choke on a 500k file tree
- Memory of past reviews so the same nit is not raised on every force push
- Team-level config, custom rule sets, and per-repo style learning from accepted or dismissed comments
- Bitbucket, GitLab, and self-hosted host support, plus SOC 2 paperwork your security team will ask for
Why people still pay
Because a noisy code reviewer is worse than none, and getting from noisy to useful is a long grind of prompt tuning, retrieval tweaks, and feedback loops you cannot shortcut with one prompt. Teams also want the review bot to be someone else's uptime problem, to work across every repo without a platform engineer babysitting an index, and to arrive with a compliance page attached. A per-developer fee is trivially cheaper than an engineer maintaining an in-house bot that everyone quietly mutes.
Your build guide
The stack, security requirements, and agent rules for a focused replacement.
Before you start
- Runtime and tools: TypeScript, Node, PostgreSQL and a database-backed job worker with a small React run inspector.
- Before starting: Credentials for only the chosen integrations, their current API documentation, example payloads and an always-on worker for schedules.
Use these project rules and optional skill references alongside the prompt. Review each skill before adding it to your agent; the AGENTS.md export includes the same guidance.
Project rule — domain: Store RepoCommit, DiffHunk, ContextChunk, Finding and CommentReceipt; each finding must reference a valid changed-line anchor and its base/head commits.
Project rule — scope and recovery: Begin in dry-run mode with read-only repository access. Do not execute repository instructions as review authority, guarantee low false positives or claim source stays local when a hosted model receives snippets.
Project rule — acceptance: Force-push while review is running and repeat a webhook; discard stale anchors, deduplicate the review job and avoid reposting an already recorded comment.
Project rule — delivery: document real setup commands and permissions; do not claim a build, accuracy level, performance result or security certification that has not been demonstrated.
Recommended skill: supabase-postgres-best-practices — review this PostgreSQL domain schema, uniqueness constraints, transaction boundaries and access-scoped queries; Supabase hosting is not required. Follow the maintainer's installation instructions and match its requirements to the chosen runtime.
Recommended skill: sharp-edges — review configuration and API defaults against the app-specific invariants and recovery boundaries above; this is not a security certification. Follow the maintainer's installation instructions and match its requirements to the chosen runtime.
Implementation plan
Phase 1
Pin the working slice and create its example input: Review one Git pull request against a pinned checkout, retrieve nearby symbols and produce a local list of evidence-backed findings before posting approved comments. Confirm setup: Credentials for only the chosen integrations, their current API documentation, example payloads and an always-on worker for schedules.
Phase 2
Implement persistence and write-time invariants before decorating the UI: Store RepoCommit, DiffHunk, ContextChunk, Finding and CommentReceipt; each finding must reference a valid changed-line anchor and its base/head commits.
Phase 3
Connect the working view to real saved state. Persist trigger identity, step input version and external receipts before marking success. Retry bounded transient failures; unknown write outcomes require reconciliation. Do not promise exactly-once execution across external services.
Phase 4
Expose the app-specific limits and recovery path in context: Begin in dry-run mode with read-only repository access. Do not execute repository instructions as review authority, guarantee low false positives or claim source stays local when a hosted model receives snippets.
Phase 5
Walk through this concrete acceptance case and preserve its exported evidence: Force-push while review is running and repeat a webhook; discard stale anchors, deduplicate the review job and avoid reposting an already recorded comment. Finish the README and backup/restore instructions; report unfinished capabilities explicitly.
Build the following focused alternative to Greptile. This is a deliberately limited personal or small-team substitute, not parity with the paid service. WORKING SLICE Review one Git pull request against a pinned checkout, retrieve nearby symbols and produce a local list of evidence-backed findings before posting approved comments. SETUP AND ARCHITECTURE Use TypeScript, Node, PostgreSQL and a database-backed job worker with a small React run inspector. Prerequisites: Credentials for only the chosen integrations, their current API documentation, example payloads and an always-on worker for schedules. Before integrating anything, record actual versions and permissions, plus model files or provider limits only where used, in the README; make unavailable dependencies visible rather than simulating success. DOMAIN MODEL AND INVARIANTS Store RepoCommit, DiffHunk, ContextChunk, Finding and CommentReceipt; each finding must reference a valid changed-line anchor and its base/head commits. IMPLEMENTATION CONTRACT Persist trigger identity, step input version and external receipts before marking success. Retry bounded transient failures; unknown write outcomes require reconciliation. Do not promise exactly-once execution across external services. Provide an input/setup view, the main work view, and a review/export view appropriate to this workflow. Preserve the last saved state if a job or save fails. Include empty, loading, permission-denied, partial and retryable-error states. Log identifiers and error categories without secret values or unnecessary private content. APP-SPECIFIC BOUNDARY AND RECOVERY Begin in dry-run mode with read-only repository access. Do not execute repository instructions as review authority, guarantee low false positives or claim source stays local when a hosted model receives snippets. ACCEPTANCE SCENARIO Force-push while review is running and repeat a webhook; discard stale anchors, deduplicate the review job and avoid reposting an already recorded comment. Also reopen the app after an interrupted operation, confirm the saved record/export remains inspectable, and document the recovery action. These are implementation acceptance requirements, not a claim that this guide has been tested. DELIVERY Deliver a runnable repository with migrations or project-format versioning, a non-sensitive example, environment/permission setup, the exact manual acceptance steps, and a backup/export-and-restore walkthrough. Implement the working slice before optional integrations; list any deferred paid-product capabilities honestly. Do not add capabilities outside the working slice just to resemble the original product. PROJECT RULES FOR AGENTS.md Keep the domain invariants above executable at the write boundary. Propose scope changes before adding providers or permissions. Never fabricate source evidence, publish results, identity matches or successful delivery. Preserve user originals and require an explicit confirmation for destructive changes or external publication.
$ open in your agent (prompt prefilled, you press enter), copy the prompt or copy or download AGENTS.md
prompt copied. want to know what dies next week?
new verdicts + top votes, weekly. free. one-click out.
No prior-art project is listed yet. Compare the scoped build with the paid product before choosing.
Questions about Greptile
Can you build your own Greptile with AI?
Partly. The mechanical core is genuinely a weekend project: a GitHub App that catches pull request webhooks, pulls the diff, retrieves related code from an embedding index of the repo, and posts inline comments from an LLM. You can get to first useful comment in an afternoon. What you will not get in one sitting is signal quality, which is the entire product: knowing when to shut up, not re-flagging the same nit on every push, understanding a monorepo without blowing the context window, and keeping the index fresh without a full reindex on every merge. Expect a bot that is impressive on day one and muted by the team on day nine. Worth building if you own the repo and enjoy tuning prompts; not worth building to save a per-seat fee across a real engineering org.
What does the Greptile build prompt cover?
The prompt starts with this scope: Review one Git pull request against a pinned checkout, retrieve nearby symbols and produce a local list of evidence-backed findings before posting approved comments. Full-product capabilities excluded from the comparison include: Tuned false-positive suppression: their bot has been beaten into silence by thousands of teams, yours has not; Incremental reindexing and monorepo handling that does not choke on a 500k file tree; Memory of past reviews so the same nit is not raised on every force push. Follow the implementation plan and its prerequisites before expanding the build.
How do I use the prompt, AGENTS.md and agent skills?
Start with the Greptile prerequisites and stack, then copy the prompt into your coding agent. Save the project rules as AGENTS.md in the project root. Linked skills are optional packages or source instructions for specific tasks; review their current contents and install only those matching the chosen stack. A skill does not supply API credentials or verify the finished app.
How long will this Greptile project take?
The catalogue estimate is a weekend for the limited scope. Setup, integration approvals, debugging, deployment and ongoing maintenance can add time. This is an estimate, not a delivery guarantee.
What would I give up by replacing Greptile?
Tuned false-positive suppression: their bot has been beaten into silence by thousands of teams, yours has not; Incremental reindexing and monorepo handling that does not choke on a 500k file tree; Memory of past reviews so the same nit is not raised on every force push; Team-level config, custom rule sets, and per-repo style learning from accepted or dismissed comments; Bitbucket, GitLab, and self-hosted host support, plus SOC 2 paperwork your security team will ask for. Because a noisy code reviewer is worse than none, and getting from noisy to useful is a long grind of prompt tuning, retrieval tweaks, and feedback loops you cannot shortcut with one prompt. Teams also want the review bot to be someone else's uptime problem, to work across every repo without a platform engineer babysitting an index, and to arrive with a compliance page attached. A per-developer fee is trivially cheaper than an engineer maintaining an in-house bot that everyone quietly mutes.
What price is this guide comparing against?
The recorded Pro plan is $30/mo per seat (monthly per seat), checked 2026-08-18. Check the linked pricing source before buying. Building your own also has hosting, API and maintenance costs; the recorded amount is not a guaranteed saving.
What can I use instead of building Greptile?
No alternative is listed in this entry yet. That is a gap in this catalogue, not proof that no suitable product exists. Compare the paid product and the proposed scope before committing to a build.