Skip to content
Back to skills

Durango Workspaces

ASecurity

Work safely in a repository that has a durango.toml at its root (Durango Source), where several agents work at once. Use before you edit files, install dependencies, run dev servers or tests that write, or commit in such a repository; when you finish a coding task there (open/auto-land a change); when the user asks to land, promote, or deploy a change; or to pick up an existing open change. Not needed to answer questions, read code, or look things up.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgoshellbashnodecode-reviewgit

Works with

  • cli

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add Complexia/durango-code --skill durango-workspaces --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Durango Workspaces?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Durango Workspaces
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/complexia-durango-workspaces/badge)](https://www.skillsdirectory.com/skills/complexia-durango-workspaces)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: durango-workspaces
description: Work safely in a repository that has a durango.toml at its root (Durango Source), where several agents work at once. Use before you edit files, install dependencies, run dev servers or tests that write, or commit in such a repository; when you finish a coding task there (open/auto-land a change); when the user asks to land, promote, or deploy a change; or to pick up an existing open change. Not needed to answer questions, read code, or look things up.
---

# Durango workspaces

A repository with a `durango.toml` is shared by several agents at once. Its
base checkout only tracks `main`: never edit, install, commit, or `git push`
there. Each task gets its own **workspace**: a detached git worktree under
`~/.durango/ws/<repo>/<name>` with copy-on-write clones of the dependency
directories and a private port block. Creating one takes a few seconds.

## When to create one

Create the workspace when the task needs to change something: edit files,
install packages, run a dev server, run tests that write files, or open a
change. Questions, explanations, code reading, `git log`, and other read-only
look-ups don't need one; answer them from the base checkout.

Skip creating one when you are already in a workspace: your working directory
is under `~/.durango/ws/`, or your prompt has a `[Durango workspace]` block that
names it. Use that one for the whole task and don't make a second.

## Start

```bash
durango-code ws new fix-sidebar-dots                       # name it after the task; starts from main
durango-code ws new fix-sidebar-dots --target <target>     # faster in monorepos: clone only the target(s) you need
cd "$(durango-code ws path fix-sidebar-dots)"
```

- Do all of the task's work inside the workspace, including installs, dev
  servers and tests. If your shell starts in the base checkout on later turns,
  `cd` back into the workspace (or use its paths) before running anything.
- In a monorepo with multiple `[target.<name>]` entries in `durango.toml`, pass
  `--target <name>` (repeatable or comma-separated) to `ws new` so it skips
  unrelated `node_modules` and `target/` directories. If scope grows later,
  materialize additional dependencies on demand with `durango-code ws deps --target <name>`
  (or `ws deps --all` / `ws deps --dir <subdir>`).
- Keep long-lived workspaces current before conflicts pile up with
  `durango-code ws sync` (fast-forwards or rebases onto latest `main`, writing
  a safety backup commit first; exit `3` reports conflict files).
- Shared copy-on-write dependency seeds (`~/.durango/seeds/`) warm automatically
  from lockfile-matched workspaces; you can inspect or refresh them explicitly
  with `durango-code ws seed status` or `durango-code ws seed refresh [--from-ws <name>]`
  without ever installing in the base checkout.
- If `durango-code ws new --help` lists `--no-copy-env`, new workspaces copy
  local env files such as `.env.local` and `.dev.vars` by default. Pass that
  flag to skip the copy. If env files are missing from your workspace, use
  `durango-code env files pull` to restore them from the vault.
- Ports: use the workspace's block (`$PORT`, `$DURANGO_PORT_<TARGET>` in
  `.durango/ws.env`), never a hard-coded port.
- To continue an existing open change (yours from an earlier thread, or another
  agent's): `durango-code ws new <name> --change <id>`. `change amend` and
  `land` there update that same change.
- Durango Code puts `durango-code` (alias `ds`) on your `PATH`; don't install
  it.
- No checkout of the repository on this machine yet: `durango-code clone <repo>`
  clones it from Durango Source with its development env files, then start the
  workspace from that clone.

## Run things

- Long-running dev servers go through the server queue so agents share a few
  slots: `durango-code ws serve <name>` (run it in the background). It waits for
  a free slot, first come first served. Check with `durango-code ws servers` and
  stop yours as soon as you're done: `durango-code ws stop <name>`. Don't start
  dev servers directly.
- Commands that finish (tests, typecheck, lint, builds) don't need a slot:
  `durango-code ws run <name> -- <cmd>`, or run them in the workspace directory.
- Secrets come from the vault, never from committed files:
  `durango-code run -- <cmd>` injects development values, and
  `durango-code env files pull` restores the repository's local env files
  (`.env.local`, `.dev.vars`) from the vault if they are missing.

## Finish: open a change (and respect `auto_land`)

Finish a coding task by opening a change with `durango-code change create`:

```bash
durango-code change create --title "Fix sidebar dots" --description-file /tmp/fix-sidebar-dots.md
durango-code change amend                       # more edits go into the same change
durango-code change amend --description-file /tmp/fix-sidebar-dots.md   # rewrite the description
```

- `change create` runs the repository's fast checks for the targets you touched
  and refuses without a description.
- **Respect `[approval].auto_land` in `durango.toml`:**
  - When a repository enables `auto_land` (`"non_deploying"`, `"normal"`, or
    `"all"`), `change create` automatically lands eligible changes to `main`.
    Do **not** pass `--no-auto-land` or tell subagents `"Do NOT land"` unless
    the user explicitly asked to keep changes open for review.
  - If you need an internal review/fix loop (e.g. a code-review subagent)
    before merging, either run the review before `change create`, or pass
    `--no-auto-land` during the review/fix pass and let the change land once
    the fixes are applied — don't leave reviewed changes parked open unless the
    user asked.
  - Sensitive changes wait for a passed `review` check (or user approval), and
    one-way-door changes always stay open for explicit user approval.
  - When `auto_land` is `"off"` (or unset), opening the change ends the task —
    don't run `durango-code land` unless the user asks.
- Write the description like a pull request's, in Markdown: what changes and
  why (the ask, or the bug and its cause), how it works (approach, key files),
  how you verified it (tests, typecheck, what you saw running it), and anything
  risky or worth a close look (migrations, deploy order, follow-ups). Keep it
  current when an amend changes the approach.
- Show UI changes with screenshots: `durango-code change attach shot.png` uploads
  them and prints `![…](url)` lines to put in the description.
- Paths the repository publishes publicly (its `durango.toml` lists them) need
  `--public-description "…"` and must not depend on private paths.
- `durango-code change create --snapshot` backs up work in progress; snapshots
  never land.
- Every amend is kept as a revision: `durango-code change log` lists them,
  `change diff --from N --to M` shows what changed between two, and
  `change restore --rev N` undoes a bad amend.
- Large tasks can land as a stack of small changes: `durango-code commit -m "…"`
  makes a local commit backed up on the server as a draft, `durango-code sl`
  shows the stack, and `change create --stack` opens one change per commit.
- Report the change URL exactly as the CLI prints it (and whether it merged or
  remains open awaiting approval/review).

## Landing and production deploys

When a change stayed open (e.g. `auto_land = "off"`, sensitive/one-way-door, or
held for review) and the user says "land it" / "ship it", run `durango-code land`
for what they asked:

- `land` waits until the change is merged (exit 0) or sent back to open (exit 1,
  with the reason). Exit 3 is a conflict: the workspace was rebased onto the new
  `main`; resolve the listed files and run `land` again (or pass `--auto-rebase`).
- **Production deploys follow each target's `deploy_gate` in `durango.toml`:**
  - `"none"`: landing deploys affected targets in the background.
  - `"green"`: post-merge `verify` advances `last_green`, which then deploys
    automatically.
  - `"manual"`: landing merges and verifies in the background, while production
    waits until the user asks to promote (`durango-code deploys promote`) or
    ship a prod hotfix (`durango-code deploys hotfix`). Never promote, hotfix,
    or trigger manual releases unless the user asks.
  - `durango-code deploys --changes` shows landed changes ahead of live prod;
    `durango-code deploys --watch` follows active deploys in the background
    (never poll a deploy log in a foreground loop).
- In a Durango Build app (cloned with `durango-code build clone`), landing
  publishes the app: Durango Source merges the change and deploys the app
  itself, and `land` waits for that deploy and prints the live URL, or the
  error (exit 1; the merge stands and the previous release keeps serving;
  `durango-code logs <deployment-id> --stream build` shows the build log).
  There is nothing to `deploys --watch`; `durango-code build status` shows
  the app. A direct `git push` to its `main` is refused.
- **Only land the change(s) for this task**: run `durango-code land` (from the
  workspace) or `durango-code land <id> <id>…`. **Never run `durango-code land
  --all` without explicitly confirming every other open change** — even if the
  user says "land it all", that means everything in *this* task, not other
  sessions' unapproved changes. Use `land --cancel <id>` to take one off the
  train. Never deploy any other way.
- Land is refused when an added line contains a secret.
- A stacked workspace lands with `durango-code land <id> <id>…` (bare `land`
  refuses and lists the ids).
- Reverting a merged change: `durango-code change revert <id>` (or
  `durango-code revert r<seq>`) opens a revert change; land it like any other.
  `durango-code log` lists landed commits with their `r<seq>` numbers, and
  `durango-code show r<seq>` shows one.

## Clean up

Keep the workspace until its change is merged or abandoned (the user may ask for
more edits). `land` removes it after the merge when it holds nothing beyond the
change and nothing else runs in it (`--keep-workspace` keeps it); if it says it
kept it, run later commands from the base checkout and leave it. Durango Code
sweeps finished workspaces periodically, and `durango-code ws prune` (with
`--dry-run` to see why each stays) does the same by hand. Remove one yourself
with `durango-code ws rm <name>`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.