Documentation
¶
Overview ¶
Package input classifies user-typed text into intent categories so the TUI can route or hint accordingly. Phase 1.5 #2 (master plan).
The classifier is deliberately heuristic — fast, deterministic, no LLM call. False positives are corrected by the user (they edit and resend); false negatives just mean a missed hint, not a broken interaction.
Three labels:
- KindShell: a literal shell command. Routes to direct exec ($hell).
- KindNL: natural language for the agent. Default.
- KindAmbiguous: looks like it could be either. UI can show a hint ("press $ to run as shell, Enter to ask agent").
We DON'T attempt to be exhaustive. The high-confidence shell signal is strong (leading $, common commands, metacharacters). Everything else stays NL. The Ambiguous label is reserved for short single-word inputs that are ALSO a real command name (`ls`, `git`, `npm`) — those are the only place the user might be unsure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.