Repository navigation
feat(claude): let sessions write their own scratchpad without prompts - #209
Closed
furedea-agent[bot] wants to merge 1 commit into
Closed
furedea-agent[bot] wants to merge 1 commit into
furedea-agent[bot] wants to merge 1 commit into
Conversation
Lane sessions in Herdr worktrees stopped on a file-creation prompt when writing a PR body to their scratchpad, which lies outside the working directory. Edits under Claude's temp directories now pass; the sandbox still confines every Bash write. Refs #207 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Not needed: PR bodies and commit messages are written inline with a quoted heredoc instead of temp files. |
furedea
added a commit
that referenced
this pull request
Oct 18, 2026
…es (#211) Two follow-ups from running lanes. - **PR bodies are written inline.** - `delivery.md` now prescribes `gh pr create ... --body "$(cat <<'EOF' ... EOF)"` instead of `--body-file`. Writing temp files caused write and delete prompts. - The quoted delimiter keeps backticks and `$` literal. - `commits.md` uses the same quoted heredoc for commit messages, which keeps apostrophes literal too. It drops the stale claim that heredocs and substitutions ask. Standard input (`-F -`, `--body-file -`) is fine. Files are not. - New contracts show an inline heredoc body passes the allowed guard and the forbidden rules, even when it mentions `git add -A` or `--no-verify`. - **Parent workspaces close with their lane.** - `herdr worktree create --cwd <repo>` opens the repository's own workspace when none is open, and that workspace was left behind. - The verification hook now records such a parent before the create runs, checked against `herdr workspace list`. - `herdr workspace close` passes for a recorded parent with no agent in it. A workspace the user already had open, or one with any agent, still asks. - #209 is closed; its temp-directory edit rule is no longer needed. ## Verification - `uv run --frozen pytest tests`: all passed. - ruff and ty passed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lane sessions in Herdr worktrees stopped on a "create file?" prompt when writing a PR body to their scratchpad. The scratchpad lives under
/private/tmp/claude-<uid>/…, outside the working directory.permissions.allowgainsEdit(//private/tmp/claude-*/**)andEdit(//tmp/claude-*/**). Edit rules cover the Write and Edit tools.Refs #207
Verification
uv run --frozen pytest tests/agents: all passed. This includes a check that the agent-harness generated settings keep the rule.🤖 Generated with Claude Code