Start sessions with --dangerously-skip-permissions #1

Merged
reudy merged 1 commit from session/test into main 2026-09-30 18:16:43 +02:00
Member

Sessions started by sessions-ctl now run claude --dangerously-skip-permissions, so an unattended session no longer stops at every tool approval.

Changes

  • claude_args() adds the flag to both first launch and --resume; the unit test asserts it for both.
  • The one-time "Bypass Permissions mode" warning would block an unattended session. skipDangerousModePermissionPrompt: true in ~/.claude/settings.json suppresses it (already set on the dev box). As a fallback, status/list now report it in needs_attention, like the folder-trust prompt. The text was taken from the installed claude binary (2.1.285).
  • README: "No permission prompts" in the Security model (why the existing limits make this acceptable, and that prompt injection is the remaining risk), plus the updated launch command and a Troubleshooting row.

Tests: dev/tests 20 OK, web/tests 7 OK.

Deployed ahead of merge: dev/install.sh was already run from this branch on the dev box. Re-running it from main before this merges would revert the flag. Running sessions pick it up on their next restart.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CyWXJ3BVzrZ9VWk5c2CoAr

Sessions started by `sessions-ctl` now run `claude --dangerously-skip-permissions`, so an unattended session no longer stops at every tool approval. **Changes** - `claude_args()` adds the flag to both first launch and `--resume`; the unit test asserts it for both. - The one-time "Bypass Permissions mode" warning would block an unattended session. `skipDangerousModePermissionPrompt: true` in `~/.claude/settings.json` suppresses it (already set on the dev box). As a fallback, `status`/`list` now report it in `needs_attention`, like the folder-trust prompt. The text was taken from the installed claude binary (2.1.285). - README: "No permission prompts" in the Security model (why the existing limits make this acceptable, and that prompt injection is the remaining risk), plus the updated launch command and a Troubleshooting row. **Tests:** `dev/tests` 20 OK, `web/tests` 7 OK. **Deployed ahead of merge:** `dev/install.sh` was already run from this branch on the dev box. Re-running it from `main` before this merges would revert the flag. Running sessions pick it up on their next restart. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01CyWXJ3BVzrZ9VWk5c2CoAr
agent added 1 commit 2026-09-30 18:13:30 +02:00
Unattended sessions otherwise stop at every tool approval until someone
answers through Remote Control. The limits that make this acceptable (bot
token scoped to allowlisted repos, branch protection, nothing production on
the box) are written down in the README's security model, along with the
remaining risk of prompt injection.

The one-time bypass-mode warning would block an unattended session. It's
suppressed by skipDangerousModePermissionPrompt in ~/.claude/settings.json,
and if it ever shows anyway, status now reports it as needs_attention, the
same way as the folder-trust prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyWXJ3BVzrZ9VWk5c2CoAr
reudy approved these changes 2026-09-30 18:16:38 +02:00
reudy merged commit 2569937fa7 into main 2026-09-30 18:16:43 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/sessions#1
No description provided.