picoclaw/pkg
yinwm 0cce9fc905 refactor(agent): extract reusable tool loop and make subagents independent
Extract core LLM tool loop logic into shared RunToolLoop function that can be
used by both main agent and subagents. Subagents now run their own tool loop
with dedicated tool registry, enabling full independence.

Key changes:
- New pkg/tools/toolloop.go with reusable tool execution logic
- Subagents use message tool to communicate directly with users
- Heartbeat processing is now stateless via ProcessHeartbeat
- Simplified system message routing without result forwarding
- Shared tool registry creation for consistency between agents

This architecture follows openclaw's design where async tools notify via
bus and subagents handle their own user communication.
2026-02-13 14:39:39 +08:00
..
agent refactor(agent): extract reusable tool loop and make subagents independent 2026-02-13 14:39:39 +08:00
auth fix(auth): handle string interval in device-code login 2026-02-12 02:22:59 -05:00
bus * First commit 2026-02-09 19:20:19 +08:00
channels refactor(heartbeat): add configurable interval and channel-aware routing 2026-02-13 11:13:32 +08:00
config refactor(heartbeat): add configurable interval and channel-aware routing 2026-02-13 11:13:32 +08:00
cron Enhance CronTool to support executing shell commands and update job handling 2026-02-12 20:21:49 +05:30
heartbeat refactor(agent): extract reusable tool loop and make subagents independent 2026-02-13 14:39:39 +08:00
logger * First commit 2026-02-09 19:20:19 +08:00
migrate feat(migrate): add picoclaw migrate command for OpenClaw workspace migration 2026-02-11 12:48:16 -06:00
providers feat: merge heartbeat service improvements from feat-heartbeat branch 2026-02-13 01:42:22 +08:00
session fix(cron): add one-time reminders and fix data paths to workspace 2026-02-11 20:31:41 +08:00
skills Add memory system, dynamic tool loading, and fix logging issues 2026-02-11 00:14:33 +08:00
state refactor(heartbeat): add configurable interval and channel-aware routing 2026-02-13 11:13:32 +08:00
tools refactor(agent): extract reusable tool loop and make subagents independent 2026-02-13 14:39:39 +08:00
utils refactor(channels): consolidate media handling and improve resource cleanup 2026-02-12 12:46:28 +08:00
voice Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00