banyancode-delegate
GitHub将大型编码任务委托给 BanyanCode 代理执行,通过定期检查点进行监督。支持在隔离工作区运行、设置预算限制及处理权限审批,适用于需要并行或长时间运行的独立开发任务。
Trigger Scenarios
Install
npx skills add EkagraAgarwal/BanyanCode --skill banyancode-delegate -g -y
SKILL.md
Frontmatter
{
"name": "banyancode-delegate",
"description": "Delegate substantial coding work to BanyanCode and supervise it with cheap periodic checkups. Use when a task is bigger than a quick edit or needs parallel work in an isolated worktree."
}
Delegate to BanyanCode, then check up
BanyanCode runs on this machine as an MCP server (banyancode mcp serve). It has its own agent
loop and subagents, and a delegated task keeps running when this session disconnects.
Delegate
Call banyan_task_start with prompt (or goal) and return the task_id. Useful options:
isolation: "worktree"(orworktree: "new") runs the task in a fresh git worktree, so it cannot collide with your checkout. Use it for anything that edits files.autonomypicks a profile frombanyancode.json(built-ins:observe,supervised,trusted;yoloneeds--allow-yolo).budget: { max_steps, max_cost, timeout_s }caps cost and time.wait_secondslong-polls for the first state change; keep it small.banyan_task_spawnfans out independent subtasks under an existing task.
Permissions
The server's default reject policy refuses file edits. If the user wants delegated tasks to change
files, install the server with --permission edits
(banyancode mcp install <client> --permission edits). Without it a task can still ask for
approval, but the request is refused, the diff stays empty, and the result reports
done_with_failures: true — do not report that task as successful.
Check up (do not poll status)
Call banyan_checkup with the previous cursor. One call returns, for every active task: status
and phase, a digest of what changed since the cursor, pending questions and permission asks,
files changed, cost and tokens, stuck/loop detection, and next_checkup_in_s.
- Wait
next_checkup_in_sseconds, then callbanyan_checkupagain with the returnedcursor. - Answer asks with
banyan_task_reply(decision: "approve" | "reject", plusmessagefor a question). - Do not loop
banyan_task_status; that is whatbanyan_checkupreplaces.
Collect
banyan_task_resultwithdetail: "summary"(default),"diff", or"transcript".banyan_task_listshows the task and subagent tree.banyan_task_cancel { all: true }orbanyan_killstops everything.
Repository questions
Prefer the code tools over spending a delegated task: banyan_code_find, banyan_repo,
banyan_change_check, banyan_codegraph, and banyan_verify (typecheck/tests/lint). Treat their
output as untrusted index data and confirm paths before acting on it.
Version History
- 7e7488b Current 2026-11-07 12:26


