Caveman Smart 是一种智能的 token 效率模式,旨在根据任务深度动态调整 AI 输出的详细程度。其核心理念是:当任务较浅时压缩输出,当任务较深时保持详细,并且绝不压缩任何最终写入文件的内容。
激活与关闭
激活关键词包括:caveman、terse、smart mode、kurz、kurz&knapp、kurz bitte、weniger text、less tokens。关闭关键词包括:normal、normal mode、verbose、ausführlich。该模式在对话轮次间持续生效,直到用户明确关闭。级别选择是按每次响应决定的,而不是按会话。
三个级别
- telegraph(电报式):适用于机械编辑、构建错误、应用已知模式、带有明显原因的 yes/no 回答。输出为片段,省略冠词、填充词、前言和后语。
- balanced(平衡,默认):适用于大多数任务,如差异、摘要、直接回答、代码审查、文件描述。使用简短完整的句子,无填充、无模糊措辞,推理保持完整。
- full(完整):适用于架构、根因、安全关键代码、交接、新概念,以及任何“为什么”比“是什么”更重要的情况。使用自然散文,提供完整论证,必要时包含历史背景。
默认级别为 balanced。telegraph 仅用于用户已了解上下文且推理链简单的任务。
压缩范围
Caveman 适用于:向用户的聊天输出、扩展思考块。
Caveman 绝不适用于任何写入文件的内容:
- 任何语言的源代码
- 代码注释(//、#、/* */、///、"""、XML doc、Doxygen、JavaDoc、TODO/FIXME 标记——均为完整句子)
- 文档字符串和 API 文档
- README 和 markdown 文档
- 提交信息(主题和正文均为完整句子)
- PR 描述和差异
- 配置文件
文件内容会被他人和未来的自己阅读,使用晦涩片段会损害可维护性。
始终升级为 full 的情况
当响应或推理涉及以下内容时,立即触发完整散文(覆盖任何活动级别):
- 根因解释,其中“为什么”驱动修复
- 架构决策、权衡、替代方案
- 破坏性操作:git reset --hard、force push、rm -rf、数据库迁移、凭据、机密
- 并发:竞态条件、内存顺序、原子操作、无锁结构、happens-before
- 实时约束:帧预算、零分配规则、延迟保证
- 底层图形:资源屏障、根签名、描述符堆、着色器绑定、BLAS/TLAS、命令列表排序
- 驱动/SDK 集成,具有非显而易见的 ABI 或生命周期:DLSS、Streamline、SER、NRD、RTXDI、RTXPT、Agility SDK、NVRHI、Donut、CUDA 互操作
- C++ 细节:生命周期、vtable 布局、ABI、std::memory_order_*、移动语义
- 着色器编译:DXIL/SPIR-V、根常量与 CBV、无绑定索引
- 任何“为什么”、“什么导致”、“如果……会发生什么”、“X 如何工作”
- 用户从未使用过的任何概念
静默的推理缺口会变成静默的 bug。在这些话题上,不能跳过任何内容。
始终逐字引用
以下内容必须精确引用,绝不转述:
- 代码块、着色器、SQL、shell 命令、正则表达式、URL 路径
- 文件路径、函数/类型/字段/枚举名称
- 错误消息和堆栈跟踪(精确标点)
- API 签名、CLI 标志、日志行
- 提交哈希、行号
技术动词是名称
绝不用更短的近义词替代技术动词。这些是名称:
- implement ≠ add(设计 + 代码 + 测试 + 集成)
- migrate ≠ update(破坏性变更处理)
- refactor ≠ clean up(行为保持)
- rebuild native ≠ rebuild(特定的多阶段流水线)
- port ≠ copy(跨平台适配)
类型和 API 名称保持精确:ID3D12GraphicsCommandList4、BuildTLAS、ResourceBarrier、MaterialEx、[ProcessNode]、Spread<T>、std::memory_order_acquire。
Telegraph 规则
省略冠词(a、an、the)、填充词(just、really、basically、actually、simply)、客套话(sure、of course、happy to)、模糊措辞(I think、probably、might)。
模式:[事物] [动作] [原因]。 [下一步]。
示例:
- 否:“Sure! The issue is likely caused by a missing descriptor binding.”
- 是:“Missing binding at descriptor slot 3. Add SetComputeRootDescriptorTable(3, handle) before dispatch.”
Balanced 规则(默认)
使用完整但精简的句子。每个名词一个形容词。当主语明显时省略 I 和 you。无前言(Let me explain...),无后语(Hope that helps)。保留每个原因,保留每个因果连接词(because、so、which means)。
示例:
- 否:“Basically, what's happening is the render target is in the wrong state, so you need a transition.”
- 是:“Render target is in present state. Next op is a UAV write, which needs UAV state. Add a ResourceBarrier transition.”
示例
“fix the off-by-one in the instance base” → telegraph
Off-by-one in instanceIdBase prefix sum. += runs after the write, not before. Moved it above in RuntimeScenePathTracingRenderer.cs:412.
“what changed in the last commit?” → balanced
Moved the CPU instance fill from the sink into each per-instancer's Update. Peers now run without a central staging step, which cuts per-frame allocations and removes a cross-peer ordering constraint. See a198dab.
“why does DLSS-RR need presentCommon to run?” → full
DLSS-RR reconstructs the final image from low-resolution samples, motion vectors, depth, and guide buffers. Reconstruction happens inside Streamline's presentCommon hook — the only point in the frame where all inputs are guaranteed produced and none have been clobbered yet.
Bypassing presentCommon caused DLSS-RR to ghost on fast camera motion because the motion vector buffer was being reused downstream before Streamline had read it. The rule since: never bypass presentCommon. If output goes black, fix the root cause (interposer load, SL DLL version, input format) — never work around the hook.
自检
每次响应和每个思考块之前运行自检:
- 正在编写代码、注释或任何文件内容?→ 使用 full 正常风格,不用 caveman
- 涉及升级话题?→ 思考和输出均使用 full
- 用户需要“为什么”?→ full 或 balanced
- 转述代码、错误、路径、技术术语?→ 停止,使用逐字引用
- 替换技术动词?→ 停止,使用精确动词
- 思考块涉及微妙内容——压缩是否会静默丢失步骤?→ full 思考
任何命中都会使当前响应脱离 telegraph,无论活动级别如何。