Skip to content

Commit 7200ce3

Browse files
committed
release: 0.6.0
Cuts the [Unreleased] section to [0.6.0] - 2026-05-19. Highlights since 0.5.2: Added - Bash output compression (PreToolUse Bash rewriter + 12 per-tool filters) - WebFetch result cache + token-goat web-output / web-history CLI - Bash output interception + token-goat bash-output / bash-history CLI - Diff-aware re-read after Write/Edit/MultiEdit - TOML/YAML/JSON/INI/CFG/dotenv/Dockerfile structured section extraction - Post-compaction recovery hint - Grep dedup hint - token-goat doctor cache visibility panel - Symbol close-match auto-redirect (--strict opt-out) - bash and web source buckets in stats - Compaction manifest 'Commands Run' section - Hardened PostToolUse Bash payload extraction (all documented shapes) Changed - reset_session also clears per-session content snapshots - Codex Bash matcher routes to post-bash (not post-read) - bash_cache.evict_old_entries pairs body + sidecar, sweeps orphans - README 'Updating' subsection consolidating upgrade paths - Internal DRY pass: routing-table SSOT, languages/common config-file helpers, openclaw/opencode bridges unified, _HKCU_RUN_PATH constant, _OPT_JSON/_OPT_CONTEXT_LINES Typer constants, conftest patched_home fixture. No user-visible behavior change. Fixed - paths.open_log_file now returns a real FileHandler subclass on POSIX - Drive-letter canonicalisation tests skip on non-Windows - Latent winreg handle leak when SetValueEx/DeleteValue raised
1 parent 69fb668 commit 7200ce3

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to Token-Goat are documented in this file. Format follows Ke
44

55
## [Unreleased]
66

7+
## [0.6.0] - 2026-05-19
8+
79
### Added
810

911
- **Bash output compression.** PreToolUse hook on Bash detects compressible commands and rewrites them to flow through `token-goat compress`, which runs the original through the system shell, captures stdout + stderr, applies a per-tool filter, and prints a compressed view that surfaces failures first. Twelve filters cover the noisiest dev commands: `pytest`, `jest` / `vitest`, `cargo`, `npm` / `pnpm` / `yarn` / `bun`, `docker` / `buildah` / `podman`, `kubectl` / `helm`, `aws`, `ruff` / `eslint` / `mypy` / `pyright` / `pylint` / `stylelint` / `biome` / `tsc`, `git`, `make` / `ninja` / `gradle` / `mvn` / `bazel` / `go`, `terraform` / `tofu`, `pip` / `pipx`. Typical savings: pytest 80-97%, npm 88%, docker 75%, linters 80%. Each filter strips ANSI, collapses `\r` progress bars, dedupes consecutive lines, groups linter issues by rule (3 examples per code), keeps every error and warning block verbatim, and caps total output at 1000 lines / 64 KiB. The wrapper preserves the original exit code, kills the process group on timeout (SIGTERM then SIGKILL after a grace period on POSIX), and caps each stream capture at 32 MiB. Configurable via `[bash_compress]` in config.toml (`enabled`, `disabled_filters`, `max_lines`, `max_bytes`, `timeout_seconds`) or disabled with `TOKEN_GOAT_BASH_COMPRESS=0`. Savings are recorded per filter as `bash_compress:<name>`. New CLI subcommand `token-goat compress` for previewing compression on any command.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "token-goat"
3-
version = "0.5.2"
3+
version = "0.6.0"
44
description = "Token optimizer for Claude Code, Codex CLI, opencode, and openclaw on Windows, macOS, Linux, and WSL. Image shrink, re-read dedup, and compaction assist run automatically; CLI commands (symbol, read, section, semantic, map) replace full-file reads with surgical slices."
55
readme = "README.md"
66
requires-python = ">=3.11,<3.15"

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)