Delete dead code: agents/timmy.py (547 lines of superseded orchestrator) #22

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

What

src/timmy/agents/timmy.py is 547 lines of dead code. It contains:

  • TimmyOrchestrator class — superseded by YAML-driven agents (PR #21)
  • _PERSONAS list — superseded by config/agents.yaml
  • build_timmy_context_sync/async — context building that's no longer wired up
  • format_timmy_prompt — prompt formatting duplicated in loader.py
  • ORCHESTRATOR_PROMPT_BASE — hardcoded prompt now in YAML
  • create_timmy_swarm() — old factory, replaced by load_agents()

Why

This file is the old architecture. The __init__.py still imports from it for backwards compat, but nothing actually uses the classes anymore. It's confusing for any agent reading the codebase.

What to do

  1. Delete src/timmy/agents/timmy.py
  2. Remove imports from src/timmy/agents/__init__.py that reference it
  3. Clean up any remaining references (grep for from timmy.agents.timmy)
  4. Run make test to confirm nothing breaks

Files

  • src/timmy/agents/timmy.py — DELETE
  • src/timmy/agents/__init__.py — remove old imports

Estimated effort: 15 minutes

## What `src/timmy/agents/timmy.py` is 547 lines of dead code. It contains: - `TimmyOrchestrator` class — superseded by YAML-driven agents (PR #21) - `_PERSONAS` list — superseded by `config/agents.yaml` - `build_timmy_context_sync/async` — context building that's no longer wired up - `format_timmy_prompt` — prompt formatting duplicated in `loader.py` - `ORCHESTRATOR_PROMPT_BASE` — hardcoded prompt now in YAML - `create_timmy_swarm()` — old factory, replaced by `load_agents()` ## Why This file is the old architecture. The `__init__.py` still imports from it for backwards compat, but nothing actually uses the classes anymore. It's confusing for any agent reading the codebase. ## What to do 1. Delete `src/timmy/agents/timmy.py` 2. Remove imports from `src/timmy/agents/__init__.py` that reference it 3. Clean up any remaining references (grep for `from timmy.agents.timmy`) 4. Run `make test` to confirm nothing breaks ## Files - `src/timmy/agents/timmy.py` — DELETE - `src/timmy/agents/__init__.py` — remove old imports ## Estimated effort: 15 minutes
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#22