auto-wm

Auto-approves Claude Code tool calls within time-boxed, project-scoped windows via PreToolUse hooks.

2|Updated Jul 18, 2026
One-click install
npx skills add https://github.com/Arasz/ai-badger --skill auto-wm-arasz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auto-wm
Source: https://github.com/Arasz/ai-badger/tree/main/features/claude/skills/auto-wm
Command: npx skills add https://github.com/Arasz/ai-badger --skill auto-wm-arasz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Claude Code normally prompts for approval on every tool call, which blocks unattended or long-running work sessions. This Skill lets you enable a bounded autonomic work mode that auto-approves tool calls for a specific project and time window, while keeping destructive commands, network egress, and out-of-project writes gated behind normal permission prompts. ## Core Features & Use Cases - Two auto-approval modes: partner mode (default 8h) auto-approves tool calls while leaving questions to the user; away mode (default 4h) additionally denies AskUserQuestion since no one is available to answer. - Three enforced guards: wall-clock expiry capped at 12 hours, per-project scoping so one repo's window never arms another, and a denylist blocking destructive shell commands, WebFetch/WebSearch, and writes outside the project. - Audit trail: every auto-approval, denial, mode change, and registered judgment call is logged to an SQLite-backed decision log with 60-day retention. - Use Case: Before leaving for the evening, run /auto-wm away 4h in your repo so Claude continues a refactoring task unattended, auto-approving safe edits, skipping questions, and logging every decision for morning review. ## Quick Start Ask Claude to enable autonomic work mode by saying "enable auto-wm away mode for 4 hours" and it will run the awm.py script, verify the hook fires, and confirm the window and scope.

Frequently Asked Questions about auto-wm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable auto-approval for Claude Code tool calls?

Run /auto-wm or the awm.py partner command to enable partner mode, which auto-approves tool calls for 8 hours by default. For unattended sessions use /auto-wm away 4h, which also denies AskUserQuestion since no one is available to answer.

What commands are blocked in Claude Code autonomous mode?

The denylist never auto-approves destructive shell commands like rm -rf, sudo, force pushes, git reset --hard, crontab, or piping curl into a shell. WebFetch, WebSearch, and file writes outside the armed project also fall through to the normal permission prompt.

Does auto-wm work across multiple projects at once?

Yes, state is stored per project with each repo keeping its own mode and expiry window. A tool call whose working directory is outside every armed project is never auto-approved, so two checkouts can run independent windows simultaneously.

How long can an auto-approval window last?

Windows default to 8 hours for partner mode and 4 hours for away mode, with a hard cap of 12 hours. Expiry is checked against the wall clock on every hook event, so an elapsed window flips itself off without any session timer.

Why is auto-wm not auto-approving my tool calls?

The PreToolUse hook must be registered in ~/.claude/settings.json by merging the provided settings-snippet.json. Verify registration with jq '.hooks.PreToolUse' ~/.claude/settings.json, then reload hooks or restart the session.

How do I check or turn off an active auto-wm window?

Run awm.py status to see the current mode, scope, and time remaining for this project plus any others still armed. Use awm.py disable to turn it off for the current project, or awm.py forget to remove a stale project entry entirely.