agents.yaml: fix routing patterns and add debug route #31

Closed
opened 2026-03-14 13:33:35 +00:00 by Rockachopa · 0 comments
Owner

What

The pattern-based routing in config/agents.yaml has gaps:

  1. "fix the bug" doesn't match coder's "fix bug" pattern because "the" breaks the substring match
  2. No debug/test route — can't verify which agent would handle a message without sending it
  3. Patterns are too rigid — substring matching means "what is the weather" matches researcher ("what is") but "explain this code" doesn't match coder

What to do

  1. Add more flexible patterns to coder: fix, debug, bug, implement, refactor
  2. Add a timmy route "message" CLI command that shows which agent would handle a message without actually running it
  3. Consider word-boundary matching instead of raw substring: check if the pattern appears as a word boundary, not just anywhere in the string
  4. Add loader.py support for regex patterns in addition to plain keywords

Files

  • config/agents.yaml — expand patterns
  • src/timmy/agents/loader.py — improve route_request() matching
  • src/timmy/cli.py — add route command

Estimated effort: 1 hour

## What The pattern-based routing in `config/agents.yaml` has gaps: 1. **"fix the bug"** doesn't match coder's "fix bug" pattern because "the" breaks the substring match 2. **No debug/test route** — can't verify which agent would handle a message without sending it 3. **Patterns are too rigid** — substring matching means "what is the weather" matches researcher ("what is") but "explain this code" doesn't match coder ## What to do 1. Add more flexible patterns to coder: `fix`, `debug`, `bug`, `implement`, `refactor` 2. Add a `timmy route "message"` CLI command that shows which agent would handle a message without actually running it 3. Consider word-boundary matching instead of raw substring: check if the pattern appears as a word boundary, not just anywhere in the string 4. Add `loader.py` support for regex patterns in addition to plain keywords ## Files - `config/agents.yaml` — expand patterns - `src/timmy/agents/loader.py` — improve `route_request()` matching - `src/timmy/cli.py` — add `route` command ## Estimated effort: 1 hour
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#31