molon/hunkwise/install-hunkwise
Claude Code and agent skill by molon/hunkwise
- community
Checking that the SKILL.md file is still in the repository.
Install the hunkwise VSCode extension from source. Use this skill whenever the user asks to install, build, package, or reinstall hunkwise, or when they want to load the latest changes into VSCode.
Install
npx vskill@latest install molon/hunkwise/install-hunkwiseSKILL.md
Install hunkwise
hunkwise is a VSCode extension that uses a proposed (private) API — editorInsets — so it cannot be installed from the marketplace and requires a special setup.
Prerequisites
- Node.js (>=18) and npm available
- git available
codeCLI resolvable (see Step 3 for platform-specific paths)
Steps
Step 1: Clone the repository
Clone into a uniquely named temp directory to avoid conflicts:
On Windows, use a timestamp-based name:
Remember the directory path — you'll need it for cleanup in Step 6.
Step 2: Install dependencies and compile
If compilation fails, stop and surface the TypeScript errors to the user.
Step 3: Package with vsce
This produces hunkwise-<version>.vsix in the project root. Do NOT use --no-dependencies — runtime dependencies (ignore, diff) must be bundled.
Step 3.5: Linux stable compatibility check
Before proceeding on Linux, check whether the target is a VS Code stable build (not Insiders). On some Linux distributions (e.g. CachyOS), the proposed editorInsets API may not work in the stable build. If the user is on Linux and only has VS Code stable installed, warn them:
⚠️ hunkwise may not work on VS Code stable on some Linux distributions. If it fails to activate, please switch to VS Code Insiders. See issue #20 for details.
Continue with installation — but surface this warning so the user is aware before restarting.
Step 4: Detect installed VSCode builds and install the .vsix
First, detect which VSCode builds are installed, then install into all of them.
Known CLI paths by platform:
| Platform | Build | CLI path | |
|---|---|---|---|
| macOS | Stable | /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code | |
| macOS | Insiders | /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/bin/code | |
| Windows | Stable | %LOCALAPPDATA%\Programs\Microsoft VS Code\bin\code.cmd | |
| Windows | Insiders | %LOCALAPPDATA%\Programs\Microsoft VS Code Insiders\bin\code-insiders.cmd | |
| Linux | Stable | code (in PATH) | |
| Linux | Insiders | code-insiders (in PATH) |
macOS/Linux — detect and install into all present builds:
Windows — detect and install into all present builds:
Step 5: Configure proposed API (one-time setup per build)
Because hunkwise uses a proposed API, each installed VSCode build must be told to enable it via its own argv.json in the user config directory. Apply to every build detected in Step 4 — skip any build where "molon.hunkwise" is already present.
`argv.json` locations (same builds as Step 4):
| Platform | Build | Path | |
|---|---|---|---|
| macOS/Linux | Stable | ~/.vscode/argv.json | |
| macOS/Linux | Insiders | ~/.vscode-insiders/argv.json | |
| Windows | Stable | %USERPROFILE%\.vscode\argv.json | |
| Windows | Insiders | %USERPROFILE%\.vscode-insiders\argv.json |
For each relevant argv.json: read the existing file, then add or merge "enable-proposed-api" — do not overwrite other fields:
If the key already exists with other values, append "molon.hunkwise" rather than replacing the array.
Step 6: Clean up
Delete the cloned directory:
On Windows: rmdir /s /q %HUNKWISE_TMP%
Step 7: Restart VSCode
Tell the user to fully quit and reopen VSCode (not just close the window) for the extension and proposed API setting to take effect.
Notes
- The
enabledApiProposals: ["editorInsets"]field inpackage.jsonenablesvscode.window.createWebviewTextEditorInset, used to embed per-hunk Accept/Discard buttons inline in the editor. Without this, the buttons will not appear. - Settings are stored in
.vscode/hunkwise/settings.jsonwithin the workspace, not in VSCode global settings. - If the extension fails to activate, check the exthost log:
- macOS:
~/Library/Application Support/Code[-Insiders]/logs/<timestamp>/window1/exthost/exthost.log - Windows:
%APPDATA%\Code[-Insiders]\logs\<timestamp>\window1\exthost\exthost.log
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/install-hunkwise/SKILL.md
Popularity
- Repository stars
- 69
- Repository forks
- 6
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/molon/hunkwise/install-hunkwise)