dsh-compact-codex

Replaces the dsh compaction backend with a Codex-style window reset: the checkpoint is a handoff assembled from the session log by code, not a model-written summary, so a reset costs no summarization calls. A task ledger with a two-check gate keeps intent, next steps and the files still in play across resets, and a new_context tool lets the model reset on its own. Re-declares the four built-in agent presets (standard, ptc, minimal, cordis) exactly as shipped in dsh 0.2.2-rc.1, so re-run sync-presets.mjs after a dsh upgrade; idle cache keepalive is on by default and sends real requests that use quota (keepalive: false turns it off).

Overview

Replaces the dsh compaction backend with a Codex-style window reset: the checkpoint is a handoff assembled from the session log by code, not a model-written summary, so a reset costs no summarization calls. A task ledger with a two-check gate keeps intent, next steps and the files still in play across resets, and a new_context tool lets the model reset on its own. Re-declares the four built-in agent presets (standard, ptc, minimal, cordis) exactly as shipped in dsh 0.2.2-rc.1, so re-run sync-presets.mjs after a dsh upgrade; idle cache keepalive is on by default and sends real requests that use quota (keepalive: false turns it off).

Installation

Install from GitHub

dsh plugin --profile web add github:niszhum/dsh-compact-codex

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.