Skip to content

Releases: songoao25/dsh-auto-compact

v0.2.0 - Configuration & Enhanced Reliability

Choose a tag to compare

@songoao25 songoao25 released this 16 Aug 02:57

What's New

Added

  • Configuration file support: Edit config.json to customize compaction parameters without modifying source code
  • CLI argument overrides: Use --threshold and --retain flags 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.log for 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

Choose a tag to compare

@songoao25 songoao25 released this 15 Aug 18:52

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 /compact and tool-result pruning remain available.
  • Bilingual README, MIT license, CI + CodeQL + Dependabot.

Installation

cd dsh-auto-compact
./install.sh   # then restart DeepSeek Harness

Roll back with ./uninstall.sh.