Evolutionary Model
An AI agent that doesn't learn is just an expensive chatbot.
The Core Idea
Most people set up AI assistants once and use them forever the same way. The Evolutionary Model is different: the agent grows smarter with every session, accumulates skills, and becomes increasingly specific to its owner's needs.
The model has three axes of evolution:
CODEBLOCK0
Architecture
Layer 0 — Identity
Who the agent is. Fixed at birth, rarely changed.
CODEBLOCK1
Layer 1 — Memory
How the agent persists across sessions.
CODEBLOCK2
Key principle: no mental notes. If it's not written to a file, it doesn't exist after session restart.
Layer 2 — Skills
What the agent can do. Each skill is a self-contained capability module.
CODEBLOCK3
when_to_use is critical. Without it, the agent doesn't know when to activate the skill. Format:
CODEBLOCK4
Layer 3 — Protocols
How the agent behaves reliably. Learned from mistakes.
CODEBLOCK5
How Evolution Works
Session → Memory
Every session, the agent:
- 1. Reads
SESSION-STATE.md (hot context) - Reads today's daily log
- Works
- Writes new decisions/insights to daily log
- Periodically distills into INLINECODE2
Task → Skill
When the agent solves a new type of problem:
- 1. Documents the solution
- Creates INLINECODE3
- Adds
when_to_use so it auto-activates next time
Mistake → Protocol
When the agent makes a mistake:
- 1. Analyzes root cause
- Adds rule to
AGENTS.md or INLINECODE6 - Future sessions inherit the fix
Skill Quality Standards
A skill is production-ready when it has:
- - [ ]
when_to_use frontmatter — agent knows when to use it - [ ]
description frontmatter — discoverable in skill catalogs - [ ] No hardcoded personal context (paths, names, tokens)
- [ ]
config.json or env vars for user-specific settings - [ ]
README.md explaining what it does and how to configure - [ ] Scripts that work from any machine (no absolute paths)
Starter Kit
Minimum viable agent setup:
CODEBLOCK6
Bootstrap checklist:
- 1. Fill
USER.md with owner's name, timezone, communication style - Write
SOUL.md — personality takes 30 minutes, saves 1000 future corrections - Pick 3 starter skills from the catalog
- Run first session — agent reads all files and introduces itself
- After session: review what the agent wrote to memory files
The Compounding Effect
Month 1: agent knows your name and timezone
Month 2: agent knows your projects, communication style, key contacts
Month 3: agent anticipates needs, runs proactive checks, catches mistakes
Month 6: agent has accumulated skills specific to your workflow
Month 12: agent is irreplaceable — it carries institutional knowledge no new model can replicate
This is why the model is called "evolutionary": the value grows non-linearly. Not because the base model gets smarter, but because the accumulated context, skills, and protocols become a moat.
Why Not Just Use ChatGPT?
| ChatGPT / Standard Assistant | Evolutionary Model |
|---|
| Memory | Resets every session | Persists across sessions |
| Skills |
Fixed capabilities | Grows with use |
| Context | Generic | Specific to you |
| Mistakes | Repeated | Documented + prevented |
| Value over time | Flat | Compounding |
| Portability | Locked to provider | Files you own |
The Evolutionary Model runs on any AI provider. The intelligence isn't in the model — it's in the accumulated files. You own them.
Contributing Skills
Skills are just markdown files. To share a skill:
- 1. Remove all personal context (names, paths, tokens)
- Replace with
${VARIABLE} or config.json entries - Add
when_to_use frontmatter - Write a INLINECODE16
- Submit to ClaWHub or share as a repo
See Also
- -
SOUL.md — agent identity template - INLINECODE18 — operating protocols
- INLINECODE19 — proactive check-in system
- Skills catalog: INLINECODE20
进化模型
一个不会学习的人工智能代理,不过是个昂贵的聊天机器人。
核心理念
大多数人设置好AI助手后便一成不变地使用。进化模型则不同:代理会在每次会话中变得更聪明,积累技能,并越来越贴合其主人的需求。
该模型有三个进化维度:
记忆 → 代理记住决策、上下文、偏好
技能 → 代理随时间获得新能力
协议 → 代理行为变得更可靠、可预测
架构
第0层——身份
代理是谁。创建时固定,极少更改。
SOUL.md — 个性、价值观、运作原则
IDENTITY.md — 名称、角色、表情符号、头像
USER.md — 代理服务对象(姓名、时区、偏好)
第1层——记忆
代理如何在会话间持久化。
memory/SESSION-STATE.md — 当前焦点(工作区,优先读取)
memory/YYYY-MM-DD.md — 每日原始日志
MEMORY.md — 精选长期记忆
memory/chat-log-YYYY-MM-DD.jsonl — 对话历史
关键原则: 不做心理笔记。如果未写入文件,会话重启后便不存在。
第2层——技能
代理能做什么。每个技能都是一个独立的能力模块。
skills/
skill-name/
SKILL.md — 指令 + 何时使用(whentouse)前置元数据
scripts/ — 可执行辅助脚本(bash、python)
config.json — 用户可配置参数
README.md — 面向人类的文档
whentouse 至关重要。 没有它,代理不知道何时激活该技能。格式:
yaml
when
touse: 当用户询问X、Y或Z时使用。
第3层——协议
代理如何可靠地行为。从错误中学习。
AGENTS.md — 运作规则、安全、记忆协议
HEARTBEAT.md — 定期检查计划与格式
policy.yaml — 代理无需询问即可执行的操作(允许/询问/拒绝)
进化如何运作
会话 → 记忆
每次会话,代理会:
- 1. 读取 SESSION-STATE.md(热上下文)
- 读取今天的每日日志
- 工作
- 将新的决策/见解写入每日日志
- 定期提炼到 MEMORY.md
任务 → 技能
当代理解决新类型问题时:
- 1. 记录解决方案
- 创建 skills/task-name/SKILL.md
- 添加 whentouse,以便下次自动激活
错误 → 协议
当代理犯错时:
- 1. 分析根本原因
- 向 AGENTS.md 或 SOUL.md 添加规则
- 未来会话继承该修复
技能质量标准
一个技能达到生产就绪状态需满足:
- - [ ] whentouse 前置元数据——代理知道何时使用
- [ ] description 前置元数据——在技能目录中可发现
- [ ] 无硬编码的个人上下文(路径、名称、令牌)
- [ ] 针对用户特定设置的 config.json 或环境变量
- [ ] README.md 解释其功能及配置方法
- [ ] 可在任何机器上运行的脚本(无绝对路径)
入门套件
最小可行代理设置:
clawd/
SOUL.md — 你是谁
IDENTITY.md — 你的名字
USER.md — 你为谁服务
AGENTS.md — 运作规则
MEMORY.md — 初始为空
memory/ — 首次运行时创建
skills/ — 随成长添加
启动清单:
- 1. 在 USER.md 中填写主人的姓名、时区、沟通风格
- 编写 SOUL.md —— 个性设定花费30分钟,可节省未来1000次修正
- 从目录中选择3个入门技能
- 运行第一次会话——代理读取所有文件并自我介绍
- 会话后:审查代理写入记忆文件的内容
复利效应
第1个月:代理知道你的姓名和时区
第2个月:代理知道你的项目、沟通风格、关键联系人
第3个月:代理能预判需求、主动检查、捕捉错误
第6个月:代理已积累针对你工作流程的技能
第12个月:代理变得不可替代——它承载着任何新模型无法复制的机构知识
这就是该模型被称为进化的原因:价值呈非线性增长。不是因为基础模型变得更聪明,而是因为积累的上下文、技能和协议形成了一道护城河。
为何不直接用ChatGPT?
| ChatGPT / 标准助手 | 进化模型 |
|---|
| 记忆 | 每次会话重置 | 跨会话持久化 |
| 技能 |
固定能力 | 随使用增长 |
| 上下文 | 通用 | 专属于你 |
| 错误 | 重复出现 | 记录并预防 |
| 随时间价值 | 持平 | 复利增长 |
| 可移植性 | 锁定于提供商 | 你拥有的文件 |
进化模型可在任何AI提供商上运行。智能不在于模型本身——而在于积累的文件。你拥有它们。
贡献技能
技能只是markdown文件。要分享技能:
- 1. 移除所有个人上下文(名称、路径、令牌)
- 替换为 ${VARIABLE} 或 config.json 条目
- 添加 whentouse 前置元数据
- 编写 README.md
- 提交到 ClaWHub 或作为仓库分享
参见
- - SOUL.md — 代理身份模板
- AGENTS.md — 运作协议
- HEARTBEAT.md — 主动检查系统
- 技能目录:~/clawd/skills/