Commit Graph

55 Commits

Author SHA1 Message Date
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