Hacker News new | ask | show | jobs
by kylehotchkiss 133 days ago
It'd be nice if CC could figure out all the required permissions upfront and then let you queue the job to run overnight
1 comments

Except it cannot really do anything unattended
It actually can with the right wrapper. I built an open source loop driver that runs Claude Code CLI autonomously with --dangerously-skip-permissions. It handles session continuity (--resume), budget enforcement, stagnation detection (two-strike system if turns stay low), and auto model fallback (Opus -> Sonnet on consecutive timeouts).

The key is streaming NDJSON output to track cost per iteration and detect completion markers. The human stays in control by editing CLAUDE.md between runs to steer the project.

https://github.com/intellegix/intellegix-code-agent-toolkit