---
description: Show or set the PRD Plugin autonomy level (autonomous | key_decision | guided)
argument-hint: "[autonomous|key_decision|guided]  (empty = show current)"
allowed-tools: Bash(python:*)
---

Run the PRD Plugin autonomy helper, then report the result in one plain line.

The argument is: `$ARGUMENTS`

Run the `prd_gate.py set-autonomy` command with that argument (omit the argument
to show the current level). Use the downstream path if it exists, else the hub
path:

- downstream: `python .prd_plugin/scripts/prd_gate.py set-autonomy $ARGUMENTS`
- hub: `python scripts/prd_gate.py set-autonomy $ARGUMENTS`

Then tell the user the current/new level and that it takes effect immediately for
how you decide vs. ask. Do not do anything else.
