You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce graphstack run with quality-preserving compactors for git and pytest, wire into orchestrator rules and skills, and document in README.
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,21 @@ All notable changes to GraphStack are documented here.
4
4
5
5
---
6
6
7
+
## [v4.2.0] — 2026-05-17
8
+
9
+
### Added
10
+
-**`graphstack run`** — run shell commands with token-safe output compaction (`--raw` for full output).
11
+
-**`scripts/graphstack/compact/`** — independent compactors for `git status` / `diff` / `log`, `pytest`, and generic commands; preserves paths, hunks, and failures; falls back to raw when signal would be lost.
Graph-first rules reduce **file reads**. Shell compaction reduces **terminal output** (git status, diffs, test runners) before it enters the AI context — without installing third-party proxies.
327
+
328
+
**Who uses it:** Cursor/Claude agents follow `TOKEN_OPTIMIZER.md` and `.cursor/rules/graphstack.mdc` — they call `graphstack run`, not raw `git`/`pytest`. You do not need to remember a separate workflow.
329
+
330
+
```bash
331
+
python -m graphstack run -- git status
332
+
python -m graphstack run -- git diff
333
+
python -m graphstack run -- git log -n 20
334
+
python -m graphstack run -- pytest -q
335
+
```
336
+
337
+
**Quality safeguards (not “blind compression”):**
338
+
339
+
- File paths, branch names, diff hunks (`@@`), and `+`/`-` lines are preserved
340
+
- Test failures, tracebacks, and stderr are kept (stderr is never compacted)
341
+
- If compaction would drop too much signal, output **falls back to raw** automatically
342
+
- Full output when debugging: `python -m graphstack run --raw -- git diff`
343
+
344
+
Independent Python implementation (MIT) — inspired by common agent-tooling patterns, no RTK dependency or vendored code.
345
+
346
+
`graphstack doctor` reports whether the compact module is installed in your project.
347
+
348
+
---
349
+
323
350
## What Gets Installed
324
351
325
352
```
@@ -361,6 +388,8 @@ your-project/
361
388
│ ├── platform_utils.py ← OS detection, Python finder, encoding-safe echo
0 commit comments