[claude] Build agent dispatcher — route tasks to Claude Code, Kimi, APIs (#1072) #1123
Reference in New Issue
Block a user
Delete Branch "claude/issue-1072"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1072
Summary
AgentRegistrywith capabilities for Claude Code, Kimi Code, Agent API, and Timmy — each with strengths, Gitea label, interface type, andmax_concurrentlimitTaskTypeenum covering architecture, refactoring, code review, routine coding, research, triage, planning, etc.select_agent()routing table maps task types to best-fit agentsinfer_task_type()heuristic infers task category from title/description keywordsdispatch_task()top-level entry point: auto-selects agent, dispatches via Gitea label + comment (claude-ready/kimi-ready), HTTP API, or local Timmy execution; retries on failure; escalates with Gitea commentwait_for_completion()polls a Gitea issue until closed or timed outFiles changed
src/timmy/dispatcher.py— new dispatcher moduletests/timmy/test_dispatcher.py— 44 unit tests (all passing)