picoclaw/pkg/channels
Leandro Barbosa 272536a11a feat: add multi-agent routing with declarative bindings
Implement per-agent workspace/model/session isolation with 7-level
priority routing cascade (peer > parent_peer > guild > team > account >
channel > default). Backward compatible - empty agents.list creates
implicit "main" agent from defaults.

Core components:
- routing/agent_id.go: ID normalization with pre-compiled regex
- routing/session_key.go: 4 DM scope modes with identity links
- routing/route.go: RouteResolver with priority-based binding matcher
- agent/instance.go: Per-agent state (workspace, sessions, tools, model)
- agent/registry.go: Agent lifecycle, route resolution, subagent ACL

Integration:
- config.go: AgentModelConfig (flexible JSON), bindings, session config
- loop.go: Complete rewrite for multi-agent dispatch
- Channel adapters: peer_kind/peer_id metadata (telegram, discord, slack)
- spawn.go: Subagent allowlist enforcement per agent

Validated end-to-end with Discord channel-based bindings, default
fallback routing, and per-agent session persistence.
2026-02-13 12:12:33 -03:00
..
base.go feat: add multi-agent routing with declarative bindings 2026-02-13 12:12:33 -03:00
dingtalk.go refactor(channels): consolidate media handling and improve resource cleanup 2026-02-12 12:46:28 +08:00
discord.go feat: add multi-agent routing with declarative bindings 2026-02-13 12:12:33 -03:00
feishu.go Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00
maixcam.go * First commit 2026-02-09 19:20:19 +08:00
manager.go feat(channels): add Slack channel integration with Socket Mode 2026-02-11 12:48:32 -06:00
qq.go add QQ channel support 2026-02-11 00:00:53 +08:00
slack.go feat: add multi-agent routing with declarative bindings 2026-02-13 12:12:33 -03:00
slack_test.go refactor(channels): consolidate media handling and improve resource cleanup 2026-02-12 12:46:28 +08:00
telegram.go feat: add multi-agent routing with declarative bindings 2026-02-13 12:12:33 -03:00
whatsapp.go Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00