Releases: songoao25/dsh-auto-compact
Releases · songoao25/dsh-auto-compact
Release list
v0.2.0 - Configuration & Enhanced Reliability
What's New
Added
- Configuration file support: Edit
config.jsonto customize compaction parameters without modifying source code - CLI argument overrides: Use
--thresholdand--retainflags for temporary parameter changes - Timestamped backups: Backup files now include timestamps (
.bak-auto-compact-YYYYMMDDTHHmmss) to prevent overwriting - Operation logging: All actions logged to
~/.dsh/dsh-auto-compact.logfor audit trail - Enhanced error handling: YAML validation, graceful failure recovery, detailed error messages
- Factory preset documentation: Clear instructions in README for using enhanced compaction with factory presets
Changed
- Updated bilingual README with factory preset usage instructions
- Improved uninstall script to handle timestamped backups
- Number formatting fixed (0.20 instead of 0.2)
Testing
- Added 2 new test cases (10 total, all passing)
- Verified config file loading, CLI overrides, and backup strategy
Full changelog: See CHANGELOG.md
dsh-auto-compact v0.1.0
Release Notes — dsh-auto-compact v0.1.0
Highlights
Enhanced automatic-context-compaction defaults for DeepSeek Harness agent presets.
- Default trigger lowered from 80% to 75% of the context window, keeping the most recent 20% verbatim.
- Per-route policies:
- ChatGPT / Codex GPT-5.6 (272K context): trigger at 70%.
- OpenCode Go DeepSeek V4 (1M declared context): trigger at 65%.
- Safe installer: backs up each preset (
*.bak-auto-compact), idempotent, dry-run preview, skips presets that already configure compaction themselves, never touches factory presets. - Keeps the existing summarization, retry, and safe-fallback behavior of
dsh-compaction-basic(a failed summary preserves the original history). - Manual
/compactand tool-result pruning remain available. - Bilingual README, MIT license, CI + CodeQL + Dependabot.
Installation
cd dsh-auto-compact
./install.sh # then restart DeepSeek HarnessRoll back with ./uninstall.sh.