From d4064c17cc734ec757c1f7ee78890aaa823394bd Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Fri, 30 Oct 2026 13:47:44 +0000 Subject: [PATCH 1/7] docs: add a herdr page and a README herdr section that covers dl rmt docs/herdr.md collects what dl and dla do in a herdr pane, what each feature needs, and links to the detail in cli.md and workspace-tools.md. The README gets a short herdr section with the setup and a dl rmt example. Claude-Session: https://claude.ai/code/session_01QEqfQwcZ5dzscfVYnZf2sD --- AGENTS.md | 2 +- README.md | 35 +++++++++++++++++- docs/herdr.md | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 docs/herdr.md diff --git a/AGENTS.md b/AGENTS.md index b60541df..b666bd29 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -259,7 +259,7 @@ globbing or expansion. - **README orients, `docs/` explains.** The README is deliberately short: what `dl` is, the quickstart, the command tables, and one environment-variable - table. Depth lives in `docs/` (`cli.md`, `workspaces.md`, `workspace-tools.md`, + table. Depth lives in `docs/` (`cli.md`, `workspaces.md`, `workspace-tools.md`, `herdr.md`, `cleanup.md`, `performance.md`, `development.md`, `agents-using-dl.md`, `dl-ready-repos.md`) and is linked from the README's Docs table. A new paragraph of design rationale belongs in the docs page for its topic, not in the README. Adding a flag still means naming it in the README, diff --git a/README.md b/README.md index b83ceaae..1310a6a1 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ one argument instead of a clone, a config file and a build command. ## Contents [Quickstart](#quickstart) · [Install](#install) · [Usage](#usage) · [Commands](#commands) · -[dla](#dla-an-agent-instead-of-a-shell) · [What every workspace gets](#what-every-workspace-gets) · +[dla](#dla-an-agent-instead-of-a-shell) · [herdr](#herdr) · [What every workspace gets](#what-every-workspace-gets) · [Cleaning up](#cleaning-up) · [Environment variables](#environment-variables) · [Docs](#docs) · [Development](#development) @@ -468,6 +468,38 @@ herdr how to reopen the session, and a herdr restart or a reboot brings the pane its own conversation. See [docs/workspace-tools.md](docs/workspace-tools.md#coming-back-after-herdr-restarts). +## herdr + +`dl` and `dla` work in any terminal. In a [herdr](https://herdr.dev) pane they also tell herdr +what they are doing: + +- The tab is renamed after the workspace, `repo@branch`, and keeps that name after the session + ends. +- herdr sees which agent runs in the pane, and a herdr restart or a reboot brings each `dla` + session back into its own conversation. +- `dl recreate` starts again the agents it ends. +- With the pane shell installed, a split in a devlaunch tab opens in that tab's container, and + `NVIM_SPLIT=1` opens an editor beside the agent. + +Install the pane shell once: + +```bash +dl --herdr-setup +herdr server reload-config +``` + +When you are finished with a workspace, type `dl rmt` in the tab it ran in. It deletes the +workspace the tab is named after and closes the tab, with `rm`'s guard and `--force`. + +```bash +dla blooop/devlaunch@fix/42 # the tab becomes devlaunch@fix/42 +# ... the agent finishes, you exit it ... +dl rmt # deletes that workspace, closes the tab +``` + +[docs/herdr.md](docs/herdr.md) lists every herdr feature, what each one needs, and links to the +detail. + ## What every workspace gets `dl` launches arbitrary repos, so none of this can depend on the image, and no repo has to add @@ -574,6 +606,7 @@ re-decides a mount. |---|---| | [docs/cli.md](docs/cli.md) | The selector, which commands get a terminal, the `--rm` contract, `dla`'s Remote Control default, retired spellings, devpod exit codes | | [docs/workspaces.md](docs/workspaces.md) | How workspace ids are derived, and how fresh a launch is | +| [docs/herdr.md](docs/herdr.md) | What `dl` and `dla` do in a herdr pane: the tab name, the pane shell, restores, `dl rmt` | | [docs/workspace-tools.md](docs/workspace-tools.md) | GitHub auth, `gh` and `claude`, zellij, terminal titles, the pixi cache | | [docs/cleanup.md](docs/cleanup.md) | `--prune`, `--purge`, `--reconcile`, and what a workspace costs on disk | | [docs/performance.md](docs/performance.md) | Where a launch's seconds go, and the trend on `main` | diff --git a/docs/herdr.md b/docs/herdr.md new file mode 100644 index 00000000..8e41859c --- /dev/null +++ b/docs/herdr.md @@ -0,0 +1,99 @@ +# herdr + +[herdr](https://herdr.dev) is a terminal multiplexer built for coding agents: tabs, panes, and +a server that knows which agent each pane is running. `dl` and `dla` work in any terminal, and +nothing on this page is needed to use them. In a herdr pane they do more, and this page lists +what, with a link to the section that has the detail. + +Most of it needs nothing turned on. Two parts need a step from you: the pane shell, which +`dl --herdr-setup` installs once, and the in-container agent report, which `DEVLAUNCH_HERDR=1` +asks for. + +## Setup + +```bash +dl --herdr-setup +herdr server reload-config +``` + +`--herdr-setup` installs `~/.local/bin/dl-herdr-shell` and points herdr's +`[terminal] default_shell` at it, keeping the rest of the config file and its comments. If +chezmoi manages the config file, setup refuses the edit and names the source file to change +instead. `dl --install` installs the same script and prints the config line, for a config you +edit by hand. + +Without this step everything below still works except the pane shell, the editor split and +the per-workspace environments, which all go through `dl-herdr-shell`. +[workspace-tools.md](workspace-tools.md#opening-a-new-pane-in-the-workspace-its-tab-already-holds) +has why it is a script in `~/.local/bin` and not a flag. + +## What a launch does in a herdr pane + +| Feature | Needs | Detail | +|---|---|---| +| The tab is renamed after the workspace, `repo@branch` | Nothing | [The herdr tab](workspace-tools.md#the-herdr-tab-which-is-renamed-and-not-written-to) | +| `HERDR_AGENT` names the agent `dla` or `dl -- claude` started | Nothing | [Telling a session manager](workspace-tools.md#telling-a-session-manager-which-agent-is-running) | +| A herdr restart or a reboot brings each `dla` session back | herdr 0.9.2 or later | [Coming back after herdr restarts](workspace-tools.md#coming-back-after-herdr-restarts) | +| `dl recreate` and `--refresh-stale` start the agents they end again | Nothing | [A recreate starts the agents it ends again](cli.md#a-recreate-starts-the-agents-it-ends-again) | +| A split in a devlaunch tab opens in that tab's container | `dl --herdr-setup` | [Opening a new pane](workspace-tools.md#opening-a-new-pane-in-the-workspace-its-tab-already-holds) | +| An editor opens beside the agent, and the agent keeps focus | `NVIM_SPLIT=1` and the pane shell | [Opening an editor beside an agent](workspace-tools.md#opening-an-editor-beside-an-agent) | +| Each herdr workspace has its own Claude login and host variables | `dl --herdr-env` and the pane shell | [Workspace environments](workspace-tools.md#workspace-environments-and-claude-logins) | +| An agent you start inside the container reports to the pane | `DEVLAUNCH_HERDR=1` | [Reporting an agent started inside the workspace](workspace-tools.md#reporting-an-agent-started-inside-the-workspace) | +| `dl rmt` deletes the workspace the tab is named after | Nothing | [Below](#dl-rmt-delete-the-workspace-this-tab-was-for) | + +Every one of these is best-effort. A herdr that is too old, that does not answer, or that is +not there costs the feature and never the launch. + +## The tab + +A launch in a herdr pane renames its tab with `herdr tab rename`, using `HERDR_TAB_ID` from the +pane's environment. herdr keeps the name after the session ends, so the tab still says which +workspace it was for once the agent has exited. Two things read that name back: the pane shell, +which opens a new split in the same container, and `dl rmt`. + +## `dl rmt`: delete the workspace this tab was for + +The usual end of a `dla` session is a tab named `devlaunch@fix/42` holding a host shell, and a +workspace you are finished with. `dl rmt` deletes that workspace and then closes the tab: + +``` +$ dl rmt +This tab is named 'devlaunch@fix/42', which is workspace devlaunch-fix-42-3j1t. +Removing workspace devlaunch-fix-42-3j1t... +... +Hanging up the shell dl was called from (pid 4242). +``` + +It takes no workspace name and opens no selector. The tab name is the workspace. `dl` asks +herdr for the name (`herdr tab get $HERDR_TAB_ID`), and prints the workspace id it resolved to +before it deletes anything. + +After that it is `rme`, the delete and then the hangup: + +- The guard is `rm`'s. A clone with uncommitted or unpushed work is kept and named, and + `dl rmt --force` is the way past it. +- A refusal leaves the shell open with the reason on screen. +- Once the workspace has gone, `dl` hangs up the shell it was typed in, so the tab closes. + +It refuses, and deletes nothing, when: + +- the shell is not in a herdr tab. It then asks herdr nothing. +- herdr does not answer. +- the tab name matches no workspace. A tab nobody renamed carries its number, which names + none. +- the tab name matches two workspaces. + +`rmt` takes no `--rm`, no command and no workspace name, and refuses a line that gives one. +[cli.md](cli.md#rmt-the-workspace-this-herdr-tab-is-named-after) has how the name becomes an +id, and [`rme`](cli.md#rme-the-delete-and-then-the-shell) has which process the hangup reaches +and when it is skipped. + +## The variables herdr and `dl` pass + +| Variable | Direction | What it is for | +|---|---|---| +| `HERDR_TAB_ID` | herdr exports, `dl` reads | The tab to rename, to read back for `rmt`, and to scan for a split | +| `HERDR_BIN_PATH` | herdr exports, `dl` reads | The herdr to ask. A `PATH` lookup is the fallback for an older herdr | +| `HERDR_AGENT` | `dl` writes, herdr reads | Which agent the session runs | +| `DEVLAUNCH_HERDR` | You set it | Lend herdr into the container so an agent started there reports to the pane | +| `NVIM_SPLIT` | You set it | Open `$VISUAL`, then `$EDITOR`, then `nvim` beside an agent launch | From 9ee94740c5f28dea82f0383ec1deadc15e3e0bd1 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Fri, 30 Oct 2026 13:50:20 +0000 Subject: [PATCH 2/7] fix(docs): herdr.md said the pane shell reads the tab name; only dl rmt does No test covers a prose claim, so this was checked by hand against pane_destination in session_manager.rs. Claude-Session: https://claude.ai/code/session_01QEqfQwcZ5dzscfVYnZf2sD --- docs/herdr.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/herdr.md b/docs/herdr.md index 8e41859c..82827814 100644 --- a/docs/herdr.md +++ b/docs/herdr.md @@ -48,8 +48,7 @@ not there costs the feature and never the launch. A launch in a herdr pane renames its tab with `herdr tab rename`, using `HERDR_TAB_ID` from the pane's environment. herdr keeps the name after the session ends, so the tab still says which -workspace it was for once the agent has exited. Two things read that name back: the pane shell, -which opens a new split in the same container, and `dl rmt`. +workspace it was for once the agent has exited. One thing reads that name back: `dl rmt`. ## `dl rmt`: delete the workspace this tab was for From 6de8e9d1f6ab189a38c79928345a89b0a214715a Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Fri, 30 Oct 2026 13:50:29 +0000 Subject: [PATCH 3/7] fix(docs): herdr.md intro counted two user steps where its table lists four Claude-Session: https://claude.ai/code/session_01QEqfQwcZ5dzscfVYnZf2sD --- docs/herdr.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/herdr.md b/docs/herdr.md index 82827814..bb2e6577 100644 --- a/docs/herdr.md +++ b/docs/herdr.md @@ -5,9 +5,10 @@ a server that knows which agent each pane is running. `dl` and `dla` work in any nothing on this page is needed to use them. In a herdr pane they do more, and this page lists what, with a link to the section that has the detail. -Most of it needs nothing turned on. Two parts need a step from you: the pane shell, which -`dl --herdr-setup` installs once, and the in-container agent report, which `DEVLAUNCH_HERDR=1` -asks for. +Most of it needs nothing turned on. Four parts need a step from you: the pane shell, which +`dl --herdr-setup` installs once; the editor split, which also needs `NVIM_SPLIT=1`; the +per-workspace environments, which also need `dl --herdr-env`; and the in-container agent +report, which `DEVLAUNCH_HERDR=1` asks for. ## Setup From dd3be3f5fe71dbe17c359a7bb7f2e7e3c030b3cf Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Fri, 30 Oct 2026 14:03:56 +0000 Subject: [PATCH 4/7] docs(help): dl --help names rmt in its examples and says what it does The verb list showed rme and never rmt, so a reader of --help could not find the command that deletes the workspace a herdr tab is named after. Claude-Session: https://claude.ai/code/session_01QEqfQwcZ5dzscfVYnZf2sD --- rust/dl/src/cli.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rust/dl/src/cli.rs b/rust/dl/src/cli.rs index b57c41d1..773e9596 100644 --- a/rust/dl/src/cli.rs +++ b/rust/dl/src/cli.rs @@ -748,6 +748,7 @@ const GRAMMAR: &str = "Examples: dl blooop/devlaunch --rm Open it, and delete it when the shell exits dl --ls --json Every workspace, machine-readable dl --refresh-stale Recreate the stale workspaces left idle + dl rmt Delete the workspace this herdr tab names Workspace commands (dl , or dl ): up Start it without attaching @@ -834,6 +835,13 @@ line with a redirection leaves a subshell to take the signal. dl prints the pid signalled rather than guessing. A nohup is refused outright, since disarming SIGHUP is how a run outlives its terminal in the first place. +rmt is rme with the herdr tab as its workspace, and it takes no workspace name. A +launch in a herdr pane renames the tab after the workspace, repo@branch, and the name +stays after the session ends. dl rmt asks herdr for that name, prints the workspace it +resolves to, and then deletes it and closes the tab as rme does, with the same guard +and the same --force. Outside a herdr tab, or for a tab name that matches no workspace +or two, it refuses and deletes nothing. + --stop is retired, and --autorm is what --rm is now called. Both are still recognised and say so."; From a1c4217fb25960899138e41176665aeda3572340 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Fri, 30 Oct 2026 14:08:21 +0000 Subject: [PATCH 5/7] fix(docs): herdr.md links to cli.md for rmt instead of copying it, and names DEVLAUNCH_NO_TITLE Review of #717: the rmt contract sat in four hand-maintained copies with no test that diffs them. herdr.md now summarises and links to cli.md, and the README herdr section points at its own rmt paragraph. The table said the tab rename needs nothing, but DEVLAUNCH_NO_TITLE turns it off, which also leaves dl rmt nothing to find. The README restore bullet now names herdr 0.9.2. Claude-Session: https://claude.ai/code/session_01QEqfQwcZ5dzscfVYnZf2sD --- README.md | 6 +++--- docs/herdr.md | 47 +++++++++++------------------------------------ 2 files changed, 14 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 1310a6a1..8b5f2593 100644 --- a/README.md +++ b/README.md @@ -476,7 +476,7 @@ what they are doing: - The tab is renamed after the workspace, `repo@branch`, and keeps that name after the session ends. - herdr sees which agent runs in the pane, and a herdr restart or a reboot brings each `dla` - session back into its own conversation. + session back into its own conversation (herdr 0.9.2 or later). - `dl recreate` starts again the agents it ends. - With the pane shell installed, a split in a devlaunch tab opens in that tab's container, and `NVIM_SPLIT=1` opens an editor beside the agent. @@ -488,8 +488,8 @@ dl --herdr-setup herdr server reload-config ``` -When you are finished with a workspace, type `dl rmt` in the tab it ran in. It deletes the -workspace the tab is named after and closes the tab, with `rm`'s guard and `--force`. +When you are finished with a workspace, type `dl rmt` in the tab it ran in. The `rmt` +paragraph under [Workspace commands](#workspace-commands) has what it does. ```bash dla blooop/devlaunch@fix/42 # the tab becomes devlaunch@fix/42 diff --git a/docs/herdr.md b/docs/herdr.md index bb2e6577..38b3cfe0 100644 --- a/docs/herdr.md +++ b/docs/herdr.md @@ -32,7 +32,7 @@ has why it is a script in `~/.local/bin` and not a flag. | Feature | Needs | Detail | |---|---|---| -| The tab is renamed after the workspace, `repo@branch` | Nothing | [The herdr tab](workspace-tools.md#the-herdr-tab-which-is-renamed-and-not-written-to) | +| The tab is renamed after the workspace, `repo@branch` | Nothing, unless `DEVLAUNCH_NO_TITLE=1` turns it off | [The herdr tab](workspace-tools.md#the-herdr-tab-which-is-renamed-and-not-written-to) | | `HERDR_AGENT` names the agent `dla` or `dl -- claude` started | Nothing | [Telling a session manager](workspace-tools.md#telling-a-session-manager-which-agent-is-running) | | A herdr restart or a reboot brings each `dla` session back | herdr 0.9.2 or later | [Coming back after herdr restarts](workspace-tools.md#coming-back-after-herdr-restarts) | | `dl recreate` and `--refresh-stale` start the agents they end again | Nothing | [A recreate starts the agents it ends again](cli.md#a-recreate-starts-the-agents-it-ends-again) | @@ -40,7 +40,7 @@ has why it is a script in `~/.local/bin` and not a flag. | An editor opens beside the agent, and the agent keeps focus | `NVIM_SPLIT=1` and the pane shell | [Opening an editor beside an agent](workspace-tools.md#opening-an-editor-beside-an-agent) | | Each herdr workspace has its own Claude login and host variables | `dl --herdr-env` and the pane shell | [Workspace environments](workspace-tools.md#workspace-environments-and-claude-logins) | | An agent you start inside the container reports to the pane | `DEVLAUNCH_HERDR=1` | [Reporting an agent started inside the workspace](workspace-tools.md#reporting-an-agent-started-inside-the-workspace) | -| `dl rmt` deletes the workspace the tab is named after | Nothing | [Below](#dl-rmt-delete-the-workspace-this-tab-was-for) | +| `dl rmt` deletes the workspace the tab is named after | The tab rename above | [Below](#dl-rmt-delete-the-workspace-this-tab-was-for) | Every one of these is best-effort. A herdr that is too old, that does not answer, or that is not there costs the feature and never the launch. @@ -50,43 +50,17 @@ not there costs the feature and never the launch. A launch in a herdr pane renames its tab with `herdr tab rename`, using `HERDR_TAB_ID` from the pane's environment. herdr keeps the name after the session ends, so the tab still says which workspace it was for once the agent has exited. One thing reads that name back: `dl rmt`. +`DEVLAUNCH_NO_TITLE=1` turns the rename off with the rest of the terminal naming, and a tab +that was never renamed gives `dl rmt` no workspace to find. ## `dl rmt`: delete the workspace this tab was for -The usual end of a `dla` session is a tab named `devlaunch@fix/42` holding a host shell, and a -workspace you are finished with. `dl rmt` deletes that workspace and then closes the tab: - -``` -$ dl rmt -This tab is named 'devlaunch@fix/42', which is workspace devlaunch-fix-42-3j1t. -Removing workspace devlaunch-fix-42-3j1t... -... -Hanging up the shell dl was called from (pid 4242). -``` - -It takes no workspace name and opens no selector. The tab name is the workspace. `dl` asks -herdr for the name (`herdr tab get $HERDR_TAB_ID`), and prints the workspace id it resolved to -before it deletes anything. - -After that it is `rme`, the delete and then the hangup: - -- The guard is `rm`'s. A clone with uncommitted or unpushed work is kept and named, and - `dl rmt --force` is the way past it. -- A refusal leaves the shell open with the reason on screen. -- Once the workspace has gone, `dl` hangs up the shell it was typed in, so the tab closes. - -It refuses, and deletes nothing, when: - -- the shell is not in a herdr tab. It then asks herdr nothing. -- herdr does not answer. -- the tab name matches no workspace. A tab nobody renamed carries its number, which names - none. -- the tab name matches two workspaces. - -`rmt` takes no `--rm`, no command and no workspace name, and refuses a line that gives one. -[cli.md](cli.md#rmt-the-workspace-this-herdr-tab-is-named-after) has how the name becomes an -id, and [`rme`](cli.md#rme-the-delete-and-then-the-shell) has which process the hangup reaches -and when it is skipped. +When a `dla` session ends, its tab still carries the workspace's name. Type `dl rmt` in that +tab and `dl` asks herdr for the name, prints the workspace it resolves to, deletes it and +closes the tab. It is `rme` with the tab as its workspace, guard and `--force` included, and +it refuses rather than guess when the name matches no workspace or two. +[cli.md](cli.md#rmt-the-workspace-this-herdr-tab-is-named-after) has the whole contract: how +the name becomes an id, every refusal, and the hangup. ## The variables herdr and `dl` pass @@ -96,4 +70,5 @@ and when it is skipped. | `HERDR_BIN_PATH` | herdr exports, `dl` reads | The herdr to ask. A `PATH` lookup is the fallback for an older herdr | | `HERDR_AGENT` | `dl` writes, herdr reads | Which agent the session runs | | `DEVLAUNCH_HERDR` | You set it | Lend herdr into the container so an agent started there reports to the pane | +| `DEVLAUNCH_NO_TITLE` | You set it | Leave the tab, and the rest of the terminal, unnamed | | `NVIM_SPLIT` | You set it | Open `$VISUAL`, then `$EDITOR`, then `nvim` beside an agent launch | From 1b241e3e915935fe993d93c7f388f66f93d143c1 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Fri, 30 Oct 2026 14:14:10 +0000 Subject: [PATCH 6/7] fix(docs): herdr.md states each feature's limits, and the README herdr section is a pointer Sourcery review of #717: restore needs resume_agents_on_restore and skips --rm sessions; a split opens in the container only while a dl session runs in the tab; the editor split is for a one-pane tab; the in-container report is claude's hook; a recordless launch names the tab with its id; setup refuses a custom default_shell; rmt's hangup closes the tab only when that shell was its last pane. The README section shrinks to a short pointer, as AGENTS.md asks of the README. Claude-Session: https://claude.ai/code/session_01QEqfQwcZ5dzscfVYnZf2sD --- README.md | 27 ++++++--------------------- docs/herdr.md | 16 +++++++++------- 2 files changed, 15 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 8b5f2593..6154fc05 100644 --- a/README.md +++ b/README.md @@ -470,31 +470,16 @@ its own conversation. See ## herdr -`dl` and `dla` work in any terminal. In a [herdr](https://herdr.dev) pane they also tell herdr -what they are doing: - -- The tab is renamed after the workspace, `repo@branch`, and keeps that name after the session - ends. -- herdr sees which agent runs in the pane, and a herdr restart or a reboot brings each `dla` - session back into its own conversation (herdr 0.9.2 or later). -- `dl recreate` starts again the agents it ends. -- With the pane shell installed, a split in a devlaunch tab opens in that tab's container, and - `NVIM_SPLIT=1` opens an editor beside the agent. - -Install the pane shell once: - -```bash -dl --herdr-setup -herdr server reload-config -``` - -When you are finished with a workspace, type `dl rmt` in the tab it ran in. The `rmt` -paragraph under [Workspace commands](#workspace-commands) has what it does. +In a [herdr](https://herdr.dev) pane, `dl` and `dla` name the tab after the workspace, tell +herdr which agent runs, and let a herdr restart bring a `dla` session back. Install the pane +shell once with `dl --herdr-setup`, so a split in a devlaunch tab opens in its container. When +you are finished, `dl rmt` in the tab deletes its workspace (see the `rmt` paragraph under +[Workspace commands](#workspace-commands)). ```bash dla blooop/devlaunch@fix/42 # the tab becomes devlaunch@fix/42 # ... the agent finishes, you exit it ... -dl rmt # deletes that workspace, closes the tab +dl rmt # deletes that workspace, hangs up the shell ``` [docs/herdr.md](docs/herdr.md) lists every herdr feature, what each one needs, and links to the diff --git a/docs/herdr.md b/docs/herdr.md index 38b3cfe0..1690a0f5 100644 --- a/docs/herdr.md +++ b/docs/herdr.md @@ -21,7 +21,8 @@ herdr server reload-config `[terminal] default_shell` at it, keeping the rest of the config file and its comments. If chezmoi manages the config file, setup refuses the edit and names the source file to change instead. `dl --install` installs the same script and prints the config line, for a config you -edit by hand. +edit by hand. A `default_shell` that already names some other program is refused too, with +the line to change by hand, rather than replaced. Without this step everything below still works except the pane shell, the editor split and the per-workspace environments, which all go through `dl-herdr-shell`. @@ -32,14 +33,14 @@ has why it is a script in `~/.local/bin` and not a flag. | Feature | Needs | Detail | |---|---|---| -| The tab is renamed after the workspace, `repo@branch` | Nothing, unless `DEVLAUNCH_NO_TITLE=1` turns it off | [The herdr tab](workspace-tools.md#the-herdr-tab-which-is-renamed-and-not-written-to) | +| The tab is renamed after the workspace, `repo@branch`, or its id when `dl` holds no record for it | Nothing, unless `DEVLAUNCH_NO_TITLE=1` turns it off | [The herdr tab](workspace-tools.md#the-herdr-tab-which-is-renamed-and-not-written-to) | | `HERDR_AGENT` names the agent `dla` or `dl -- claude` started | Nothing | [Telling a session manager](workspace-tools.md#telling-a-session-manager-which-agent-is-running) | -| A herdr restart or a reboot brings each `dla` session back | herdr 0.9.2 or later | [Coming back after herdr restarts](workspace-tools.md#coming-back-after-herdr-restarts) | +| A herdr restart or a reboot brings each `dla` session back, except a `--rm` one | herdr 0.9.2 or later, and `resume_agents_on_restore = true` in herdr's config | [Coming back after herdr restarts](workspace-tools.md#coming-back-after-herdr-restarts) | | `dl recreate` and `--refresh-stale` start the agents they end again | Nothing | [A recreate starts the agents it ends again](cli.md#a-recreate-starts-the-agents-it-ends-again) | -| A split in a devlaunch tab opens in that tab's container | `dl --herdr-setup` | [Opening a new pane](workspace-tools.md#opening-a-new-pane-in-the-workspace-its-tab-already-holds) | -| An editor opens beside the agent, and the agent keeps focus | `NVIM_SPLIT=1` and the pane shell | [Opening an editor beside an agent](workspace-tools.md#opening-an-editor-beside-an-agent) | +| A split opens in the container while a pane in the tab runs a `dl` session | `dl --herdr-setup` | [Opening a new pane](workspace-tools.md#opening-a-new-pane-in-the-workspace-its-tab-already-holds) | +| An editor opens beside the agent in a one-pane tab, and the agent keeps focus | `NVIM_SPLIT=1` and the pane shell | [Opening an editor beside an agent](workspace-tools.md#opening-an-editor-beside-an-agent) | | Each herdr workspace has its own Claude login and host variables | `dl --herdr-env` and the pane shell | [Workspace environments](workspace-tools.md#workspace-environments-and-claude-logins) | -| An agent you start inside the container reports to the pane | `DEVLAUNCH_HERDR=1` | [Reporting an agent started inside the workspace](workspace-tools.md#reporting-an-agent-started-inside-the-workspace) | +| A `claude` you start inside the container reports to the pane, through a Claude Code hook | `DEVLAUNCH_HERDR=1` | [Reporting an agent started inside the workspace](workspace-tools.md#reporting-an-agent-started-inside-the-workspace) | | `dl rmt` deletes the workspace the tab is named after | The tab rename above | [Below](#dl-rmt-delete-the-workspace-this-tab-was-for) | Every one of these is best-effort. A herdr that is too old, that does not answer, or that is @@ -57,7 +58,8 @@ that was never renamed gives `dl rmt` no workspace to find. When a `dla` session ends, its tab still carries the workspace's name. Type `dl rmt` in that tab and `dl` asks herdr for the name, prints the workspace it resolves to, deletes it and -closes the tab. It is `rme` with the tab as its workspace, guard and `--force` included, and +hangs up the shell it was typed in, which closes the tab when that shell was the tab's last +pane. It is `rme` with the tab as its workspace, guard and `--force` included, and it refuses rather than guess when the name matches no workspace or two. [cli.md](cli.md#rmt-the-workspace-this-herdr-tab-is-named-after) has the whole contract: how the name becomes an id, every refusal, and the hangup. From 931b730f9c09149816e127c68caade173111cd4d Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Fri, 30 Oct 2026 14:21:26 +0000 Subject: [PATCH 7/7] release: 0.64.1 Claude-Session: https://claude.ai/code/session_01QEqfQwcZ5dzscfVYnZf2sD --- CHANGELOG.md | 16 ++++++++++++++++ README.md | 4 ++-- rust/Cargo.lock | 10 +++++----- rust/Cargo.toml | 2 +- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 764f854b..edac459d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.64.1] - 2026-10-30 + +### Added + +- **`docs/herdr.md` lists what `dl` and `dla` do in a herdr pane.** One page names each + herdr feature (the tab name, the pane shell, the editor split, restores, the in-container + report, `dl rmt`), what each one needs, and links to the detail in `docs/cli.md` and + `docs/workspace-tools.md`. The README gains a short herdr section that points at it + ([#717](https://github.com/blooop/devlaunch/pull/717)). + +### Fixed + +- **`dl --help` names `dl rmt`.** The help showed `rme` and never `rmt`. It now has a + `dl rmt` line in its examples and a paragraph that says what `rmt` does and when it + refuses ([#717](https://github.com/blooop/devlaunch/pull/717)). + ## [0.64.0] - 2026-10-25 ### Added diff --git a/README.md b/README.md index 6154fc05..9af628eb 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ one argument instead of a clone, a config file and a build command. [![GitHub pull-requests merged](https://badgen.net/github/merged-prs/blooop/devlaunch)](https://github.com/blooop/devlaunch/pulls?q=is%3Amerged) [![GitHub release](https://img.shields.io/github/release/blooop/devlaunch.svg)](https://GitHub.com/blooop/devlaunch/releases/) [![PyPI](https://img.shields.io/pypi/v/devlaunch)](https://pypi.org/project/devlaunch/) -[![Conda](https://img.shields.io/badge/conda-v0.64.0-brightgreen?logo=anaconda)](https://prefix.dev/channels/blooop/packages/devlaunch) +[![Conda](https://img.shields.io/badge/conda-v0.64.1-brightgreen?logo=anaconda)](https://prefix.dev/channels/blooop/packages/devlaunch) [![License](https://img.shields.io/github/license/blooop/devlaunch)](https://opensource.org/license/mit/) [![Platform](https://img.shields.io/badge/platform-linux--64-blue)](https://github.com/blooop/devlaunch/releases) [![Pixi Badge](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/prefix-dev/pixi/main/assets/badge/v0.json)](https://pixi.sh) @@ -350,7 +350,7 @@ clone, and [docs/cleanup.md](docs/cleanup.md) says what it carries one past and ```bash $ dl --version -dl 0.64.0 +dl 0.64.1 ``` `--devcontainer ` picks a non-default `devcontainer.json`. A bare name means diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 2a57a6f0..b12c09d0 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -438,7 +438,7 @@ dependencies = [ [[package]] name = "devlaunch-core" -version = "0.64.0" +version = "0.64.1" dependencies = [ "devlaunch-runner", "devlaunch-test-support", @@ -458,7 +458,7 @@ dependencies = [ [[package]] name = "devlaunch-runner" -version = "0.64.0" +version = "0.64.1" dependencies = [ "libc", "portable-pty", @@ -467,7 +467,7 @@ dependencies = [ [[package]] name = "devlaunch-test-support" -version = "0.64.0" +version = "0.64.1" dependencies = [ "devlaunch-runner", "serde", @@ -509,7 +509,7 @@ dependencies = [ [[package]] name = "dl" -version = "0.64.0" +version = "0.64.1" dependencies = [ "clap", "devlaunch-core", @@ -527,7 +527,7 @@ dependencies = [ [[package]] name = "dla" -version = "0.64.0" +version = "0.64.1" dependencies = [ "devlaunch-test-support", "dl", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 4bc3a5fa..ec058417 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -11,7 +11,7 @@ members = [ # The single source of the version (docs/rust-rewrite-plan.md: cutover ships # 0.1.0, version read from Cargo.toml). [workspace.package] -version = "0.64.0" +version = "0.64.1" edition = "2024" license = "MIT" repository = "https://github.com/blooop/devlaunch"