You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ambiguous remainder (jaccard 0.4–0.7 pairs, shared-entity contradiction candidates, fat conventions, distill candidates) needs judgment. Follow the Claude Code Auto Dream / Letta sleep-time pattern: a periodic background agent run per project, dual-gated on ≥24h since last run AND ≥N new open queue items, that:
Reads memory_maintenance + memory_distill (both already exist as MCP tools).
For each open pair: merge via memory_supersede, invalidate the stale side, or noop — with the rule that losers are tombstoned, never deleted.
Trims fat conventions (>1500 chars) via supersede with a tighter body.
Writes strategy entries from the distill evidence pack, then supersedes the consumed runs.
Absolutizes relative dates in bodies it touches ("yesterday" → ISO date).
Design notes:
Solenta is an agent host, so this is a thread running a cheap worker model on a schedule — no new infra, reuses automations/scheduler. The prompt is self-contained; the tools already exist.
Sandbox: the pass may only call memory tools, no file/shell access.
Record each pass as a run memory entry so the Memory tab can show "last consolidation: X resolved, Y merged".
Cap work per pass (e.g. 20 queue items) so a flooded queue drains over several passes.
Tests: prompt-level integration test with a fake agent (pattern exists in electron tests); memory-server side needs nothing new.
Design refinement from the GBrain review (#719 addendum): implement this as a phase manifest, not a single agent prompt. Ordered phases, each individually testable and each declaring deterministic vs LLM:
Implementing on coder/fork-memory-periodic-sleep-time-consolid-2eee8e.
Host-side dual-gate (≥24h since last fire AND ≥5 open queue items) then createThread + startRun with a self-contained consolidation prompt. Reuses the automations scheduler pattern (same as post-merge): not a user-visible Automation.
Sandbox: Claude --allowedTools=mcp__coder-memory__* plus a memory-only MCP config (no coder-threads); permission prompts for anything else (including memory_delete) are auto-denied. Cap 20 queue items per pass. Each pass is a run memory entry written by the agent.
Tests: gate unit tests + prompt-level fake-agent integration (teach-runner pattern).
Activity
currentbits commentedon Aug 26, 2026
Design refinement from the GBrain review (#719 addendum): implement this as a phase manifest, not a single agent prompt. Ordered phases, each individually testable and each declaring deterministic vs LLM:
runentry + janitor snapshot fields (lastConsolidation: {resolved, merged, distilled, at})Also: keep adjudication verdicts durable (our open-pair unique index does this) so a pair is never re-judged across passes.
currentbits commentedon Aug 27, 2026
Implementing on
coder/fork-memory-periodic-sleep-time-consolid-2eee8e.Host-side dual-gate (≥24h since last fire AND ≥5 open queue items) then
createThread+startRunwith a self-contained consolidation prompt. Reuses the automations scheduler pattern (same as post-merge): not a user-visible Automation.Sandbox: Claude
--allowedTools=mcp__coder-memory__*plus a memory-only MCP config (no coder-threads); permission prompts for anything else (includingmemory_delete) are auto-denied. Cap 20 queue items per pass. Each pass is arunmemory entry written by the agent.Tests: gate unit tests + prompt-level fake-agent integration (teach-runner pattern).
currentbits commentedon Aug 27, 2026
Implementation is on
coder/fork-memory-periodic-sleep-time-consolid-2eee8e.electron/memory-consolidate.js, same pattern as automations/postmerge.*-memory.json) +--allowedTools=mcp__coder-memory__*;memory_deleteand non-memory tools auto-denied on Claude's permission channel. No worktree, no daily budget.Not in this change: Memory tab activity line (#723).
currentbits commentedon Aug 27, 2026
Landed from Solenta thread "Fork: Memory: periodic sleep-time consolidation agent (dual-". Closed on merge.