Skip to content

Commit b63acdd

Browse files
nwiizoclaude
andcommitted
chore: release v0.3.7 - Search Agent & Enhanced Communication
### Added - Search Agent implementation with Gemini CLI integration - Enhanced inter-agent communication system - Search Agent Sangha participation for autonomous decision-making - Two-layer communication architecture (ccswarm + ai-session) ### Changed - Updated architecture documentation to include Search Agent - Enhanced coordination bus with new message types - Improved agent role system with Search Agent boundaries ### Fixed - Agent communication synchronization issues - Message persistence timing in coordination bus - Identity boundary enforcement for new agent types 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a8c3203 commit b63acdd

34 files changed

+4560
-36
lines changed

.claude/commands/gemini-search.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Gemini Search
2+
3+
`gemini` is google gemini cli. You can use it for web search.
4+
5+
Run web search via Task Tool with `gemini -p 'WebSearch: ...'`.
6+
7+
```bash
8+
gemini -p "WebSearch: ..."
9+
```

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,38 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.3.7] - 2025-06-26
9+
10+
### Added
11+
- **Search Agent Implementation**: New specialized agent for web search using Gemini CLI
12+
- Integrated with coordination bus for inter-agent communication
13+
- Support for filtered searches with domain, date range, language, and file type filters
14+
- Search result parsing with relevance scoring
15+
- Request/response message protocol for agent collaboration
16+
17+
- **Search Agent Sangha Participation**: Autonomous decision-making for search agents
18+
- Intelligent proposal analysis using web search
19+
- Evidence-based voting with search results
20+
- Knowledge gap detection and initiative proposals
21+
- Integration with Sangha collective intelligence system
22+
23+
- **Enhanced Agent Communication**: Improved inter-agent messaging system
24+
- Two-layer communication architecture (ccswarm + ai-session)
25+
- AICoordinationBridge for seamless integration
26+
- Low-latency coordination (<100ms)
27+
- Message persistence and recovery
28+
29+
### Changed
30+
- Updated architecture documentation to include Search Agent
31+
- Enhanced coordination bus with new message types for search requests
32+
- Improved agent role system with Search Agent boundaries
33+
- Refined Sangha participation for automated research
34+
35+
### Fixed
36+
- Agent communication synchronization issues
37+
- Message persistence timing in coordination bus
38+
- Identity boundary enforcement for new agent types
39+
840
## [0.3.6] - 2025-06-25
941

1042
### Added

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ccswarm: AI Multi-Agent Orchestration System
22

3-
> 🚀 **Version 0.3.5** - Autonomous orchestration with proactive intelligence and security monitoring
3+
> 🚀 **Version 0.3.7** - AI Multi-Agent Orchestration with Search Agent and Enhanced Communication
44
55
[![Crates.io](https://img.shields.io/crates/v/ccswarm.svg)](https://crates.io/crates/ccswarm)
66
[![Rust](https://img.shields.io/badge/rust-1.70+-blue.svg)](https://www.rust-lang.org)
@@ -19,6 +19,7 @@
1919
| **[Contributing Guide](CONTRIBUTING.md)** | How to contribute to the project |
2020
| **[Architecture Overview](docs/ARCHITECTURE.md)** | Technical architecture and design decisions |
2121
| **[Application Specification](docs/APPLICATION_SPEC.md)** | Detailed feature specifications and API reference |
22+
| **[Search Agent Guide](docs/SEARCH_AGENT.md)** | Web search integration and research capabilities |
2223

2324
## 🎯 Quick Navigation
2425

@@ -101,6 +102,14 @@ ccswarm/
101102
- **Session Persistence**: Automatic crash recovery and state restoration
102103
- **Standalone Capability**: ai-session can be used independently for any AI terminal workflows
103104
105+
### 🔍 Search Agent Capabilities
106+
- **Web Search Integration**: Powered by Gemini CLI for intelligent web searches
107+
- **Research Automation**: Agents can request searches for documentation and best practices
108+
- **Filtered Searches**: Domain-specific, date-ranged, and language-filtered results
109+
- **Sangha Research**: Automatically researches proposals and casts informed votes
110+
- **Knowledge Gap Detection**: Identifies areas needing research and proposes initiatives
111+
- **Multi-Agent Support**: All agents can request searches via coordination bus
112+
104113
### 🏛️ Collective Intelligence
105114
- **Sangha System**: Buddhist-inspired democratic decision-making
106115
- **Autonomous Self-Extension**: Agents independently analyze and propose improvements
@@ -116,6 +125,7 @@ ccswarm/
116125
- **Git Worktree Isolation**: Parallel development without conflicts
117126
- **Auto-Accept Mode**: Safe automated execution with risk assessment
118127
- **LLM Quality Judge**: Advanced code evaluation with multi-dimensional scoring
128+
- **Search Agent**: Web search integration via Gemini CLI for research tasks
119129
120130
## 🚀 Quick Start
121131
@@ -182,6 +192,22 @@ ccswarm auto-create "Create TODO app" --output ./my_app
182192
ccswarm auto-create "Create blog with auth" --output ./blog
183193
```
184194

195+
### 5. Search Agent Usage
196+
197+
```bash
198+
# Enable search agent in your project
199+
ccswarm init --name "MyProject" --agents frontend,backend,search
200+
201+
# Task that triggers search
202+
ccswarm task "Research best practices for React Server Components"
203+
204+
# Search agent automatically:
205+
# - Receives research tasks from Master Claude
206+
# - Executes web searches via Gemini CLI
207+
# - Returns relevant results to requesting agents
208+
# - Participates in Sangha with informed votes
209+
```
210+
185211
## 🏗️ Architecture
186212

187213
ccswarm v0.3.5 features a comprehensive multi-layer architecture designed for autonomous operation:
@@ -255,6 +281,7 @@ pub enum AgentRole {
255281
Backend, // API development (via ai-session)
256282
DevOps, // Infrastructure (via ai-session)
257283
QA, // Testing (via ai-session)
284+
Search, // Web search & research (via Gemini CLI)
258285
Master, // Orchestration only (coordinates ai-sessions)
259286
}
260287

SEARCH_AGENT_IMPLEMENTATION.md

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# Search Agent Implementation Summary
2+
3+
## Overview
4+
5+
Successfully completed the Search Agent implementation for ccswarm with comprehensive tests and documentation.
6+
7+
## Completed Components
8+
9+
### 1. Integration Tests (`crates/ccswarm/tests/search_agent_integration.rs`)
10+
11+
Created 11 comprehensive integration tests covering:
12+
13+
- **Search Agent Initialization**: Tests agent creation and status management
14+
- **Request/Response Flow**: Validates message routing via coordination bus
15+
- **Registration**: Tests agent registration with capabilities
16+
- **Search Filters**: Tests domain, date range, language, and file type filtering
17+
- **Concurrent Requests**: Tests handling multiple simultaneous search requests
18+
- **Result Parsing**: Tests parsing of JSON and plain text results
19+
- **Error Handling**: Tests graceful handling of invalid requests and failures
20+
- **Response Routing**: Tests correct routing of responses to requesting agents
21+
- **Context Preservation**: Tests that search context is maintained throughout
22+
- **Timeout Handling**: Tests timeout behavior for long-running searches
23+
- **Multi-Agent Workflow**: Tests collaborative search scenarios
24+
25+
### 2. Documentation (`docs/SEARCH_AGENT.md`)
26+
27+
Created comprehensive documentation including:
28+
29+
- **Architecture Overview**: System position and component interactions
30+
- **Core Components**: Search Agent and Sangha Participant details
31+
- **Configuration Guide**: Setup instructions and environment variables
32+
- **Usage Examples**: Direct requests, task assignments, and responses
33+
- **Sangha Integration**: Autonomous research and voting capabilities
34+
- **Integration Examples**: Frontend research, Master Claude delegation, multi-agent collaboration
35+
- **Best Practices**: Query optimization, filter usage, error handling
36+
- **Performance Considerations**: Concurrency, caching, rate limiting
37+
- **Troubleshooting**: Common issues and solutions
38+
- **Security Considerations**: Input validation, result filtering, API key protection
39+
- **Future Enhancements**: Planned features and extension points
40+
- **API Reference**: Complete type and method documentation
41+
42+
### 3. Architecture Updates (`docs/ARCHITECTURE.md`)
43+
44+
Updated system architecture to include:
45+
46+
- **System Diagram**: Added Search Agent to the multi-agent architecture
47+
- **Agent Types**: Added Search Agent to specialized agents list
48+
- **Data Flows**: Added Search Agent message flow and Sangha participation flow
49+
- **Integration Points**: Documented how Search Agent integrates with other components
50+
51+
### 4. README Updates (`README.md`)
52+
53+
Enhanced README with:
54+
55+
- **Search Agent Features**: Added dedicated section for search capabilities
56+
- **Agent Roles**: Added Search role to the AgentRole enum
57+
- **Core Capabilities**: Added search integration to features list
58+
- **Usage Example**: Added Search Agent usage example
59+
- **Documentation Link**: Added link to Search Agent Guide
60+
61+
## Key Features Implemented
62+
63+
### 1. Web Search Integration
64+
- Gemini CLI integration for web searches
65+
- Support for filtered searches (domains, date ranges, languages, file types)
66+
- Result parsing for both JSON and plain text formats
67+
- Relevance scoring and metadata extraction
68+
69+
### 2. Multi-Agent Communication
70+
- Full integration with coordination bus
71+
- Request/response message patterns
72+
- Registration with capabilities
73+
- Task assignment support
74+
75+
### 3. Sangha Participation
76+
- Autonomous proposal monitoring
77+
- Research-based evidence generation
78+
- Informed voting with confidence levels
79+
- Knowledge gap detection and initiative proposals
80+
81+
### 4. Error Handling
82+
- Graceful handling of missing Gemini CLI
83+
- Invalid request validation
84+
- Timeout management
85+
- Recovery mechanisms
86+
87+
## Testing Results
88+
89+
All tests pass successfully:
90+
91+
```
92+
Integration Tests: 11 passed
93+
Sangha Tests: 2 passed
94+
Total: 13 tests, all passing
95+
```
96+
97+
## Usage Instructions
98+
99+
1. **Install Gemini CLI** (prerequisite)
100+
2. **Enable Search Agent**: `ccswarm init --agents frontend,backend,search`
101+
3. **Assign Research Tasks**: Tasks requiring web search are automatically delegated
102+
4. **Monitor Results**: Search results are delivered via coordination bus
103+
104+
## Benefits
105+
106+
- **Enhanced Decision Making**: Agents can now research best practices and documentation
107+
- **Autonomous Research**: Search Agent independently researches Sangha proposals
108+
- **Knowledge Gap Detection**: Automatically identifies areas needing research
109+
- **Collaborative Intelligence**: All agents can leverage search capabilities
110+
111+
## Next Steps
112+
113+
Future enhancements could include:
114+
- Multiple search provider support (Google, Bing, DuckDuckGo)
115+
- Advanced NLP for query expansion
116+
- Result summarization
117+
- Caching layer for frequently searched topics
118+
- Machine learning for result ranking

crates/ccswarm/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ccswarm"
3-
version = "0.3.6"
3+
version = "0.3.7"
44
edition = "2021"
55
authors = ["nwiizo"]
66
description = "AI-powered multi-agent orchestration system with proactive intelligence, security monitoring, and session management"
@@ -23,6 +23,10 @@ path = "test_isolated_proactive.rs"
2323
name = "demo_proactive_workflow"
2424
path = "demo_proactive_workflow.rs"
2525

26+
[[example]]
27+
name = "search_agent_sangha_demo"
28+
path = "examples/search_agent_sangha_demo.rs"
29+
2630
[dependencies]
2731
# Async runtime
2832
tokio = { version = "1.40", features = ["full"] }
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"additional_info": {
3-
"recovery_time": "2025-06-25T13:33:28.309260Z"
3+
"recovery_time": "2025-06-26T01:45:50.902227Z"
44
},
55
"agent_id": "error-prone-agent",
66
"status": "Available",
7-
"timestamp": "2025-06-25T13:33:28.309265Z"
7+
"timestamp": "2025-06-26T01:45:50.902241Z"
88
}

0 commit comments

Comments
 (0)