Repository navigation
Conversation
The scripts read the edited file from tool_input.file_path, which is how Claude Code reports an edit. A host that reports edits differently can now pass the files as arguments instead, through the shared hook_file_paths helper, so the scripts never learn a second payload shape. Both handle several files per run, and analyze reports every failure before exiting 2. Both gain tests that stub dart and assert which files it was asked to handle, like the existing suites stub very_good. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 of 6 tasks
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.
Description
analyze.shandformat.shread the edited file fromtool_input.file_path, which is how Claude Code reports an edit. Other hosts report edits differently (Codex'sapply_patchhas nofile_path), and teaching the scripts each host's payload would make them less Claude-first.Instead the scripts now take their files as arguments, through one shared
hook_file_pathshelper:tool_input.file_pathfrom the payload, unchanged for Claude Codeanalyze.shreports every failure, then exits 2A host-specific adapter passes the paths. VeryGoodOpenSource/vgv_ai_cli#51 does that for Codex from the generated
hooks.jsoncommand, so nothing about Codex lives here.Both scripts gain tests (stubbed
dart, as the existing suites stubvery_good); all six suites pass. Replaces #174.Type of Change
feat)fix)refactor)docs)ci)chore)🤖 Generated with Claude Code