/dev-workspace:repl-driven-extension-devfrom dev-workspace
Guides REPL-driven VS Code extension development in ClojureScript using two windows, fiddle files, and a human-agent-REPL team. Covers hot reload, watch compilation, webview screenshots, and deciding when a restart is needed.
Ships in dev-workspace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The hop between two live environments, and the team that uses it. The human, the agent and the REPL work together, and files are the shared bench.
This skill stands on the clojure skill, in the clojure plugin, and on the backseat-driver skill, which comes with Backseat Driver, for evaluation, sessions, runtimes and structural editing. The shadow-cljs skill, in the shadow-cljs plugin, covers the build and its watch. Starting and restarting the dev environment is the automating-dev-workspaces skill's, in this plugin.
This skill covers what every VS Code extension written in ClojureScript shares: the two windows, the fiddle loop, the watch, reloads, and webview shots. Each project's own names live in its agent docs, such as its AGENTS.md or a skill of its own: its builds and watch tasks, its extension host target and the form that identifies it, its test project, its fiddle folder, and what its reloads reach. Read them first.
The human evaluates from the file, the current form or a selection. That is how they join. They may leave notes for the agent in a fiddle, as comments with a marker of their own.
The agent explores with REPL tools, then lands what worked in the fiddle's Rich Comment Form ((comment ... :rcf)), so the human can replay and extend it. It creates a fiddle when the topic has none, and tends stale forms.
The shared bench. Chat is for coordination, and for (in-ns '...) blocks when a one-off helps. Lasting work lives in fiddle RCFs. A verified hop that exists only in chat is unfinished.
The RCF shape, the notes' markers, and how to tend fiddles: fiddles-and-rcfs.md.
The source window is on the extension repo. It runs the project's watch tasks and holds the REPL sessions.
The dev Extension Host is VS Code's Extension Development Host: a second VS Code window that runs the extension under test. Its extension host is a Node process. When the extension is ClojureScript, a shadow-cljs build connects that process to the source window's cljs session as a runtime. That runtime is the extension host target. Pass its runtime id as targetRuntimeId. It gets a new id with each reload of the dev Extension Host.
What the human opens inside the dev Extension Host is the test project. Some extensions reach it through their own API from the extension host target. With Calva running in the dev Extension Host, its API reaches the test project's REPL sessions from there: calling-the-inner-repl.md.
From the source window:
clj session is the extension repo's own JVM, a different process from anything in the dev Extension Host;vscode and the extension's own state;Operate both windows through the REPL and Joyride. Scripting the GUI, or driving the human's apps, takes their screen and their focus.
Do this before the actual task. Land useful forms in the current topic fiddle as you go.
clojure_list_sessions with all runtimes.The project's agent docs have the forms for steps 3 to 5, and its first-footing fiddle. Where they don't, calling-the-inner-repl.md has forms that work in any extension host target. Once the project's own forms work, write them into its agent docs.
The source window's watch tasks are the build. Compile through the watch from the REPL and check the result, as the shadow-cljs skill's "Compile through the watch" says, never with a one-off compile next to it. The project's agent docs name its watch tasks, its builds and its test command.
Restarting the watch is a different thing. The work needs it after a change that the watch reads only when it starts, such as a dependency change. Who restarts it is the project's agent contract's to say (Reloads and restarts).
In a ClojureScript extension, hot reload is how a change reaches the running extension. The watch compiles the namespace, shadow-cljs loads it into the extension host target, and from then on every call through a var runs the new code. Most changes need nothing more: a changed function body, a new function, a new def. A restart is for what a reload can't reach:
deps.edn, shadow-cljs.edn, npm packages, and JS files it bundles. Restart the watch.my-fn keeps the old function, and one made with #'my-fn calls the new one. Run the registration again from the REPL, or reload the dev Extension Host when it can't run again.defonce that the change gives a new shape. Reshape it from the REPL, or reload.Some namespaces build things at load, such as an interpreter's context, so a reload of them starts those things over. The project's agent docs say what its reload hooks run again, what its namespaces rebuild, and which paths are which.
A reload to make sure is not a check, and it cuts off whoever is using the dev Extension Host. To know that the running extension has the change, ask it: evaluate in the extension host target, or take the path the change is on and look at what comes back. When the question is whether a fresh activation works, run the project's headless e2e suite. It activates the extension from scratch in an editor of its own, and leaves the dev Extension Host to whoever is using it. Reload the dev Extension Host when one of the cases above needs it, or when the human asks for it.
When one of these needs a restart, the project's agent contract, in its AGENTS.md, says whether agents restart the watch and the dev Extension Host themselves or ask the human. Restart what it lets agents restart, say in the chat what you restarted and what came back, and ask the human for the rest. A restart cuts off whoever uses the dev Extension Host, so first find out who does, and coordinate when someone is. The automating-dev-workspaces skill's extension-development.md has how to find out, how to restart with the project's dev-environment library or without one, and what to do when the extension host target doesn't come back.
Extension UI in a webview is a VS Code webview, not a browser page, so there is no browser viewport to set, and the shots come from the live dev Extension Host. Ask the human for them, with this list for a design review: each webview the change touches, in each state the change adds, in a dark and a light theme, at the width it opens at and narrowed to a sidebar's width. The project's agent docs list its webviews.
After first footing, or a new verified fact about the project, such as a form that reaches its extension host target or a change that needs more than a hot reload, write it into the project's agent docs, or land it in its fiddle. If the hop changes, the agent docs and the fiddle both get the new form. A snapshot of a session, with runtime ids, versions and paths, is perishable: label it with its date.
When the work shows that this skill is wrong, or leaves out something every extension shares, tell the human what you found. They can open an issue on awesome-backseat-driver, where the skill is maintained. The installed skill is a copy that the plugin's next update replaces, so the fix belongs there, not in this file.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub betterthantomorrow/awesome-backseat-driver --plugin dev-workspace2 skills in this plugin
Other plugins' skills for the same job