fix: word-boundary routing + debug route command (#31)
All checks were successful
Tests / lint (pull_request) Successful in 2s
Tests / test (pull_request) Successful in 42s

- Replace substring matching with word-boundary regex in route_request()
- "fix the bug" now correctly routes to coder
- Multi-word patterns match if all words appear (any order)
- Add "timmy route" CLI command for debugging routing
- Add route_request_with_match() for pattern visibility
- Expand routing keywords in agents.yaml
- 22 new routing tests, all passing
This commit is contained in:
2026-03-14 19:21:30 -04:00
parent b01c1cb582
commit 67497133fd
4 changed files with 215 additions and 2 deletions

View File

@@ -44,6 +44,11 @@ routing:
- who is
- news about
- latest on
- explain
- how does
- what are
- compare
- difference between
coder:
- code
- implement
@@ -55,6 +60,11 @@ routing:
- programming
- python
- javascript
- fix
- bug
- lint
- type error
- syntax
writer:
- write
- draft
@@ -63,6 +73,11 @@ routing:
- blog post
- readme
- changelog
- edit
- proofread
- rewrite
- format
- template
memory:
- remember
- recall