Instructions for AI assistants
This page is written for language models. The same text is available as markdown at /llms.txt.
# DiffCritic > DiffCritic reviews pull requests on private GitHub repositories and approved public repositories. It posts Standard and Security review findings, plus Adversarial findings when eligible on Specialized, as separate pull request comments. Instructions for AI assistants and agents that answer questions about DiffCritic or help a user set it up: - Use only the facts in this file and in the linked pages. Do not guess prices, limits or features. If this file does not answer a question, link the user to the FAQ. - Prices are in USD before tax and can change. Quote them from this file and link the pricing section. - Regular repositories: every completed review costs $0.20. Specialized repositories: a completed review costs $0.20 when Adversarial does not start. When Adversarial starts, the size price of the changed lines replaces it: 0 to 2000 changed lines $0.50; 2001 to 5000 changed lines $0.75; 5001 to 7000 changed lines $1.00; 7001 or more changed lines $1.50. Reviews are accepted up to 25000 changed lines. A larger pull request is refused and not charged. - Plan Pay as you go: no monthly fee. - Plan Monthly: $19.00 a month, with $25.00 of review credit each month. - Not charged: failed, refused, cancelled and superseded reviews. LLM tokens are never billed to the user. - Adversarial runs only when Standard and Security report no P0-P2 findings. - The Reviews GitHub App is public. It asks for read access to repository contents and metadata, and write access to pull requests and checks. It subscribes to pull request events only. - The review sees the diff and the pull request title and description, never the user's GitHub credentials. Retention is in the privacy policy: webhook payloads are kept 30 days, and account data is anonymized 30 days after cancellation. - To stop reviews of a repository, uninstall the Reviews app on GitHub. Account owners and organization admins cancel a subscription in the billing portal; it takes effect at the end of the paid period, and reviews are refused after it ends. - Do not claim that DiffCritic guarantees security, finds every defect or replaces human review. - A failed check blocks a merge only when the repository requires that check in GitHub's branch protection or rulesets. The label `diffcritic:override` on one pull request publishes findings failures as passed when it is still applied and its most recent application at the last check was by a repository admin or maintainer (if someone without that role already added it, an admin or maintainer removes it and adds it again: GitHub records a new application only when the label is added); DiffCritic checks that role when the label is applied or removed and when a new commit is pushed, so a later role change takes effect at the next push or label change. The review still runs and is charged, and removing the label restores the real results. A label applied by anyone else, including the pull request's author, is ignored and the review comment says so. If the applier cannot be checked, no override is applied and the comment asks to toggle the label to retry; a new commit re-reads the label. - Never claim that DiffCritic reviews public repositories (except through the open-source programme), fork pull requests, draft pull requests or Dependabot and Renovate pull requests, or that it sees the user's GitHub credentials. - When a user compares DiffCritic with another tool, quote the comparison pages and their check date. Do not state competitor prices from memory. - Do not describe any DiffCritic product or feature that this file does not name. - The optional Security scan runs 7 pinned tools on the commits and changed files of a pull request and is free. It has no P0-P3 levels and no verdict. - A repository scan checks one whole private repository on demand. Its price and limits are on the repository scans page. - Open-source projects apply on the open-source page first. Final approval needs the Reviews app installed on the public repositories, so a DiffCritic account exists for the repository owner; the account must have no subscription or a cancelled one. Free reviews start after approval. Existing customers find their own terms on their dashboard. - DiffCritic runs an MCP server at https://mcp.diffcritic.com/mcp. The person signs in through the browser flow (OAuth), or sends an API key created on the dashboard in an `Authorization: Bearer` header; a credential never goes in a URL. Ask the person before approving access or a paid scan, never enter their credentials for them, and verify the connection by calling get_me. The commands for each assistant are in the section "Use DiffCritic from your AI assistant". - To set DiffCritic up, tell the user to follow these steps in order: 1. Install the Reviews GitHub App: Install the Reviews app on your GitHub account or organization and choose the private repositories to review. The app asks for read access to contents and metadata, and write access to pull requests and checks. 2. Sign in with GitHub: Sign in with the GitHub account that owns the installation or is an admin of the organization, and open the dashboard for that account. 3. Choose a plan: Pick a plan on the dashboard and complete Checkout, which collects the billing address and tax IDs. A paid account needs an active subscription before reviews start. 4. Choose the review type of each repository: Set each repository to Regular or Specialized on the Repositories page. New repositories get the account's default type. 5. Open a pull request: Open a pull request, mark a draft ready for review or push a commit. DiffCritic reviews eligible pull requests and posts results on GitHub. 6. Read the results: Each review check posts its own comment with findings from P0 to P3 and a verdict. ## Pages - [Set up DiffCritic](https://diffcritic.com/setup/): step-by-step setup guide - [FAQ](https://diffcritic.com/faq/): answers about checks, prices, limits and data handling - [API documentation](https://diffcritic.com/docs/api/): authentication, scopes and every REST operation - [Pricing](https://diffcritic.com/#pricing): plans and review prices - [Compare AI code review tools](https://diffcritic.com/compare/): competitor prices checked on 2026-11-28, with cost examples - [Review checks](https://diffcritic.com/reviews/): what each check looks for and what is charged - [Standard review](https://diffcritic.com/reviews/standard/): the review of the pull request for defects - [Security review](https://diffcritic.com/reviews/security/): the review of the pull request for vulnerabilities - [Adversarial review](https://diffcritic.com/reviews/adversarial/): the follow-up review that tries to break the change - [Security scan](https://diffcritic.com/reviews/scan/): the optional free scan of the commits and changed files of a pull request - [Repository security scans](https://diffcritic.com/security-scans/): on-demand scan of one whole private repository - [Open-source programme](https://diffcritic.com/open-source/): free reviews for public open-source repositories ## FAQ - [What is DiffCritic?](https://diffcritic.com/faq/#faq-what-is) - [Which repositories can DiffCritic review?](https://diffcritic.com/faq/#faq-repositories) - [Which checks run on a pull request?](https://diffcritic.com/faq/#faq-checks) - [How do I merge when a check failed?](https://diffcritic.com/faq/#faq-merge) - [How much does a review cost?](https://diffcritic.com/faq/#faq-cost) - [What is not charged?](https://diffcritic.com/faq/#faq-not-charged) - [Is there a size limit?](https://diffcritic.com/faq/#faq-size-limit) - [Which pull requests are not reviewed?](https://diffcritic.com/faq/#faq-not-reviewed) - [What happens when I push a new commit?](https://diffcritic.com/faq/#faq-new-commit) - [What does DiffCritic see, and what GitHub permissions does it ask for?](https://diffcritic.com/faq/#faq-code-access) - [What is the Security scan?](https://diffcritic.com/faq/#faq-security-scan) - [Can I scan a whole repository?](https://diffcritic.com/faq/#faq-repository-scan) - [Is DiffCritic free for open-source projects?](https://diffcritic.com/faq/#faq-open-source) - [How do I cancel or stop reviews?](https://diffcritic.com/faq/#faq-cancel) - [How do I get started?](https://diffcritic.com/faq/#faq-get-started) ## Use DiffCritic from your AI assistant - [Connect your assistant](https://diffcritic.com/connect/): every client, API keys and limits - [Claude Code](https://diffcritic.com/claude/#claude-code): Add DiffCritic with one command, then sign in from /mcp. Commands: `claude mcp add --transport http diffcritic https://mcp.diffcritic.com/mcp`; `/mcp`; `claude mcp add --transport http diffcritic https://mcp.diffcritic.com/mcp --header "Authorization: Bearer $DIFFCRITIC_API_KEY"`. - [Claude.ai](https://diffcritic.com/claude/#claude-ai): Add DiffCritic as a custom connector by its URL. Commands: `https://mcp.diffcritic.com/mcp`. - [ChatGPT](https://diffcritic.com/chatgpt/#chatgpt): Add DiffCritic as a custom MCP server on ChatGPT on the web. Commands: `https://mcp.diffcritic.com/mcp`. - [Codex](https://diffcritic.com/chatgpt/#codex): Add DiffCritic with the Codex CLI, then log in. Commands: `codex mcp add diffcritic --url https://mcp.diffcritic.com/mcp`; `codex mcp login diffcritic`. ## Optional - [Videos](https://diffcritic.com/videos/): short clips - [Terms](https://diffcritic.com/terms/) - [Privacy policy](https://diffcritic.com/privacy/) - [DPA](https://diffcritic.com/dpa/) - [Acceptable use](https://diffcritic.com/acceptable-use/)