sub-agents-execution

Delegate bounded tasks to external CLI agents with optional role composition.

3|Updated Aug 8, 2026
One-click install
npx skills add https://github.com/Jose-Polanco-Oxte/Echos-Live-Music-Visualizer --skill sub-agents-execution-jose-polanco-oxte
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sub-agents-execution
Source: https://github.com/Jose-Polanco-Oxte/Echos-Live-Music-Visualizer/tree/main/.agents/skills/sub-agents-execution
Command: npx skills add https://github.com/Jose-Polanco-Oxte/Echos-Live-Music-Visualizer --skill sub-agents-execution-jose-polanco-oxte

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Delegating isolated subtasks to external AI CLI agents requires consistent invocation, permission control, and result parsing across many backends, which is error-prone to do by hand. ## Core Features & Use Cases - Multi-Backend Delegation: Launch bounded tasks on Codex, Claude, Gemini, Grok, Cursor, GLM, Kimi, or OpenCode CLIs through one unified script. - Role Composition: Apply zero, one, or multiple compatible role definitions from a roles catalog, with the most restrictive permission automatically enforced. - Structured Results: Receive normalized JSON responses with status, result, exit code, and error fields, including timeout and partial-output handling. - Use Case: While working in a large repository, delegate an isolated audit task such as "inspect the active plan and report unresolved path references" to a read-only sub-agent and integrate its validated findings. ## Quick Start Ask the agent to delegate a bounded task to a sub-agent by running scripts/run_subagent.py with a prompt and absolute working directory, optionally naming one or more roles.

Frequently Asked Questions about sub-agents-execution

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate a task to an external CLI sub-agent?

Run scripts/run_subagent.py with --prompt describing the bounded task and --cwd set to an absolute repository path. Optionally add repeatable --agent arguments to apply role definitions from the roles catalog.

Which CLI backends does sub-agent execution support?

The launcher supports Codex, Claude, Gemini, Grok, Cursor Agent, GLM, Kimi, and OpenCode. Backend selection comes from role frontmatter, caller environment detection, or an explicit --cli argument.

Can I combine multiple roles in one sub-agent run?

Yes, repeat the --agent argument for each compatible role. Roles are composed in argument order, and the most restrictive permission among them is applied; conflicting backends, models, or efforts cause a validation error.

What permission levels can a sub-agent run with?

Three levels exist: read-only, safe-edit, and yolo. Each backend maps these to its native flags, such as sandbox modes for Codex or permission modes for Claude, defaulting to safe-edit when unspecified.

Why does a sub-agent run time out or return partial results?

Runs time out when they exceed the --timeout value, defaulting to 600000 ms. The script returns a partial status with any captured output, so you can increase the timeout or narrow the task scope before retrying.