
Comprende
Understand the code AI writes for you, and prove it before you merge.
Website · Arabic
Comprende is a plugin for Claude Code, Cursor, Codex and Antigravity. It does two things:
- The agent explains the code it writes, briefly and in your language, but only the parts worth explaining: new APIs, non-obvious logic, risks. This works in every project.
- The ownership check (optional, per repo). Before your code is pushed, the agent asks you a few questions about it, and you write the PR summary. Without that, the push and the merge are blocked.
▶ Watch the video: Stop Merging AI Code You Don't Understand
Install
You need Node.js 20+. Install it in each tool you use, except Cursor next to Claude Code: Cursor already runs your Claude Code plugins.
Claude Code
Run these two commands in your terminal:
claude plugin marketplace add AbdulrahmanMasoud/comprende
claude plugin install comprende@comprende
Then restart Claude Code. To check it worked, type /mcp in Claude: comprende should be in the list.
This turns it on for all your projects. If you install from inside Claude with /plugin instead, pick the user scope: the project scope turns it on for one repo only.
Cursor
Clone it into Cursor's folder for local plugins:
git clone https://github.com/AbdulrahmanMasoud/comprende.git ~/.cursor/plugins/local/comprende
Then restart Cursor, or run Developer: Reload Window. If Cursor asks, approve the comprende MCP server: it remembers what you already know. To update: git -C ~/.cursor/plugins/local/comprende pull, then reload.
Already have it in Claude Code? Skip this. Cursor runs your Claude Code plugins too (its Third-Party Imports setting, on by default), so a second copy would load the skill twice. If that setting is off, install it in Cursor too. More in Comprende in other tools.
Codex
codex plugin marketplace add AbdulrahmanMasoud/comprende
codex plugin add comprende@comprende
Then open Codex in a repo, type /hooks, and trust Comprende's two hooks. Trust them again after every update (codex plugin marketplace upgrade comprende): until then Codex skips them without a word, so the agent's push isn't checked, though the git hook and CI still check it.
Antigravity
You need the Antigravity CLI, agy, 1.5.3 or later (getting started).
agy plugin install https://github.com/AbdulrahmanMasoud/comprende
Then start a new agy session. To update, run the same command again. Brought your Claude Code plugins over with agy plugin import claude? Run agy plugin install anyway, then check that agy plugin list shows one comprende, with Source: antigravity: a converted copy can send the always-on instruction twice.
It's tested in the CLI, on macOS. The Antigravity IDE and App aren't tested yet: a checklist to try them by hand.
On Windows, Comprende is experimental in Claude Code, Cursor and Codex. In Antigravity on Windows, its hooks don't do anything yet: CI still checks, and so does the git hook once you run node .learning/gate.mjs install-hooks (#10).
1. Explanations: just use Claude
There's nothing to set up. Ask for code as usual, and Claude explains what's new, non-obvious or risky. A real reply, shortened:
You: the search box sends a request on every keystroke. make it wait until the user stops typing
Claude: I added a debounce to the search box in search.js, so it now sends one request after the user pauses instead of one per keystroke.
How it works: each keystroke cancels the pending timer (clearTimeout) and starts a new one. search() only runs once 300ms pass with no typing.
One thing I added that you didn't ask for: each new request now cancels the previous one with an AbortController. …
A security problem I didn't fix: r.title goes straight into innerHTML. …
You can steer it, in any language:
| Say | What happens |
|---|
| "explain more", "why?" | One level deeper on that topic |
| "I know this", "skip" | Less on that topic, from now on |
| "just build" | No explanations until you ask. Risks still get one line |
| "check me" | An ownership check on your current change |