Skip to content

release: 0.64.1, with a herdr docs page and dl rmt in --help - #717

Merged
blooop merged 7 commits into
mainfrom
update_docs
Oct 30, 2026
Merged

blooop merged 7 commits into
mainfrom
update_docs

Conversation

@blooop

@blooop blooop commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

A user who runs dl in herdr now has one page that lists every herdr feature, what each feature needs, and how dl rmt cleans up a tab. dl --help now names dl rmt too.

In short

Before this change, the herdr features of dl and dla were in many sections of docs/cli.md and docs/workspace-tools.md. The README named dl rmt and the --herdr-* flags in its command tables, but no section told a user how the parts fit together. A user had to read two long pages to find the setup step and the cleanup command.

This change adds docs/herdr.md. The page gives the one-time setup, a table of the herdr features with the step each one needs, and a short section on dl rmt. The README gets a short ## herdr section with the setup and a dl rmt example. The page links to the existing detail and does not copy it.

Evidence

This change is docs and help text only. It has no runtime effect, so there is no graph. The new --help lines:

  dl rmt                             Delete the workspace this herdr tab names
...
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.

What this changes

  • docs/herdr.md (new):
    • the setup: dl --herdr-setup, then herdr server reload-config.
    • a table of nine features. Each row names what the feature needs and links to the section with the detail.
    • the tab name: who writes it, that DEVLAUNCH_NO_TITLE=1 turns it off, and that only dl rmt reads it back.
    • dl rmt: a short summary, with a link to the full contract in docs/cli.md.
    • a table of the variables that herdr and dl pass: HERDR_TAB_ID, HERDR_BIN_PATH, HERDR_AGENT, DEVLAUNCH_HERDR, DEVLAUNCH_NO_TITLE, NVIM_SPLIT.
  • README.md: a new ## herdr section after the dla section, a "herdr" link in the Contents line, and a docs/herdr.md row in the Docs table.
  • dl --help: a dl rmt line in the examples, and a paragraph after the rme paragraph that says what rmt does and when it refuses. Before this change, --help did not name rmt at all.
  • Release 0.64.1: the version in rust/Cargo.toml and rust/Cargo.lock, the two version strings in the README, and a CHANGELOG.md entry. When this PR merges, publish.yml publishes to PyPI, tags v0.64.1 and writes the GitHub release, and conda-publish.yml follows.
  • AGENTS.md: herdr.md is added to the list of docs/ pages. CLAUDE.md is a symlink to AGENTS.md, so there is one copy of the list.

How I checked it

  • A fresh-context review (review-self) checked each claim on the page against the Rust source. It found two false claims and fixed them in their own commits:
    • 9ee94740: the page said the pane shell reads the tab name. The pane shell reads the panes in the tab, not the name. Only dl rmt reads the name.
    • 6de8e9d1: the intro said two features need a step from the user. The table lists four.
  • A second fresh-context review (wf-review, posted on this PR) found that the rmt text was copied into four places with no test to diff them, and that the table left out DEVLAUNCH_NO_TITLE. a1c4217f fixes both: docs/herdr.md now links to docs/cli.md for rmt, and the README herdr section points at the existing rmt paragraph.
  • cargo test --workspace passed with no failures, and cargo fmt --check passed.
  • The Sourcery review left 8 threads. 1b241e3e fixes all 8: each feature row in docs/herdr.md now states its limits, and the README herdr section is now a short pointer.
  • The Python suite passed on a release build of dl and dla: 892 passed.
  • prek run --from-ref origin/main --to-ref HEAD passed.
  • No test can catch a wrong claim in prose. The guards check links, anchors, dashes and the "this README" phrase only.
Commands
cd rust && pixi run cargo build --release -p dl -p dla
cd rust && pixi run cargo test --workspace && pixi run cargo fmt --check
pixi run pytest -q test/
pixi run -- bash -c 'prek run --from-ref origin/main --to-ref HEAD'

Merge danger

Door: one-way for the release. A merge publishes 0.64.1 to PyPI and conda, and a revert does not unpublish it. The docs and help text are two-way: a plain revert removes them.

Blast radius: none. Only docs and help text change. If a claim is wrong, a reader gets wrong advice, and no code changes behavior.

🤖 Generated with Claude Code

Summary by Sourcery

Publish version 0.64.1 with consolidated herdr documentation and clearer help for deleting a workspace from its herdr tab.

New Features:

  • Add a consolidated herdr guide covering setup, supported features, required configuration, environment variables, and workspace cleanup with dl rmt.
  • Expose dl rmt in dl --help with its behavior and refusal conditions.

Enhancements:

  • Add README navigation and a concise herdr overview linking to the detailed documentation.

Build:

  • Bump the project version to 0.64.1.

Documentation:

  • Document the herdr integration in docs/herdr.md and link it from the README and project documentation guidance.
  • Record the 0.64.1 release changes in the changelog.

Chores:

  • Update version references and release metadata for 0.64.1.

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
…mt 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
@blooop
blooop enabled auto-merge October 30, 2026 13:51
@sourcery-ai

sourcery-ai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

This docs-only PR centralizes herdr behavior in a new linked guide, provides a concise README entry point with setup and dl rmt usage, and registers the page in repository documentation guidance; runtime behavior is unchanged.

File-Level Changes

Change Details Files
Add a centralized herdr feature guide covering setup, feature prerequisites, tab behavior, cleanup, and environment variables.
  • Document one-time pane-shell setup and configuration behavior.
  • Summarize nine herdr integrations with prerequisites and links to existing detailed documentation.
  • Explain tab naming, the single read-back path used by dl rmt, and best-effort behavior.
  • Document dl rmt resolution, deletion guard, force handling, refusal cases, and shell hangup.
  • Add a herdr/dl environment-variable reference.
docs/herdr.md
Expose the new herdr guide from the README while keeping the README overview concise.
  • Add herdr to the contents navigation.
  • Add setup instructions, feature overview, and a dl rmt example after the dla section.
  • Link the new guide from the README Docs table.
README.md
Register the new documentation page in repository guidance.
  • Add herdr.md to the documented docs/ page list.
AGENTS.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.77%. Comparing base (f1e4c7d) to head (931b730).

Additional details and impacted files
Flag Coverage Δ
python 42.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
shipped code (rust) 94.97% <ø> (ø)
harness and tooling (python) 42.98% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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
@blooop blooop changed the title docs: add a herdr page, and a README herdr section with dl rmt docs: add a herdr page, a README herdr section, and dl rmt in --help Oct 30, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 8 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="README.md" line_range="478-479" />
<code_context>
+
+- 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 <ws> 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
</code_context>
<issue_to_address>
**Agent sessions do not return**

When a user relies on restart recovery with herdr older than 0.9.2, without `session.resume_agents_on_restore = true`, for a `--rm` session, or after a reboot stops the container before herdr saves the session, herdr does not restore the agent command, so the `dla` session does not return after a restart or reboot; a `--rm` session deletes its workspace and cannot be restored.

State the herdr version and config prerequisites, and qualify restoration for `--rm` sessions and shutdowns before the session is saved in both the README and guide.

Also at `docs/herdr.md:8-11`, `docs/herdr.md:37`.
</issue_to_address>

### Comment 2
<location path="README.md" line_range="492" />
<code_context>
+```
+
+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
</code_context>
<issue_to_address>
**Workspace is deleted but tab stays open**

When `dl rmt` is invoked with SIGHUP ignored, after its parent has exited, from a parent that is not the tab's interactive shell, or while another pane remains open, `dl rmt` sends SIGHUP to its parent, which does not reliably close the tab; the workspace is deleted while the shell or tab stays open.

Describe tab closure as conditional, and document that `dl rmt` signals its parent rather than guaranteeing that the tab closes.

Also at `docs/herdr.md:57`, `docs/herdr.md:76-77`, `README.md:491`.
</issue_to_address>

### Comment 3
<location path="docs/herdr.md" line_range="20-21" />
<code_context>
+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
</code_context>
<issue_to_address>
**Custom shell blocks setup**

When herdr already has a nonempty custom `terminal.default_shell`, `dl --herdr-setup` refuses to replace a non-devlaunch `default_shell`, so users with a custom shell do not get the pane shell configured as this page promises.

Mention that setup refuses to replace a custom shell and link to the manual replacement instructions.
</issue_to_address>

### Comment 4
<location path="README.md" line_range="482" />
<code_context>
+  session back into its own conversation.
+- `dl <ws> 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:
</code_context>
<issue_to_address>
**New panes open on host**

When the tab still has its workspace name after its `dl` session has exited, `dl-herdr-shell` identifies a workspace from a live foreground `dl` transport, not the tab’s persistent name. After that session exits, it opens the host shell, so a reader following this claim gets a pane outside the workspace container.

Qualify the claim to say that a split opens in the container only while a pane in the tab has a live foreground `dl` session for that workspace.

Also at `docs/herdr.md:39`.
</issue_to_address>

### Comment 5
<location path="docs/herdr.md" line_range="42" />
<code_context>
+| 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) |
+
</code_context>
<issue_to_address>
**In-container reporting implies all agents**

When the user starts a non-Claude agent inside the container, the row says an agent started inside the container reports to the pane, so users starting a non-Claude agent expect it to be tracked; the documented hook reports Claude only, and another agent needs its own hook.

Name Claude in the feature row and note that other agents need their own reporting hook.
</issue_to_address>

### Comment 6
<location path="docs/herdr.md" line_range="35" />
<code_context>
+
+| 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 <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 | herdr 0.9.2 or later | [Coming back after herdr restarts](workspace-tools.md#coming-back-after-herdr-restarts) |
</code_context>
<issue_to_address>
**Tab label may be an ID**

When a user launches a workspace by bare ID and devlaunch has no record for it, a launch by bare ID for a workspace with no saved record keeps the workspace ID as its tab label, not `repo@branch`, so this row promises a label the launch cannot provide.

Qualify that `repo@branch` is used when the workspace’s record supplies that label; otherwise the tab keeps the workspace ID.
</issue_to_address>

### Comment 7
<location path="docs/herdr.md" line_range="40" />
<code_context>
+| 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) |
</code_context>
<issue_to_address>
**Editor split silently skipped**

When the herdr tab already has another pane, `dl` leaves an existing multi-pane layout alone, so setting `NVIM_SPLIT=1` does not open an editor beside the agent in those tabs, contrary to the unqualified overview.

State the one-pane-tab limitation in the overview and list it as a condition for the editor split.

Also at `README.md:481-482`.
</issue_to_address>

### Comment 8
<location path="README.md" line_range="471-502" />
<code_context>
 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:
</code_context>
<issue_to_address>
**README gains guide-level detail**

When the new herdr section is included in `README.md`, `README.md` now contains a feature inventory, setup workflow, and cleanup walkthrough alongside the fuller guide in `docs/herdr.md`, so it no longer stays a short orientation and duplicates guide-level material for readers.

Keep the README section to a brief pointer and leave the feature list and workflow details in `docs/herdr.md`.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread docs/herdr.md Resolved
Comment thread README.md Resolved
Comment thread docs/herdr.md Resolved
Comment thread docs/herdr.md Resolved
Comment thread docs/herdr.md Resolved
Comment thread README.md Resolved

@blooop blooop left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was generated by AI during review.

Reviewed at head dd3be3f5, against merge-base with main.

Standards

  1. Duplicated Code / Shotgun Surgery: the rmt text is copied, not linked. docs/herdr.md (the dl rmt section) copies docs/cli.md "rmt: the workspace this herdr tab is named after" almost line for line. The new README ## herdr paragraph on rmt repeats the existing rmt paragraph under "Workspace commands", and the setup block repeats the --herdr-shell paragraph. The AGENTS.md standing rule allows a second hand-maintained copy only with a test that diffs it against the first, and none exists. Fix: cut herdr.md's rmt section to a short summary and a link to cli.md, and drop one README copy. The --help paragraph is a valid primary surface.
  2. The PR body says the page "links to the existing detail and does not copy it". Finding 1 makes that false for the rmt section.
  3. docs/herdr.md says the tab rename and dl rmt need "Nothing". DEVLAUNCH_NO_TITLE turns off the tab rename (rust/devlaunch-core/src/flows/launch.rs), and with it set dl rmt finds no workspace. The variables table does not list it.
  4. The README bullet on herdr restore does not name the herdr 0.9.2 minimum that docs/herdr.md and docs/workspace-tools.md give.

Checked against the source and found correct: the rmt example output (render.rs), the four refusal cases (commands.rs), no herdr call outside a herdr tab (session_manager.rs), the repo@branch label (workspace_id.rs), the shared guard and hangup with rme, the grammar refusals (cli.rs), and the chezmoi refusal in setup (herdr_environment.rs).

Spec

No spec available. The PR closes no issue, and its commits reference none.

Verdict

Comment. No blocking findings. Findings 1 to 4 are worth fixing before merge.

…d 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
…r 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
@blooop blooop changed the title docs: add a herdr page, a README herdr section, and dl rmt in --help release: 0.64.1, with a herdr docs page and dl rmt in --help Oct 30, 2026
@blooop
blooop merged commit 7d63632 into main Oct 30, 2026
15 checks passed
@blooop
blooop deleted the update_docs branch October 30, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant