Lackey for VS Code
Lackey in VS Code: a coding agent whose whole
interface is your editor (an early release). There is no chat. Write in your code (a comment, a
sentence in a docstring, a function whose body is pass) and lackey answers where you wrote,
offers to do what you asked, and when you accept, works in your buffers while you keep typing.
Everything it makes is a change in your editor, unsaved, that you review, edit and undo.
It runs Claude Code on your own subscription. Each task you accept is one Claude Code session
(claude -p, started by lackey in your project) on your own login, so you need
Claude Code installed and signed in (claude on
your PATH). Tasks count against your Claude usage; lackey caps each one (2.00 dollars of
usage by default, budget_per_task) and lackey cost shows what it spent. Answering
questions and checking claims use the provider in your Sorcerer config, and the triage that
finds them uses Jev (JEV_API_KEY; free sign-up at typesafe.ai, then
export JEV_API_KEY=… in your shell profile and restart VS Code); without it only empty
function bodies are offered.
Your first offer. In a Python file (or any code language sorcerer ships, in its own comment),
on a line of its own at the end (not inside a function), write # Add a median(prices) function that returns the middle price. and stop typing. About two seconds later a faint lackey: I can do this · ~$0.50 · sonnet hint appears;
ctrl+m a runs it. A comment inside a function that describes a change may be read as an aside
and get no offer: put the request above the function, or label it with ctrl+m l l. The whole
path is in Getting started.
The extension is thin: it starts lackey lsp for each workspace folder and VS Code does most
of the rest. Marks are diagnostics of source lackey (the Problems panel, the squiggles,
the hover); their code actions are the lightbulb's: lackey: do this · ~$0.50 · sonnet,
Show code, Keep this answer, Dismiss, the four labels (lackey: this was a question …),
and on a finished task's mark Show diff, Undo this task and Show journal; Stop this task
on any line while one runs. A question the agent asks on a line is a mark there with one action
per option; a command it wants to run is asked in a notification with buttons. The status bar
says what a running task does.
What the extension draws itself:
- the grey
⟳ lackey: writing… after the line being written;
- ghost lines: a line the agent suggests you type, as grey text after the line it belongs
under (
⤷ …, the whole of it on hover); your next edit of that line takes it away;
- the agent's notes, opened in the column beside your code;
- Show diff: VS Code's diff view of the file before the task against the live buffer, in a
tab of its own;
- a violet sparkle in the gutter (and a tick in the overview ruler) on each file's first line a
finished task changed.
Keys
The same letters as the Neovim plugin's <leader>m keys, each running the action the lightbulb
would offer on the cursor's line:
| keys |
does |
ctrl+m a, ctrl+m l a |
do this, whatever its price |
ctrl+m q, ctrl+m l q |
stop the running task |
ctrl+m l d |
show the diff of the task in this file |
ctrl+m l z |
undo the task |
ctrl+m l j |
the task's journal |
ctrl+m l o |
open the answer: a long answer, beside your code |
ctrl+m l x |
dismiss lackey's answer or verdict on the line |
ctrl+m l l |
label what you wrote: the four labels, to pick one |
ctrl+m u |
undo the last change, when a lackey task made it |
In the Command Palette they are under lackey (lackey: Do this).
On macOS ctrl is the Control key, not Command. A line that offers no such action says so in the
status bar. On Windows and Linux ctrl+m alone is VS Code's "Toggle Tab Key Moves Focus"; as
the first key of a chord it no longer does that. Change or remove a binding in Keyboard
Shortcuts (search lackey.keys).
Permission questions
Every command the agent wants to run is asked: Allow once, Always for this project (…) or
Deny, in a notification with those buttons. Closing it, or leaving it for two minutes, is a
deny. With VS Code's Do Not Disturb on, the notification is hidden in the notification centre
(the bell), so the command waits there and is denied when the two minutes are up.
Install
Install the extension from the Marketplace. VS Code forks such as VSCodium and Cursor use Open
VSX, which does not list Lackey yet: install the .vsix attached to the GitHub release (0.3.0 and every
release after) with codium --install-extension lackey-<version>.vsix.
code --install-extension sorcererdev.lackey
and the program. macOS and Linux:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/sorcererdev/sorcerer/releases/latest/download/sorcerer-lackey-installer.sh | sh
Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://github.com/sorcererdev/sorcerer/releases/latest/download/sorcerer-lackey-installer.ps1 | iex"
Or with Rust: cargo install sorcerer-lackey.
The extension finds lackey from the lackey.path user setting, then PATH, then
~/.cargo/bin and ~/.local/bin. With none it offers to download it, or tells you the install
line above. lackey needs claude on your PATH (run claude once and log in) and, if the
project's own .sorcerer/config.toml runs a program or sends your key somewhere, that you trust
it (lackey trust). lackey doctor checks both, and says whether trust is needed. See the
user book.