Repository navigation
Conversation
Claude Code runs shell commands on Windows through a tool named PowerShell. It was missing from SAFE_TOOLS and from both PostToolUse matchers, so the hook never started for it. New tests: the manifest matcher reaches every SAFE_TOOLS entry and never Read/Edit/Write, and the standalone installer registers the same matcher as the manifest. Co-Authored-By: claude-fable-5-2 <wontreply@getouttahere.ai>
getConfigDir() returns %APPDATA%\chisle on Windows; the docs named only ~/.config/chisle. Co-Authored-By: claude-fable-5-2 <wontreply@getouttahere.ai>
|
@Huntehhh is attempting to deploy a commit to the jaypokale35gmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
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.
What & why
On Windows, Claude Code runs shell commands through its
PowerShelltool. Chisle never compressed that output: the tool was missing fromSAFE_TOOLSand from both PostToolUse matchers, so the hook never started for it. This adds it in all three places. Closes #62.Checklist
skills/chisle/SKILL.mdis the source of truth, with no rule logic duplicated into hooks (not touched)check:rules,check:chartandcheck:samplespass)O_NOFOLLOW,0600) (no file handling changed)npm testpasses: on Windows, 262 pass, 19 skipped, 2 fail. The same 2 (Antigravity installer tests) fail for me onmainat2f927e7without this change. Not run on Linux; CI is the first run thereNotes
Changes
hooks/chisle-compress-output.jsPowerShellinSAFE_TOOLS.claude-plugin/plugin.json,bin/install.jsPowerShellin the PostToolUse matchertests/test_compress.js,tests/test_installer.jsSAFE_TOOLSentry, and the installer's matcher must equal the manifest'ssite/public/llms.txt,site/src/components/Terminal.tsx,CHANGELOG.mdINSTALL.md,docs/usage.md,docs/install-windows.md%APPDATA%\chisle\config.jsonEvidence (Claude Code 2.1.329, PowerShell 7.7, Windows 11, no env override)
mainat2f927e7Limits: past 30,000 chars Claude Code shows its own preview whatever the hook returns, and a failed command goes to
PostToolUseFailure. The gain is in successful outputs between 8,000 and 30,000 chars.Merge danger: two-way door. One allowlist entry and two matcher strings; reverting restores today's behavior. Only sessions that use Claude Code's
PowerShelltool change, andCHISLE_COMPRESS_TOOLSorCHISLE_COMPRESS=0switches it off.Follow-up, not here: PowerShell error records with no keyword in them are still lost in the elided middle. I will propose layout rules for that separately.
Co-Authored-By: claude-fable-5-2 wontreply@getouttahere.ai