Agent skill

Knowledge Agent Execution And Orchestration Subagent Runtime

by echoVic in echoVic/blade-code

覆盖子代理定义发现、前后台 Task 执行、durable resume lineage、结果采纳、验证代理和 managed worktree 生命周期。进入时机:新增 agent Markdown、修改 Task/TaskOutput、 调试后台完成通知、进程重启恢复、resume 或子代理隔离。不包含:团队任务图与成员邮箱 (见…

MITAuto-check passedAgent Workflows

Install Knowledge Agent Execution And Orchestration Subagent Runtime

skills CLI
$ npx skills add echoVic/blade-code --skill knowledge-agent-execution-and-orchestration-subagent-runtime -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install echoVic/blade-code knowledge-agent-execution-and-orchestration-subagent-runtime --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/echoVic/blade-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.trae/knowledges/agent-execution-and-orchestration/subagent-runtime .claude/skills/knowledge-agent-execution-and-orchestration-subagent-runtime && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
knowledge-agent-execution-and-orchestration-subagent-runtime
GitHub stars
180
Token cost
~1.7k tokens
SKILL.md length
412 words
Files
1
Skills in repo
38
Repo updated
First seen
Licence
MIT

At a glance

覆盖子代理定义发现、前后台 Task 执行、durable resume lineage、结果采纳、验证代理和 managed worktree 生命周期。进入时机:新增 agent Markdown、修改 Task/TaskOutput、 调试后台完成通知、进程重启恢复、resume 或子代理隔离。不包含:团队任务图与成员邮箱 (见…

  • Tasks that involve Subagents
  • SKILL.md covers Module Structure, Gotchas, Architecture and Decisions, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Git worktrees

What it does

Knowledge Agent Execution And Orchestration Subagent Runtime is an agent skill from echoVic/blade-code. 覆盖子代理定义发现、前后台 Task 执行、durable resume lineage、结果采纳、验证代理和 managed worktree 生命周期。进入时机:新增 agent Markdown、修改 Task/TaskOutput、 调试后台完成通知、进程重启恢复、resume 或子代理隔离。不包含:团队任务图与成员邮箱 (见 ../agent-teams/)。关键词:SubagentRegistry, SubagentExecutor, BackgroundAgentManager, AgentSessionStore, resumefrom, verification, worktree。

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Subagents and Git worktrees. The repository describes itself as: AI-powered CLI coding agent with 20+ built-in tools, MCP support, and multi-model providers. The licence is MIT.

When your agent uses it

  • Tasks that involve Subagents
  • Tasks that involve Git worktrees

Example prompts

  • “/knowledge-agent-execution-and-orchestration-subagent-runtime”

What it can do on your machine

Read from SKILL.md and the folder at commit 30f8684. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Knowledge Agent Execution And Orchestration Subagent Runtime loads about 1.7k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 412 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from echoVic/blade-code at commit 30f8684, republished under its MIT licence (© echoVic). 412 words, ~1,729 tokens.

Download SKILL.mdSave it as .claude/skills/knowledge-agent-execution-and-orchestration-subagent-runtime/SKILL.md (or your agent's skills folder).
name
knowledge-agent-execution-and-orchestration-subagent-runtime
description
覆盖子代理定义发现、前后台 Task 执行、durable resume lineage、结果采纳、验证代理和 managed worktree 生命周期。进入时机:新增 agent Markdown、修改 Task/TaskOutput、 调试后台完成通知、进程重启恢复、resume 或子代理隔离。不包含:团队任务图与成员邮箱 (见 ../agent-teams/)。关键词:SubagentRegistry, SubagentExecutor, BackgroundAgentManager, AgentSessionStore, resume_from, verification, worktree。

Module Structure

子代理是拥有独立 SessionRuntime、transcript 和 sidecar 的 child run;Task 工具负责身份与调用契约,执行器负责运行,后台管理器负责持久状态、通知和崩溃恢复。

Directory Layout
  • packages/cli/src/agent/subagents/ — 注册表、执行器、sidecar、恢复、结果采纳和内置代理
    • SubagentRegistry.ts — Markdown/frontmatter 配置加载和优先级
    • SubagentExecutor.ts — 独立 child SessionRuntime 执行
    • BackgroundAgentManager.ts — 后台运行、等待、取消、resume 和 orphan reconciliation
    • AgentSessionStore.ts — durable sidecar 与 lineage/config snapshot
    • SubagentWorktreeLifecycle.ts — 隔离 worktree 准备与收尾
    • SubagentResultAdoption.ts — 父 Task 缺失结果时的重启采纳
    • BackgroundSubagentCompletion.ts — 后台终态通知构造
  • packages/cli/src/tools/builtin/task/task.ts — Task 工具前台、后台和 resume 协议
  • packages/cli/src/cli/agents.ts — --agents 单次运行定义严格解析
  • packages/cli/src/slash-commands/agents.ts — TUI agent 管理入口
  • .claude/agents/ — Git 可见的 Claude Code 兼容 agent 定义
  • docs/guides/subagents.md — 用户可见配置与恢复契约
Key Entry Points
  • createTaskTool() in packages/cli/src/tools/builtin/task/task.ts — 模型侧委派入口
  • SubagentRegistry.loadFromStandardLocations() in packages/cli/src/agent/subagents/SubagentRegistry.ts — 分层资源发现
  • SubagentExecutor.execute() in packages/cli/src/agent/subagents/SubagentExecutor.ts — 直接前台执行器
  • BackgroundAgentManager.startBackgroundAgent() in packages/cli/src/agent/subagents/BackgroundAgentManager.ts — durable 后台 child 启动
  • BackgroundAgentManager.resumeAgent() in packages/cli/src/agent/subagents/BackgroundAgentManager.ts — immutable child resume

Gotchas

  • resume_from 不会复用原 agent ID,而会创建新的 child run;源运行必须已终止、类型必须一致,并记录 rootAgentId → resumedFrom → resumeDepth,否则恢复被拒绝 (packages/cli/src/tools/builtin/task/task.ts, packages/cli/src/agent/subagents/BackgroundAgentManager.ts)
  • resume 使用源 sidecar 中冻结的模型、权限、工具、系统提示、最大回合和隔离配置,不重新读取同名 agent 的最新定义;修改配置不会改变既有 lineage (packages/cli/src/agent/subagents/AgentSessionStore.ts, packages/cli/src/agent/subagents/BackgroundAgentManager.ts, git:888d608f)
  • 子代理访问权按 parent sessionId + canonical projectPath 复合校验;只有相同 session ID 不足以跨 workspace 查询、取消、采纳或恢复 child (packages/cli/src/agent/subagents/AgentSessionStore.ts, packages/cli/src/tools/builtin/task/task.ts)
  • 子 Agent 的 blacklist 总会加入 EnterWorktree、ExitWorktree 和 TeamCreate;隔离 worktree 由宿主生命周期创建,teammate 也不能嵌套创建团队 (packages/cli/src/agent/subagents/SubagentExecutor.ts, packages/cli/src/agent/subagents/BackgroundAgentManager.ts)
  • 隔离运行只有“成功且无改动、无提交”才自动删除 worktree;失败或任何变更都会保留路径与分支,调用方必须按交付语义处理 (packages/cli/src/agent/subagents/SubagentWorktreeLifecycle.ts)
  • 后台完成通知只内联最多 32,000 字符结果和 8,000 字符错误,并明确标为不可信数据;需要完整 durable 结果时才调用 TaskOutput,不能通过高频轮询代替 completion push (packages/cli/src/agent/subagents/BackgroundSubagentCompletion.ts, packages/cli/src/tools/builtin/task/task.ts)
  • orphan child 只有在 durable turn 已 turn_completed 且恢复上下文中存在最终 assistant 文本时才恢复为 completed;其他情况记为 interrupted failed 并允许用新 ID resume (packages/cli/src/agent/subagents/BackgroundAgentManager.ts)
  • running sidecar 同时保存 PID 和进程启动身份,防止 PID 复用被误判为原 owner 仍存活;旧记录缺身份时采用更保守的兼容窗口 (packages/cli/src/agent/subagents/AgentSessionStore.ts, packages/cli/src/agent/subagents/BackgroundAgentManager.ts)
  • 父 transcript 中缺失前台 Task 结果时,只有 child ID、owner、description、显式 type、resume lineage 和终态结果全部匹配才会采纳;后台 child 或 cancelled child 不走该路径 (packages/cli/src/agent/subagents/SubagentResultAdoption.ts, git:103e57b7)
  • verification 与 goal-verification 是保留名称,用户、项目和命令行 override 都不能覆盖;普通内置 agent 则允许被后续高优先级来源替换 (packages/cli/src/agent/subagents/SubagentRegistry.ts)
Show full SKILL.md (201 more words)Show less

Architecture

  • 每个 child 创建独立 SessionRuntime 和 Agent,继承父 Session 冻结的 agent/model/LSP 资源及 Provider admission owner,但使用自己的 session ID、transcript 和取消边界 (packages/cli/src/agent/subagents/SubagentExecutor.ts, packages/cli/src/agent/subagents/BackgroundAgentManager.ts)
  • Task 前台和后台路径共享相同 canonical 终态结果构造器;结果 metadata 承载 lineage、验证证据、修改文件与 worktree 信息,避免各表面自行解释 child sidecar (packages/cli/src/agent/subagents/SubagentResultAdoption.ts, packages/cli/src/tools/builtin/task/task.ts)
  • 后台 child 先提交 terminal sidecar,再由父 Runtime 校验并写入 client-hidden inbox receipt;父 Agent 在安全边界消费该消息并继续,而不是把后台回调直接拼进当前模型输出 (packages/cli/src/agent/subagents/BackgroundSubagentCompletion.ts, packages/cli/src/agent/Agent.ts, git:aa5060a7)
  • Task 工具声明 parallelism: shared 以支持同一模型响应批量委派,但不在流式预启动 allowlist;child 只会在父 tool-call durable identity 建立后启动 (packages/cli/src/tools/builtin/task/task.ts, packages/cli/src/agent/loop/StreamingToolExecutor.ts)
  • 子代理 LoopEvent 经 bridge 同时更新本地 progress store 和父 Session Bus;终态事件只发送一次,后台路径随后再触发 durable completion notification (packages/cli/src/tools/builtin/task/task.ts)

Decisions

  • 配置覆盖顺序为内置、Claude 用户级、受信 Claude 项目级、Blade 用户级、受信 Blade 项目级,最后是 invocation --agents;项目来源受 Workspace Trust 限制 (packages/cli/src/agent/subagents/SubagentRegistry.ts, packages/cli/src/cli/agents.ts)
  • Agent sidecar 使用 schema v2、0600 原子 fsync 写入和 0700 目录;公开投影刻意排除 prompt、消息、配置快照、workspace 与进程身份 (packages/cli/src/agent/subagents/AgentSessionStore.ts)
  • 终态 sidecar 缓存上限为 256,淘汰时跳过 running session;这是为了限制长驻 server 内存,同时不丢失活跃 child 的协调状态 (packages/cli/src/agent/subagents/AgentSessionStore.ts, git:8887f958)
  • 内置独立验证代理优先使用宿主提供的 JSON Schema verdict,兼容路径也只接受恰好一个固定 verdict 标题;修改文件与成功验证命令由工具 metadata 采集 (packages/cli/src/agent/subagents/builtinVerificationAgent.ts, packages/cli/src/agent/subagents/SubagentExecutor.ts)

Patterns

  • fresh Task 必须显式给 subagent_type,resume 可省略并从源运行继承;两者都先生成 canonical subagent_session_id,用于流式、持久化和重启恢复关联 (packages/cli/src/tools/builtin/task/task.ts, packages/cli/src/agent/loop/durableToolIdentity.ts)
  • 后台活动最多每秒刷新一次 sidecar 的 lastActiveAt,避免每个 LoopEvent 都写盘;最终消息、统计和 worktree outcome 在终态一次性保存 (packages/cli/src/agent/subagents/BackgroundAgentManager.ts)
  • agent 配置的 tools 为空或缺失表示继承全部工具,disallowedTools 始终优先;Claude Code 权限名会先映射到 Blade permission mode (packages/cli/src/agent/subagents/types.ts, packages/cli/src/agent/subagents/SubagentRegistry.ts)

Recovery Semantics

  • orphan reconciliation 先取得 child Session lease,再回收该 child 的前后台进程、修复 interrupted turn,并把 child JSONL 与 sidecar 已继承历史按最大首尾重叠合并 (packages/cli/src/agent/subagents/BackgroundAgentManager.ts)
  • 后台 completion inbox ID 由 child ID 确定,父 ACK 因而可 exactly-once;同一终态重复通知不会形成不同的父输入身份 (packages/cli/src/agent/subagents/BackgroundSubagentCompletion.ts)
  • restart recovery 无法验证 durable history 时写 restartRecovery: failed 并永久禁止该 run 再 resume,但不会把损坏 child 当作成功回接父会话 (packages/cli/src/agent/subagents/BackgroundAgentManager.ts)

© echoVic, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .trae/knowledges/agent-execution-and-orchestration/subagent-runtime of echoVic/blade-code.

Open the folder on GitHubat commit 30f8684

Compare with similar skills

Knowledge Agent Execution And Orchestration Subagent Runtime next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Knowledge Agent Execution And Orchestration Subagent Runtime compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Knowledge Agent Execution And Orchestration Subagent Runtime this skillechoVic/blade-code180—~1.7kAutomated safety check: PassMIT
ClawTeam Multi-Agent Swarmwin4r/ClawTeam-OpenClaw1.5k1 repos~2.9kAutomated safety check: PassMIT
Agent Deckasheshgoplani/agent-deck1k—~1.7kAutomated safety check: PassMIT
Clawteamwin4r/ClawTeam-OpenClaw1.5k—~3.1kAutomated safety check: PassMIT
Puppetmaster Agent Orchestrationprofessorpalmer/Puppetmaster467—~3.2kAutomated safety check: PassMIT
Badstephenleo/bmad-autonomous-development107—~7.7kAutomated safety check: PassMIT

Similar skills

  • ClawTeam Multi-Agent Swarm

    win4r/ClawTeam-OpenClaw

    Launches a swarm of specialist Hermes agents in git-worktree-isolated tmux windows with a kanban board and file-based inboxes, using built-in templates like hedge-fund and code-review.

    1.5k GitHub starsUsed in 1 repo~2.9k tokens
    Agent WorkflowsAuto-check passed
  • Agent Deck

    asheshgoplani/agent-deck

    agent-deck, the terminal session manager for AI coding agents.

    1k GitHub stars~1.7k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Clawteam

    win4r/ClawTeam-OpenClaw

    Multi-agent swarm orchestration. An agent skill from win4r/ClawTeam-OpenClaw.

    1.5k GitHub stars~3.1k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed
  • Puppetmaster Agent Orchestration

    professorpalmer/Puppetmaster

    Operates and supervises Puppetmaster, a multi-agent orchestrator, through its MCP tools or CLI, picking the right verb for edits, reviews, audits and long-running jobs.

    467 GitHub stars~3.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Bad

    stephenleo/bmad-autonomous-development

    BMad Autonomous Development — orchestrates parallel story implementation pipelines.

    107 GitHub stars~7.7k tokensUpdated 5 mo ago
    Agent WorkflowsAuto-check passed
  • Weave

    entropyvortex/meta-llm-charter

    Parallel strand orchestration — decompose a task into 3+ independently scoped strands, fan out real subagents (worktree-isolated when they write files), and coordinate through a session file and…

    249 GitHub stars~2.9k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed

More from echoVic/blade-code

All 38 skills in this repo
  • Base64 Parser

    echoVic/blade-code

    Base64 编解码工具,支持编码/解码文本、JSON、二进制文件,自动检测格式,支持批量处理. An agent skill from echoVic/blade-code.

    180 GitHub stars~545 tokensUpdated 10 days ago
    Auto-check: notes
  • Code Review

    echoVic/blade-code

    Review frontend code for best practices, bugs, and improvements.

    180 GitHub stars~377 tokensUpdated 10 days ago
    Auto-check: notes
  • GitHub Explorer

    echoVic/blade-code

    Explore and summarize popular GitHub projects. An agent skill from echoVic/blade-code.

    180 GitHub stars~434 tokensUpdated 10 days ago
    Auto-check passed
  • 覆盖 Session 级 LSP 配置快照、stdio 进程、文档同步、语义查询、诊断回注、崩溃恢复 和子 Session 继承。进入条件:新增语言服务器、修改 LSP 工具、排查诊断缺失/重复、 处理 worktree 或 ACP 差异、修复进程泄漏或 transport 代际问题。不包含:VS Code 扩展桥接(见…

    180 GitHub stars~1.9k tokensUpdated 10 days ago
    Auto-check passed
  • 覆盖 SkillRegistry、SKILL.md 延迟加载、自定义命令 Markdown 解析、来源覆盖、插件 命名空间、Session 快照和模型/用户调用入口。进入条件:新增 Skill 或命令字段、调整 发现优先级、调试 /command 或 Skill 工具、修改 Prompt 元数据或消费者集成。不包含: 插件安装生命周期(见…

    180 GitHub stars~2.1k tokensUpdated 10 days ago
    Auto-check passed
  • Covers 领域能力如何包装成内置工具、getBuiltinTools 的 Session 依赖注入、ToolSearch 延迟激活,以及 Goal/Task/Team/Plan/Skill/LSP/MCP/Web/Config/Worktree 适配边界。

    180 GitHub stars~2.1k tokensUpdated 10 days ago
    Auto-check passed

Categories

Questions about Knowledge Agent Execution And Orchestration Subagent Runtime

What does Knowledge Agent Execution And Orchestration Subagent Runtime do?

覆盖子代理定义发现、前后台 Task 执行、durable resume lineage、结果采纳、验证代理和 managed worktree 生命周期。进入时机:新增 agent Markdown、修改 Task/TaskOutput、 调试后台完成通知、进程重启恢复、resume 或子代理隔离。不包含:团队任务图与成员邮箱 (见…. Knowledge Agent Execution And Orchestration Subagent Runtime is an agent skill from echoVic/blade-code.

When should I use Knowledge Agent Execution And Orchestration Subagent Runtime?

Knowledge Agent Execution And Orchestration Subagent Runtime fits situations like: tasks that involve Subagents; tasks that involve Git worktrees.

How do I install Knowledge Agent Execution And Orchestration Subagent Runtime in Claude Code?

Run `npx skills add echoVic/blade-code --skill knowledge-agent-execution-and-orchestration-subagent-runtime -a claude-code`. Or copy the skill folder (.trae/knowledges/agent-execution-and-orchestration/subagent-runtime in echoVic/blade-code) into .claude/skills/knowledge-agent-execution-and-orchestration-subagent-runtime in your project. Claude Code loads it when a task matches its description.

How do I install Knowledge Agent Execution And Orchestration Subagent Runtime in Codex?

Run `npx skills add echoVic/blade-code --skill knowledge-agent-execution-and-orchestration-subagent-runtime -a codex`. Or copy the skill folder (.trae/knowledges/agent-execution-and-orchestration/subagent-runtime in echoVic/blade-code) into .agents/skills/knowledge-agent-execution-and-orchestration-subagent-runtime in your project. Codex loads it when a task matches its description.

Can I use Knowledge Agent Execution And Orchestration Subagent Runtime in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add echoVic/blade-code --skill knowledge-agent-execution-and-orchestration-subagent-runtime -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/knowledge-agent-execution-and-orchestration-subagent-runtime, .gemini/skills/knowledge-agent-execution-and-orchestration-subagent-runtime, .github/skills/knowledge-agent-execution-and-orchestration-subagent-runtime and .opencode/skills/knowledge-agent-execution-and-orchestration-subagent-runtime in your project.

What does Knowledge Agent Execution And Orchestration Subagent Runtime need to run?

SKILL.md names no scripts, command-line tools or credentials: Knowledge Agent Execution And Orchestration Subagent Runtime is instructions for the agent only.

Does Knowledge Agent Execution And Orchestration Subagent Runtime access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Knowledge Agent Execution And Orchestration Subagent Runtime safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Knowledge Agent Execution And Orchestration Subagent Runtime use?

Knowledge Agent Execution And Orchestration Subagent Runtime is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Knowledge Agent Execution And Orchestration Subagent Runtime use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Knowledge Agent Execution And Orchestration Subagent Runtime?

Skills that share tags, products or a category with Knowledge Agent Execution And Orchestration Subagent Runtime: ClawTeam Multi-Agent Swarm (win4r/ClawTeam-OpenClaw, 1.5k stars), Agent Deck (asheshgoplani/agent-deck, 1k stars), Clawteam (win4r/ClawTeam-OpenClaw, 1.5k stars) and Puppetmaster Agent Orchestration (professorpalmer/Puppetmaster, 467 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Knowledge Agent Execution And Orchestration Subagent Runtime?

echoVic (a GitHub user) maintains it in echoVic/blade-code, which has 180 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on September 27, 2026.

Source: echoVic/blade-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.