Optimize memory: Redirect error logs to daily files
Changed error logging from MEMORY.md (permanent) to daily logs (time-based). This prevents MEMORY.md from becoming polluted with error stack traces that degrade search quality. Impact: - Future errors go to memory/YYYY-MM-DD.md (naturally age out) - MEMORY.md stays focused on project context only - Search results no longer polluted by duplicate stack traces Change: self_healing.py line 131: daily=False → daily=True Note: SOUL.md, MEMORY.md, jordan.md also optimized (not in git - gitignored) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -128,7 +128,7 @@ class SelfHealingSystem:
|
|||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.memory.write_memory(log_entry, daily=False)
|
self.memory.write_memory(log_entry, daily=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Last resort: print to console if memory write fails
|
# Last resort: print to console if memory write fails
|
||||||
print(f"[SelfHealing] Failed to write error log to MEMORY.md: {e}")
|
print(f"[SelfHealing] Failed to write error log to MEMORY.md: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user