回忆

人工智能 社区 v1.0.0

技能解读

当前原文的自动摘译,尚未人工审校。

触发检测

表示需要回忆的短语(不区分大小写):“从早些时候”、“今天早些时候”、“本周早些时候”、“记得何时”、“记得那个”、“你提到过”、“我们讨论过什么”、“我们谈论过什么”、“关于的对话”、“与那件事有关”、“关于的事情”、“那是什么”

扇出搜索模式

尽可能并行搜索这些源,每个源都有超时:

3. 策划记忆

从模糊的参考中搜索关键词。

4. 会议记录

使用session_context工具搜索最近的会话:

工作流程

从模糊的参考中提取关键词。 “之前的那些照片”→ 关键词:照片、图像、媒体、电报。跨上述来源 1-8 扇出。对任何可能挂起的命令使用 timeout 5。综合——将发现的结果合并成一个连贯的总结。当前上下文 - 向乔尔展示你发现的内容,然后继续原来的任务。如果什么也没发现——请诚实地说出来。不要捏造。请乔尔澄清。

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
人工智能
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
98 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@joelhooks · v1.0.0 · 未声明许可证
上下文用量评级
低消耗
接入复杂程度
即装即用
是否需要外部接口密钥
不需要
兼容的系统
未声明(默认跨平台)
运行环境要求
未检出明确要求
检测到的文件与系统行为
  • 只读
网络行为
仅限本地
安装命令数
无(仅作为资料)
作者说明文件(原文) SKILL.md

# Recall — Find What Was Said

When Joel references something vaguely, don't guess — fan out across all memory sources and find it.

## Trigger Detection

Phrases that indicate a recall is needed (case-insensitive):
- "from earlier", "earlier today", "earlier this week"
- "remember when", "remember that", "you mentioned"
- "what we discussed", "what we talked about", "the conversation about"
- "that thing with", "the thing about", "what was that"
- "did we ever", "have we", "wasn't there"
- "last session", "the other day", "yesterday"
- "correlate with", "connect to what we"
- Any vague pronoun reference to past context ("those photos", "that idea", "the notes")

**Key principle**: If you'd have to guess what "earlier" or "that" refers to, you need recall.

## Fan-Out Search Pattern

Search these sources **in parallel** where possible, with timeouts on each:

### 1. Today's Daily Log (fastest, most likely)
```bash
# Always check first — most "from earlier" references are same-day
cat ~/.joelclaw/workspace/memory/$(date +%Y-%m-%d).md
```

### 2. Recent Daily Logs (if today's doesn't have it)
```bash
# Yesterday and day before
cat ~/.joelclaw/workspace/memory/$(date -v-1d +%Y-%m-%d).md
cat ~/.joelclaw/workspace/memory/$(date -v-2d +%Y-%m-%d).md
```

### 3. Curated Memory
```bash
cat ~/.joelclaw/workspace/MEMORY.md
```
Search for keywords from the vague reference.

### 4. Session Transcripts
Use the `session_context` tool to search recent sessions:
```
sessions(limit: 10)  # find recent session IDs
session_context(session_id: "...", query: "what was discussed about <topic>")
```

### 5. Vault Notes
```bash
# Keyword search across Vault
grep -ri "<keywords>" ~/Vault/ --include="*.md" -l | head -10
```

### 6. System Log
```bash
slog tail --count 20  # recent infrastructure changes
```

### 7. Processed Media
```bash
# Check for images/audio that were processed
ls /tmp/joelclaw-media/ 2>/dev/null
```

### 8. Redis State
```bash
# Memory proposals, loop state, etc.
redis-cli LRANGE memory:review:pending 0 -1 2>/dev/null
```

## Workflow

1. **Extract keywords** from the vague reference. "Those photos from earlier" → keywords: photos, images, media, telegram.
2. **Fan out** across sources 1-8 above. Use `timeout 5` on any command that might hang.
3. **Synthesize** — combine findings into a coherent summary of what was found.
4. **Present context** — show Joel what you found, then continue with the original task.
5. **If nothing found** — say so honestly. Don't fabricate. Ask Joel to clarify.

## Timeouts Are Mandatory

Every external call (Redis, grep over large dirs, session reads) MUST have a timeout. The gateway session cannot hang on a recall operation.

```bash
# Good
timeout 5 grep -ri "keyword" ~/Vault/ --include="*.md" -l | head -10

# Bad — can hang indefinitely
grep -ri "keyword" ~/Vault/ --include="*.md"
```

## Anti-Patterns

- **Don't grep one file and call it done.** The whole point is fan-out.
- **Don't guess when recall fails.** Say "I couldn't find it" and ask.
- **Don't read entire session transcripts.** Use `session_context` with a focused query.
- **Don't skip media.** Photos, audio, processed images in `/tmp/joelclaw-media/` are often what "from earlier" refers to.

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。