feat(sight): add --exclude filter to audit CLI for noise reduction#792
Open
jfeng18 wants to merge 1 commit into
Open
feat(sight): add --exclude filter to audit CLI for noise reduction#792jfeng18 wants to merge 1 commit into
jfeng18 wants to merge 1 commit into
Conversation
Add repeatable --exclude <pattern> flag that hides process_action events whose filename/args contain the substring. Cosh editor-detection noise (command -v cursor/vim/...) typically accounts for 60%+ of audit events; --exclude "command -v" makes the output usable. - Empty and whitespace-only patterns are silently ignored - LLM events are never excluded (only ProcessAction matched) - Hidden count reported in text header and JSON stderr - --summary + --exclude warns that summary is unfiltered Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6b23937 to
ea2364c
Compare
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.
Summary
Add
--exclude <pattern>flag (repeatable) toagentsight auditthat hides process_action events whose filename or args contain the substring.Dog-food testing showed 60%+ of audit events are cosh editor-detection noise (
command -v cursor/vim/emacs/...at every startup). This makes audit output unusable without expert knowledge of--type llm.Usage
Behavior
ProcessActionevents are matched;LlmCallevents are never excluded--summary+--exclude: warns that summary is unfiltered--exclude: identical behavior to before (zero filtering)What's NOT changed
Verification (ECS, 10 test cases)
--exclude ""--exclude " "--type llm+ exclude🤖 Generated with Claude Code