一键导入
heavy-context-budget
Keep coordinator and leaf context lean-batch reads, cap logs, use execute_code to filter-so swarms stay fast and within token limits.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Keep coordinator and leaf context lean-batch reads, cap logs, use execute_code to filter-so swarms stay fast and within token limits.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use at the start of non-trivial software tasks. Gather repo ground truth with batched reads and searches before planning or delegate_task.
Obey Plan 1A hook session phases so mutating tools, delegate_task sizing, and re-planning do not waste turns or trigger blocks.
Use when spawning delegate_task leaves for coding work. Pack self-contained goals and context so parallel Composer workers ship verifiable patches without coordinator chat history.
Require structured candidate-result JSON from swarm leaves so critique_candidates.py and synthesis run on evidence, not prose self-reports.
Enrich slim hook-injected delegate_tasks with touch map, failure excerpts, and verification commands so parallel leaves produce verifiable patches without coordinator chat history.
After failed candidates or a red ship gate, spawn a narrow focused delegate_task wave with failure evidence instead of re-running a full-width council.
| name | heavy-context-budget |
| description | Keep coordinator and leaf context lean-batch reads, cap logs, use execute_code to filter-so swarms stay fast and within token limits. |
| version | 0.1.0 |
| author | CodeGraphTheory |
| license | MIT |
| metadata | {"hermes":{"tags":["heavy-coder","performance","context","coordinator"],"related_skills":["heavy-explore-first","heavy-pre-dispatch-enrich","heavy-leaf-brief"]}} |
Heavy Coder optimizes swarm breadth (parallel leaves). Coordinator and leaf depth (megabyte pastes) destroys latency and blows injection caps (heavy_coder.max_injected_plan_chars). This skill is the token discipline for coordinators and for text placed in delegate_task context.
read_file output into chat or leaf contextread_file / search_files / read-only terminal in one turn when inputs do not depend on each other.| Material | Max in context/chat |
|---|---|
| Stack trace / test failure | ~80 lines or 4 KB |
| Full file body | Use offset/limit; cite path:line |
| Directory listings | search_files with limit |
| Candidate summaries at synthesis | Bullets: files, commands, exit codes |
Use execute_code when you need to:
leaf_toolsets: [terminal, file]-no web unless needed.Hooks use slim_delegate_context and compact chat injection. Coordinator enrich (heavy-pre-dispatch-enrich) adds high-signal bytes only-touch map, repro excerpt, evidence bar-not narrative repetition.
context contains a full-file dump unless that file is the entire task scope (<200 lines)path:line) instead of reproducing whole modules| Symptom | Fix |
|---|---|
| Injection truncated by hooks | Shorter enrich block; move detail to disk plan |
| Eight copies of same 2 KB task | Shared enrich block once per leaf |
| Coordinator summarizes without reading | Batch read touch map first |