You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
discover: shell-variable-prefixed commands ($RTK …) counted as unsupported #87
These are from the test-harness fixtures (`RTK=/tmp/rtk-upstream/target/release/rtk … $RTK rewrite …`) — not real user commands. They land in transcripts because they were genuinely typed into a shell, but they're noise in the savings report.
Root cause
Discover treats any first-token starting with `$` as a regular command name. The classifier sees `$RTK` as an unknown base command and buckets it under TOP UNHANDLED.
Fix
In `classify_command`, before `extract_base_command` falls through to `Unsupported`: if the first token starts with `$` (shell variable substitution) — return `Classification::Ignored`. The variable's runtime value is opaque to static analysis.
```rust
if cmd_clean.starts_with('$') {
return Classification::Ignored;
}
```
TOP UNHANDLED no longer surfaces $-prefixed commands.
Out of scope
We don't try to resolve `$RTK` to its actual binary. Even if we did, the same binary appears under different names across machines (`RTK`, `CONTEXTCRAWLER`, `CC`, etc.) — best to ignore.
Activity
merge: A discover-hygiene (#81 #86 #87)
feat: add 11 new TOML built-in filters (xcodebuild, jq, basedpyright,…
chore: merge develop into master (rtk-ai#499)
fix(discover): close classifier-hygiene gaps (thehoff#81, thehoff#86, t…