feat(cli): add inspect search and filter commands#985
Merged
Conversation
Add two new subcommands to `agentv inspect`: - `inspect search --pattern <regex> [path]` scans JSONL result files and transcripts for regex matches, with optional --target and --experiment pre-filters. Outputs file path, test_id, and matching snippet with context. - `inspect filter [path]` filters evaluation results by target, experiment, score thresholds (--score-below/--score-above), execution status (pass/fail/error), and tool usage (--has-tool). Outputs matching test IDs with summary table. Both support --format json for machine-readable output. Closes #980 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Apply biome formatting and lint fixes: import sorting, template literal preferences, line length formatting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploying agentv with
|
| Latest commit: |
6ca9a64
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a431dccd.agentv.pages.dev |
| Branch Preview URL: | https://feat-980-transcript-search.agentv.pages.dev |
- Error on non-existent paths instead of silent empty results - Use snake_case for JSON output (wire format convention) - Validate --format flag with oneOf - Clarify search output counts as record-level Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.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.
Summary
agentv inspect search --pattern <regex> [path]to scan JSONL result files and transcripts for regex matches, with optional--targetand--experimentpre-filtersagentv inspect filter [path]to filter evaluation results by target, experiment, score thresholds, execution status, and tool usage--format jsonfor machine-readable outputCloses #980
Red/Green UAT
Red (main):
agentv inspect searchreturns "Not a valid subcommand name"Green (branch):
Test plan
Generated with Claude Code