[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6P0SFXMNSN0SJRWX2H7JMKA":3,"skill-same:01M6P0SFXMNSN0SJRWX2H7JMKA":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":25,"commitSha":49,"skillDirectory":50,"forksCount":13,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M6P0SFXMNSN0SJRWX2H7JMKA","delegating-to-agents",null,"Delegate bounded work to other AI agents while preserving context, ownership, and progress checks.","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fdelegating-to-agents\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"delegating to agents","context","bounded","agent-orchestration","ownership","progress","critical","main","community","github","delegate","work","https","license","delegation","orchestration","codex","ai agents","2026-11-10 10:12:30",false,"---\nname: delegating-to-agents\ndescription: \"Delegate bounded work to other AI agents while preserving context, ownership, and progress checks.\"\ncategory: agent-orchestration\nrisk: critical\nsource: community\nsource_repo: davidondrej\u002Fskills\nsource_type: community\ndate_added: \"2026-07-07\"\nauthor: davidondrej\ntags: [agents, delegation, orchestration]\ntools: [claude, codex]\nlicense: \"MIT\"\nlicense_source: \"https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002FLICENSE\"\n---\n\n# Delegating to Agents\n\n## When to Use\n\n- Use when work should be handed to another AI agent with a complete prompt and progress checks.\n- Use when you need to relay instructions to terminal or TUI agents without losing context.\n\n## Which agent to pick\n\n- **Coding (default) → Codex CLI.** Strongest coding agent, especially for complex, long-running SWE tasks. It's on an unlimited-usage plan — effectively unlimited, don't ration it.\n- **Most other tasks → Pi Agent** (`pi` in a cmux terminal). All Pi agents run opus-4.8-fast via OpenRouter at xhigh reasoning effort.\n- **Frontend \u002F design → Pi.** Opus 4.8 Fast beats Codex on UI, styling, design.\n- **Heavy multi-step work:** you as orchestrator + Codex CLI executing in a right-hand cmux pane is a solid default setup.\n\n## Sending prompts to a TUI agent\n\n1. **ONE single line — never newlines in the message body.** In a TUI, newline = Enter: a multi-line prompt submits at the first line and the rest arrives as fragmented mid-turn steering messages. Use \". \" or \"; \" instead of line breaks, then one explicit enter. For long instructions, write them to a file and send: `read \u002Ftmp\u002Ftask.md and follow it`.\n2. **Wrap the prompt in plain double quotes — NEVER escaped.** `cmux send --surface surface:N \"your prompt\"`. The recurring bug is emitting `\\\"` — in bash that's literal-broken and dies with `unexpected EOF`. Inside the prompt, avoid apostrophes and literal double quotes (write \"dont\", \"wont\", \"lets\"); rephrase instead of escaping. If a send failed, the cause was the escaped `\\\"`, not the quote type.\n3. **Exact command names:** `cmux send --surface surface:N` then `cmux send-key --surface surface:N enter`. There is NO `send-surface` or `send-key-surface`.\n\n## Polling\n\nKeep sleeps SHORT: start at 3-5s, re-check, repeat. Don't `sleep 30`. Pi and Hermes (opus-4.8-fast) launch and respond within seconds; scale up only for genuinely heavy tasks. After every check, send the user a one-line status: what the agent is doing and whether it's on track.\n\nClaude Code note: after it finishes, it may prefill a predicted next user message — that draft is Claude, not the user.\n\n## Remote VPS\n\nSSH in first and launch the agent ON the VPS (e.g. `codex --yolo`), then drive that on-box agent. Don't run an agent locally and have it SSH for every step.\n\n## The 4 agents (background reference)\n\nAll four use the portable SKILL.md standard; project skills win over global.\n\n- **Pi** (pi.dev, open-source TS): minimal read\u002Fwrite\u002Fedit\u002Fbash core, self-extends via TS extensions; true BYOK; best-in-class session branch\u002Ffork\u002Fresume. Skills: `~\u002F.pi\u002Fagent\u002Fskills\u002F`.\n- **Codex CLI** (OpenAI, Rust): fastest startup; kernel-level sandboxing; `codex exec` for CI; reads AGENTS.md. Skills: `~\u002F.codex\u002Fskills\u002F`.\n- **Claude Code** (Anthropic, TS): deepest Claude integration, `.claude\u002F` conventions, live skill hot-reload. Skills: `~\u002F.claude\u002Fskills\u002F`.\n- **Hermes** (Nous Research, Python): persistent autonomous agent — cross-session memory, built-in scheduler, 40+ tools; can orchestrate the other CLIs as workers. Skills: `~\u002F.hermes\u002Fskills\u002F`.\n\n## Driving interactive CLIs\n\n- Codex, Pi, OpenCode: need `pty=true`.\n- Claude Code: prefer `claude --print --permission-mode bypassPermissions` (no PTY).\n\n## Example\n\n**User request:**\n\n> Delegate these independent work items with complete context, clear ownership, and progress checks.\n\n## Limitations\n\n- Adapted from `davidondrej\u002Fskills`; verify local paths, tools, credentials, and agent features before acting.\n- For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.\n","# Delegating to Agents\n\n## When to Use\n\n- Use when work should be handed to another AI agent with a complete prompt and progress checks.\n- Use when you need to relay instructions to terminal or TUI agents without losing context.\n\n## Which agent to pick\n\n- **Coding (default) → Codex CLI.** Strongest coding agent, especially for complex, long-running SWE tasks. It's on an unlimited-usage plan — effectively unlimited, don't ration it.\n- **Most other tasks → Pi Agent** (`pi` in a cmux terminal). All Pi agents run opus-4.8-fast via OpenRouter at xhigh reasoning effort.\n- **Frontend \u002F design → Pi.** Opus 4.8 Fast beats Codex on UI, styling, design.\n- **Heavy multi-step work:** you as orchestrator + Codex CLI executing in a right-hand cmux pane is a solid default setup.\n\n## Sending prompts to a TUI agent\n\n1. **ONE single line — never newlines in the message body.** In a TUI, newline = Enter: a multi-line prompt submits at the first line and the rest arrives as fragmented mid-turn steering messages. Use \". \" or \"; \" instead of line breaks, then one explicit enter. For long instructions, write them to a file and send: `read \u002Ftmp\u002Ftask.md and follow it`.\n2. **Wrap the prompt in plain double quotes — NEVER escaped.** `cmux send --surface surface:N \"your prompt\"`. The recurring bug is emitting `\\\"` — in bash that's literal-broken and dies with `unexpected EOF`. Inside the prompt, avoid apostrophes and literal double quotes (write \"dont\", \"wont\", \"lets\"); rephrase instead of escaping. If a send failed, the cause was the escaped `\\\"`, not the quote type.\n3. **Exact command names:** `cmux send --surface surface:N` then `cmux send-key --surface surface:N enter`. There is NO `send-surface` or `send-key-surface`.\n\n## Polling\n\nKeep sleeps SHORT: start at 3-5s, re-check, repeat. Don't `sleep 30`. Pi and Hermes (opus-4.8-fast) launch and respond within seconds; scale up only for genuinely heavy tasks. After every check, send the user a one-line status: what the agent is doing and whether it's on track.\n\nClaude Code note: after it finishes, it may prefill a predicted next user message — that draft is Claude, not the user.\n\n## Remote VPS\n\nSSH in first and launch the agent ON the VPS (e.g. `codex --yolo`), then drive that on-box agent. Don't run an agent locally and have it SSH for every step.\n\n## The 4 agents (background reference)\n\nAll four use the portable SKILL.md standard; project skills win over global.\n\n- **Pi** (pi.dev, open-source TS): minimal read\u002Fwrite\u002Fedit\u002Fbash core, self-extends via TS extensions; true BYOK; best-in-class session branch\u002Ffork\u002Fresume. Skills: `~\u002F.pi\u002Fagent\u002Fskills\u002F`.\n- **Codex CLI** (OpenAI, Rust): fastest startup; kernel-level sandboxing; `codex exec` for CI; reads AGENTS.md. Skills: `~\u002F.codex\u002Fskills\u002F`.\n- **Claude Code** (Anthropic, TS): deepest Claude integration, `.claude\u002F` conventions, live skill hot-reload. Skills: `~\u002F.claude\u002Fskills\u002F`.\n- **Hermes** (Nous Research, Python): persistent autonomous agent — cross-session memory, built-in scheduler, 40+ tools; can orchestrate the other CLIs as workers. Skills: `~\u002F.hermes\u002Fskills\u002F`.\n\n## Driving interactive CLIs\n\n- Codex, Pi, OpenCode: need `pty=true`.\n- Claude Code: prefer `claude --print --permission-mode bypassPermissions` (no PTY).\n\n## Example\n\n**User request:**\n\n> Delegate these independent work items with complete context, clear ownership, and progress checks.\n\n## Limitations\n\n- Adapted from `davidondrej\u002Fskills`; verify local paths, tools, credentials, and agent features before acting.\n- For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.\n",{"name":5,"risk":24,"tags":41,"tools":43,"author":45,"source":26,"license":14,"category":21,"date_added":46,"description":7,"source_repo":47,"source_type":26,"license_source":48},[42,32,33],"agents",[44,34],"claude","davidondrej","2026-07-07","davidondrej\u002Fskills","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Fdelegating-to-agents","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill delegating-to-agents",{"tool":60,"command":61},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill delegating-to-agents",{"tool":63,"command":64},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill delegating-to-agents","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fdelegating-to-agents\u002FSKILL.md",true,[],[69,92,113,134,151,171],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":36},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[],[76,77,78,79,80,81,71,82,83,84,85,86,26,25,87,24,88,89,90,91],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","devops-security","access","configure","only","active","scope","scripts","relevant","implementing",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":36},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[28,99,100,101,102,33,103,104,105,106,107,108,109,86,110,26,111,112,24,21],"zcode","zcode delegate","review","cli","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","app",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":36},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[120,121,122,123,27,34,124,31,30,125,126,127,128,26,25,129,130,131,132,133],"transcript","youtube transcript","youtube","safe","research","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":36},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[],[120,121,122,141,123,142,27,34,31,143,144,145,146,126,147,26,25,148,149,150],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":36},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[],[122,158,159,102,123,160,161,162,163,31,145,164,165,166,167,25,168,129,169,170],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":36},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[],[178,122,179,180,123,142,143,181,182,144,145,146,126,183,147,26,25,148,184,132],"youtube full","full","google","server","dlp","credits","automatic"]