/dev-workspace:automating-dev-workspacesfrom dev-workspace
Maps and automates a dev workspace with backing services, REPLs, test watchers, build watches, and agent contracts. Use when setting up or debugging a multi-repo dev environment with VS Code tasks, Joyride, Calva, and babashka.
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.
A dev workspace runs a product's development on one machine, for a human and the agents working beside them. When work starts, everything is already running: the backing services, the REPLs, the test watchers, the build watches and the app. Where the human keeps many projects open, nothing starts when the window opens, and the human brings it all up with the default build task when they want it, or an agent does. The human drives it from the VS Code task list. Agents drive it from Joyride, the REPL and the shell. This skill is the map of that system, and the rules that keep it legible as it grows.
Other skills hold the details this one points to:
worktree, lock and claim, which a project runs as bb worktree from a git dep in its bb.edn, or as bbg worktree through a bbg of the human's own. Its references/worktrees.md sets worktrees up in a project, references/worktrees-vscode-part.md has the VS Code part that starts and stops them, and references/worktrees-agent-instructions.md the checklist for agents working in a worktree.cljs.user.The workspace file's first folder is the dev repo, named <project>-dev or development. It holds what belongs to the people developing rather than to the product:
| In the dev repo | What it is |
|---|---|
<project>-dev.code-workspace | The folders, Calva's connect sequences and custom REPL commands, and settings |
.vscode/tasks.json | The tasks, running in any folder through ${workspaceFolder:<name>} |
.joyride/src/ | The VS Code part: Joyride namespaces the tasks and agents call |
bb.edn, scripts/ | The shell steps, with their tests |
dev/ | REPL code the product gets on its classpath in development, such as the start code |
worktrees.edn, worktrees/ | The worktrees, when the workspace has them |
AGENTS.md, skills, README.md | The agent contract, and the human's list of tasks and docs |
| one file naming the machine in use | Which machine the backing services run on, when there are several |
The product repos are the other folders, and none of this goes into them. The product repo is shared with the team and with CI, so it changes at the team's pace. The dev repo is the developer's own, committed as it changes, and can follow the work day by day. When a product repo has dev tasks of its own, such as its E2E harness, the dev repo calls them rather than copying them.
The workspace is six layers. Each stands on the one below it and reaches it through one kind of seam.
| Layer | What it holds | Reached by | |
|---|---|---|---|
| 1 | Backing services | Databases, brokers and the like, in a VM or containers; the tunnels and local host names that reach them | host and port |
| 2 | Shell | The dev repo's bb tasks, and the worktree commands, worktree, lock and claim | a command line |
| 3 | Tasks | The processes that keep running (REPL servers, watchers, tunnels) and the chains that start them in order | a task label |
| 4 | The VS Code part | Joyride namespaces doing what needs VS Code: tasks made per instance, pickers, progress, Calva connections, work that spans several processes | a command input, or Joyride's MCP server |
| 5 | The REPL | Calva's sessions, each connected to a running process, and the system the start code started there | a session key |
| 6 | The agent contract | AGENTS.md and the skills: what runs, the states the environment passes through, and who may start what | reading |
A worktree is a second copy of layers 3 to 5, with its own processes on its own ports and its own sessions, standing on the same backing services as the main checkout. That's why a worktree's system leaves the singletons alone, such as scheduled jobs and migrations, and why checkouts take turns on what they share.
When the product is a VS Code extension, the app is an editor window, the dev Extension Host: the Extension Development Host that runs the extension under development. The project it opens is a workspace of its own, with its tasks, sessions, start code and agents. The tower then comes twice, one inside the other. The outer one starts and restarts the inner one, and the inner one starts its own REPLs and reports when they're up. references/extension-development.md covers it.
Each piece runs in some process: a task under VS Code's terminal host, a REPL session, a Joyride atom or an agent running as an extension in a window's extension host, a jack-in as a child of that extension host. A restart ends one process and takes with it what lives there. What lives elsewhere stays. A child that the dying process doesn't take down is left orphaned, and it piles up with each restart. Know where each piece lives before building a restart or calling one. A server in a window that reloads often runs as a task that Calva connects to, so it stays.
Before building a new operation, write down which layers it touches and in what order. A start that isn't bottom up, or a stop that isn't top down, leaves some step waiting on something that isn't there.
incremental, writes nothing when nothing changed, so its files' times can't say it is done, and a wait on them gets a budget and a result that says it wasn't confirmed.area: action, like services: start and worktree: stop. A task made per instance carries the instance's name in its label. Session keys are <checkout>-clj and <checkout>-cljs. Code and agents find things by these names, so names are derived by a rule rather than typed by hand.lock. A check that writes shared data and restores it takes a claim first.scripts/, with a test:<script> task when the script has logic. A step every project could use goes in a bbg of the human's own instead (the bbg skill)..joyride/src, reached from the task list through a command input, with a function an agent can call and a status it can poll.dev/, or in a custom REPL command when the human runs them by hand.Build the Joyride part in the Joyride REPL, piece by piece, trying each as you go. Run the bb tests. Then try the whole operation from both handles, the task and the agent function, from each state it can meet: cold, partly running, all running, and right after a window reload. Check that it leaves running things alone, and count the processes and windows afterwards. Commit in the dev repo.
references/patterns.md has the working code for each layer, and the traps found so far.
When something looks broken, find out which state the workspace is in before calling it a bug. The human changes the environment without telling agents: they restart a REPL, move the databases, reload the app's tab, or stop a worktree. The agent contract names these states and their signals. The first checks are usually these:
vscode/tasks.taskExecutions from Joyride.listSessions.bb list in the window registry, ~/.config/vscode-mcp/registry, run from a window's terminal, lists that window first, and the harness's session list shows the other agents.A check that overlapped a state change runs again once the environment has settled, and the report says that it overlapped.
A lesson from one workspace lands where it holds. What holds only for one product, such as its task labels, its machines, its ports and its data, goes into that workspace's AGENTS.md or skills, in the same session, and is committed in the dev repo. What holds in any dev workspace, such as a trap in VS Code's task API or a readiness check that works, is for this skill: tell the human what you found, and why, in a few lines. 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. A lesson that splits lands in both places.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dev-workspace, dev-environment, workspace-automation, joyride, calva, babashka
npx claudepluginhub betterthantomorrow/awesome-backseat-driver --plugin dev-workspace2 skills in this plugin
Other plugins' skills for the same job