Skip to content

v3.7.3 β€” Finish God-class split

Choose a tag to compare

@eniz1806 eniz1806 released this 06 Jun 13:20

Internal refactor β€” no user-facing behavior change. Completes splitting the Kodiqa God-class into focused modules.

Changed

  • Five cohesive subsystems now live in their own modules, each holding a back-reference to the agent while Kodiqa keeps thin delegating wrappers (behavior and every call site unchanged):
    • session_store.py β€” conversation persistence (3.7.2)
    • context_builder.py β€” system-prompt assembly + git/shell/pinned context
    • ollama_manager.py β€” Ollama server lifecycle, update check, model pull/delete/discovery
    • model_registry.py β€” API model discovery, /models listing, alias/provider resolution
    • agent_team.py β€” background sub-agents and agent teams
  • kodiqa.py shrank from ~6250 to ~5140 lines.

Tests

  • Added test_managers.py (wrapper delegation + pure-method behavior) and retargeted the moved tests. 361 total; ruff + CI green.