/** * pi-mind Memory Extension for pi-coding-agent * * Hooks into agent lifecycle: * - before_agent_start → capture user prompt + inject L1 + L2 memories * - turn_end → archive sessions (no tool-result capture) * - session_compact → save compaction summary to raw/compaction/ + sync index * * Memory write paths (all originate from agent action in a visible turn — see * "Memory is passive" in the ecosystem AGENTS.md "Design Principles"): * - remember_this tool — explicit save by agent (typically in response to user) * - observe tool — explicit low-bar field note * - session_compact — periodic context-compression summary * * Two background memory writers were removed for violating "memory is passive": * the `agent_end` `worth-remembering-llm` detector (qwen3:4b via Ollama, which * decided whether a turn was worth saving and wrote silently), and the * `session_compact` classifier sub-agent that promoted each compaction summary * into a knowledge/ entry. Both were lifecycle-triggered LLMs writing curated * state with no user in the trigger chain. All curated memory now requires * explicit agent action in a visible turn (remember_this / observe), or * promotion via the memory-audit skill. */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export default function memExtension(pi: ExtensionAPI): void; //# sourceMappingURL=index.d.ts.map