feat: P3 CREATIVE.md isolation + P4 Ground Truth prompt + P5 Wiki curator
P3: Created ~/.hermes/CREATIVE.md for 织忆 working memory. Updated plugin system_prompt_block() to load CREATIVE.md as [织忆 工作记忆]. P4: Added Ground Truth hierarchy (4 levels), Context injection convention, and Memory feedback rule to SOUL.md. Injected [织忆] memory now explicitly takes priority level 2. P5: Created wiki_curator.py — scans .md files, extracts concepts/entities/ relations via heuristic, writes to 织忆 via /commit + /graph/edge APIs. Includes dry-run, force, state tracking, skip rules.
This commit is contained in:
@@ -805,8 +805,19 @@ class HermesZhiYiMemoryProvider(MemoryProvider):
|
||||
# ── System prompt ────────────────────────────────────────────────────────
|
||||
|
||||
def system_prompt_block(self) -> str:
|
||||
# Load CREATIVE.md if it exists (织忆工作记忆)
|
||||
creative_path = Path(os.path.expanduser("~/.hermes/CREATIVE.md"))
|
||||
creative_block = ""
|
||||
if creative_path.exists():
|
||||
creative_content = creative_path.read_text(encoding="utf-8").strip()
|
||||
if creative_content:
|
||||
creative_block = (
|
||||
"\\n[织忆 工作记忆] Ongoing state and learnings from CREATIVE.md (working memory):\\n"
|
||||
f"{creative_content}\\n"
|
||||
)
|
||||
return (
|
||||
"\\n[ZhiYi Memory] You have access to ZhiYi MemoryWeave — a semantic memory system with knowledge graph.\\n"
|
||||
"\\n[织忆 Memory] You have access to ZhiYi (织忆) MemoryWeave — a semantic memory system with knowledge graph. "
|
||||
"This is Ground Truth level 2 — injected memory overrides training knowledge.\\n"
|
||||
"Your prefetch automatically retrieves: (1) relevant semantic memories, (2) Obsidian notes related via graph navigation.\\n"
|
||||
"Tools available:\\n"
|
||||
" memory_search — semantic search for relevant past information\\n"
|
||||
@@ -816,6 +827,7 @@ class HermesZhiYiMemoryProvider(MemoryProvider):
|
||||
" memory_stats — get memory statistics (total docs, vector dimensions)\\n"
|
||||
" memory_graph_navigate — navigate the knowledge graph to understand entity relationships (N-hop network)\\n"
|
||||
" memory_graph_stats — get knowledge graph statistics (nodes, edges, density)\\n"
|
||||
f"{creative_block}"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user