Use shared ~/.harper-dev/<project>/ parent + document sandbox permission#28
Open
hdbjeff wants to merge 2 commits into
Open
Use shared ~/.harper-dev/<project>/ parent + document sandbox permission#28hdbjeff wants to merge 2 commits into
hdbjeff wants to merge 2 commits into
Conversation
Replace per-project ~/.<project>-dev/ with shared ~/.harper-dev/<project>/ parent so a single sandbox-write allowlist entry covers all Harper projects on a host. Adds an AI-agent sandbox subsection under §3. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Amends the running-dev-instances-in-worktrees rule (#26) with two changes that came out of adopting it on a real project under a sandboxed AI agent:
Nest per-worktree data roots under a single shared parent. Today the rule prescribes `
/.-dev/hdb-/` — one parent per project. For machines that sandbox AI-agent file writes, this means one allowlist entry per Harper project on the host. Move to `/.harper-dev//hdb-/` so a single literal allowlist entry covers them all.Document the sandbox-permission step. The rule mentions sandboxes adjacently but doesn't say "and your AI-agent sandbox needs to be told to allow writes here." Adds an explicit subsection under §3.
Path change
Before:
```
~/.project1-dev/hdb-/
~/.project2-dev/hdb-/
~/.project3-dev/hdb-/
```
After:
```
~/.harper-dev/project1/hdb-/
~/.harper-dev/project2/hdb-/
~/.harper-dev/project3/hdb-/
```
Most sandbox path matchers don't expand globs (`/Users//-dev` is a literal string), and even if they did, leading-dot dirs are usually excluded from `` by default.
Migration
Backwards-incompatible. Old data at `~/.-dev/` is safe to `rm -rf`; first run after this lands re-scaffolds at the new path.
Other benefits
🤖 Generated with Claude Code