Skip to content

Comments

refactor(core): decompose agent module into focused submodules#675

Merged
bug-ops merged 1 commit intomainfrom
feat/agent-module-decomposition
Feb 20, 2026
Merged

refactor(core): decompose agent module into focused submodules#675
bug-ops merged 1 commit intomainfrom
feat/agent-module-decomposition

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 20, 2026

Summary

Resolves #622 — decompose the monolithic agent/mod.rs (2602 lines, 142 functions) into focused submodules.

No public API changes. No logic changes — pure code movement.

7 files changed, +1270 -1190, 2033 tests passing.

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy --workspace -- -D warnings passes
  • cargo clippy --workspace --features full -- -D warnings passes
  • cargo nextest run --workspace --lib --bins — 2033 passed, 9 skipped
  • No public API changes verified
  • Performance analysis confirms zero regression

- Rename streaming.rs to tool_execution.rs (#648)
- Extract message queue logic to message_queue.rs (#649)
- Extract builder methods to builder.rs
- Extract slash command handlers to commands.rs
- Extract utility helpers to utils.rs
- Reduce mod.rs from 2602 to 459 non-test lines (#650)
@bug-ops bug-ops force-pushed the feat/agent-module-decomposition branch from d32eeac to b1d7689 Compare February 20, 2026 00:49
@bug-ops bug-ops enabled auto-merge (squash) February 20, 2026 00:49
@bug-ops bug-ops merged commit bcc26a0 into main Feb 20, 2026
20 checks passed
@bug-ops bug-ops deleted the feat/agent-module-decomposition branch February 20, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core documentation Improvements or additions to documentation refactor rust size/XL

Projects

None yet

1 participant