Commit Graph

26 Commits

Author SHA1 Message Date
anthonyrawlins
e94df4be6b fix(docs): Correct Mermaid syntax with user-provided fixes 2025-07-17 20:21:50 +10:00
anthonyrawlins
786e890808 fix(docs): Correct unterminated link in architecture diagram 2025-07-17 20:19:12 +10:00
Anthony Rawlins
baa26a2aab Update SYSTEM_ARCHITECTURE.md 2025-07-17 20:08:53 +10:00
anthonyrawlins
8934aae6c6 fix(docs): Overwrite diagrams to fix persistent syntax errors 2025-07-17 20:03:54 +10:00
anthonyrawlins
4960f5578f fix(docs): Remove superfluous 'end' from flowchart diagram 2025-07-17 19:44:51 +10:00
anthonyrawlins
4766b6dc19 fix(docs): Correct Mermaid syntax in architecture diagram 2025-07-17 19:42:09 +10:00
anthonyrawlins
3914eafad6 fix(docs): Correct Mermaid syntax in architecture diagram 2025-07-17 15:24:05 +10:00
anthonyrawlins
0eca6c781d docs: Add system architecture and task flow diagrams 2025-07-17 15:21:43 +10:00
anthonyrawlins
6993a7f945 refactor: Parameterize hardcoded values and resolve Integration duality 2025-07-17 15:12:04 +10:00
anthonyrawlins
d1d61c063b Fix critical issues breaking task execution cycle
- Fix branch name validation by hashing peer IDs using SHA256
- Fix Hive API claiming error by using correct 'task_number' parameter
- Improve console app display with 300% wider columns and adaptive width
- Add GitHub CLI integration to sandbox with token authentication
- Enhance system prompt with collaboration guidelines and help escalation
- Fix sandbox lifecycle to preserve work even if PR creation fails

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 22:06:50 +10:00
anthonyrawlins
588e561e9d Merge branch 'main' of https://github.com/anthonyrawlins/bzzz 2025-07-14 20:53:55 +10:00
anthonyrawlins
2d00214e74 Fix GitHub branch detection and complete task execution workflow
- Added dynamic branch detection that falls back to repository default branch
- Fixed sandbox image reference to use local Docker registry
- Completed full task execution pipeline: discovery → claim → sandbox → execution
- Enhanced GitHub client to verify base branch existence and auto-correct
- Successfully tested end-to-end task claiming and execution

🎉 MAJOR MILESTONE: Full Bzzz task execution workflow now functional\!

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 20:52:26 +10:00
anthonyrawlins
054fb67767 Fix Go module imports and add dynamic Ollama model selection with N8N integration
- Fixed module path from github.com/deepblackcloud/bzzz to github.com/anthonyrawlins/bzzz
- Added dynamic Ollama model detection via /api/tags endpoint
- Implemented intelligent model selection through N8N webhook integration
- Added BZZZ_MODEL_SELECTION_WEBHOOK environment variable support
- Fixed GitHub assignee issue by using valid username instead of peer ID
- Added comprehensive model fallback mechanisms
- Updated all import statements across the codebase
- Removed duplicate systemd service file
- Added sandbox execution environment and type definitions

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 20:26:24 +10:00
anthonyrawlins
1d03d6539b Add enhanced mock API with work capture endpoints and comprehensive project documentation
- Enhanced mock-hive-server.py with work submission endpoints
- Added PROGRESS_REPORT.md documenting system accomplishments
- Added PROJECT_TODOS.md with comprehensive task breakdown
- Added trigger_mock_coordination.sh test script

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 12:42:48 +10:00
anthonyrawlins
7e7a61eef1 Improve monitoring dashboard: compact timestamps and real coordination channel metrics
- Replace full timestamps with compact relative time (5s, 2m, 1h)
- Add real coordination channel counters for each bzzz communication type
- Add message rate calculations (msgs/second) for all channels
- Track availability, capability, coordination, antennae, task, and session messages
- Improve activity message extraction for better readability
- Reduce interface space consumption while showing more meaningful data

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 11:37:44 +10:00
anthonyrawlins
605fb92ee7 Add mock API testing infrastructure and monitoring dashboard
- Add mock Hive API server providing fake projects/tasks for real bzzz coordination
- Add comprehensive test suite with task simulator and coordination scenarios
- Add real-time monitoring dashboard (btop/nvtop style) for coordination activity
- Add antennae monitoring and logging infrastructure
- Add systemd configuration scripts and deployment tools
- Update pubsub message types for coordination requests and completion
- Add Docker support and cluster deployment scripts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 11:30:34 +10:00
anthonyrawlins
87819b3c50 feat: Implement advanced cross-repository meta discussion
- Add DependencyDetector for intelligent task relationship analysis
- Implement MetaCoordinator for multi-agent coordination sessions
- Support AI-generated coordination plans and consensus detection
- Add automatic escalation for unresolved coordination conflicts
- Create comprehensive demo showing OAuth implementation coordination
- Enable hop-limited message propagation in Antennae channels
- Support custom dependency rules for project-specific patterns

Features:
- Cross-repository dependency detection (API, database, security)
- Coordination session management with participant tracking
- Intelligent conflict resolution and human escalation
- Session cleanup and lifecycle management
- Production-ready P2P coordination infrastructure

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-13 20:24:55 +10:00
anthonyrawlins
8c73a7d252 feat: Implement proper task filtering and P2P coordination
- Replace stub functions with real capability-based filtering
- Add task matching based on labels and keywords
- Implement P2P task claim announcements
- Support code-generation, debugging, testing, documentation tasks
- Add intelligent task type detection from issue content

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-13 20:05:28 +10:00
anthonyrawlins
e5c43d9079 feat: Replace capability broadcasting with availability broadcasting
- Add availability broadcasting every 30s showing real working status
- Replace constant capability broadcasts with change-based system
- Implement persistent capability storage in ~/.config/bzzz/
- Add SimpleTaskTracker for real task status monitoring
- Only broadcast capabilities on startup or when models/capabilities change
- Add proper Hive API URL configuration and integration
- Fix capability change detection with proper comparison logic

This eliminates P2P mesh spam and provides accurate node availability.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-13 19:53:17 +10:00
Anthony Rawlins
f413a66328 Merge pull request #2 from anthonyrawlins/feature/ollama-reasoning
Feature/ollama reasoning
2025-07-12 20:44:47 +10:00
anthonyrawlins
fafeb1a007 feat: Implement human escalation trigger
This commit introduces the human escalation feature, completing Phase 3 of the development plan.

The agent can now detect when a conversation is unproductive and call for human help.

Key changes:
- A trigger condition has been added to detect keywords like 'stuck' or 'help', or if a conversation exceeds 10 messages.
- When triggered, the agent sends the full task context and conversation history to the N8N webhook for human review.
- An 'IsEscalated' flag is set on the conversation to prevent further automated responses from any agent in the mesh.
- A final message is broadcast to the Antennae channel to inform all peers of the escalation.
2025-07-12 20:44:25 +10:00
anthonyrawlins
26c4b960c8 feat: Implement collaborative reasoning via Antennae
This commit completes Phase 2 of the Ollama integration. The bzzz-agent is now capable of participating in collaborative discussions.

Key changes:
- The pubsub module has been refactored to use a generic message handler, decoupling it from the github integration logic.
- The github integration module now maintains a history of active conversations for each task.
- When a peer sends a message on the meta-discussion channel, the agent will:
  1. Append the message to the conversation history.
  2. Construct a new prompt containing the full context (original task + conversation history).
  3. Use the 'reasoning' module to generate a context-aware response.
  4. Publish the response back to the discussion channel.
- The main application has been updated to wire up the new handlers.

The agent can now intelligently discuss and refine plans with its peers before and during task execution.
2025-07-12 20:38:29 +10:00
anthonyrawlins
c46e18a88a feat: Enhanced meta-discussion system with conversation tracking
- Add Conversation struct to track task discussion history
- Implement handleMetaDiscussion for dynamic peer collaboration
- Enhanced GitHub integration with active discussion management
- Add SetAntennaeMessageHandler for pluggable message handling
- Simplify pubsub message types to generic MetaDiscussion
- Enable real-time collaborative reasoning between AI agents
- Integrate conversation context into Ollama response generation
- Support distributed decision making across P2P network

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 20:37:21 +10:00
anthonyrawlins
c490ad2390 feat: Integrate Ollama reasoning for initial task planning
This commit introduces the new 'reasoning' module, which allows the bzzz-agent to connect to a local Ollama instance.

It also modifies the 'github' integration module to use this new capability. When a task is claimed, the agent now generates a step-by-step execution plan using an Ollama model and publishes this plan to the Antennae meta-discussion channel for peer review before proceeding.

This completes Phase 1 of the Ollama integration plan.
2025-07-12 20:31:38 +10:00
anthonyrawlins
88d54c8408 Add production deployment documentation and systemd service support
- Enhanced README.md with complete deployment instructions
- Added DEPLOYMENT.md with detailed service management guide
- Included systemd service configuration (bzzz.service)
- Added install-service.sh and uninstall-service.sh scripts
- Documented current cluster deployment status:
  * WALNUT: Active service with Node ID 12D3Koo...aXHoUh
  * IRONWOOD: Active service with Node ID 12D3Koo...8QbiTa
  * ACACIA: Active service with Node ID 12D3Koo...Q9YSYt
- Full mesh P2P network operational across all 3 nodes
- Auto-start, auto-restart, logging, and security configuration
- Service management commands and troubleshooting guide

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:52:03 +10:00
anthonyrawlins
e8244a783b Initial commit: Bzzz P2P Task Coordination System with Antennae meta-discussion layer
- libp2p networking with mDNS discovery
- GitHub Issues integration for atomic task management
- PubSub messaging for coordination and meta-discussion
- Hypercore-inspired distributed logging
- Tested P2P network formation between WALNUT and IRONWOOD nodes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:27:12 +10:00