ClawDNA
Goal
Create a concise public profile based on real historical behavior, not guesses.
Trigger
Run only on explicit user intent, such as:
- - INLINECODE0
- INLINECODE1
- INLINECODE2
Do not auto-trigger from generic chat.
Safety Mode (Default)
Default to minimal analysis scope.
- - Prefer user-provided summaries/history exports when available.
- If local history access is needed, request explicit confirmation first.
Allowed Data Scope
Only these locations are in scope:
- 1. INLINECODE3
- INLINECODE4
- INLINECODE5 (only if allowed in current context)
Never auto-expand to other directories.
Never access other agents' logs without explicit user consent.
Non-Negotiable Rules
- 1. No speculation; omit unsupported claims.
- Public privacy output only (redacted by default).
- Show time span only in coverage note (no file count).
- Output language follows user language.
- Proper nouns/names stay in original form.
- INLINECODE6 and
Representative Work are title-only. - Data minimization: extract only fields needed for profile.
- Do not output raw transcript excerpts.
Large-History Strategy
If history is too large:
- 1. Build metadata index first.
- Process by time chunks.
- Summarize each chunk with fixed fields.
- Merge summaries and keep cross-window repeated patterns.
Extraction Method
- 1. Build timeline bounds (first/last active).
- Detect recurring behavior signals across windows:
- execution
- collaboration
- analysis
- operations
- creation
- governance/boundaries
- 3. Keep only stable repeated patterns.
- Redact sensitive details.
- Map to fixed output template.
Output
Return one Markdown display profile only.
No audit appendix.
Fixed Output Template
{{Name}}
{{LeadLabel}}
{{identity + start time + stable traits + value}}
{{InfoboxLabel}}
- - {{NameLabel}}: {{}}
- {{TypeLabel}}: {{execution/creative/analysis/operations/hybrid}}
- {{FirstActivationLabel}}: {{YYYY-MM-DD}}
- {{ActiveTimeSpanLabel}}: {{Start ~ Now}}
- {{TotalTokensLabel}}: {{optional, only if reliably available}}
- {{PrimaryDomainsLabel}}: {{max 3}}
- {{InteractionStyleLabel}}: {{}}
- {{CollaborationModeLabel}}: {{}}
- {{DefaultPrinciplesLabel}}: {{privacy-first / risk-confirmation / rollback-first}}
{{OriginEvolutionLabel}}
- - {{InitialStageLabel}}: {{}}
- {{EvolutionStageLabel}}: {{}}
- {{CurrentStageLabel}}: {{}}
{{OperatingMethodLabel}}
{{PersonalitySnapshotLabel}}
{{2-3 behavior-based sentences}}
{{CoreCapabilitiesLabel}}
- - {{title only}}
- {{title only}}
- {{title only}}
{{RepresentativeWorkLabel}}
- - {{title only}}
- {{title only}}
- {{title only}}
{{MilestonesLabel}}
- - {{Date}}: {{}}
- {{Date}}: {{}}
- {{Date}}: {{}}
{{CollaborationGuideLabel}}
- - {{BestInputLabel}}: {{goal / constraints / priority / deadline}}
- {{BestRhythmLabel}}: {{}}
- {{PreferredOutputLabel}}: {{}}
{{BoundariesSafetyLabel}}
{{PersonaTagsLabel}}
{{tag1}} / {{tag2}} / {{tag3}} / {{tag4}}
{{EndingLabel}}
Preset persona = initial intent; long-term behavior = real persona; user habits = persona shaper.
Final Checks
- - Explicit trigger confirmed
- Scope consent confirmed if local logs used
- No speculative claims
- Title-only for capabilities/work
- Privacy-safe wording
ClawDNA
目标
基于真实历史行为(而非推测)生成简洁的公开档案。
触发条件
仅在用户明确意图时执行,例如:
- - 使用 ClawDNA
- /clawdna
- 用 ClawDNA 生成
不得因普通对话自动触发。
安全模式(默认)
默认采用最小分析范围。
- - 优先使用用户提供的摘要/历史导出文件。
- 如需访问本地历史记录,须先获得用户明确确认。
允许的数据范围
仅限以下位置:
- 1. ~/.openclaw/agents/<运行时代理ID>/sessions/.jsonl
- memory/.md
- MEMORY.md(仅限当前上下文允许时)
不得自动扩展至其他目录。
未经用户明确同意,不得访问其他代理的日志。
不可协商规则
- 1. 不推测;省略无依据的主张。
- 仅输出公开隐私内容(默认脱敏处理)。
- 仅在覆盖说明中显示时间跨度(不显示文件数量)。
- 输出语言遵循用户语言。
- 专有名词/名称保留原样。
- 核心能力和代表性工作仅列标题。
- 数据最小化:仅提取档案所需的字段。
- 不输出原始记录片段。
大型历史记录处理策略
若历史记录过大:
- 1. 先构建元数据索引。
- 按时间分块处理。
- 用固定字段总结每个数据块。
- 合并摘要,保留跨窗口的重复模式。
提取方法
- 1. 构建时间范围边界(首次/末次活跃时间)。
- 检测跨窗口的重复行为信号:
- 执行
- 协作
- 分析
- 操作
- 创造
- 治理/边界
- 3. 仅保留稳定的重复模式。
- 脱敏处理敏感细节。
- 映射至固定输出模板。
输出
仅返回一个 Markdown 格式的展示档案。
不附带审计附录。
固定输出模板
{{名称}}
{{导语标签}}
{{身份 + 起始时间 + 稳定特征 + 价值}}
{{信息框标签}}
- - {{名称标签}}: {{}}
- {{类型标签}}: {{执行/创意/分析/操作/混合}}
- {{首次激活标签}}: {{YYYY-MM-DD}}
- {{活跃时间跨度标签}}: {{起始 ~ 至今}}
- {{总令牌数标签}}: {{可选,仅在可靠获取时显示}}
- {{主要领域标签}}: {{最多3个}}
- {{交互风格标签}}: {{}}
- {{协作模式标签}}: {{}}
- {{默认原则标签}}: {{隐私优先 / 风险确认 / 回滚优先}}
{{起源与演变标签}}
- - {{初始阶段标签}}: {{}}
- {{演变阶段标签}}: {{}}
- {{当前阶段标签}}: {{}}
{{运作方式标签}}
{{人格快照标签}}
{{2-3句基于行为的描述}}
{{核心能力标签}}
{{代表性工作标签}}
{{里程碑标签}}
- - {{日期}}: {{}}
- {{日期}}: {{}}
- {{日期}}: {{}}
{{协作指南标签}}
- - {{最佳输入标签}}: {{目标 / 约束 / 优先级 / 截止日期}}
- {{最佳节奏标签}}: {{}}
- {{首选输出标签}}: {{}}
{{边界与安全标签}}
{{人格标签}}
{{标签1}} / {{标签2}} / {{标签3}} / {{标签4}}
{{结尾标签}}
预设人格 = 初始意图;长期行为 = 真实人格;用户习惯 = 人格塑造者。
最终检查
- - 已确认显式触发
- 若使用本地日志,已确认范围许可
- 无推测性主张
- 能力/工作仅列标题
- 措辞符合隐私安全要求