
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-17 11:17:12 +08:00
2026-04-07 21:41:02 +08:00
2026-03-29 01:25:20 +08:00
2026-04-13 22:51:44 +08:00
2026-04-14 14:04:36 +08:00
2026-04-16 10:53:09 +08:00
2026-04-16 14:43:15 +08:00
2026-02-19 11:48:17 +01:00
2026-03-28 00:03:34 +08:00
2026-03-29 22:52:34 +08:00
2026-04-01 20:56:48 +08:00
2026-03-26 10:42:13 +01:00
2026-04-14 14:49:23 +08:00
2026-04-14 14:03:23 +08:00
2026-04-01 20:56:48 +08:00
2026-03-21 17:09:02 +07:00
2026-04-09 10:14:08 +08:00
2026-04-01 23:26:49 +08:00
2026-04-08 18:15:42 +08:00
2026-03-23 12:13:59 +08:00
2026-04-13 22:51:44 +08:00
2026-04-13 22:21:21 +08:00
2026-04-14 23:39:59 +08:00
2026-04-08 14:23:21 +08:00
2026-04-16 22:45:31 +08:00
2026-04-01 22:13:04 +08:00
2026-04-13 11:37:50 +08:00
2026-04-13 22:51:44 +08:00
2026-04-14 15:14:16 +08:00
2026-03-12 13:52:55 +08:00
2026-04-05 09:05:16 +08:00
2026-04-16 23:52:29 +08:00
2026-04-14 10:44:21 +08:00
2026-04-10 00:02:20 +08:00
2026-03-19 18:04:58 +08:00