BaCheWork and records of a photonics research workhorse
Language

Claude Code auto-compact: whether to enable it, how to set it up, and how to work around its gaps

Auto-compact pays off for a single person's long conversations, but for a standing system that hands work off between shifts, it can take work away. This series covers how to decide, how to save a file before compacting, and ends with a downloadable capability pack and its safety notes.

Read the first article to decide whether you need it. If you do, the second covers how to do it, and the third is the capability pack download.

Chapters3

  1. Part 1 · Essay · About 9 min read

    Do you (not) need autocompact: long conversations for one person, and resident AI that hands over shifts

    Autocompact is worth it for one person running long tasks at a computer. But if your system already opens a new conversation with a handoff card when the chat gets too long, turning on autocompact means the handoff never happens. This note covers how to tell the two cases apart and how to set up each.

  2. Part 2 · Essay · About 8 min read

    Setting the autocompact threshold is only step one: what compaction loses, and how to save before it runs

    Lowering Claude Code's autocompact threshold does save usage, but the threshold only decides when compaction happens. This note covers what compaction drops, and the three things I added for long tasks: save a handoff first, specify what the summary must keep, and feed the handoff back after compaction.

  3. Part 3 · Note · About 5 min read

    Autocompact capability pack: download, contents, and security notes

    I packaged the autocompact handoff mechanism I have run for over two months into a capability pack, available for download here. This note lists what each file in the pack does, what it reads and writes, what it does not do, and how to verify after download that the files have not been altered.