feat: session-analysis improvements — az JSON, vite noise, prisma generate, hook health check#90
Merged
claudioemmanuel merged 1 commit intomainfrom Apr 28, 2026
Conversation
…erate, hook health check Closes #89 - smart_filter: strip vite-tsconfig-paths and next-lint deprecation warnings (one session captured 6 identical copies = 27KB of noise) - cloud: extract System.* fields from `az boards`/`az repos` JSON, drop _links/relations/extensions blocks - database: fast-path for `prisma generate` — keep only the result line - session-start: warn when squeez hooks are missing from settings.json (e.g. when another tool overwrote the file on its setup) Signed-off-by: claudioemmanuel <42774167+claudioemmanuel@users.noreply.github.com>
0f35e4d to
935cf4a
Compare
This was referenced Apr 28, 2026
claudioemmanuel
added a commit
that referenced
this pull request
Apr 28, 2026
The squeez install patches `~/.claude/settings.json` by writing hook arrays at top-level event keys (settings.PreToolUse, settings.SessionStart, settings.PostToolUse). Other tools nest under settings.hooks.* — Claude Code reads both shapes for backwards compat. The G0 health check shipped in #90 only inspected settings.hooks.* and falsely reported "missing" on installs where squeez hooks live at the top level. Now scans both buckets plus the statusLine slot. Signed-off-by: claudioemmanuel <42774167+claudioemmanuel@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #89
Summary
Four targeted compression improvements identified by analyzing a real Claude Code session that ran for ~4 hours and hit context-compaction twice without squeez active.
src/strategies/smart_filter.rsaz boards/az reposJSON field extractionsrc/commands/cloud.rs_links,relations,extensions; keepsSystem.*+id/rev/urlprisma generatefast-pathsrc/commands/database.rshooks/session-start.shsettings.json(e.g. wiped by another tool's setup)Test plan
cargo test— all suites green (50+ binaries, 0 failures)Why this matters
A 4-hour transcript analysis captured 142 tool calls / 149KB of raw output flowing uncompressed to the model — and the user had no way to know squeez wasn't active. The health check addresses the silent-failure mode; the other three handlers cut the highest-volume noise patterns observed in the session.