Hidden Scratchpad

Description

Pattern used during autocompaction: the model generates its reasoning inside an XML tag that is stripped via regex replace (/[\s\S]*?<\/analysis>/) before injection into subsequent context. Only the

product is kept, so reasoning does not consume future context budget.

Key claims

  • Compaction preservation rules becoming public is not patchable
  • tag stripped via regex before injection

Relations

Sources

src-20260419-16b155f4f619