--- name: autonomy description: View or change session autonomy level aliases: [auto] modifies: state:sysadmin/session-autonomy --- # /autonomy Command View or change the session autonomy level for agent operations. ## Usage ``` /autonomy # Show current autonomy level /autonomy # Set autonomy level for this session /autonomy list # Show all available levels ``` ## Available Levels | Level | Description | Use When | |-------|-------------|----------| | **conservative** | Confirm all write operations | Initial setup, unfamiliar systems, production | | **moderate** | Auto-execute routine maintenance, confirm installs | Trusted dev environments, routine maintenance | | **trusted** | Auto-execute most operations, confirm only destructive | Well-known environments, time-sensitive ops | ## Examples ```bash # Check current level /autonomy # Output: Current autonomy level: conservative # Set to moderate for this session /autonomy moderate # Output: Session autonomy set to: moderate # List all levels with details /autonomy list ``` ## State File Session autonomy is stored in: `~/.claude/state/sysadmin/session-autonomy.json` Changes only apply to the current session and reset when the session ends. ## What It Does 1. **View**: Reads `session-autonomy.json` and displays current level 2. **Set**: Updates `current_level` in `session-autonomy.json` 3. **List**: Displays all levels from `autonomy-levels.json` with descriptions ## Autonomy This command modifies the session state file. The change takes effect immediately for all subsequent agent operations in this session.