{"slug": "show-hn-grapim-open-source-ai-code-review-that-runs-on-your-own-model-key", "title": "Show HN: Grapim, open-source AI code review that runs on your own model key", "summary": "Grapim launched an open-source AI code review tool that runs either through its hosted GitHub App or inside a customer's own CI using the customer's Anthropic, Amazon Bedrock, Google Vertex AI or Microsoft Foundry account, in which case Grapim's servers receive nothing. The tool records every change made by Claude Code, Codex CLI, Cursor and Gemini CLI as a \"run\" — capturing which agent, prompt, turn and lines — so reviewers can flag unrequested work such as a dropped column, deleted test or weakened check, and can undo a single run without touching others' work. Grapim offers about 50 free reviews a month per public repository with no account required, skips pull requests opened by bots, and requires Node.js 22.13 or newer with no dependencies and no telemetry.", "body_md": "[Website](https://grapim.com) · [Docs](https://grapim.com/docs/review) · [Pricing](https://grapim.com/pricing) · [Changelog](https://grapim.com/changelog) · [LinkedIn](https://www.linkedin.com/company/grapim)\n\n**Code review that knows what your agents were asked.**\n\nGrapim reviews every pull request and comments on the lines that need attention. When Claude Code, Codex, Cursor or Gemini CLI wrote the change, it knows which run wrote each line and what that run was asked to do, so it also flags work nobody asked for: a dropped column, a deleted test, a weakened check.\n\nIt runs two ways:\n\n- **Cloud review.** Install the Grapim GitHub App at[app.grapim.com](https://app.grapim.com) and turn on Cloud review. Each pull request is reviewed in about a minute on Grapim's model account. Every plan includes a monthly review credit.\n- **In your own CI.** Add one workflow file ([action/review](https://github.com/grapim/grapim/blob/main/action/review/README.md) ). The review runs on your GitHub runner with your own Anthropic, Amazon Bedrock, Google Vertex AI or Microsoft Foundry account, and Grapim's servers receive nothing.\n\nSetup for both: [app.grapim.com/docs/review](https://app.grapim.com/docs/review).\n\nInstall the [GitHub App](https://github.com/apps/grapim) on a public repository and every pull request is reviewed free, with no account to create. Each repository gets about 50 free reviews a month, and pull requests opened by bots are skipped. Private repositories need a team with cloud review on. Details: [Free for open source](https://grapim.com/docs/review#free-for-open-source).\n\nThe review knows who wrote each line because the CLI records every change your coding agents make as a *run*: which agent, which prompt, which turn, which lines. Your team approves runs at [app.grapim.com](https://app.grapim.com), and any single run can be undone without touching anyone else's work.\n\n``` bash\n$ grapim runs\nRUN              WORKTREE  WORKING ON                       TURNS  FILES  +    -   IN TREE  REVIEW    LAST\ncodex 019a3c3e   main      Rename the logger                1      3      +9   -9  yes      approved  1m ago\nclaude 1a2b3c4d  billing   Add a /billing route with tests  2      2      +41  -1  yes      pending   3m ago\n\n$ grapim undo 1a2b\nUndo claude 1a2b3c4d · 2 files\n\n  revert    src/app.js      its edits removed, later work by others kept\n  delete    src/billing.js  created by this run\n\nNothing was changed. Run again with --yes to apply the 2 clean ones.\n```\n\nNode.js 22.13 or newer. No dependencies. No telemetry.\n\n```\nnpm install -g grapim\ncd your-repo\ngrapim init\n```\n\n`grapim init` finds the coding agents you use (Claude Code, Codex CLI, Cursor, Gemini CLI) and hooks each one in, merged into your existing config. From then on, every edit they make in this repo is recorded on your machine. Restart any agent that was already running.\n\nSend the runs to your team for review:\n\n1. \nSign in at [app.grapim.com](https://app.grapim.com) , then Settings, Machine tokens, and create a token.\n2. \nGive it to grapim and start syncing: \n\n```\nexport GRAPIM_HUB_TOKEN=cmh_...      # PowerShell: $env:GRAPIM_HUB_TOKEN = \"cmh_...\"\ngrapim sync --watch\n```\n\nRuns appear in the hub's Reviews within seconds. A teammate (not the person who synced the run) approves or rejects each one there; with the GitHub App installed, pull requests holding unapproved runs fail the Grapim check. See the [quickstart](https://app.grapim.com/docs) for the whole path.\n\nWhy not `npx grapim init`? The hooks call grapim on every edit, and npx runs packages from a cache folder npm clears. `grapim init` run through npx points the hooks at your global install, or asks you to make one.\n\n| Agent | How Grapim sees its edits | What `grapim init` writes | Stops an edit to a file another agent holds | Status | \n|---|---|---|---|---|\n| Claude Code | Native hooks: `PreToolUse` /`PostToolUse` on Edit, Write, MultiEdit, NotebookEdit, and Bash (files a shell command changes, compared with`git status` before and after) | `.claude/settings.local.json` | Yes | Stable | \n| Codex CLI | Native hooks: `PreToolUse` /`PostToolUse` on`apply_patch` and`Bash` | `.codex/hooks.json` . Codex runs project hooks only after you trust them: run`/hooks` in Codex once. | Yes | Beta | \n| Cursor | Native hooks: `afterFileEdit` ,`afterShellExecution` ,`beforeSubmitPrompt` ,`sessionEnd` . Shell commands are recorded from the prompt or the previous command to the end of each command. | `.cursor/hooks.json` | No: Cursor reports an edit after it happens, so a clash is recorded, not stopped | Beta | \n| Gemini CLI | Native hooks: `BeforeTool` /`AfterTool` on`write_file` ,`replace` ,`run_shell_command` | `.gemini/settings.json` | Yes | Beta | \n| Other MCP clients | The `grapim mcp` server: the agent calls`claim_files` before editing and`release_files` after | nothing; add `grapim mcp` as a stdio MCP server | Yes, when the agent calls the tools | Works only if the agent cooperates | \n| GitHub Copilot coding agent | Not recorded as runs. Its commits reach your pull requests like any other. | nothing | No | Not supported | \n\nBeta: built from each agent's published hook reference and tested with its documented payloads, not yet across every version of the agent. Tell us when something is missed.\n\nShell commands an agent runs (`sed -i`, a code generator) are recorded by comparing `git status` before and after each command. Files git ignores (`node_modules` after `npm install`) and files outside the repository are not recorded. Changes no agent made show as `outside agents` in `grapim blame`.\n\n`grapim init --agents claude,codex,cursor,gemini` (or `all`) sets up agents it did not find. A config file `init` creates is added to `.git/info/exclude`, since it holds a path on your machine. A file that is not valid JSON is left alone and reported.\n\n```\ngrapim runs                      # every agent run: intent, turns, files, +/- lines, still in the tree?\ngrapim blame src/app.js          # which run and turn wrote each line that differs from HEAD\ngrapim blame src/app.js --history  # every line, committed or not: agent, prompt, or human\ngrapim undo <run> [--turn N]     # take one run (or one turn) back out; prints the plan, --yes applies it\ngrapim branch <run>              # put one run's changes on their own git branch\ngrapim review <run> --approve    # or --reject, --pending, with --note \"...\"\ngrapim status --watch            # which agents are active and which files they hold right now\ngrapim serve --open              # the review desk in your browser, on this machine\n```\n\nIn a git repo, `grapim init` also installs `post-commit` and `pre-push` hooks that keep AI provenance as git notes (`refs/notes/grapim`), so a commit still says which lines an agent wrote after the uncommitted state is gone. They chain to hooks you already have and never fail a commit or a push. `grapim init --no-intents` leaves prompts out of the notes.\n\nWhen two agents work in the same repo, or in two worktrees of it, the one that reaches a file second is stopped before it writes and told who holds it and why, so it moves on to other work.\n\n- Runs, file versions and prompts stay in `.git/grapim/` on your machine until you run`grapim sync` .\n- `grapim sync` sends them only to the hub you name (default`https://app.grapim.com` ), with your machine token.\n- No telemetry. grapim connects to a server only when you run `sync` ,`folder` or`mount` .\n- Grapim Review in your own CI sends changes only to your model account. Cloud review fetches each pull request into a temporary folder on Grapim's server, sends it to Anthropic for the review and deletes it when the review ends.\n\n- Docs: [app.grapim.com/docs](https://app.grapim.com/docs) . Every command:[docs/cli.md](https://github.com/grapim/grapim/blob/main/docs/cli.md) , or`grapim --help` .\n- Questions, bugs and ideas: [app.grapim.com/support](https://app.grapim.com/support) .", "url": "https://wpnews.pro/news/show-hn-grapim-open-source-ai-code-review-that-runs-on-your-own-model-key", "canonical_source": "https://github.com/grapim/grapim", "published_at": "2026-11-16 15:45:17+00:00", "updated_at": "2026-11-16 15:54:34.578580+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents", "artificial-intelligence"], "entities": ["Grapim", "Claude Code", "Codex CLI", "Cursor", "Gemini CLI", "Anthropic", "Amazon Bedrock", "Google Vertex AI"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/show-hn-grapim-open-source-ai-code-review-that-runs-on-your-own-model-key", "markdown": "https://wpnews.pro/news/show-hn-grapim-open-source-ai-code-review-that-runs-on-your-own-model-key.md", "text": "https://wpnews.pro/news/show-hn-grapim-open-source-ai-code-review-that-runs-on-your-own-model-key.txt", "jsonld": "https://wpnews.pro/news/show-hn-grapim-open-source-ai-code-review-that-runs-on-your-own-model-key.jsonld"}}