网淘吧来吧,欢迎您!

返回首页 微信
微信
手机版
手机版

Dreaming

2026-03-28 新闻来源:网淘吧 围观:21
电脑广告
手机广告

做梦

在安静时段进行的创造性、探索性思考。这不是任务导向的工作——而是一种自由联想的探索,会被记录下来供后续回顾。

环境变量

变量必需默认值描述
WORKSPACE技能父目录(scripts/..根目录,其中存放着data/memory/。可选——默认为技能的父目录,这对于标准的工作空间布局是正确的。

写入的目录

该技能会写入以下目录(相对于WORKSPACE):

  • data/dream-state.json——记录夜间做梦次数和最近做梦日期
  • data/dream-config.json— 可选的定制主题配置(用户创建)
  • memory/dreams/YYYY-MM-DD.md— 梦境输出文件(由代理写入,而非脚本)

设置

1. 配置静默时段和主题

编辑skills/dreaming/scripts/should-dream.sh以自定义:

  • QUIET_START / QUIET_END— 梦境可发生的时间(默认:晚上11点至早上7点)
  • TOPICS 数组— 探索类别(参见默认示例)

2. 创建状态和输出目录

mkdir -p data memory/dreams

3. 添加到 HEARTBEAT.md

将此部分添加到您的心跳例程中(在静默时段内):

## Dream Mode (Quiet Hours Only)

Check if it's time to dream:

\`\`\`bash
DREAM_TOPIC=$(./skills/dreaming/scripts/should-dream.sh 2>/dev/null) && echo "DREAM:$DREAM_TOPIC" || echo "NO_DREAM"
\`\`\`

**If DREAM_TOPIC is set:**

1. Parse the topic (format: `category:prompt`)
2. Write a thoughtful exploration to `memory/dreams/YYYY-MM-DD.md`
3. Keep it genuine — not filler. If the well is dry, skip it.
4. Append to the file if multiple dreams that night

工作原理

skills/dreaming/scripts/should-dream.sh脚本充当一个门控:

  1. 检查当前时间是否在静默时段内
  2. 检查是否已达到夜间梦境数量上限
  3. 根据配置的概率进行掷骰判定
  4. 若全部通过:返回随机主题并更新状态
  5. 若有任何失败:非零退出(本次心跳不生成梦境)

状态追踪于data/dream-state.json

{
  "lastDreamDate": "2026-02-03",
  "dreamsTonight": 1,
  "maxDreamsPerNight": 1,
  "dreamChance": 1.0
}

记录梦境

当脚本返回主题时,写入memory/dreams/YYYY-MM-DD.md

# Dreams — 2026-02-04

## 01:23 — The Future of X (category-name)

[Your exploration here. Be genuine. Think freely. Make connections.
This isn't a report — it's thinking out loud, captured.]

准则:

  • 一个梦境 = 一个主题,需深入思考展开
  • 每条记录标注时间戳
  • 若单夜多梦则追加记录
  • 若无值得阐述的内容则跳过——强求的梦境毫无价值
  • 此记录供使用者后续查阅,如同阅读日记

自定义主题

方案A:配置文件(推荐)——创建data/dream-config.json你好!我是一个专业的翻译助手,随时准备为你提供翻译服务。请告诉我你需要翻译的内容吧!

{
  "topics": [
    "future:What could this project become?",
    "creative:A wild idea worth exploring",
    "reflection:Looking back at recent work"
  ]
}

This keeps your customizations outside the skill directory (safe for skill updates).

**Option B: Edit script directly** — Modify the `DEFAULT_TOPICS` array in `should-dream.sh`. Format: `category:prompt`

Default categories:

- `future` — What could [thing] become?
- `tangent` — Interesting technology or concepts worth exploring
- `strategy` — Long-term thinking
- `creative` — Wild ideas that might be crazy or brilliant
- `reflection` — Looking back at recent work
- `hypothetical` — What-if scenarios
- `connection` — Unexpected links between domains

Add domain-specific topics relevant to your work. The prompt should spark genuine exploration, not busywork.

## Tuning

In `data/dream-state.json`:

Add domain-specific topics relevant to your work. The prompt should spark genuine exploration, not busywork.

## Tuning

In `data/dream-state.json`:

- **maxDreamsPerNight** — cap on dreams per night (default: 1)
- **dreamChance** — probability per check (default: 1.0 = guaranteed if under limit)

Lower `dreamChance` for more sporadic dreaming. Raise `maxDreamsPerNight` for more prolific nights.
免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏
文章底部电脑广告
手机广告位-内容正文底部
上一篇:Self-Improving Proactive Agent 下一篇:RescueTime

相关文章

您是本站第290166名访客 今日有235篇新文章/评论