Expand description
Pure-Rust heuristic intent classifier for PM fast-pathing.
Why: Avoids routing trivial conversational inputs through the full
subprocess pipeline.
What: IntentClass enum, classify_intent function.
Test: intent::classifier_tests::*.
Intent classification for PM orchestrator fast-pathing.
Why: The PM system prompt instructs “always use delegate_to_agent”, which
means even trivial conversational inputs like “Hello” trigger sub-agent
spawning — a 60-90s round trip for what should be a sub-second reply.
Research questions (“explain X”, “what does Y do”) similarly don’t need
the full prescriptive subprocess pipeline — they can run in-process with
tools. Classifying input cheaply (no network) lets the controller route
each intent to its lowest-cost path.
What: A pure-Rust heuristic classifier returning IntentClass::Conversational,
IntentClass::Research, or IntentClass::Implementation. No regex crate,
no LLM — just lowercased string matching and word-count gates. Slash
commands are always Implementation so the user can force the full pipeline.
Test: cargo test intent:: exercises greetings, closings, self-questions,
research verbs, question words, action-verb tasks, and edge cases.
See tests module below — fixes #199, #203.
Enums§
- Intent
Class - Classification of user input for PM fast-pathing.
Functions§
- classify_
intent - Classify a user input string into a coarse intent class.