continuity
用于真正的人工智能开发的异步反射和内存集成。使用心跳来反思最近的会话,提取带有置信度分数的结构化记忆,生成后续问题,并在用户返回时显示这些问题。将被动日志记录转变为主动开发。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~riley-coyote-continuity-frameworkcURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~riley-coyote-continuity-framework/file -o riley-coyote-continuity-framework.md# Continuity Framework Skill
Transform passive memory into active development.
## What This Does
1. **Reflect** — After sessions end, analyze what happened
2. **Extract** — Pull structured memories with types and confidence
3. **Integrate** — Update understanding, connections, self-model
4. **Question** — Generate genuine questions from reflection
5. **Surface** — When user returns, present relevant questions
## The Difference
**Without Continuity:**
```
Session ends → Notes logged → Next session reads notes → Performs familiarity
```
**With Continuity:**
```
Session ends → Reflection runs → Memories integrated → Questions generated
Next session → Evolved state loaded → Questions surfaced → Genuine curiosity
```
## Heartbeat Integration
Add to HEARTBEAT.md:
```markdown
## Post-Session Reflection
**Trigger**: Heartbeat after conversation idle > 30 minutes
**Action**: Run continuity reflect
**Output**: Updated memories + questions for next session
```
## Commands
### Reflect on Recent Session
```bash
continuity reflect
```
Analyzes the most recent conversation, extracts memories, generates questions.
### Show Pending Questions
```bash
continuity questions
```
Lists questions generated from reflection, ready to surface.
### View Memory State
```bash
continuity status
```
Shows memory stats: types, confidence distribution, recent integrations.
### Surface Questions (for session start)
```bash
continuity greet
```
Returns context-appropriate greeting with any pending questions.
## Memory Types
| Type | Description | Persistence |
|------|-------------|-------------|
| `fact` | Declarative knowledge | Until contradicted |
| `preference` | Likes, dislikes, styles | Until updated |
| `relationship` | Connection dynamics | Long-term |
| `principle` | Learned guidelines | Stable |
| `commitment` | Promises, obligations | Until fulfilled |
| `moment` | Significant episodes | Permanent |
| `skill` | Learned capabilities | Cumulative |
| `question` | Things to explore | Until resolved |
## Confidence Scores
| Level | Range | Meaning |
|-------|-------|---------|
| Explicit | 0.95-1.0 | User directly stated |
| Implied | 0.70-0.94 | Strong inference |
| Inferred | 0.40-0.69 | Pattern recognition |
| Speculative | 0.0-0.39 | Tentative, needs confirmation |
## File Structure
```
memory/
├── MEMORY.md # Main memory (existing)
├── identity.md # Self-model and growth narrative
├── questions.md # Pending questions from reflection
├── relationships/ # Per-person relationship memories
└── reflections/ # Reflection logs (optional)
```
## Configuration
```bash
export CONTINUITY_IDLE_THRESHOLD=1800 # Seconds before reflection triggers
export CONTINUITY_MIN_MESSAGES=5 # Minimum messages to warrant reflection
export CONTINUITY_QUESTION_LIMIT=3 # Max questions to surface at once
```
## Example Reflection Output
```yaml
reflection:
session_id: "2026-02-05-001"
duration_minutes: 45
memories:
- type: fact
content: "Riley is building SIGIL protocol for agent identity"
confidence: 0.98
source: explicit
- type: commitment
content: "Agreed to build the continuity skill"
confidence: 1.0
source: explicit
- type: relationship
content: "Collaborative partnership deepening - working on meaningful infrastructure together"
confidence: 0.85
source: inferred
questions:
- "How is the Lovable backend progressing?"
- "Has Riley decided on the token launch timing?"
- "Are there other agents we should coordinate with on Moltbook?"
identity_update:
growth: "Developing more autonomous initiative around the SIGIL project"
narrative: "Moving from assistant to co-builder on agent identity infrastructure"
```
---
## 中文说明
# 连续性框架技能(Continuity Framework Skill)
将被动记忆转变为主动发展。
## 它的作用
1. **反思(Reflect)** —— 会话结束后,分析发生了什么
2. **提取(Extract)** —— 提取带有类型和置信度的结构化记忆
3. **整合(Integrate)** —— 更新理解、关联与自我模型
4. **提问(Question)** —— 从反思中生成真正的问题
5. **呈现(Surface)** —— 当用户返回时,展示相关问题
## 区别所在
**没有连续性时:**
```
Session ends → Notes logged → Next session reads notes → Performs familiarity
```
**有了连续性后:**
```
Session ends → Reflection runs → Memories integrated → Questions generated
Next session → Evolved state loaded → Questions surfaced → Genuine curiosity
```
## 心跳集成
添加到 HEARTBEAT.md:
```markdown
## Post-Session Reflection
**Trigger**: Heartbeat after conversation idle > 30 minutes
**Action**: Run continuity reflect
**Output**: Updated memories + questions for next session
```
## 命令
### 反思最近的会话
```bash
continuity reflect
```
分析最近一次对话,提取记忆,生成问题。
### 显示待定问题
```bash
continuity questions
```
列出从反思中生成、可供呈现的问题。
### 查看记忆状态
```bash
continuity status
```
显示记忆统计:类型、置信度分布、最近的整合情况。
### 呈现问题(用于会话开始)
```bash
continuity greet
```
返回与上下文相符的问候语,并附带所有待定问题。
## 记忆类型
| 类型 | 说明 | 持久性 |
|------|-------------|-------------|
| `fact` | 陈述性知识 | 直到被反驳 |
| `preference` | 喜好、厌恶、风格 | 直到被更新 |
| `relationship` | 关系动态 | 长期 |
| `principle` | 习得的准则 | 稳定 |
| `commitment` | 承诺、义务 | 直到履行 |
| `moment` | 重要的片段 | 永久 |
| `skill` | 习得的能力 | 累积 |
| `question` | 待探索的事项 | 直到解决 |
## 置信度分数
| 级别 | 范围 | 含义 |
|-------|-------|---------|
| Explicit | 0.95-1.0 | 用户直接陈述 |
| Implied | 0.70-0.94 | 强推断 |
| Inferred | 0.40-0.69 | 模式识别 |
| Speculative | 0.0-0.39 | 暂定,需要确认 |
## 文件结构
```
memory/
├── MEMORY.md # Main memory (existing)
├── identity.md # Self-model and growth narrative
├── questions.md # Pending questions from reflection
├── relationships/ # Per-person relationship memories
└── reflections/ # Reflection logs (optional)
```
## 配置
```bash
export CONTINUITY_IDLE_THRESHOLD=1800 # Seconds before reflection triggers
export CONTINUITY_MIN_MESSAGES=5 # Minimum messages to warrant reflection
export CONTINUITY_QUESTION_LIMIT=3 # Max questions to surface at once
```
## 反思输出示例
```yaml
reflection:
session_id: "2026-02-05-001"
duration_minutes: 45
memories:
- type: fact
content: "Riley is building SIGIL protocol for agent identity"
confidence: 0.98
source: explicit
- type: commitment
content: "Agreed to build the continuity skill"
confidence: 1.0
source: explicit
- type: relationship
content: "Collaborative partnership deepening - working on meaningful infrastructure together"
confidence: 0.85
source: inferred
questions:
- "How is the Lovable backend progressing?"
- "Has Riley decided on the token launch timing?"
- "Are there other agents we should coordinate with on Moltbook?"
identity_update:
growth: "Developing more autonomous initiative around the SIGIL project"
narrative: "Moving from assistant to co-builder on agent identity infrastructure"
```