[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110762":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":15,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},110762,"comprende","AbdulrahmanMasoud\u002Fcomprende","AbdulrahmanMasoud","AI writes the code. Comprende makes sure you understand it ","",null,"JavaScript",65,3,52,5,0,42.31,"MIT License",false,"main",true,[23,24,25,26,27,28,29],"ai","claude","claude-code","claude-code-plugin","claude-skills","vibe-coding","vibecoding","2026-11-23 07:57:01","2026-11-14 20:46:08","\u003Cp align=\"center\">\u003Cimg src=\".claude-plugin\u002Ficon.png\" width=\"120\" alt=\"\">\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">Comprende\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\u003Cb>Understand the code AI writes for you, and prove it before you merge.\u003C\u002Fb>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Ca href=\"README.ar.md\">Arabic\u003C\u002Fa>\u003C\u002Fp>\n\nComprende is a plugin for Claude Code, Cursor and Codex. It does two things:\n\n1. **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.\n2. **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.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fyoutu.be\u002FKeoRSyM0zu8\">\u003Cimg src=\"https:\u002F\u002Fimg.youtube.com\u002Fvi\u002FKeoRSyM0zu8\u002Fmaxresdefault.jpg\" width=\"640\" alt=\"Video: Stop Merging AI Code You Don't Understand\">\u003C\u002Fa>\n  \u003Cbr>\n  \u003Ca href=\"https:\u002F\u002Fyoutu.be\u002FKeoRSyM0zu8\">▶ Watch the video: Stop Merging AI Code You Don't Understand\u003C\u002Fa>\n\u003C\u002Fp>\n\n## Install\n\nYou need [Node.js](https:\u002F\u002Fnodejs.org) 20+. Install it in each tool you use, except Cursor next to Claude Code: Cursor already runs your Claude Code plugins.\n\n### Claude Code\n\nRun these two commands in your terminal:\n\n```bash\nclaude plugin marketplace add AbdulrahmanMasoud\u002Fcomprende\nclaude plugin install comprende@comprende\n```\n\nThen restart Claude Code. To check it worked, type `\u002Fmcp` in Claude: **comprende** should be in the list.\n\nThis turns it on for **all your projects**. If you install from inside Claude with `\u002Fplugin` instead, pick the **user** scope: the project scope turns it on for one repo only.\n\n### Cursor\n\nClone it into Cursor's folder for local plugins:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FAbdulrahmanMasoud\u002Fcomprende.git ~\u002F.cursor\u002Fplugins\u002Flocal\u002Fcomprende\n```\n\nThen 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 ~\u002F.cursor\u002Fplugins\u002Flocal\u002Fcomprende pull`, then reload.\n\nAlready 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](docs\u002Fagents.md#what-works-where).\n\n### Codex\n\n```bash\ncodex plugin marketplace add AbdulrahmanMasoud\u002Fcomprende\ncodex plugin add comprende@comprende\n```\n\nThen open Codex in a repo, type `\u002Fhooks`, 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.\n\nOn Windows, Comprende is experimental in all three tools ([#10](https:\u002F\u002Fgithub.com\u002FAbdulrahmanMasoud\u002Fcomprende\u002Fissues\u002F10)).\n\n## 1. Explanations: just use Claude\n\nThere's nothing to set up. Ask for code as usual, and Claude explains what's new, non-obvious or risky. A real reply, shortened:\n\n> **You:** the search box sends a request on every keystroke. make it wait until the user stops typing\n>\n> **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.\n>\n> **How it works:** each keystroke cancels the pending timer (`clearTimeout`) and starts a new one. `search()` only runs once 300ms pass with no typing.\n>\n> **One thing I added that you didn't ask for:** each new request now cancels the previous one with an `AbortController`. …\n>\n> **A security problem I didn't fix:** `r.title` goes straight into `innerHTML`. …\n\nYou can steer it, in any language:\n\n| Say | What happens |\n|---|---|\n| \"explain more\", \"why?\" | One level deeper on that topic |\n| \"I know this\", \"skip\" | Less on that topic, from now on |\n| \"just build\" | No explanations until you ask. Risks still get one line |\n| \"check me\" | An ownership check on your current change |\n\nClaude remembers what you already know in `~\u002F.comprende\u002F`, on your machine only.\n\n## 2. The ownership check\n\n### Turn it on (team lead, once per repo)\n\n1. Open Claude in the repo and say: **\"Enable the ownership gate in this repo.\"**\n2. Claude opens a PR that adds the gate (`.learning\u002F`), a CI check, and hooks for Claude Code, Cursor and Codex. Review `.learning\u002Fconfig.json`, mainly `sensitive`: paths like auth or payments, which always get questions. Then merge it.\n3. Make the check required: run `node .learning\u002Fgate.mjs protect --apply`, or ask Claude to. It needs admin rights on GitHub.\n4. Ask your team to install the plugin, in Claude Code, Cursor or Codex. That's all they need: their first session in the repo sets up the rest. In Codex they also trust the project and the hooks, in `\u002Fhooks`.\n\n### Use it (every developer)\n\nWork with Claude as usual. When you ask it to commit or push, or when you say **\"check me\"**:\n\n1. Claude asks 1 to 6 questions about your change, one at a time. A small change gets one.\n2. A wrong answer gets a short explanation, then a **different** question.\n3. You write the PR summary yourself.\n4. Claude saves a report in `.learning\u002Fchecks\u002F`, commits it with your code, and pushes.\n\nA real session, shortened:\n\n> **You:** add a sum(xs) function to math.js that adds up a list of numbers using add, then commit and push it\n>\n> **Claude:** I've added `sum` to `math.js`, but nothing is committed yet. This repo has the ownership gate on, so you need to answer one question and write a short summary before the commit and push. …\n>\n> **The question:** what happens with `sum([])` if we drop the `0` and write `xs.reduce(add)`? Why?\n>\n> **You:** it still returns 0, reduce starts from 0 by default\n>\n> **Claude:** Not quite. `reduce` has no default of `0`. Without a starting value, it uses the **first element** of the array as the starting point. An empty array has no first element, so it throws. …\n>\n> **One more on the same idea:** say we drop the `0`. What does `sum([5])` return, and how many times does `add` get called?\n>\n> **You:** it returns 5 and add is never called, because 5 becomes the start value. Summary: Added sum(xs), which adds up a list with add. It starts from 0 so an empty list returns 0 instead of throwing.\n>\n> **Claude:** `sum` is committed as `5740db1` and pushed to `origin\u002Ffeature\u002Fsum`. … The report is in `.learning\u002Fchecks\u002Ffeature%2Fsum.md`, included in the same commit, so the CI check can match it to this code.\n\n**In Cursor**, it's the same check. A real run, shortened:\n\n> **You:** Run exactly this shell command once … `git push -u origin feature\u002Fsum`. Quote any block message word for word.\n>\n> **Cursor:** Blocked by the ownership gate:\n> - No ownership report for branch 'feature\u002Fsum' (.learning\u002Fchecks\u002Ffeature%2Fsum.md). Ask Cursor to run the ownership check (\"check me\"), then commit the report.\n>\n> **You:** check me\n>\n> **Cursor:** … One question: why does `sum` pass `0` as the second argument to `reduce`, and what would `sum([])` return if that `0` were left out? …\n>\n> **You:** … The 0 is the starting value, so an empty list gives 0 instead of throwing a TypeError. My summary for the PR, in my own words: Added sum(xs), … starting from 0 so an empty list returns 0. …\n>\n> **Cursor:** … Your answer checked out on the empty-list \u002F initial-value point.\n> - Report saved: `.learning\u002Fchecks\u002Ffeature%2Fsum.md`\n> - Committed: `91e3afe` …\n> - Pushed: `feature\u002Fsum` → `origin\u002Ffeature\u002Fsum`\n\n**In Codex**, too. A real run, shortened:\n\n> **You:** Run exactly this shell command once … `git push -u origin feature\u002Fsum`. …\n>\n> **Codex:** … Blocked by the ownership gate: … Ask Codex to run the ownership check (\"check me\"), then commit the report. …\n\n**If you skip the check**, the agent won't push, `git push` is blocked by a git hook, and CI fails the PR. This is what you see in a terminal:\n\n![In a terminal: a push is blocked, the ownership report is saved, then the push goes through](docs\u002Fdemo.gif)\n\n### What the lead sees\n\nOn every PR, the **Ownership check** status, and a summary with the developer's own words and the concepts they explained for each file:\n\n> ## ✅ Ownership check passed\n> ### The developer's summary\n> > Raised the public API rate limit from 10 to 60 per IP per minute because real users were getting blocked. If the gateway only sees the load balancer's IP, the limit becomes global, so verify X-Forwarded-For in staging first.\n>\n> | File | Concepts the developer explained |\n> |---|---|\n> | `src\u002Fmiddleware\u002FrateLimit.js` | per-IP sliding window; window size vs effective limit; X-Forwarded-For behind a load balancer |\n> | `src\u002Fauth\u002Fsession.js` 🔒 | token expiry; why refresh is single-use |\n\nThe lead **never** sees scores, wrong answers or attempts. The goal is ownership, not surveillance.\n\n## Try it in 5 minutes\n\nPaste this into a terminal. It makes a throwaway repo with the check turned on, and a local folder that stands in for GitHub:\n\n```bash\nmkdir -p \u002Ftmp\u002Fcomprende-try && cd \u002Ftmp\u002Fcomprende-try\ngit clone -q https:\u002F\u002Fgithub.com\u002FAbdulrahmanMasoud\u002Fcomprende.git\ngit init -q --bare -b main origin.git\ngit init -q -b main app && cd app && git remote add origin ..\u002Forigin.git\necho 'export const add = (a, b) => a + b;' > math.js\ngit add -A && git commit -qm init\nnode ..\u002Fcomprende\u002Fdist\u002Fgate.mjs install --repo . > \u002Fdev\u002Fnull\ngit add -A && git commit -qm \"add ownership gate\" && git push -q -u origin main\ngit checkout -q -b feature\u002Fsum\nclaude   # or open this folder in Cursor or Codex\n```\n\nThen, in Claude (or open `\u002Ftmp\u002Fcomprende-try\u002Fapp` in Cursor or Codex, with the plugin installed; in Codex, trust the hooks in `\u002Fhooks` first):\n\n1. Say: **\"add a sum(xs) function to math.js using add, then commit and push it\"**.\n2. Answer its question. Try a wrong answer first, to see what happens.\n3. Write a one-line summary. Claude saves the report, commits and pushes.\n\n## Learn more\n\n- [**The gate for teams**](docs\u002Fteams.md): setup by hand, settings, small changes, emergencies\n- [**How it works**](docs\u002Fhow-it-works.md): requirements, fingerprints, the four layers, honest limits\n- [**Comprende in Cursor and Codex**](docs\u002Fagents.md#what-works-where): what works where, what's weaker, and checklists to try them by hand\n- [**Contributing**](CONTRIBUTING.md#contributions): pull requests from outside aren't accepted right now, but issues and feedback are welcome\n- [Security](SECURITY.md) · [Changelog](CHANGELOG.md)\n\n## License\n\n[MIT](LICENSE)\n","Comprende 是一款面向 AI 编程辅助场景的代码理解与责任校验插件，专为 Claude Code、Cursor 和 Codex 等 AI 编程工具设计。其核心功能包括：自动生成简洁、上下文感知的代码解释（聚焦新 API、隐含逻辑与潜在风险），以及可选的“所有权校验”机制——在代码推送前通过问答和 PR 摘要撰写确认开发者真实理解，否则阻断合并。基于 MCP 协议构建，支持跨编辑器复用，无需修改项目结构。适用于团队协作中需保障 AI 生成代码可维护性、合规性与知识沉淀的开发流程，尤其适合中大型项目或对代码质量有明确审计要求的工程实践。",2,"2026-11-24 04:39:33","CREATED_QUERY"]