compaction/

August 12, 2026 · View on GitHub

English | 中文

A compaction capability family (see capability seams): a Service Definition, a summarizing provider, a model-free tool-result pruning companion, and a human command Consumer. All product packages.

PackageRolectx key
compaction/Compaction seam and event vocabularyctx.compaction
compaction-basic/Token-pressure and summarization backendregisters ctx.compaction
compaction-tool-result-pruner/Optional model-free tool-result pruningctx.toolResultPruner
command-compact/Human compaction commandregisters on ctx.commands

The backend, optional pruner, and human command compose through the seam; token measurement remains a separate LLM-family service. The compaction capability-seam Agent Note owns the dependency rationale.

The subsystem reference — the compaction/* events, CompactionResult, the service, pruning outcomes — is docs/subsystems/compaction.md; the seam's deliberate dsh-session/dsh-llm dependency is recorded in the compaction capability-seam Agent Note.