🎯 Purpose
As PicoClaw evolves, we're seeing growing complexity in the agent layer (pkg/agent/loop.go, now ~1200 LOC).
Current Pain Points
- Monolithic structure -
loop.go mixes routing, LLM iteration, tool execution, context management, summarization
- Reactive context handling - Emergency compression when we hit limits, losing user context abruptly
- Tool coupling - Tools have implicit dependencies on agent loop internals
- Limited observability - Hard to debug execution flow across tool calls and LLM interactions
- Session consistency risks - No explicit serialization, potential race conditions in multi-channel scenarios
- Write-only memory - MEMORY.md exists but agent can't search/retrieve past information
- Flat tool permissions - No per-agent or per-channel tool restrictions
Related Issues & PRs
Roadmap
Issue
PR
🎯 Purpose
As PicoClaw evolves, we're seeing growing complexity in the agent layer (
pkg/agent/loop.go, now ~1200 LOC).Current Pain Points
loop.gomixes routing, LLM iteration, tool execution, context management, summarizationRelated Issues & PRs
Roadmap
Issue
PR