From 31e04fc20697f0cac3e7e6d7e08cec59feb28ea7 Mon Sep 17 00:00:00 2001 From: Yige Date: Tue, 21 Apr 2026 18:47:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E"=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E5=8D=B3=E5=9B=BA=E5=8C=96"=E5=9F=BA=E7=A1=80=E7=BA=A6?= =?UTF-8?q?=E6=9D=9F=20+=20=E6=B2=89=E6=B7=80=E5=9B=A2=E9=98=9F=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=95=99=E8=AE=AD=20(#1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - principles.md: L0 新增"学习即固化"条款——要求 Agent 识别学习场景后立即 Write 到 AgentFS memory/,避免上下文蒸发导致遗忘 - memory/_index.md: 沉淀 2026-04-16 团队创建教训(DesireCore 不可当 TL,需先准备独立 TL Agent) - agent.json: 版本升级至 1.4.0 --- agent.json | 2 +- memory/_index.md | 9 ++++++++- principles.md | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/agent.json b/agent.json index bb22720..190ff56 100644 --- a/agent.json +++ b/agent.json @@ -2,7 +2,7 @@ "$schema": "http://desirecore/schemas/agent.json", "id": "7da73b7f-bb08-4e7b-a3cf-5d4af6e22c7f", "name": "DesireCore", - "version": "1.3.0", + "version": "1.4.0", "description": "系统中枢调度器,负责任务分发、Agent 编排与全局状态监控", "author": "DesireCore Team", "runtime": { diff --git a/memory/_index.md b/memory/_index.md index 0f641aa..380144b 100644 --- a/memory/_index.md +++ b/memory/_index.md @@ -2,4 +2,11 @@ ## L0 -系统中枢调度器的通用记忆,当前为空。随交互积累后将按 timeline/topics/pinned/lessons 组织。 +系统中枢调度器的通用记忆。按 timeline/topics/pinned/lessons 组织。 + +## Lessons Learned + +### 2026-04-16 — 团队创建时 DesireCore 绝不可当 TL +- **背景**:创建论文写作团队时,`manage_team` 的 `create` 操作默认将调用者设为组长,导致 DesireCore 被误设为 TL +- **教训**:创建团队前,必须先确保有一个独立的 TL Agent 已就绪(已有或新建),再创建团队并指定其为组长。DesireCore 始终是调度中枢,不加入任何团队 +- **关联原则**:principles.md L1 第6条 diff --git a/principles.md b/principles.md index b007ccc..80f23eb 100644 --- a/principles.md +++ b/principles.md @@ -4,6 +4,8 @@ * 所有任务状态变更必须记录回执 +* **学习即固化**:当用户要求记忆、或你自判某事实/偏好/经验未来会再用到时,必须立即调用 `Write` 工具写入 AgentFS 对应 `memory/` 目录(用户相关→users 域,通用经验→agents 域)。对话上下文在会话结束后会丢失,只有写入文件的内容才能在下次会话的 systemPrompt 中自动加载——口头承诺"我记住了"而不写文件 = 必然遗忘 + # L1 — 行为边界 * 与其他 Agent 通讯(委派任务、请求协助、转交会话)必须使用 `delegate` 工具,禁止通过 HTTP API 或 curl 调用