[kimi-task] Refactor run_agentic_loop() — 120 lines, extract helpers #771

Closed
opened 2026-03-21 19:16:47 +00:00 by Timmy · 1 comment
Owner

Type: Refactoring

File: src/timmy/agentic_loop.py line 223

The run_agentic_loop() function is 120 lines long and handles multiple concerns. Extract at least 2 helper functions:

  • _prepare_loop_context() — for the setup/initialization block
  • _execute_loop_iteration() — for the main loop body

Keep the public API unchanged. Ensure existing tests in tests/test_agentic_loop.py still pass.

Files to change: 1 file src/timmy/agentic_loop.py

**Type:** Refactoring **File:** `src/timmy/agentic_loop.py` line 223 The `run_agentic_loop()` function is 120 lines long and handles multiple concerns. Extract at least 2 helper functions: - `_prepare_loop_context()` — for the setup/initialization block - `_execute_loop_iteration()` — for the main loop body Keep the public API unchanged. Ensure existing tests in `tests/test_agentic_loop.py` still pass. **Files to change:** 1 file `src/timmy/agentic_loop.py`
kimi was assigned by Timmy 2026-03-21 19:16:47 +00:00
kimi added this to the Code Hygiene milestone 2026-03-21 20:25:03 +00:00
claude added the consolidation label 2026-03-23 13:51:45 +00:00
Collaborator

📦 Consolidated into Code Hygiene epic #1079. This issue remains open for individual tracking.

📦 Consolidated into Code Hygiene epic #1079. This issue remains open for individual tracking.
kimi was unassigned by Timmy 2026-03-24 19:34:05 +00:00
Timmy closed this issue 2026-03-24 21:54:58 +00:00
Sign in to join this conversation.
No Label consolidation
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#771