autonomous
Exit copilot mode — return to autonomous mode with full worktree enforcement.
Savant verdict: Review advised
Security analysis or source-hub review identified patterns requiring attention.
Live evaluation
Not evaluated yet. Workspaces can request a live evaluation.
Security assessment
Scan pending.
Structure
- 1 referenced file isn't in the packagescripts/lib/session-state.sh. They may be binary, too large to catalog, or missing upstream.
- Ships 2 executable scriptsscripts/mode.sh, scripts/set-mode.sh. Review what they do before enabling the skill for agents with tool access.
- No license declaredConfirm you may reuse this skill before importing it into your repository.
- The source hub's security checks flagged this skillGen Agent Trust Hub: warn (The skill instructs the agent to execute a local shell script located in a hidden directory and to adopt behavioral rules from a local markdown file. This creates a potential for arbitrary command execution and indirect prompt injection if the project files are provided by an untrusted source.)
SKILL.md
--- name: autonomous description: Exit copilot mode — return to autonomous mode with full worktree enforcement. user_invocable: true --- # Return to Autonomous Mode > **Claude Code enforcement only** — Codex and Cursor default to autonomous unless a future adapter uses this shared controller. > Shared mode controller: `.agents/skills/autonomous/scripts/`. ## Shared Controller Mode is a setting with explicit values: `autonomous` and `copilot`. For now, this skill owns the shared mode controller because `autonomous` is the default and safe fallback value. `/copilot` is an alias that sets `mode=copilot`; it should not own separate mode logic. - `.agents/skills/autonomous/scripts/mode.sh` is the sourceable mode facade for all agents and hooks. - `.agents/skills/autonomous/scripts/set-mode.sh` sets `mode=autonomous` or `mode=copilot`. - `scripts/lib/session-state.sh` remains project infrastructure because status, detection, bootstrap, and hook code all use it. ## Activate ```bash REPO_ROOT="$(git rev-parse --show-toplevel)" "$REPO_ROOT/.agents/skills/autonomous/scripts/set-mode.sh" autonomous ``` If the script does not exist, tell the user: "This project doesn't have mode switching scripts. You are already in autonomous mode by default." ## Confirmation After activation, print: ``` Mode: autonomous Worktree enforcement active. Full workflow pipeline. ``` ## Behavior Follow **autonomous mode** rules in `.claude/rules/operating-mode.md`. Agents and hooks that need live mode state should source the shared helper or call `scripts/session-state get mode`; do not read raw mode-state files directly.