feat: Base multi-agent collaboration framework#409
Closed
edouard-claude wants to merge 2 commits intosipeed:mainfrom
Closed
feat: Base multi-agent collaboration framework#409edouard-claude wants to merge 2 commits intosipeed:mainfrom
edouard-claude wants to merge 2 commits intosipeed:mainfrom
Conversation
Introduce the foundation for multi-agent collaboration in a new pkg/agent/multi package. This is a non-invasive addition that creates new abstractions without modifying any existing code. - Agent interface with Name, Role, SystemPrompt, Capabilities, Tools - BaseAgent embeddable struct for concrete agent implementations - SharedContext blackboard for inter-agent data sharing and event log - AgentRegistry for lifecycle management and capability-based routing - HandoffRequest/HandoffResult for task delegation between agents - Comprehensive test suite (24 tests) including concurrency and integration
Contributor
|
Thanks for your contribution! We are forming the PicoClaw Dev Group to accelerate the evolution of the project. Would you like to join the PicoClaw Dev Group? If so, please send an email to |
Contributor
Author
|
Closing in favor of #423 After a discussion with @Leeaandrob on the PicoClaw Dev Group Discord, we agreed to consolidate our efforts on a single implementation. Here's why #423 is the better foundation:
Looking forward to contributing directly on #423. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Add the foundation for multi-agent collaboration as described in #294. This introduces a new
pkg/agent/multipackage with:Agentinterface — standard contract withName,Role,SystemPrompt,Capabilities,Tools, andExecuteBaseAgentstruct — embeddable implementation for concrete agent typesSharedContext— thread-safe blackboard pattern for inter-agent data sharing with append-only event logAgentRegistry— agent lifecycle management with capability-based routingHandoffRequest/HandoffResult— task delegation protocol between agentsThis is a non-invasive addition: no existing files were modified. The new package creates abstractions that the existing
SubagentManagerandAgentLoopcan be gradually migrated to use.🗣️ Type of Change
🤖 AI Code Generation
🔗 Related Issue
Closes #294
📚 Technical Context (Skip for Docs)
AgentLoopwithSubagentManagerthat runs goroutine-based subagents with hardcoded system prompts and no shared context. Issue Feature: Base Multi-agent Collaboration Framework & Shared Context #294 requires: (1) Agent interface/struct, (2) Shared context pool, (3) Basic hand-off mechanism, (4) Agent lifecycle management. This PR implements all four requirements as new abstractions inpkg/agent/multi/without modifying existing code, allowing gradual migration.🧪 Test Environment
📸 Evidence (Optional)
Click to view test results
☑️ Checklist