cd /news/ai-tools/show-hn-grapim-open-source-ai-code-r… · home › topics › ai-tools › article
[ARTICLE · art-170682] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: Grapim, open-source AI code review that runs on your own model key

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.

read6 min views6 publishedNov 16, 2026
Show HN: Grapim, open-source AI code review that runs on your own model key
Image: Michielbdejong (auto-discovered)

Website · Docs · Pricing · Changelog · LinkedIn

Code review that knows what your agents were asked.

Grapim 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.

It runs two ways:

  • Cloud review. Install the Grapim GitHub App atapp.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.
  • In your own CI. Add one workflow file (action/review ). 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.

Setup for both: app.grapim.com/docs/review.

Install the GitHub App 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.

The 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, and any single run can be undone without touching anyone else's work.

$ grapim runs
RUN              WORKTREE  WORKING ON                       TURNS  FILES  +    -   IN TREE  REVIEW    LAST
codex 019a3c3e   main      Rename the logger                1      3      +9   -9  yes      approved  1m ago
claude 1a2b3c4d  billing   Add a /billing route with tests  2      2      +41  -1  yes      pending   3m ago

$ grapim undo 1a2b
Undo claude 1a2b3c4d · 2 files

  revert    src/app.js      its edits removed, later work by others kept
  delete    src/billing.js  created by this run

Nothing was changed. Run again with --yes to apply the 2 clean ones.

Node.js 22.13 or newer. No dependencies. No telemetry.

npm install -g grapim
cd your-repo
grapim init

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.

Send the runs to your team for review:

Sign in at app.grapim.com , then Settings, Machine tokens, and create a token. 2. Give it to grapim and start syncing:

export GRAPIM_HUB_TOKEN=cmh_...      # PowerShell: $env:GRAPIM_HUB_TOKEN = "cmh_..."
grapim sync --watch

Runs 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 for the whole path.

Why 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.

Agent How Grapim sees its edits What grapim init writes Stops an edit to a file another agent holds Status
Claude Code Native hooks: PreToolUse /PostToolUse on Edit, Write, MultiEdit, NotebookEdit, and Bash (files a shell command changes, compared withgit status before and after) .claude/settings.local.json Yes Stable
Codex CLI Native hooks: PreToolUse /PostToolUse onapply_patch andBash .codex/hooks.json . Codex runs project hooks only after you trust them: run/hooks in Codex once. Yes Beta
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
Gemini CLI Native hooks: BeforeTool /AfterTool onwrite_file ,replace ,run_shell_command .gemini/settings.json Yes Beta
Other MCP clients The grapim mcp server: the agent callsclaim_files before editing andrelease_files after nothing; add grapim mcp as a stdio MCP server Yes, when the agent calls the tools Works only if the agent cooperates
GitHub Copilot coding agent Not recorded as runs. Its commits reach your pull requests like any other. nothing No Not supported

Beta: 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.

Shell 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.

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.

grapim runs                      # every agent run: intent, turns, files, +/- lines, still in the tree?
grapim blame src/app.js          # which run and turn wrote each line that differs from HEAD
grapim blame src/app.js --history  # every line, committed or not: agent, prompt, or human
grapim undo <run> [--turn N]     # take one run (or one turn) back out; prints the plan, --yes applies it
grapim branch <run>              # put one run's changes on their own git branch
grapim review <run> --approve    # or --reject, --pending, with --note "..."
grapim status --watch            # which agents are active and which files they hold right now
grapim serve --open              # the review desk in your browser, on this machine

In 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.

When 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.

  • Runs, file versions and prompts stay in .git/grapim/ on your machine until you rungrapim sync .

  • grapim sync sends them only to the hub you name (defaulthttps://app.grapim.com ), with your machine token.

  • No telemetry. grapim connects to a server only when you run sync ,folder ormount .

  • 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.

  • Docs: app.grapim.com/docs . Every command:docs/cli.md , orgrapim --help .

  • Questions, bugs and ideas: app.grapim.com/support .

── more in #ai-tools 4 stories · sorted by recency
── more on @grapim 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-grapim-open-…] indexed:0 read:6min 2026-11-16 · —