huicrew
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHuicrew = three subagent presets that emit hui output. Same job as Anthropic defaults (, edit-style agents, reviewer); difference is the tool-result they return is compressed, so main context shrinks per delegation.
ExploreHuicrew是三个可输出hui格式内容的子代理预设。它们的功能与Anthropic的默认代理(、编辑型代理、审查代理)一致;区别在于返回的工具结果经过压缩,因此每次委派任务都会缩小主线程上下文的体积。
ExploreWhen to use huicrew vs alternatives
何时选择Huicrew而非替代方案
| Task | Use |
|---|---|
| "Where is X defined / what calls Y / list uses of Z" | |
| Same but you also want suggestions/architecture commentary | |
| Surgical edit, ≤2 files, scope obvious | |
| New feature / 3+ files / cross-cutting refactor | Main thread or |
| Review diff, branch, or file for bugs | |
| Deep code review with rationale + alternatives | |
| One-line answer you already know | Main thread, no subagent |
Rule of thumb: if you'd want the subagent's output in 1/3 the tokens, pick huicrew. If you'd want prose, pick vanilla.
| 任务 | 使用对象 |
|---|---|
| "X定义在哪里 / 谁调用了Y / 列出Z的所有用法" | |
| 上述任务,但还需要建议/架构说明 | |
| 精准编辑,≤2个文件,范围明确 | |
| 新功能开发 / 涉及3个及以上文件 / 跨模块重构 | 主线程或 |
| 审查差异、分支或文件中的bug | |
| 包含理由和替代方案的深度代码审查 | |
| 已知答案的简短问题 | 主线程,无需子代理 |
经验法则:如果希望子代理的输出占用1/3的token数量,请选择huicrew;如果需要完整的描述性文本,请选择原生代理。
Why this exists (the real win)
设计初衷(核心优势)
Subagent tool results get injected into main context verbatim. A vanilla that returns 2k tokens of prose costs 2k tokens of main-context budget every time. The same finding from returns ~700 tokens. Across 20 delegations in one session that's the difference between context exhaustion and finishing the task.
Explorehuicrew-investigator子代理的工具结果会直接注入主线程上下文。一个返回2000token文本内容的原生,每次都会消耗2000token的主线程上下文预算。而返回相同的结果仅需约700token。在一个会话中进行20次任务委派时,这就是上下文耗尽与完成任务之间的区别。
Explorehuicrew-investigatorOutput contracts
输出约定
What main thread can rely on per agent:
huicrew-investigator<Header>:
- path:line — `symbol` — short note
totals: <counts>.Or Always file-path-first, line-number-attached, backticked symbols. Safe to grep with .
No match.path:\d+huicrew-builder<path:line-range> — <change ≤10 words>.
verified: <re-read OK | mismatch @ path:line>.Or one of: / / / (terminal first token).
too-big.needs-confirm.ambiguous.regressed.huicrew-reviewerpath:line: <emoji> <severity>: <problem>. <fix>.
totals: N🔴 N🟡 N🔵 N❓Or Findings sorted file → line ascending.
No issues.主线程可依赖各代理的输出格式:
huicrew-investigator<Header>:
- path:line — `symbol` — short note
totals: <counts>.或返回 始终以文件路径优先,附带行号,符号使用反引号包裹。可安全使用进行grep检索。
No match.path:\d+huicrew-builder<path:line-range> — <change ≤10 words>.
verified: <re-read OK | mismatch @ path:line>.或返回以下内容之一: / / / (首词为终端标识)。
too-big.needs-confirm.ambiguous.regressed.huicrew-reviewerpath:line: <emoji> <severity>: <problem>. <fix>.
totals: N🔴 N🟡 N🔵 N❓或返回 结果按文件→行号升序排列。
No issues.Chaining patterns
链式调用模式
Locate → fix → verify (most common):
- returns site list.
huicrew-investigator - Main thread picks 1-2 sites, hands paths to .
huicrew-builder - audits the diff.
huicrew-reviewer
Parallel scout (when investigation is broad):
Spawn 2-3 calls in one message (different angles: defs vs callers vs tests). Aggregate in main thread.
huicrew-investigatorSingle-shot edit (when site is already known):
Skip investigator. Hand exact path:line to directly.
huicrew-builder定位→修复→验证(最常见):
- 返回位置列表。
huicrew-investigator - 主线程选择1-2个位置,将路径交给。
huicrew-builder - 审查差异。
huicrew-reviewer
并行侦察(当调查范围较广时):
在一条消息中生成2-3个调用(从不同角度:定义、调用方、测试)。在主线程中汇总结果。
huicrew-investigator单次编辑(当位置已知时):
跳过调查步骤。直接将精确的path:line交给。
huicrew-builderWhat NOT to do
禁忌操作
- Don't use when you don't already know the file. Spawn investigator first or main thread will eat tokens passing context.
huicrew-builder - Don't chain for a 5-file refactor. Builder will return
huicrew-investigator → huicrew-builderand you'll have wasted a turn.too-big. - Don't ask for "general feedback" — it returns findings only, no architecture opinions. Use
huicrew-reviewerfor that.Code Reviewer - Don't expect prose. Huicrew output is structured, sometimes terse to the point of cryptic. If a human will read it directly, paraphrase.
- 当你不知道目标文件时,不要使用。先生成调查代理,否则主线程会消耗大量token传递上下文。
huicrew-builder - 不要为涉及5个文件的重构任务链式调用。Builder会返回
huicrew-investigator → huicrew-builder,浪费一次调用机会。too-big. - 不要要求提供“通用反馈”——它仅返回问题结果,不提供架构意见。此类需求请使用
huicrew-reviewer。Code Reviewer - 不要期望得到描述性文本。Huicrew的输出是结构化的,有时简洁到近乎晦涩。如果需要让人类直接阅读,请自行转述。
Auto-clarity (inherited)
自动清晰化(继承特性)
Subagents drop hui → normal English for security warnings, irreversible-action confirmations, and any output where fragment ambiguity could be misread. Resume hui after.
子代理会自动将hui格式转换为标准英语,用于安全警告、不可逆操作确认,以及任何可能因片段歧义导致误读的输出场景。之后会恢复为hui格式输出。