Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ 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)

## 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)

Expand Down Expand Up @@ -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 <variant|path>` picks a non-default `devcontainer.json`. A bare name means
Expand Down Expand Up @@ -468,6 +468,23 @@ 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

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, hangs up the shell
```

[docs/herdr.md](docs/herdr.md) lists every herdr feature, what each one needs, and links to the
detail.

Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved
## What every workspace gets

`dl` launches arbitrary repos, so none of this can depend on the image, and no repo has to add
Expand Down Expand Up @@ -574,6 +591,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` |
Expand Down
76 changes: 76 additions & 0 deletions docs/herdr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# 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. 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

```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
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved
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. 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`.
[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`, 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 <ws> -- 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, 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 <ws> 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 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) |
| 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
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. 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

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
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.

## 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 |
| `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 |
10 changes: 5 additions & 5 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions rust/dl/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <workspace> <verb>, or dl <verb> <workspace>):
up Start it without attaching
Expand Down Expand Up @@ -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.";

Expand Down
Loading