Understand AI-written and existing code in plain language. Hover a changed line (or select any code) for a beginner-friendly explanation, right inside the editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Grasp explains AI-written and existing code in plain language, right inside
your editor. Hover a line the AI just changed — or select any code — and get a
beginner-friendly card: what it does for your app, a before → after story, a
quick way to see it working, and the concepts it teaches (with an optional video
lesson).
Built for people building with AI who want to understand what they shipped —
not just accept it.
What it does
Marks changed lines. A subtle accent on lines that differ from git.
Explains a change. Hover a changed region → ✦ Explain this change →
a card appears in the Grasp sidebar.
Explains any code. Hover a meaningful construct on any line, or select
code and run Grasp: Explain Selection → an explanation of what that piece
does and how it fits.
Video lessons (optional). With a YouTube key, each explanation can carry a
matching tutorial.
Reader levels. Beginner / Intermediate / Advanced — the card is written
for the reader you pick.
Everything renders in the sidebar. Your Mac running the Grasp app? The hover's
open in app link hands off to the native experience too.
Offer "Explain this code" on unchanged constructs.
grasp.model
gemini-flash-lite-latest
Which Gemini model to use.
grasp.verbosity
plain
Reader level: Beginner / Intermediate / Advanced.
grasp.video
true
Attach a video lesson (needs a YouTube key).
Privacy
Grasp sends the selected code and a small amount of surrounding context to
Google Gemini using your API key, to generate the explanation. No code is
sent anywhere else. Your keys are stored in the editor's encrypted secret
storage.
Develop
npm install
npm run build # bundle to dist/extension.js (esbuild)
npm run typecheck # tsc --noEmit
npm run package # build a .vsix (needs @vscode/vsce)
Press F5 to launch an Extension Development Host for local testing.