[chat] builtin_actions.py at 2194 lines massively exceeds AGENTS.md ~400 line limit #723
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#723
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
src/builtin_actions.pyis 2194 lines — 5.5× the AGENTS.md ~400 line limit.The file is a registry of unrelated scheduled actions, each completely independent:
action_tidy_sessions— session cleanupaction_tidy_documents— document cleanupaction_consolidate_memory— memory dedup (~170 lines alone)action_tidy_research— research file cleanupaction_tidy_calendar— calendar dedup (~100 lines)action_summarize_emails/action_draft_email_replies— email processingaction_classify_events— LLM-based calendar event classification (~160 lines)action_mark_email_boundaries— email boundary detection (~200 lines)action_learn_sender_signatures— sender signature learning (~200+ lines)AGENTS.md violations
Suggested fix
Move each action to its own module under
src/builtin_actions/orsrc/actions/:tidy_sessions.py,tidy_documents.py,tidy_calendar.py,tidy_research.pymemory_consolidate.pyssh_command.py,run_script.pyemail_actions.py(summarize, draft, boundaries, signatures)calendar_classify.pybuiltin_actions.pyas a thin registry that imports and re-exports