npx claudepluginhub shawnzhu02/claude-autoplanPlan mode, unattended: Claude asks all its questions once up front, the plan is auto-approved, and the session switches to auto mode to build it. Toggle with /autoplan.
Unattended plan mode for Claude Code.
Plan mode is great until you want to walk away. Claude asks a question, you answer, it asks another, then it stops at the plan approval dialog, and nothing happens until you come back.
With autoplan on:
So you answer once, leave, and come back to finished work.
In Claude Code:
/plugin marketplace add shawnzhu02/claude-autoplan
/plugin install autoplan@claude-autoplan
Requires Node.js 18+ on your PATH (the hooks are small Node scripts, so they work the same on macOS, Linux and Windows).
/autoplan flip on/off
/autoplan on turn on, switch to auto mode after approval
/autoplan on acceptEdits turn on, switch to acceptEdits instead
/autoplan off
/autoplan status
Then enter plan mode as usual (Shift+Tab, or claude --permission-mode plan) and give Claude the task.
The setting is global: it applies to every session until you turn it off. Each auto-approval is logged to ~/.claude/autoplan.log (session, working directory, mode, plan file), so you can review what ran.
Modes after approval: auto (default), acceptEdits, default, dontAsk, bypassPermissions. auto needs a plan where auto mode is available; if yours doesn't have it, use acceptEdits. bypassPermissions only takes effect if the session was started with bypass mode available.
Two hooks and one command:
PermissionRequest hook on ExitPlanMode (hooks/approve.js): when autoplan is on, it answers the plan dialog with allow, echoes the plan back as updatedInput, and adds a setMode permission update for the session.
Claude Code ignores a bare "allow" for ExitPlanMode: the decision must carry updatedInput or the dialog still shows. That detail is the whole trick.UserPromptSubmit hook (hooks/context.js): in plan mode only, adds the "ask everything once, then run unattended" instructions to the prompt./autoplan (scripts/toggle.js): writes or removes the flag file ~/.claude/.autoplan-on (respects CLAUDE_CONFIG_DIR). The file holds the target mode.The approval dialog may flash on screen for a moment while the hook starts. That's expected: the hook answers it on its own, so don't press anything.
If anything goes wrong (no flag, unreadable input, an error), the hooks print nothing and you get the normal dialog. They never approve anything except ExitPlanMode.
The flag file makes a status line badge easy, e.g. in a bash status line script:
[ -f "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/.autoplan-on" ] && printf '[AUTOPLAN] '
Autoplan removes the human check between "here's my plan" and "doing it". Auto mode still has its own safety checks and blocks risky actions, but nobody reads the plan first. Turn it on for work you'd approve anyway, and off when you want to review plans. Check ~/.claude/autoplan.log to see what was approved.
node test/run.js # hook + toggle tests (uses a temp config dir)
claude plugin validate . # marketplace
claude plugin validate ./plugins/autoplan
claude --plugin-dir ./plugins/autoplan # try it without installing
MIT
7-day visitors to each marketplace page
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.
tasteskill 2.5.1: professional company websites at the figma.com and x.ai level, checked in a real browser.