RR

rocyan98/routing-subagents

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

87 stars 质量 53 趋势 22

根据任务难度与宿主能力选择执行者,编排子 Agent 的 codex Agent Skill

概览

OpenAI Codex CLI、IDE 扩展以及 ChatGPT 桌面应用 Local Codex Agent 技能中的 Codex 路由子代理是一种用于自适应子代理路由的Codex技能。它帮助主代理决定何时直接工作,何时委托有界工作,以及如何协调依赖关系、验证和失败。它遵循代理技能规范,仅使用当前Codex主机暴露的工具和能力。 - 与主代理保持短暂紧密耦合的任务。- 当Codex支持相应的子代理、模型、角色和推理层级时,选择这些选项。- 在派遣工作前显示执行计划。- 并行运行独立任务并等待依赖。- 防止重复派遣并限制自动重试。- 在报告完成前验证委托结果。 Codex 从仓库中的 .agents/skills 目录和 $HOME/.agents/skills 目录中发现本地技能,供用户使用。仓库根包含 SKILL。

概述(AI 翻译)

英语 |简体中文

目标: OpenAI Codex CLI、IDE 扩展和 Codex 在 ChatGPT 桌面应用中 类型: 本地法典特工技能

根据任务难度和Codex揭示的能力,将每个任务与合适的子代理匹配。

routing-subagents 是用于自适应子代理路由的Codex技能。它帮助主代理决定何时直接工作,何时委托有界工作,以及如何协调依赖关系、验证和失败。它遵循代理技能规范,仅使用当前Codex主机暴露的工具和能力。

它所提供的

  • 与主代理保持短暂且紧密关联的任务。
  • 当Codex支持相应的子代理人、模型、角色和推理层级时,选择这些层级。
  • 显示派遣前的执行计划。
  • 并行运行独立任务并等待依赖关系。
  • 防止重复派遣并限制自动重传。
  • 在报告完成前核实委托的结果。

在法典中安装技能

Codex 从仓库中的 .agents/skills 目录和 $HOME/.agents/skills 中发现本地技能,供用户使用。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

routing-subagents

English | 简体中文

Target: OpenAI Codex CLI, IDE extension, and Codex in the ChatGPT desktop app Type: Local Codex Agent Skill

Match each task with a suitable subagent based on task difficulty and the capabilities Codex exposes.

routing-subagents is a Codex Skill for adaptive subagent routing. It helps the main agent decide when to work directly, when to delegate bounded work, and how to coordinate dependencies, verification, and failures. It follows the Agent Skills specification and uses only the tools and capabilities exposed by the current Codex host.

What it provides

  • Keeps short, tightly coupled tasks with the main agent.
  • Selects an appropriate subagent, model, role, and reasoning level when Codex supports those choices.
  • Shows the execution plan before dispatching work.
  • Runs independent tasks in parallel and waits for dependencies.
  • Prevents duplicate dispatches and limits automatic retries.
  • Verifies delegated results before reporting completion.

Install the Skill in Codex

Codex discovers local Skills from .agents/skills directories in a repository and from $HOME/.agents/skills for user-wide use. The repository root contains SKILL.md, so the directory copied or cloned into one of those locations must be named routing-subagents.

Repository-scoped installation

Run this from the repository where you want to use the Skill:

mkdir -p .agents/skills
git clone https://github.com/RocYan98/routing-subagents.git \
  .agents/skills/routing-subagents

This makes the Skill available to Codex sessions started in that repository and its subdirectories.

User-scoped installation

Use the user directory when the Skill should be available in every repository:

mkdir -p "$HOME/.agents/skills"
git clone https://github.com/RocYan98/routing-subagents.git \
  "$HOME/.agents/skills/routing-subagents"

If you downloaded a ZIP instead, copy the directory containing SKILL.md to the same location and preserve references/scoring.md.

Verify the installation

In Codex CLI or the IDE extension, run /skills and confirm that routing-subagents appears. You can then invoke it explicitly:

Use $routing-subagents to review this task, decide whether delegation is useful,
show the routing plan, and then carry out the authorized work.

Codex normally detects Skill changes automatically. Restart Codex if a new or updated Skill does not appear.

See the Codex build skills guide for the current discovery locations, explicit invocation syntax, and built-in installer behavior.

Install with a Codex Agent

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add rocyan98/routing-subagents
新手?先看 mcpskill.org 教程 →