mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
12d5421c26
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>