# 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.

Published 2026-11-12 · Updated 2026-11-12 · URL https://wizerdbache.com/en/notes/autocompact-pack-download/


This is the third note in the series. The first two covered [whether to turn on autocompact](https://wizerdbache.com/en/notes/autocompact-do-you-need-it/) and [how to save before compacting](https://wizerdbache.com/en/notes/autocompact-beyond-threshold/); this one packages that approach for download.

**Check whether it suits you first.** This pack is designed for "one person, one conversation, running long tasks while watching it yourself." If your system opens a new conversation to take over when the chat gets too long (watchdog handover), read the first note first, or go directly to `03_COMPATIBILITY.md` in the pack: in most cases you should not install the compaction parts; you only need to change two settings and add one hook that notifies you when the safety-net compaction fires.

## Download

- **[autocompact-pack-2.0.0.zip](https://wizerdbache.com/downloads/autocompact-pack-2.0.0.zip)** (about 126 KB, 2026-11-12)
- SHA-256: `0a7a32e809eba02224c72cdf6c0ced5e1d11959fe7d79304d6d21f41bdc8d82c` ([plain text file](https://wizerdbache.com/downloads/autocompact-pack-2.0.0.zip.sha256))
- License: MIT (free to use, modify, and redistribute; keeping the copyright notice is enough)

After downloading, compare the hash first, then extract:

```text
# PowerShell
Get-FileHash autocompact-pack-2.0.0.zip -Algorithm SHA256

# Git Bash / macOS / Linux
sha256sum autocompact-pack-2.0.0.zip
```

After extracting, the `MANIFEST.sha256` file in the pack lists the hash of every file, and `SECURITY.md` has the commands for checking each file.

## What's in the pack

| File | Purpose |
|---|---|
| `00_先讀我.md` | Read this first to check whether it suits you, plus the paragraph to paste when handing the work to an agent |
| `SECURITY.md` | For each program: what it reads and writes, what it does not do, how to verify it, and how to remove it |
| `03_COMPATIBILITY.md` | How to set up a system that hands over shifts |
| `preflight.py` | Pre-install check: reads settings only, and tells you whether autocompact or idle compaction would beat your handover line, and whether you only installed half |
| `01_BUILD-SPEC.md` | Specification for the installing agent to read (English) |
| `02_evidence.md` | Why it is built this way: my own measurements and platform tests |
| `reference-impl/` | 7 hooks, the record archiving program, the audit tool and its control group, settings snippets, and a Compact Instructions template |
| `CHANGELOG.md` | Version differences |
| `LICENSE` | MIT license |

## What it does and does not do

**What it does:** when context passes 300k, it reminds the model to write a handoff snapshot; before compaction, it records the position of the conversation log and attaches one sentence to the summary saying where the snapshot is and whether it is current; after compaction, it puts the snapshot back into the context; it limits the model from reading the full conversation log back in; and it logs each compaction, reminding you every 5 autocompactions to run the audit and check whether the handoff dropped anything (the audit must be run by you manually).

**What it does not do:**

- it makes no network connections; it contains no network module;
- it does not need or read any keys or passwords;
- it uses only the Python standard library (Python 3.10 or later is required) and installs no third-party packages;
- once installed, the hooks write only into your Claude settings folder and do not touch your project files (a manual audit run writes to the report folder you specify, and the control-group runs use the system temp folder);
- it does not modify `settings.json` itself; the settings must be merged by you manually (or by your agent after you confirm);
- it does not send any data back to me.

**Two things you should know in particular:**

1. **The conversation log gets an extra copy.** At the end of each session, and before each compaction, it copies the complete conversation logs of **all projects** in the settings folder into the archive area, so the original text can be recovered after compaction. If your conversations contain sensitive content, this folder needs the same protection as the original logs. If you do not want the copies, do not install the archiving program (`SECURITY.md` explains how, and what it costs).
2. **It says one sentence to the compaction summary.** The official documentation states that the output of a PreCompact hook becomes instructions for the summary. This pack uses that to attach a snapshot hint: a fixed English sentence with only numbers, a local path, and a random code filled in; it does not copy any conversation or file contents. For a Claude Code version that has not been verified, it first sends only a test code, confirms the summary receives it, and only then enables the hint; you can turn it off entirely with an environment variable.

## Suggested install method

Do not follow these steps directly; hand them to your own agent:

1. Have it read `00_先讀我.md`, `SECURITY.md`, and `03_COMPATIBILITY.md`, and run `preflight.py`.
2. If your system hands over shifts, stop here and change the settings following the compatibility note.
3. Otherwise, have it read the full specification and all the code, first run the control group in place in the pack (all should pass), and then list the sections to be merged into `settings.json` for your confirmation.

Before release, I ran these checks on the extracted files: file hashes 30/30 matched; `preflight.py` control group 7/7; hook control group 76/76. I also removed one required file, separately, to confirm the control group fails.

## Why not GitHub

This pack is hosted on my own website, not on a public code platform. The cost is that you cannot see the history of each change; I make up for it with three things: each version's `CHANGELOG.md`, a hash list for every file, and the archive hash published on this page. The site itself runs over HTTPS.

## Limits and disclaimer

- I have only used it on Windows 11 (the Code tab in the terminal and desktop apps); other platforms are untested. Day-to-day use ran from Claude Code 2.1.257 to 2.1.322; platform behavior was tested on 2.1.257, 2.1.309, and 2.1.310 through 2.1.321, and 2.1.322 only re-ran the control group in the pack.
- This pack depends on Claude Code's hook behavior, and some behavior changes between versions; when you change versions, have your agent first re-check against the specification.
- Provided under the MIT license as is, with no warranty. This is not an official Anthropic product and has no connection to Anthropic. Decide whether to install it yourself after you have read and understood the contents.
