graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Release v0.0.302.27
justrach89c86734e2d2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a993d879..22861683 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,15 @@ The release workflow uses a tag's section here as its release notes (ahand-written `docs/releases/<tag>.md` wins if present), so keeping this filecurrent is part of cutting a release.+## v0.0.302.27++### Compaction++- You can choose where automatic compaction starts, as a percent of the context window (default 80%, allowed 10-95%). The first of these that is set wins:+ - `--compact-at PCT` on the command line, or the SDKs' `compactAt` / `compact_at` option.+ - `GRAFF_COMPACT_PCT`. The desktop app passes its setting this way.+ - `/compact-at PCT` in a chat. It applies at once and is saved for the workspace. `/compact-at` alone shows the current point, and `/compact-at default` resets it.+## v0.0.302.26### Desktop app and ACPdiff --git a/docs/releases/v0.0.302.27.md b/docs/releases/v0.0.302.27.mdnew file mode 100644index 00000000..819c5304--- /dev/null+++ b/docs/releases/v0.0.302.27.md@@ -0,0 +1,20 @@+# Codegraff v0.0.302.27++Choose where automatic compaction starts.++## The compaction point is yours to set++graff compacts a conversation once it fills 80% of the model's context window.+You can now move that point anywhere from 10% to 95%. Lower keeps each request+smaller and cheaper; higher keeps more of the conversation word for word.++- In a chat, `/compact-at 70` applies at once and is saved for the workspace.+ `/compact-at` shows the current point, and `/compact-at default` goes back+ to 80%. This works in the terminal and in the desktop app.+- From the command line, use `graff --compact-at 70`. From code, pass+ `compactAt: 70` to the TypeScript SDK or `compact_at=70` to the Python SDK.+- `GRAFF_COMPACT_PCT=70` works as before. The desktop app's new setting+ (Settings → Agents → Graff compaction point) uses it.++The command-line flag wins over the environment variable, which wins over a+value saved with `/compact-at`.diff --git a/sdk/ts/package.json b/sdk/ts/package.jsonindex 5587d2db..99f289ca 100644--- a/sdk/ts/package.json+++ b/sdk/ts/package.json@@ -1,6 +1,6 @@{"name": "@codegraff/sdk",- "version": "0.4.3",+ "version": "0.4.4","description": "TypeScript / Node SDK for the codegraff agent — drives `graff --json` over stdio. Types auto-generated from `graff --schema`.","type": "module","main": "dist/harness.js",@@ -58,12 +58,12 @@},"license": "Apache-2.0","optionalDependencies": {- "@codegraff/graff-darwin-arm64": "0.4.3",- "@codegraff/graff-darwin-x64": "0.4.3",- "@codegraff/graff-linux-arm64": "0.4.3",- "@codegraff/graff-linux-x64": "0.4.3",- "@codegraff/graff-win32-arm64": "0.4.3",- "@codegraff/graff-win32-x64": "0.4.3"+ "@codegraff/graff-darwin-arm64": "0.4.4",+ "@codegraff/graff-darwin-x64": "0.4.4",+ "@codegraff/graff-linux-arm64": "0.4.4",+ "@codegraff/graff-linux-x64": "0.4.4",+ "@codegraff/graff-win32-arm64": "0.4.4",+ "@codegraff/graff-win32-x64": "0.4.4"},"scripts": {"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json",diff --git a/src/cli.zig b/src/cli.zigindex 7a8f24f7..30ea8005 100644--- a/src/cli.zig+++ b/src/cli.zig@@ -23,6 +23,9 @@ const update_target = @import("update_target.zig");pub const changelog_text =\\What's new\\──────────+ \\0.0.302.27+ \\ • choose where compaction starts: /compact-at 70, --compact-at, or the desktop setting+ \\\\0.0.302.26\\ • compaction replies no longer show up in the desktop chat\\ • a question no longer restarts an earlier task's checklist