with one click
autonomous-skill
// Use when work must continue across multiple Codex sessions with `.autonomous/` tracking, resumable execution, or autonomous handoff. Use for long-running, multi-session, or resume-later tasks.
// Use when work must continue across multiple Codex sessions with `.autonomous/` tracking, resumable execution, or autonomous handoff. Use for long-running, multi-session, or resume-later tasks.
Use when work should be delegated to Claude Code CLI, especially headless `claude -p` runs, automation scripts, CI jobs, resumable sessions, or requests to use Claude/Claude Code for a task.
Generate, remix, or edit images with Nanobanana / Nano Banana 2 through the bundled Gemini CLI wrapper. Use this whenever the user wants AI image generation or editing, especially for reference-image composition, character consistency, grounded visuals that may need live web search, style transfer, marketing graphics, product mockups, social assets, or when they explicitly mention Nanobanana, Gemini image models, Google image generation, AI drawing, ๅพ็็ๆ, AI็ปๅพ, ๅพ็็ผ่พ, or ็ๆๅพ็.
ๆทฑๅบฆ่ฐ็ ็ๅคๅฎไพ๏ผๅค Agent๏ผ็ผๆๅทฅไฝๆต๏ผๆไธไธช่ฐ็ ็ฎๆ ๆๆๅฏๅนถ่กๅญ็ฎๆ ๏ผ็จ Codex CLI๏ผ`codex exec`๏ผๅจ้ป่ฎค `workspace-write` ๆฒ็ฎฑๅ ่ฟ่กๅญ่ฟ็จ๏ผ่็ฝไธ้้ไผๅ ไฝฟ็จๅทฒๅฎ่ฃ ็ skills๏ผๅ ถๆฌกไฝฟ็จ MCP ๅทฅๅ ท๏ผ็จ่ๆฌ่ๅๅญ็ปๆๅนถๅ็ซ ็ฒพไฟฎ๏ผๆ็ปไบคไปโๆๅๆฅๅๆไปถ่ทฏๅพ + ๅ ณ้ฎ็ป่ฎบ/ๅปบ่ฎฎๆ่ฆโใ็จไบ๏ผ็ณป็ปๆง็ฝ้กต/่ตๆ่ฐ็ ใ็ซๅ/่กไธๅๆใๆน้้พๆฅ/ๆฐๆฎ้ๅ็ๆฃ็ดขใ้ฟๆๅไฝไธ่ฏๆฎๆดๅ๏ผๆ็จๆทๆๅโๆทฑๅบฆ่ฐ็ /Deep Research/Wide Research/ๅค Agent ๅนถ่ก่ฐ็ /ๅค่ฟ็จ่ฐ็ โ็ญๅบๆฏใ
Interactive feature development workflow from idea to implementation. Creates requirements (EARS format), design documents, and implementation task lists. Use when creating feature specs, requirements documents, design documents, or implementation plans. Triggered by "kiro" or references to .kiro/specs/ directory.
GitHub Spec-Kit integration for constitution-based spec-driven development. 7-phase workflow (constitution, specify, clarify, plan, tasks, analyze, implement). Use when working with spec-kit CLI, .specify/ directories, or creating specifications with constitution-driven development. Triggered by "spec-kit", "speckit", "constitution", "specify", references to .specify/ directory, or spec-kit commands.
Extract subtitles/transcripts from a YouTube video URL and save as a local file. Use when you need to extract subtitles from a YouTube video.
| name | autonomous-skill |
| description | Use when work must continue across multiple Codex sessions with `.autonomous/` tracking, resumable execution, or autonomous handoff. Use for long-running, multi-session, or resume-later tasks. |
Execute complex, long-running tasks across multiple sessions using a dual-agent pattern (Initializer + Executor) with automatic session continuation via Codex non-interactive mode.
Use the run-session.sh script to manage autonomous tasks:
# Start a new autonomous task
~/.codex/skills/autonomous-skill/scripts/run-session.sh "Build a REST API for todo app"
# Continue an existing task
~/.codex/skills/autonomous-skill/scripts/run-session.sh --task-name build-rest-api-todo --continue
# List all tasks and their progress
~/.codex/skills/autonomous-skill/scripts/run-session.sh --list
# Show help
~/.codex/skills/autonomous-skill/scripts/run-session.sh --help
The runner intentionally leaves --model unset so Codex uses the active config.toml or selected profile model by default.
All task data is stored in .autonomous/<task-name>/ under the project root:
project-root/
โโโ .autonomous/
โโโ build-rest-api/
โ โโโ task_list.md # Master task checklist
โ โโโ progress.md # Session-by-session notes
โ โโโ session.id # Last Codex session ID for resumption
โ โโโ session.log # Codex stdout/stderr transcript with JSON events
โโโ refactor-auth/
โ โโโ task_list.md
โ โโโ progress.md
โ โโโ session.id
โโโ ...
This allows multiple autonomous tasks to run in parallel without conflicts.
Usage:
run-session.sh "task description" Start new task (auto-generates name)
run-session.sh --task-name <name> --continue Continue specific task
run-session.sh --list List all tasks
run-session.sh --help Show help
Options:
--task-name <name> Specify task name explicitly
--continue, -c Continue existing task
--no-auto-continue Don't auto-continue after session
--max-sessions N Limit to N sessions
--list List all existing tasks
--resume-last Resume the most recent Codex session
--network Enable danger-full-access sandbox for tasks that need broader shell access
User Request โ Generate Task Name โ Create .autonomous/<task-name>/ โ Execute Codex Sessions
โ
โโโโโโโโโโโโโโโโโ
โ task_list.md โ
โ exists? โ
โโโโโโโโโฌโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโ
โ NO YES โ
โผ โผ
โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ
โ INITIALIZER โ โ EXECUTOR โ
โ - Analyze โ โ - Read state โ
โ - Break down โ โ - Next task โ
โ - Create โ โ - Implement โ
โ task_list โ โ - Mark done โ
โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโ
โ All complete? โ
โโโโโโโโโฌโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โ NO YES โ
โผ โผ
Auto-continue Exit with success
(3 sec delay)
~/.codex/skills/autonomous-skill/scripts/run-session.sh "Build a REST API for todo app"
Output:
โน Generated task name: build-rest-api-todo
==========================================
SESSION 1 - build-rest-api-todo
==========================================
==========================================
INITIALIZER SESSION
==========================================
Task: Build a REST API for todo app
Task Name: build-rest-api-todo
Task Directory: .autonomous/build-rest-api-todo
[Codex creates task_list.md with 25 tasks...]
โ Initializer session complete
โน Session ID saved: 550e8400-e29b-41d4-a716-446655440000
=== Progress: 0/25 ===
Continuing in 3 seconds... (Press Ctrl+C to pause)
~/.codex/skills/autonomous-skill/scripts/run-session.sh --task-name build-rest-api-todo --continue
# Resume the Codex session (preserves conversation context)
~/.codex/skills/autonomous-skill/scripts/run-session.sh --task-name build-rest-api-todo --continue --resume-last
~/.codex/skills/autonomous-skill/scripts/run-session.sh --list
Output:
==========================================
AUTONOMOUS TASKS
==========================================
โ build-rest-api-todo (25/25 - 100% complete) [session: 550e8400...]
โ refactor-auth (12/30 - 40%) [session: 661f9511...]
? incomplete-task (no task_list.md)
# Enable network access for tasks that need API calls
~/.codex/skills/autonomous-skill/scripts/run-session.sh --network "Fetch data from GitHub API and analyze"
For each task in .autonomous/<task-name>/:
| File | Purpose |
|---|---|
task_list.md | Master task list with checkbox progress |
progress.md | Session-by-session progress notes |
session.id | Last Codex session ID for resumption |
session.log | JSON Lines output from Codex sessions |
[x]--resume-last to preserve Codex conversation context--model; it uses the active Codex config/profile model--network switches the sandbox override to danger-full-access while keeping approval policy non-interactive.autonomous/ to .gitignore to avoid committing logsThe script uses these Codex commands internally. It intentionally uses config overrides instead of --full-auto so unattended runs do not inherit on-request approvals from the current CLI:
# Non-interactive execution with file edits (fully autonomous)
# Uses the configured model from the active Codex config/profile
codex exec \
-c 'approval_policy="never"' \
-c 'sandbox_mode="workspace-write"' \
--skip-git-repo-check \
--json \
"prompt"
# Resume previous session
codex exec resume \
-c 'approval_policy="never"' \
-c 'sandbox_mode="workspace-write"' \
--skip-git-repo-check \
--json \
<SESSION_ID> \
"prompt"
# Full access (file edits + shell network / unrestricted filesystem) - use with caution!
codex exec \
-c 'approval_policy="never"' \
-c 'sandbox_mode="danger-full-access"' \
--skip-git-repo-check \
--json \
"prompt"
| Issue | Solution |
|---|---|
| Task not found | Run --list to see existing tasks |
| Multiple tasks | Specify task name with --task-name |
| Session stuck | Check session.log in task directory |
| Need to restart | Delete task directory and start fresh |
| Resume failed | Remove session.id to start fresh session |
| Run paused for approval | Ensure the updated runner is using -c approval_policy="never" overrides |
| Codex not found | Install Codex CLI: npm install -g @openai/codex |