-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
M26Milestone 26: Smart tool output filteringMilestone 26: Smart tool output filteringP1Important priorityImportant prioritysize/Mtoken-savingsToken economy improvementsToken economy improvementstoolsTool execution and MCP integrationTool execution and MCP integration
Description
Parent
Epic: #426
Summary
Group clippy warnings/errors by lint rule, showing count and first occurrence instead of repeating the full diagnostic for each instance.
Expected Savings
70-90% on large codebases with many warnings.
Behavior
# Before: 25 full clippy diagnostics, each 5-10 lines
# After:
clippy::needless_return (12 occurrences)
→ crates/zeph-core/src/agent/mod.rs:45
clippy::unused_imports (8 occurrences)
→ crates/zeph-llm/src/claude.rs:3
error[E0599]: method not found (1)
→ crates/zeph-tools/src/shell.rs:112:
| self.foo()
| ^^^ method not found in `ShellExecutor`
warnings: 20, errors: 1
Rules
- Errors: always show full diagnostic (agent needs details to fix)
- Warnings: group by rule, show count + first location
- On zero warnings/errors: just the summary line
Implementation
ClippyOutputFiltermatchingcargo clippy- Parse
warning[rule]anderror[E####]headers - Group warnings, preserve full error blocks
- Emit summary counts
Acceptance Criteria
- Warnings grouped by rule with count
- Errors shown in full
- Clean output → summary only
- Unit tests
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
M26Milestone 26: Smart tool output filteringMilestone 26: Smart tool output filteringP1Important priorityImportant prioritysize/Mtoken-savingsToken economy improvementsToken economy improvementstoolsTool execution and MCP integrationTool execution and MCP integration