Skip to content

feat(claude): let sessions write their own scratchpad without prompts - #209

Closed
furedea-agent[bot] wants to merge 1 commit into
mainfrom
feat/scratchpad-writes-without-prompts
Closed

furedea-agent[bot] wants to merge 1 commit into
mainfrom
feat/scratchpad-writes-without-prompts

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

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.allow gains Edit(//private/tmp/claude-*/**) and Edit(//tmp/claude-*/**). Edit rules cover the Write and Edit tools.
  • Bash writes are unchanged: the sandbox already allows Claude's temp directory.

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

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]>
@furedea-agent

furedea-agent Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor Author

Not needed: PR bodies and commit messages are written inline with a quoted heredoc instead of temp files.

@furedea-agent furedea-agent Bot closed this Oct 17, 2026
@furedea-agent
furedea-agent Bot deleted the feat/scratchpad-writes-without-prompts branch October 17, 2026 15:28
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]>
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