Repository navigation
release: 0.64.1, with a herdr docs page and dl rmt in --help - #717
Conversation
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
Reviewer's GuideThis docs-only PR centralizes herdr behavior in a new linked guide, provides a concise README entry point with setup and File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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
There was a problem hiding this comment.
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>
blooop
left a comment
There was a problem hiding this comment.
This was generated by AI during review.
Reviewed at head dd3be3f5, against merge-base with main.
Standards
- Duplicated Code / Shotgun Surgery: the
rmttext is copied, not linked.docs/herdr.md(thedl rmtsection) copiesdocs/cli.md"rmt: the workspace this herdr tab is named after" almost line for line. The new README## herdrparagraph onrmtrepeats the existingrmtparagraph under "Workspace commands", and the setup block repeats the--herdr-shellparagraph. TheAGENTS.mdstanding rule allows a second hand-maintained copy only with a test that diffs it against the first, and none exists. Fix: cutherdr.md'srmtsection to a short summary and a link tocli.md, and drop one README copy. The--helpparagraph is a valid primary surface. - The PR body says the page "links to the existing detail and does not copy it". Finding 1 makes that false for the
rmtsection. docs/herdr.mdsays the tab rename anddl rmtneed "Nothing".DEVLAUNCH_NO_TITLEturns off the tab rename (rust/devlaunch-core/src/flows/launch.rs), and with it setdl rmtfinds no workspace. The variables table does not list it.- The README bullet on herdr restore does not name the herdr 0.9.2 minimum that
docs/herdr.mdanddocs/workspace-tools.mdgive.
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
A user who runs
dlin herdr now has one page that lists every herdr feature, what each feature needs, and howdl rmtcleans up a tab.dl --helpnow namesdl rmttoo.In short
Before this change, the herdr features of
dlanddlawere in many sections ofdocs/cli.mdanddocs/workspace-tools.md. The README nameddl rmtand 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 ondl rmt. The README gets a short## herdrsection with the setup and adl rmtexample. 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
--helplines:What this changes
docs/herdr.md(new):dl --herdr-setup, thenherdr server reload-config.DEVLAUNCH_NO_TITLE=1turns it off, and that onlydl rmtreads it back.dl rmt: a short summary, with a link to the full contract indocs/cli.md.dlpass:HERDR_TAB_ID,HERDR_BIN_PATH,HERDR_AGENT,DEVLAUNCH_HERDR,DEVLAUNCH_NO_TITLE,NVIM_SPLIT.README.md: a new## herdrsection after thedlasection, a "herdr" link in the Contents line, and adocs/herdr.mdrow in the Docs table.dl --help: adl rmtline in the examples, and a paragraph after thermeparagraph that says whatrmtdoes and when it refuses. Before this change,--helpdid not namermtat all.rust/Cargo.tomlandrust/Cargo.lock, the two version strings in the README, and aCHANGELOG.mdentry. When this PR merges,publish.ymlpublishes to PyPI, tagsv0.64.1and writes the GitHub release, andconda-publish.ymlfollows.AGENTS.md:herdr.mdis added to the list ofdocs/pages.CLAUDE.mdis a symlink toAGENTS.md, so there is one copy of the list.How I checked it
review-self) checked each claim on the page against the Rust source. It found two false claims and fixed them in their own commits:dl rmtreads the name.wf-review, posted on this PR) found that thermttext was copied into four places with no test to diff them, and that the table left outDEVLAUNCH_NO_TITLE. a1c4217f fixes both:docs/herdr.mdnow links todocs/cli.mdforrmt, and the README herdr section points at the existingrmtparagraph.cargo test --workspacepassed with no failures, andcargo fmt --checkpassed.docs/herdr.mdnow states its limits, and the README herdr section is now a short pointer.dlanddla: 892 passed.prek run --from-ref origin/main --to-ref HEADpassed.Commands
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:
dl rmt.dl rmtindl --helpwith its behavior and refusal conditions.Enhancements:
Build:
Documentation:
docs/herdr.mdand link it from the README and project documentation guidance.Chores: