Name the sandbox loop-claude runs in, and git as its seam to production
This commit is contained in:
@@ -15,7 +15,7 @@ Me, on my own machines, which take tagged releases. Nobody else depends on it.
|
||||
|
||||
## Install
|
||||
|
||||
Check out the latest tag in `~/.claude`, with Python 3.11 or newer as `python3` on `PATH`. Link the tool onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`.
|
||||
Check out the latest tag in `~/.claude`, with Python 3.11 or newer as `python3` on `PATH`. Link the tool onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Run it only in a sandbox with no direct access to a production environment, such as a dedicated VM: its worker skips every permission prompt.
|
||||
|
||||
## Release
|
||||
|
||||
|
||||
+1
-1
@@ -106,4 +106,4 @@
|
||||
|
||||
## loop-claude: an unattended worker bypasses permissions inside its sandbox
|
||||
|
||||
2026-09-30, lilleman. Applies "Always grant explicit access to data": the sandbox `loop-claude` runs in is where access is granted, so the worker and the interrupt run with `bypassPermissions`. The worker may read `~/.claude/.credentials.json`: it holds Claude Code's own credentials, which claude reads to run anyway. Valid while `loop-claude` runs only inside a sandbox; `todo.md`'s "Name the sandbox `loop-claude` runs in" makes that checkable.
|
||||
2026-09-30, lilleman. Applies "Always grant explicit access to data": the sandbox `loop-claude` runs in is where access is granted, so the worker and the interrupt run with `bypassPermissions`. The worker may read `~/.claude/.credentials.json`: it holds Claude Code's own credentials, which claude reads to run anyway. Its one seam to production is git: what it pushes can publish through CI. Valid while `loop-claude` runs only in the sandbox README → Install names.
|
||||
|
||||
@@ -36,4 +36,3 @@ The rebuild lifts every dimension, one chunk per item, until the last item opens
|
||||
- **Archive the transcript as each cycle ends, so a failed exit or Ctrl-C loses nothing.** Today only an interrupt or a finish archives, against goal 2.
|
||||
- **Key a project on its checkout's full path — its session, archive folder and models entry — and refuse to start while another session on that id is active.** `checkout.py:22` drops the leading `/`, so `~/code/a` and `/a` share a session, an archive folder and a models entry, and one loop can resume or delete the other's session.
|
||||
- **Move what `loop-claude` writes out of `~/.claude.json`, and bring each case that must stay to the human.** Claude Code owns and writes that file, and `trust`'s read-modify-write loses a write landing in its window.
|
||||
- **Name the sandbox `loop-claude` runs in under README → Install.** The decision letting the worker bypass permissions rests on it, and nothing says what it is.
|
||||
|
||||
Reference in New Issue
Block a user