[{"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,97,118,139,167,191],{"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":80,"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",[75],{"categoryNo":76,"categoryName":77,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[81,82,83,84,85,86,71,87,88,89,90,91,26,25,92,24,93,94,95,96],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","devops-security","access","configure","only","active","scope","scripts","relevant","implementing",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"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,104,105,106,107,33,108,109,110,111,112,113,114,91,115,26,116,117,24,21],"zcode","zcode delegate","review","cli","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","app",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"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",[],[125,126,127,128,27,34,129,31,30,130,131,132,133,26,25,134,135,136,137,138],"transcript","youtube transcript","youtube","safe","research","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":156,"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",[145,148,151],{"categoryNo":146,"categoryName":147,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":149,"categoryName":150,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":152,"categoryName":153,"taxonomyType":154,"taxonomyTypeDesc":155},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[125,126,127,157,128,158,27,34,31,159,160,161,162,131,163,26,25,164,165,166],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":177,"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",[173,176],{"categoryNo":174,"categoryName":175,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":149,"categoryName":150,"taxonomyType":78,"taxonomyTypeDesc":79},[127,178,179,107,128,180,181,182,183,31,161,184,185,186,187,25,188,134,189,190],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":192,"name":193,"nameZh":6,"description":194,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":195,"categories":196,"keywords":198,"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",[197],{"categoryNo":146,"categoryName":147,"taxonomyType":78,"taxonomyTypeDesc":79},[199,127,200,201,128,158,159,202,203,160,161,162,131,204,163,26,25,164,205,137],"youtube full","full","google","server","dlp","credits","automatic"]