[routes] task_routes.py (1000 lines), shell_routes.py (936 lines), history_routes.py (619 lines), research_routes.py (611 lines), mcp_routes.py (579 lines) all exceed AGENTS.md ~400 line limit #779
Labels
No labels
area:chat
area:core
area:llm
area:routes
area:tools
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sleepy/odysseus#779
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
Multiple route files exceed the ~400 line guideline:
routes/task_routes.pyroutes/shell_routes.pyroutes/history_routes.pyroutes/research_routes.pyroutes/mcp_routes.pySpecific concerns
shell_routes.pymixes PTY streaming, tmux session management, Windows detached mode, SSH remote execution, and package management — 5 distinct concerns in one filetask_routes.pymixes task CRUD, task scheduling UI, scheduled task management, and cross-imports fromroutes/prefs_routes.pyandroutes/email_helpersresearch_routes.pyimportsservices/research/but the deep research flow has inline logicAGENTS.md violation
Cross-route coupling
routes/history_routes.pyimportsfrom routes.session_routes import _verify_session_owner— private function across routesroutes/task_routes.pyimportsfrom routes.prefs_routes import _load_for_user, _save_for_userroutes/cookbook_routes.pyimportsfrom routes.shell_routes import TMUX_LOG_DIRroutes/skills_routes.pyhasfrom routes.prefs_routes import _load_for_user