
sky5454andClaude Opus 4.6
12d5421c26
refactor(agent): split loop.go into focused sub-packages
Break up the monolithic 4384-line loop.go into 12 focused files:
- loop.go: core AgentLoop struct and main Run loop
- loop_turn.go: turn execution logic (runTurn, askSideQuestion, etc.)
- loop_utils.go: pure utility functions (formatters, helpers)
- loop_init.go: constructor and tool registration
- loop_message.go: message handling (processMessage, routing)
- loop_command.go: command processing (/use, /btw, etc.)
- loop_mcp.go: MCP runtime management
- loop_event.go: event/hook system helpers
- loop_media.go: media resolution and artifact handling
- loop_outbound.go: response publishing
- loop_transcribe.go: audio transcription
- loop_steering.go: steering queue and continuation
- loop_inject.go: setter injection methods
No functional changes - pure code movement with updated imports.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 11:17:12 +08:00
..
2026-04-05 09:05:16 +08:00
2026-04-05 09:05:16 +08:00
2026-04-03 14:15:20 +08:00
2026-04-13 23:02:38 +08:00
2026-04-13 11:04:45 +08:00
2026-04-13 11:04:45 +08:00
2026-04-05 09:05:16 +08:00
2026-04-08 10:57:22 +08:00
2026-04-13 11:04:45 +08:00
2026-04-15 20:18:09 +08:00
2026-04-15 20:18:09 +08:00
2026-03-22 19:21:58 +08:00
2026-03-22 19:21:58 +08:00
2026-04-13 22:51:44 +08:00
2026-04-13 22:51:44 +08:00
2026-04-07 21:41:02 +08:00
2026-03-22 19:21:58 +08:00
2026-04-07 21:41:02 +08:00
2026-03-23 10:54:08 +08:00
2026-03-22 19:21:58 +08:00
2026-04-08 18:15:42 +08:00
2026-04-08 18:15:42 +08:00
2026-04-16 10:53:09 +08:00
2026-04-13 13:25:07 +08:00
2026-04-07 20:07:56 +08:00
2026-04-08 18:15:42 +08:00
2026-04-16 14:43:15 +08:00
2026-04-17 11:17:12 +08:00
2026-04-17 11:17:12 +08:00
2026-04-17 11:17:12 +08:00
2026-04-17 11:17:12 +08:00
2026-04-12 21:37:19 +02:00
2026-04-12 21:37:19 +02:00
2026-03-22 23:36:25 +01:00
2026-04-17 11:17:12 +08:00
2026-04-17 11:17:12 +08:00
2026-04-17 11:17:12 +08:00
2026-04-16 14:43:15 +08:00
2026-04-17 11:17:12 +08:00
2026-04-17 11:17:12 +08:00
2026-04-17 11:17:12 +08:00
2026-04-17 11:17:12 +08:00
2026-02-27 16:35:07 +08:00
2026-02-19 22:05:15 +02:00
2026-04-02 19:26:26 +08:00
2026-03-12 13:52:55 +08:00
2026-04-01 20:56:48 +08:00
2026-04-16 14:43:15 +08:00
2026-04-16 14:43:15 +08:00
2026-03-23 10:54:08 +08:00
2026-04-07 22:12:23 +08:00
2026-03-05 09:51:18 +08:00
2026-03-05 09:51:18 +08:00
2026-04-01 17:19:50 +08:00
2026-04-16 14:43:15 +08:00