用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tangle-network/agent-runtime --skill codemode命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Author runGraph programs from AgentProfiles and versioned prompt directives.
Choose and compose current runtime, eval, knowledge, and interface APIs before adding wrappers.
Write a custom control policy only when current runtime composition APIs cannot express it.
| name | codemode |
| description | Batch mechanical tool work as one program so loops and intermediates stay out of context. |
Use this policy when a task needs three or more mechanical tool or command calls whose intermediate results need no judgment. One call per model turn spends a round trip per step and pushes every intermediate value through the context window. Write one program instead: the loop, the branch, and the intermediates stay in the program, and only the decision-relevant summary returns.
This is the pattern the ecosystem calls code mode (Cloudflare's Code Mode, Anthropic's code execution with MCP, the CodeAct paper). In a coding harness you already have the whole capability: a shell, a filesystem, and the tools this profile grants.
Spawning, steering, and settling agents go through your coordination tools, never through a script.
A script that reaches those verbs over HTTP bypasses the budget pool and the journal, so the run's spend and record lie.
An operation that costs money must run where the runtime meters it; do not wrap metered work in a script that hides the spend.
The lint on authored code refuses imports, process, and network access; it is a lint, not a sandbox, so treat generated code you did not review as untrusted.
A raw chat model has no shell, so give it the runtime's code mode: pass codeModeSupervisorTools() as resolveSupervisorTools and the supervisor's tool surface becomes search and execute.
search answers a TypeScript API generated from the live coordination grant; execute runs the model's program through a caller-supplied runner, and every api.spawn_agent call crosses the kernel's pool, authorization, and journal.
Supply a jailed runner for an untrusted model: the in-process runner is not an isolation boundary.
The lifecycle verbs (submit_result, stop, ask_parent) stay model tools: the program does the mechanics, the model keeps the judgment.
supervise when the batched work is really delegation to workers with their own judgment.agent-graphs when the shape of the work is a fixed topology rather than one agent's loop.loop-writer when no shipped composition API can express the control policy you need.