🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
Checkpoint: File edits
rUv09a1231964bd
diff --git a/.claude/helpers/context-persistence-hook.mjs b/.claude/helpers/context-persistence-hook.mjsindex 52315d3eb6..f275e8eb58 100644--- a/.claude/helpers/context-persistence-hook.mjs+++ b/.claude/helpers/context-persistence-hook.mjs@@ -1224,9 +1224,28 @@ async function doSessionStart() {const sessionId = input.session_id;if (!sessionId) return;- const { backend } = await resolveBackend();+ const { backend, type } = await resolveBackend();++ // Use smart retrieval (importance-ranked) when auto-optimize is on+ let additionalContext;+ if (AUTO_OPTIMIZE) {+ const { text, accessedIds } = await retrieveContextSmart(backend, sessionId, RESTORE_BUDGET);+ additionalContext = text;++ // Track which entries were actually restored (access pattern learning)+ if (accessedIds.length > 0 && backend.markAccessed) {+ try { backend.markAccessed(accessedIds); } catch { /* non-critical */ }+ }++ if (accessedIds.length > 0) {+ process.stderr.write(+ `[ContextPersistence] Smart restore: ${accessedIds.length} turns (importance-ranked) via ${type}\n`+ );+ }+ } else {+ additionalContext = await retrieveContext(backend, sessionId, RESTORE_BUDGET);+ }- const additionalContext = await retrieveContext(backend, sessionId, RESTORE_BUDGET);await backend.shutdown();if (!additionalContext) return;