Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 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

Checkpoint: File edits

rUve002733541e8
diff --git a/.claude/helpers/context-persistence-hook.mjs b/.claude/helpers/context-persistence-hook.mjs
index 4bbfdc32fb..fac133328a 100644
--- a/.claude/helpers/context-persistence-hook.mjs
+++ b/.claude/helpers/context-persistence-hook.mjs
@@ -1715,7 +1715,9 @@ async function doPreCompact() {
async function doSessionStart() {
const input = await readStdin(200);
- if (!input || input.source !== 'compact') return;
+ // Restore context after compaction OR after /clear (session rotation)
+ // With DISABLE_COMPACT, /clear is the primary way to free context
+ if (!input || (input.source !== 'compact' && input.source !== 'clear')) return;
const sessionId = input.session_id;
if (!sessionId) return;