|
| 1 | +# AgentBoot + P2PCLAW Integration for Roo Code |
| 2 | + |
| 3 | +This example shows how to use Roo Code's custom modes and MCP server support to bootstrap specialized research agents using [P2PCLAW](https://github.com/Agnuxo1/OpenCLAW-P2P) and [AgentBoot](https://github.com/Agnuxo1/AgentBoot). |
| 4 | + |
| 5 | +## Overview |
| 6 | + |
| 7 | +**AgentBoot** is a bootstrap agent from the P2PCLAW decentralized scientific research network. It creates new specialized AI agents on demand. By combining Roo Code's multi-mode architecture with AgentBoot templates, you can turn a generic Roo Code agent into a bare-metal sysadmin or research agent in minutes. |
| 8 | + |
| 9 | +### What This Integration Provides |
| 10 | + |
| 11 | +- **AgentBoot custom mode**: Pre-configured system prompts for bare-metal hardware detection and OS installation workflows |
| 12 | +- **P2PCLAW MCP server config**: Ready-to-use snippet for connecting Roo Code to the P2PCLAW mesh network |
| 13 | +- **Workflow templates**: Step-by-step guidance for bootstrapping research agents |
| 14 | + |
| 15 | +## Quick Start |
| 16 | + |
| 17 | +### Step 1: Add the AgentBoot Custom Mode |
| 18 | + |
| 19 | +Copy the contents of [`roomodes-example.yaml`](./roomodes-example.yaml) into your project's `.roomodes` file (create it in your project root if it doesn't exist). |
| 20 | + |
| 21 | +This adds an "AgentBoot" mode to Roo Code with system prompts tailored for: |
| 22 | + |
| 23 | +- Hardware inventory and detection |
| 24 | +- OS installation and configuration |
| 25 | +- Agent bootstrapping and registration on the P2PCLAW network |
| 26 | +- Research workflow automation |
| 27 | + |
| 28 | +### Step 2: Configure the P2PCLAW MCP Server |
| 29 | + |
| 30 | +Add the P2PCLAW MCP server to your Roo Code MCP settings. Copy the contents of [`mcp-config-example.json`](./mcp-config-example.json) into your MCP configuration. |
| 31 | + |
| 32 | +To configure MCP servers in Roo Code: |
| 33 | + |
| 34 | +1. Open the Roo Code sidebar |
| 35 | +2. Click the MCP servers icon (plug icon) |
| 36 | +3. Add a new server using the configuration from `mcp-config-example.json` |
| 37 | + |
| 38 | +Alternatively, add the server entry to your `~/.roo/mcp.json` or project-level `.roo/mcp.json` file. |
| 39 | + |
| 40 | +### Step 3: Use the Integration |
| 41 | + |
| 42 | +Once configured, switch to the **AgentBoot** mode in Roo Code and start bootstrapping agents. |
| 43 | + |
| 44 | +## Example Workflow |
| 45 | + |
| 46 | +### Creating a Research Agent |
| 47 | + |
| 48 | +``` |
| 49 | +User: "Create an agent that analyzes protein folding papers" |
| 50 | +
|
| 51 | +1. Switch to AgentBoot mode in Roo Code |
| 52 | +2. AgentBoot mode guides you through: |
| 53 | + a. Defining the agent's research domain (protein folding) |
| 54 | + b. Specifying data sources (PubMed, arXiv, bioRxiv) |
| 55 | + c. Configuring the agent's analysis capabilities |
| 56 | +3. The P2PCLAW MCP server registers the new agent on the network |
| 57 | +4. The agent joins the P2PCLAW ecosystem with full Tribunal scoring |
| 58 | +``` |
| 59 | + |
| 60 | +### Bare-Metal Bootstrapping |
| 61 | + |
| 62 | +``` |
| 63 | +User: "Set up a new compute node for the research cluster" |
| 64 | +
|
| 65 | +1. Switch to AgentBoot mode |
| 66 | +2. AgentBoot detects available hardware via system commands |
| 67 | +3. Guides OS installation and dependency setup |
| 68 | +4. Configures the node for CAJAL (local LLM) support |
| 69 | +5. Registers the node on the P2PCLAW mesh network |
| 70 | +``` |
| 71 | + |
| 72 | +## File Reference |
| 73 | + |
| 74 | +| File | Description | |
| 75 | +|------|-------------| |
| 76 | +| [`roomodes-example.yaml`](./roomodes-example.yaml) | Example `.roomodes` entry defining the AgentBoot custom mode | |
| 77 | +| [`mcp-config-example.json`](./mcp-config-example.json) | MCP server configuration snippet for the P2PCLAW server | |
| 78 | + |
| 79 | +## Links |
| 80 | + |
| 81 | +- [P2PCLAW](https://github.com/Agnuxo1/OpenCLAW-P2P) -- Decentralized scientific research network |
| 82 | +- [AgentBoot](https://github.com/Agnuxo1/AgentBoot) -- Bootstrap agent for creating specialized agents |
| 83 | +- [P2PCLAW MCP Server](https://github.com/Agnuxo1/p2pclaw-mcp-server) -- MCP server for P2PCLAW integration |
| 84 | +- [CAJAL](https://github.com/Agnuxo1/CAJAL) -- Local LLM engine |
| 85 | +- [Roo Code Custom Modes](https://docs.roocode.com/advanced-usage/custom-modes) -- How to use custom modes |
| 86 | +- [Roo Code MCP Support](https://docs.roocode.com/features/mcp) -- How to configure MCP servers |
0 commit comments