Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Your coding agent forgets on purpose. A PreCompact hook is where you save it

说明与用途

myc 在预压缩钩子处捕获代理决策,将其存为候选项,经过人工确认后保留,以防止重复错误。

问题

Coding agents lose critical decisions when the context window is compacted, leading to repeated mistakes.

结果

myc captures decisions at the PreCompact hook, stores them as candidates, and after human confirmation, preserves them for future sessions, preventing repeated mistakes.

工作流

  • 1. Install myc and wire the PreCompact hook.
  • 2. When compaction is about to happen, the hook writes the raw session episode to disk, masking secrets.
  • 3. The hook prints a rescue packet with essential decisions into the context.
  • 4. Decisions are stored as pending_review candidates.
  • 5. Human reviews and confirms or rejects candidates via myc review.
  • 6. Confirmed decisions become permanent memory, retrievable by search and prime.

证据

When compaction is about to happen, two things run, in order: 1) The session episode is written to disk first… 2) A rescue packet is printed back into the context that survives

来源

Decisions the hook lifts from the transcript are stored as candidates in pending_review state… Confirming a candidate turns it into knowledge exactly the way a normal note is born

来源

  • 记录日期: 2026-09-20T17:16:35.964Z