karlorz/agent-skills/autopilot
- community
Checking that the SKILL.md file is still in the repository.
Install, inspect, or refresh the bundled managed Codex home-hook autopilot flow. Use when asked to make Codex autopilot work in any repo or arbitrary workspace, run the bundled `scripts/install-codex-home-hooks.sh` installer, verify `~/.codex/hooks.json` plus `~/.codex/hooks/*.sh`, debug optional repo-local `.codex/hooks/autopilot-stop.sh` and `.codex/hooks/session-start.sh` overrides, or keep the legacy `.claude` bundle clearly secondary.
Install
npx vskill@latest install karlorz/agent-skills/autopilotSKILL.md
Managed Codex Autopilot
Use this skill for the bundled managed Codex home-hook autopilot design with optional repo-local overrides.
Choose the right tool
- If the user wants Codex to keep working on the current bounded task in the same session, do not route them to an archived shared same-session loop skill.
- Use
$autopilotwhen the user wants managed Codex home hooks installed or refreshed, arbitrary-workspace autopilot support, or repo-local override shims inspected. - Treat Claude Code built-in loop features as the better default for Claude. Only use the bundled
.claudefiles for explicit legacy compatibility work.
Bundled resources
scripts/install-codex-home-hooks.shscripts/test-codex-home-hooks-install.shscripts/test-codex-home-hooks-smoke.shassets/codex-home/hooks/assets/codex-home/lib/assets/codex-home/skills/autopilot_reset/SKILL.md
The installer copies those bundled assets into ~/.codex so the managed home hooks remain self-contained after installation.
Design rules
- Keep the default Codex lane in managed
~/.codex/hooks.json.SessionStartshould call~/.codex/hooks/managed-session-start.shandStopshould call~/.codex/hooks/cmux-stop-dispatch.sh. - Keep the managed home entrypoints thin. They should route to workspace overrides first, then to managed home fallbacks, and only emit plain text or allow-stop when no hook exists.
- Install the shared Codex autopilot support scripts into
~/.codex/autopilot/so the managed home hooks do not depend on a checkout outside the installed skill bundle. - Keep
.codex/hooks/autopilot-stop.shand.codex/hooks/session-start.shoptional. Use them only when the workspace needs to override the managed home fallback. - Keep home fallback wrappers thin. They should resolve the workspace root from recorded session workspace files or hook cwd, then
execthe shared scripts in~/.codex/autopilot/hooks/. - Gate continuation with
CMUX_AUTOPILOT_ENABLEDorCMUX_CODEX_HOOKS_ENABLEDso ordinary Codex sessions do not autopilot accidentally. - Keep
autopilot_resetminimal. It should callAUTOPILOT_PROVIDER=codex bash "${CODEX_HOME:-$HOME/.codex}/autopilot/autopilot-reset.sh" <mode>and should not duplicate control logic. - Keep
autopilot_resetdefault targeting on the latest recorded global Codex session. When multiple sessions may exist, direct the user tostatus-all.
Procedure
- Determine whether the user wants same-session continuation or managed home-hook autopilot. If it is same-session continuation only, keep working directly in the current session instead of routing to an archived shared skill.
- Run the bundled installer from the installed skill directory.
The skills CLI installs this bundle under .agents/skills/autopilot for both project and global scope, so the usual path is: .agents/skills/autopilot/scripts/install-codex-home-hooks.sh If the bundle was copied somewhere else manually, run the same installer from that installed skill folder instead.
- Inspect the installed managed files in
~/.codex/hooks/,~/.codex/autopilot/, and~/.codex/skills/autopilot_reset/. - When a workspace needs custom routing, add or update only
.codex/hooks/autopilot-stop.shand.codex/hooks/session-start.sh. Do not require a full repo-local.codexbundle just to enable Codex autopilot. - For arbitrary workspaces with no
.codexbundle, rely on the managed home fallback. SessionStart should still record the latest session ID and workspace-root tracking files, and Stop should still block through the home autopilot fallback when the cmux enable flags are set. - Run the bundled smoke tests after installer changes.
- Only use the local
templates/orscripts/install_repo_local_autopilot.pywhen the user explicitly asks for the legacy Claude repo-local installer.
Verification
Inspect the managed home hooks, bundled support files, and any repo-local overrides:
Run the bundled smoke tests:
Check reset control directly:
Legacy Claude bundle
Only when the user explicitly asks for Claude repo-local autopilot work, use the bundled legacy files in this skill folder:
templates/hooks/autopilot-keep-running.shtemplates/hooks/session-start.shtemplates/commands/autopilot_reset.mdscripts/install_repo_local_autopilot.py
Do not position those files as the default autopilot path for Codex.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingarchive/skills/autopilot/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/karlorz/agent-skills/autopilot)