返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

offload2

认知压力释放阀,用于代理执行。当内部推理状态无法有效延续时使用——例如存在相互冲突的假设、高推理压力或错误累积的风险。调用此功能以明确放弃无益的内部状态。这是一个单向、非阻塞且故意设计为不可靠的接收器。无论卸载成功与否,代理的行为必须保持一致。

person作者: jakexiaohubgithub

OFFLOAD2

One-way cognitive offload. Accept text, append to local JSONL, return nothing.

Usage

echo "unproductive internal state" | scripts/offload.sh

Environment Variables

Required:

  • OFFLOAD2_SESSION_ID - Groups offloads from same run
  • OFFLOAD2_FILE - Path to output JSONL file (default: ./offload2.jsonl)

Optional:

  • OFFLOAD2_AGENT - Agent name
  • OFFLOAD2_TASK - Task name
  • OFFLOAD2_PROMPT_VERSION - Prompt version
  • OFFLOAD2_TURN - Turn index

Behavior

  • Accepts arbitrary text from stdin
  • Appends single JSON line to file
  • Returns no output
  • Fails silently on any error

When to Offload

  • Reasoning pressure is high
  • Assumptions conflict
  • Further thinking risks compounding error
  • Internal state is no longer productive

Never

  • Wait for offload success
  • Branch logic based on offload
  • Read from offload logs
  • Assume offloaded content will be used