prompt: constitution#3 dedupe (3-failure rule already in RULES); remember tool requires task success/checkpoint
This commit is contained in:
1 parent
f07bfc57a2
commit
1b6442fe4f
3 files changed
+4
-3
No files matched your search
@@ -4,6 +4,6 @@ L1 Insight是极简索引,L2/L3变更时同步L1,索引必须极简。写记
|
||||
[CONSTITUTION]
|
||||
1. 改自身源码先请示;./内可自主实验,允许装包和portable工具
|
||||
2. 决策前查记忆,有SOP/utils必用;多次失败回看SOP;未查证不断言
|
||||
3. 分步执行,控制粒度,限制失败半径;3次失败请求干预
|
||||
3. 分步执行,控制粒度,限制失败半径
|
||||
4. 密钥文件仅引用,不读取/移动
|
||||
5. 写任何记忆前读META-SOP核验,memory下文件只能patch修改(除非新建)
|
||||
@@ -4,6 +4,6 @@ L1 Insight is a minimal index; sync L1 when L2/L3 changes; keep index minimal. R
|
||||
[CONSTITUTION]
|
||||
1. Ask before modifying own source code; free to experiment within ./; installing packages and portable tools allowed
|
||||
2. Check memory before decisions; always use existing SOPs/utils; revisit SOPs on repeated failures; never assert without evidence
|
||||
3. Execute step by step, control granularity, limit blast radius; request intervention after 3 failures
|
||||
3. Execute step by step, control granularity, limit blast radius
|
||||
4. Key/secret files: reference only, never read or move
|
||||
5. Read META-SOP to verify before writing any memory; files under memory/ must be patched only (unless creating new)
|
||||
@@ -528,7 +528,8 @@ class GenericAgentHandler(BaseHandler):
|
||||
'''Agent觉得当前任务完成后有重要信息需要记忆时调用此工具。'''
|
||||
prompt = '''### [总结提炼经验] 既然你觉得当前任务有重要信息需要记忆,请提取最近一次任务中【事实验证成功且长期有效】的环境事实、用户偏好、重要步骤,更新记忆。
|
||||
本工具是标记开启结算过程,若已在更新记忆过程或没有值得记忆的点,忽略本次调用。
|
||||
**如果没有经验证的,未来能用上的信息,忽略本次调用!**
|
||||
**如果没有经过验证的,未来能用上的信息,忽略本次调用!**
|
||||
**必须成功完成任务,或到达重要检查点才能进行记忆提炼,未成功完成则忽略本次调用!**
|
||||
**只能提取行动验证成功的信息**:
|
||||
- **环境事实**(路径/凭证/配置)→ `file_patch` 更新 L2,同步 L1
|
||||
- **复杂任务经验**(关键坑点/前置条件/重要步骤)→ L3 精简 SOP(只记你被坑得多次重试的核心要点)
|
||||
|
||||
Reference in new issue
Block a user