Take a pawn break while waiting for your agent code to finish! This extension embeds Lichess's chess puzzle trainer directly in Cursor/VS Code.
- Solve chess puzzles from Lichess without leaving your editor
- Opens in a side panel so you can keep an eye on your code
- Automatically opens a new puzzle when you submit a prompt (optional setup)
- Open the Command Palette (
Cmd+Shift+Pon Mac orCtrl+Shift+Pon Windows/Linux) - Type "Pawn Break: Open Puzzle"
- Start solving puzzles!
You can have Pawn Break automatically open a puzzle every time you submit a prompt to Cursor's AI. This uses Cursor Hooks:
- Open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Run "Pawn Break: Setup Auto-Trigger"
- That's it! The command creates a
.cursor/hooks.jsonand a small shell script in your workspace. The next time you submit a prompt, a puzzle will appear automatically.
Note: The auto-trigger uses Cursor Hooks, which run shell scripts. This works on macOS and Linux. Windows support is not yet available.
Search for "Pawn Break" in the Extensions view (Cmd+Shift+X / Ctrl+Shift+X)
in Cursor or VS Code, or install it directly:
- VS Code Marketplace: Pawn Break
- Open VSX Registry: Pawn Break
If you want to run a local build instead of the marketplace version:
-
Clone the repo and install dependencies:
git clone https://github.com/mrdmnd/pawnbreak.git cd pawnbreak npm install -
Package the extension into a
.vsixfile:npm run package
This produces
pawn-break-<version>.vsixin the project root. -
Install the
.vsixin Cursor / VS Code:- Open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Run "Extensions: Install from VSIX..."
- Select the generated
.vsixfile
- Open the Command Palette (
-
Set the auto-trigger via the command palette: "Pawn Break: Setup Auto-Trigger"
- Open this folder in VS Code / Cursor
- Press
F5to launch a new Extension Development Host window - In the new window, open the Command Palette and run "Pawn Break: Open Puzzle"
Changes to extension.js are picked up each time you relaunch (F5).
npm install -g @vscode/vsce ovsxEdit version in package.json, then:
npm run package # sanity-check that the .vsix builds cleanlyvsce publishYou need a Personal Access Token (PAT) for the mrdmnd publisher. Create one at
https://dev.azure.com/mrdmnd/_usersSettings/tokens with the Marketplace > Manage scope.
On first use, run vsce login mrdmnd and paste the token.
npm run publish:ovsxRequires the OVSX_TOKEN environment variable. Generate a token at
https://open-vsx.org/user-settings/tokens.
- Tag the release:
git tag v<version> && git push --tags - Verify the listing on the VS Code Marketplace
- Verify the listing on Open VSX
Chess puzzles provided by Lichess — a free, open-source chess server.