Rename openclaw to hermes across documentation and workflows
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
Documentation Validation / validate-policies-strict (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled
Blockchain Synchronization Verification / sync-verification (push) Successful in 11s
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 1m36s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 1m24s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 1m25s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 5s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 3s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Failing after 1m28s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 21s
Smart Contract Tests / test-foundry (push) Failing after 20s
Smart Contract Tests / lint-solidity (push) Successful in 30s
Smart Contract Tests / deploy-contracts (push) Successful in 1m40s
Systemd Sync / sync-systemd (push) Successful in 26s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 4s

- Update workflow paths from docs/openclaw to docs/hermes
- Rename skill prefixes from openclaw-* to hermes-*
- Update agent skill references in refactoring and analysis docs
- Rename OPENCLAW_AITBC_MASTERY_PLAN.md to reflect hermes branding
- Update CLI examples and command references throughout documentation
This commit is contained in:
aitbc
2026-05-07 11:42:06 +02:00
parent 151aae1916
commit 852f2e5a8a
307 changed files with 3333 additions and 2837 deletions

View File

@@ -72,7 +72,7 @@ jobs:
docs/guides/**/*.md docs/guides/**/*.md
docs/infrastructure/**/*.md docs/infrastructure/**/*.md
docs/mining/**/*.md docs/mining/**/*.md
docs/openclaw/**/*.md docs/hermes/**/*.md
docs/packages/**/*.md docs/packages/**/*.md
docs/project/**/*.md docs/project/**/*.md
docs/reference/**/*.md docs/reference/**/*.md
@@ -120,7 +120,7 @@ jobs:
docs/guides/README.md docs/guides/README.md
docs/infrastructure/README.md docs/infrastructure/README.md
docs/mining/README.md docs/mining/README.md
docs/openclaw/README.md docs/hermes/README.md
docs/packages/README.md docs/packages/README.md
docs/project/README.md docs/project/README.md
docs/reference/README.md docs/reference/README.md

View File

@@ -18,13 +18,13 @@ version: 1.0
5. **aitbc-node-coordinator** - Cross-node coordination and messaging 5. **aitbc-node-coordinator** - Cross-node coordination and messaging
6. **aitbc-analytics-analyzer** - Blockchain analytics and performance metrics 6. **aitbc-analytics-analyzer** - Blockchain analytics and performance metrics
#### **OpenClaw Agent Skills (6/6)** #### **hermes Agent Skills (6/6)**
7. **openclaw-agent-communicator** - Agent message handling and responses 7. **hermes-agent-communicator** - Agent message handling and responses
8. **openclaw-session-manager** - Session creation and context management 8. **hermes-session-manager** - Session creation and context management
9. **openclaw-coordination-orchestrator** - Multi-agent workflow coordination 9. **hermes-coordination-orchestrator** - Multi-agent workflow coordination
10. **openclaw-performance-optimizer** - Agent performance tuning and optimization 10. **hermes-performance-optimizer** - Agent performance tuning and optimization
11. **openclaw-error-handler** - Error detection and recovery procedures 11. **hermes-error-handler** - Error detection and recovery procedures
12. **openclaw-agent-testing-skill** - Agent communication validation and performance testing 12. **hermes-agent-testing-skill** - Agent communication validation and performance testing
--- ---
@@ -134,7 +134,7 @@ version: 1.0
### **Before (Legacy)** ### **Before (Legacy)**
``` ```
# Mixed responsibilities, unclear output # Mixed responsibilities, unclear output
openclaw agent --agent main --message "Check blockchain and process data" --thinking high hermes agent --agent main --message "Check blockchain and process data" --thinking high
cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli chain cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli chain
``` ```
@@ -143,7 +143,7 @@ cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli chain
# Atomic responsibilities, structured output # Atomic responsibilities, structured output
@aitbc-wallet-manager Create wallet "trading-wallet" with password "secure123" @aitbc-wallet-manager Create wallet "trading-wallet" with password "secure123"
@aitbc-transaction-processor Send 100 AIT from trading-wallet to address @aitbc-transaction-processor Send 100 AIT from trading-wallet to address
@openclaw-agent-communicator Send message to main agent: "Analyze transaction results" @hermes-agent-communicator Send message to main agent: "Analyze transaction results"
``` ```
--- ---

View File

@@ -41,20 +41,20 @@ version: 1.0
#### **CURRENT ACTIVE SKILL SET** #### **CURRENT ACTIVE SKILL SET**
The active OpenClaw-style split skills now live in `.windsurf/skills/` and include: The active hermes-style split skills now live in `.windsurf/skills/` and include:
- `openclaw-agent-communicator` - `hermes-agent-communicator`
- `openclaw-session-manager` - `hermes-session-manager`
- `openclaw-coordination-orchestrator` - `hermes-coordination-orchestrator`
- `openclaw-performance-optimizer` - `hermes-performance-optimizer`
- `openclaw-error-handler` - `hermes-error-handler`
- `openclaw-agent-testing-skill` - `hermes-agent-testing-skill`
--- ---
## Current Skill Analysis ## Current Skill Analysis
### File: `openclaw-aitbc.md` (archived legacy) ### File: `hermes-aitbc.md` (archived legacy)
#### **IDENTIFIED WEAKNESSES:** #### **IDENTIFIED WEAKNESSES:**
@@ -65,22 +65,22 @@ The active OpenClaw-style split skills now live in `.windsurf/skills/` and inclu
#### **RECOMMENDED ACTION:** #### **RECOMMENDED ACTION:**
- **ARCHIVE** - This skill is deprecated and serves no purpose - **ARCHIVE** - This skill is deprecated and serves no purpose
- **Migration already completed** - The active skill set now uses the atomic OpenClaw skills listed below - **Migration already completed** - The active skill set now uses the atomic hermes skills listed below
#### **CURRENT ACTIVE SKILL SET** #### **CURRENT ACTIVE SKILL SET**
- `openclaw-agent-communicator` - `hermes-agent-communicator`
- `openclaw-session-manager` - `hermes-session-manager`
- `openclaw-coordination-orchestrator` - `hermes-coordination-orchestrator`
- `openclaw-performance-optimizer` - `hermes-performance-optimizer`
- `openclaw-error-handler` - `hermes-error-handler`
- `openclaw-agent-testing-skill` - `hermes-agent-testing-skill`
--- ---
## Current Skill Analysis ## Current Skill Analysis
### File: `openclaw-management.md` (archived legacy) ### File: `hermes-management.md` (archived legacy)
#### **IDENTIFIED WEAKNESSES:** #### **IDENTIFIED WEAKNESSES:**
@@ -98,22 +98,22 @@ The active OpenClaw-style split skills now live in `.windsurf/skills/` and inclu
#### **RECOMMENDED SPLIT INTO ATOMIC SKILLS:** #### **RECOMMENDED SPLIT INTO ATOMIC SKILLS:**
1. `openclaw-agent-communicator` - Agent message handling and responses 1. `hermes-agent-communicator` - Agent message handling and responses
2. `openclaw-session-manager` - Session creation and context management 2. `hermes-session-manager` - Session creation and context management
3. `openclaw-coordination-orchestrator` - Multi-agent workflow coordination 3. `hermes-coordination-orchestrator` - Multi-agent workflow coordination
4. `openclaw-performance-optimizer` - Agent performance tuning and optimization 4. `hermes-performance-optimizer` - Agent performance tuning and optimization
5. `openclaw-error-handler` - Error detection and recovery procedures 5. `hermes-error-handler` - Error detection and recovery procedures
#### **CURRENT ACTIVE SKILL SET** #### **CURRENT ACTIVE SKILL SET**
These are the actual active files in `.windsurf/skills/`: These are the actual active files in `.windsurf/skills/`:
- `openclaw-agent-communicator` - `hermes-agent-communicator`
- `openclaw-session-manager` - `hermes-session-manager`
- `openclaw-coordination-orchestrator` - `hermes-coordination-orchestrator`
- `openclaw-performance-optimizer` - `hermes-performance-optimizer`
- `openclaw-error-handler` - `hermes-error-handler`
- `openclaw-agent-testing-skill` - `hermes-agent-testing-skill`
--- ---

View File

@@ -1,10 +1,10 @@
--- ---
description: Comprehensive OpenClaw agent training plan for AITBC software mastery from beginner to expert level description: Comprehensive hermes agent training plan for AITBC software mastery from beginner to expert level
title: OPENCLAW_AITBC_MASTERY_PLAN title: hermes_AITBC_MASTERY_PLAN
version: 2.2 version: 2.2
--- ---
# OpenClaw AITBC Mastery Plan # hermes AITBC Mastery Plan
## Quick Navigation ## Quick Navigation
- [Purpose](#purpose) - [Purpose](#purpose)
@@ -27,7 +27,7 @@ version: 2.2
--- ---
## Purpose ## Purpose
Comprehensive training plan for OpenClaw agents to master AITBC software on both nodes (aitbc and aitbc1) using CLI tools, progressing from basic operations to expert-level blockchain and AI operations. Comprehensive training plan for hermes agents to master AITBC software on both nodes (aitbc and aitbc1) using CLI tools, progressing from basic operations to expert-level blockchain and AI operations.
## Overview ## Overview
@@ -93,7 +93,7 @@ ssh aitbc1 'cd /opt/aitbc && git reset --hard origin/main'
- **Marketplace**: [`multi-node-blockchain-marketplace.md`](../workflows/multi-node-blockchain-marketplace.md) - GPU provider testing and AI operations - **Marketplace**: [`multi-node-blockchain-marketplace.md`](../workflows/multi-node-blockchain-marketplace.md) - GPU provider testing and AI operations
- **Production**: [`multi-node-blockchain-production.md`](../workflows/multi-node-blockchain-production.md) - Production deployment and scaling - **Production**: [`multi-node-blockchain-production.md`](../workflows/multi-node-blockchain-production.md) - Production deployment and scaling
- **Reference**: [`multi-node-blockchain-reference.md`](../workflows/multi-node-blockchain-reference.md) - Configuration reference - **Reference**: [`multi-node-blockchain-reference.md`](../workflows/multi-node-blockchain-reference.md) - Configuration reference
- **OpenClaw Setup**: [`multi-node-blockchain-setup-openclaw.md`](../workflows/multi-node-blockchain-setup-openclaw.md) - OpenClaw-specific deployment - **hermes Setup**: [`multi-node-blockchain-setup-hermes.md`](../workflows/multi-node-blockchain-setup-hermes.md) - hermes-specific deployment
- **Communication Test**: [`blockchain-communication-test.md`](../workflows/blockchain-communication-test.md) - Cross-node verification - **Communication Test**: [`blockchain-communication-test.md`](../workflows/blockchain-communication-test.md) - Cross-node verification
- **Scenario Validation**: [`VALIDATION.md`](../scenarios/VALIDATION.md) - Canonical 3-node validation guide and harness - **Scenario Validation**: [`VALIDATION.md`](../scenarios/VALIDATION.md) - Canonical 3-node validation guide and harness
@@ -179,16 +179,16 @@ cd /opt/aitbc/scripts/training
- **CLI Commands**: - **CLI Commands**:
```bash ```bash
# Wallet creation (non-interactive) # Wallet creation (non-interactive)
./aitbc-cli wallet create --name openclaw-wallet --password <password> --yes --no-confirm ./aitbc-cli wallet create --name hermes-wallet --password <password> --yes --no-confirm
./aitbc-cli wallet list --output json ./aitbc-cli wallet list --output json
# Balance checking (debug mode) # Balance checking (debug mode)
./aitbc-cli wallet balance --name openclaw-wallet --verbose ./aitbc-cli wallet balance --name hermes-wallet --verbose
./aitbc-cli wallet balance --all --format table ./aitbc-cli wallet balance --all --format table
# Node-specific operations (with debug) # Node-specific operations (with debug)
NODE_URL=http://10.1.223.40:8006 ./aitbc-cli wallet balance --name openclaw-wallet --verbose # Genesis node NODE_URL=http://10.1.223.40:8006 ./aitbc-cli wallet balance --name hermes-wallet --verbose # Genesis node
NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli wallet balance --name openclaw-wallet --debug # Follower node NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli wallet balance --name hermes-wallet --debug # Follower node
``` ```
#### **1.3 Basic Transaction Operations** #### **1.3 Basic Transaction Operations**
@@ -196,8 +196,8 @@ cd /opt/aitbc/scripts/training
- **CLI Commands**: - **CLI Commands**:
```bash ```bash
# Basic transactions (non-interactive) # Basic transactions (non-interactive)
./aitbc-cli wallet send --from openclaw-wallet --to recipient --amount 100 --password <password> --yes --no-confirm ./aitbc-cli wallet send --from hermes-wallet --to recipient --amount 100 --password <password> --yes --no-confirm
./aitbc-cli wallet transactions --name openclaw-wallet --limit 10 --output json ./aitbc-cli wallet transactions --name hermes-wallet --limit 10 --output json
# Cross-node transactions (debug mode) # Cross-node transactions (debug mode)
NODE_URL=http://10.1.223.40:8006 ./aitbc-cli wallet send --from wallet1 --to wallet2 --amount 50 --verbose --dry-run NODE_URL=http://10.1.223.40:8006 ./aitbc-cli wallet send --from wallet1 --to wallet2 --amount 50 --verbose --dry-run
@@ -240,9 +240,9 @@ cd /opt/aitbc/scripts/training
- **CLI Commands**: - **CLI Commands**:
```bash ```bash
# Advanced wallet operations (non-interactive) # Advanced wallet operations (non-interactive)
./aitbc-cli wallet backup --name openclaw-wallet --yes --no-confirm ./aitbc-cli wallet backup --name hermes-wallet --yes --no-confirm
./aitbc-cli wallet restore --name backup-wallet --force --yes ./aitbc-cli wallet restore --name backup-wallet --force --yes
./aitbc-cli wallet export --name openclaw-wallet --output json ./aitbc-cli wallet export --name hermes-wallet --output json
# Multi-wallet coordination (debug mode) # Multi-wallet coordination (debug mode)
./aitbc-cli wallet sync --all --verbose ./aitbc-cli wallet sync --all --verbose
@@ -278,7 +278,7 @@ cd /opt/aitbc/scripts/training
./aitbc-cli blockchain contract call --address <address> --method <method> --verbose ./aitbc-cli blockchain contract call --address <address> --method <method> --verbose
# Agent messaging contracts (debug mode) # Agent messaging contracts (debug mode)
./aitbc-cli agent message --to <agent_id> --content "Hello from OpenClaw" --debug ./aitbc-cli agent message --to <agent_id> --content "Hello from hermes" --debug
./aitbc-cli agent messages --from <agent_id> --output json ./aitbc-cli agent messages --from <agent_id> --output json
``` ```
@@ -720,7 +720,7 @@ export EXCHANGE_URL=http://localhost:8001 # Exchange API
export OLLAMA_URL=http://localhost:11434 # Ollama export OLLAMA_URL=http://localhost:11434 # Ollama
# Authentication # Authentication
export WALLET_NAME=openclaw-wallet export WALLET_NAME=hermes-wallet
export WALLET_PASSWORD=<secure_password> export WALLET_PASSWORD=<secure_password>
``` ```
@@ -806,7 +806,7 @@ grep "Performance benchmark" /var/log/aitbc/training_stage*.log
## 🎓 **Certification & Recognition** ## 🎓 **Certification & Recognition**
### **OpenClaw AITBC Master Certification** ### **hermes AITBC Master Certification**
**Requirements**: **Requirements**:
- Complete all 5 training stages via script execution - Complete all 5 training stages via script execution
- Pass final certification exam (>95% score) simulated in Stage 5 - Pass final certification exam (>95% score) simulated in Stage 5
@@ -822,10 +822,10 @@ grep "Performance benchmark" /var/log/aitbc/training_stage*.log
5. **Log Review**: Comprehensive analysis of training performance logs 5. **Log Review**: Comprehensive analysis of training performance logs
### **Certification Benefits** ### **Certification Benefits**
- **Expert Recognition**: Certified OpenClaw AITBC Master - **Expert Recognition**: Certified hermes AITBC Master
- **Advanced Access**: Full system access and permissions - **Advanced Access**: Full system access and permissions
- **Economic Authority**: Economic modeling and optimization rights - **Economic Authority**: Economic modeling and optimization rights
- **Teaching Authority**: Qualified to train other OpenClaw agents - **Teaching Authority**: Qualified to train other hermes agents
- **Automation Privileges**: Ability to create custom training scripts - **Automation Privileges**: Ability to create custom training scripts
### **Post-Certification Training** ### **Post-Certification Training**
@@ -893,7 +893,7 @@ iptables -L | grep 8006
curl http://localhost:11434/api/tags curl http://localhost:11434/api/tags
# Verify wallet balance # Verify wallet balance
/opt/aitbc/aitbc-cli balance --name openclaw-trainee /opt/aitbc/aitbc-cli balance --name hermes-trainee
# Check AI service status # Check AI service status
/opt/aitbc/aitbc-cli ai service status --name agent-coordinator /opt/aitbc/aitbc-cli ai service status --name agent-coordinator
@@ -923,10 +923,10 @@ top -bn1 | head -20
# Remove existing wallet if needed # Remove existing wallet if needed
# WARNING: Only for training wallets # WARNING: Only for training wallets
rm -rf /var/lib/aitbc/keystore/openclaw-trainee* rm -rf /var/lib/aitbc/keystore/hermes-trainee*
# Recreate with verbose output # Recreate with verbose output
/opt/aitbc/aitbc-cli create --name openclaw-trainee --password trainee123 --verbose /opt/aitbc/aitbc-cli create --name hermes-trainee --password trainee123 --verbose
``` ```
### **Performance Optimization** ### **Performance Optimization**
@@ -1048,10 +1048,10 @@ curl http://10.1.223.40:8001/health
**Training Plan Version**: 2.1 **Training Plan Version**: 2.1
**Last Updated**: 2026-05-02 **Last Updated**: 2026-05-02
**Target Audience**: OpenClaw Agents **Target Audience**: hermes Agents
**Difficulty**: Beginner to Expert (5 Stages) **Difficulty**: Beginner to Expert (5 Stages)
**Estimated Duration**: 4 weeks **Estimated Duration**: 4 weeks
**Certification**: OpenClaw AITBC Master **Certification**: hermes AITBC Master
**Training Scripts**: Complete automation suite available at `/opt/aitbc/scripts/training/` **Training Scripts**: Complete automation suite available at `/opt/aitbc/scripts/training/`
--- ---
@@ -1120,7 +1120,7 @@ All training stages are now fully automated with executable scripts:
- **Log Analysis**: Comprehensive performance tracking and optimization - **Log Analysis**: Comprehensive performance tracking and optimization
### **Immediate Deployment** ### **Immediate Deployment**
OpenClaw agents can begin training immediately using: hermes agents can begin training immediately using:
```bash ```bash
cd /opt/aitbc/scripts/training cd /opt/aitbc/scripts/training
./master_training_launcher.sh ./master_training_launcher.sh

View File

@@ -9,7 +9,7 @@ This reference guide covers AI operations in the AITBC blockchain network, inclu
- [Marketplace Operations](#marketplace-operations) - [Marketplace Operations](#marketplace-operations)
- [GPU Provider Marketplace](#gpu-provider-marketplace) - [GPU Provider Marketplace](#gpu-provider-marketplace)
- [Agent AI Workflows](#agent-ai-workflows) - [Agent AI Workflows](#agent-ai-workflows)
- [OpenClaw Agent Coordination](#openclaw-agent-coordination) - [Hermes Agent Coordination](#hermes-agent-coordination)
- [Cross-Node AI Coordination](#cross-node-ai-coordination) - [Cross-Node AI Coordination](#cross-node-ai-coordination)
- [Blockchain Integration](#blockchain-integration) - [Blockchain Integration](#blockchain-integration)
- [AI Economics and Pricing](#ai-economics-and-pricing) - [AI Economics and Pricing](#ai-economics-and-pricing)
@@ -245,44 +245,44 @@ python3 /opt/aitbc/plugins/ollama/client_plugin.py --model llama2 --prompt "Gene
./aitbc-cli agent execute --name "ai-coordinator" --wallet genesis-ops --priority high ./aitbc-cli agent execute --name "ai-coordinator" --wallet genesis-ops --priority high
``` ```
## OpenClaw Agent Coordination ## Hermes Agent Coordination
> **Canonical validation**: Use [`docs/scenarios/VALIDATION.md`](../../docs/scenarios/VALIDATION.md) and `scripts/workflow/44_comprehensive_multi_node_scenario.sh` for the current 3-node test path. > **Canonical validation**: Use [`docs/scenarios/VALIDATION.md`](../../docs/scenarios/VALIDATION.md) and `scripts/workflow/44_comprehensive_multi_node_scenario.sh` for the current 3-node test path.
### OpenClaw AI Agent Setup ### Hermes AI Agent Setup
```bash ```bash
# Initialize OpenClaw AI agent # Initialize Hermes AI agent
openclaw agent init --name ai-inference-agent --type ai-worker hermes agent init --name ai-inference-agent --type ai-worker
# Configure agent for AI operations # Configure agent for AI operations
openclaw agent configure --name ai-inference-agent --ai-model "llama2" --gpu-requirement 1 hermes agent configure --name ai-inference-agent --ai-model "llama2" --gpu-requirement 1
# Deploy agent to node # Deploy agent to node
openclaw agent deploy --name ai-inference-agent --target-node aitbc1 hermes agent deploy --name ai-inference-agent --target-node aitbc1
``` ```
### OpenClaw AI Workflows ### Hermes AI Workflows
```bash ```bash
# Execute AI workflow via OpenClaw # Execute AI workflow via Hermes
openclaw execute --agent AI-InferenceAgent --task run_inference --prompt "Generate image" --model "stable-diffusion" hermes execute --agent AI-InferenceAgent --task run_inference --prompt "Generate image" --model "stable-diffusion"
# Coordinate multi-agent AI pipeline # Coordinate multi-agent AI pipeline
openclaw execute --agent CoordinatorAgent --task ai_pipeline --workflow "preprocess->inference->postprocess" hermes execute --agent CoordinatorAgent --task ai_pipeline --workflow "preprocess->inference->postprocess"
# Monitor agent AI performance # Monitor agent AI performance
openclaw monitor --agent AI-InferenceAgent --metrics gpu,throughput,errors hermes monitor --agent AI-InferenceAgent --metrics gpu,throughput,errors
``` ```
### Cross-Agent Communication ### Cross-Agent Communication
```bash ```bash
# Send AI job result to another agent # Send AI job result to another agent
openclaw message --from AI-InferenceAgent --to Data-ProcessingAgent --payload "job_id:123,result:image.png" hermes message --from AI-InferenceAgent --to Data-ProcessingAgent --payload "job_id:123,result:image.png"
# Request resources from coordinator # Request resources from coordinator
openclaw message --from AI-TrainingAgent --to Resource-CoordinatorAgent --payload "request:gpu,count:2,duration:3600" hermes message --from AI-TrainingAgent --to Resource-CoordinatorAgent --payload "request:gpu,count:2,duration:3600"
# Broadcast job completion # Broadcast job completion
openclaw broadcast --from AI-InferenceAgent --channel ai-jobs --payload "job_123:completed" hermes broadcast --from AI-InferenceAgent --channel ai-jobs --payload "job_123:completed"
``` ```
## Cross-Node AI Coordination ## Cross-Node AI Coordination
@@ -664,23 +664,23 @@ ssh gitea-runner 'ollama pull mistral'
./aitbc-cli market order status --order-id "order_456" ./aitbc-cli market order status --order-id "order_456"
``` ```
### Workflow 5: OpenClaw Multi-Agent Pipeline ### Workflow 5: Hermes Multi-Agent Pipeline
```bash ```bash
# 1. Initialize agents # 1. Initialize agents
openclaw agent init --name Data-Preprocessor --type data-worker hermes agent init --name Data-Preprocessor --type data-worker
openclaw agent init --name AI-Inference --type ai-worker hermes agent init --name AI-Inference --type ai-worker
openclaw agent init --name Result-Postprocessor --type data-worker hermes agent init --name Result-Postprocessor --type data-worker
# 2. Configure agents # 2. Configure agents
openclaw agent configure --name AI-Inference --ai-model "llama2" --gpu-requirement 1 hermes agent configure --name AI-Inference --ai-model "llama2" --gpu-requirement 1
# 3. Execute pipeline # 3. Execute pipeline
openclaw execute --agent CoordinatorAgent --task run_pipeline \ hermes execute --agent CoordinatorAgent --task run_pipeline \
--workflow "Data-Preprocessor->AI-Inference->Result-Postprocessor" \ --workflow "Data-Preprocessor->AI-Inference->Result-Postprocessor" \
--input "data.json" --output "results.json" --input "data.json" --output "results.json"
# 4. Monitor pipeline # 4. Monitor pipeline
openclaw monitor --pipeline pipeline_123 --realtime hermes monitor --pipeline pipeline_123 --realtime
``` ```
## Best Practices ## Best Practices

View File

@@ -111,7 +111,7 @@ rg "password|secret|token|key" --type py --type yaml /opt/aitbc/
rg "blockchain|chain\.db|genesis|mining" --type py /opt/aitbc/ rg "blockchain|chain\.db|genesis|mining" --type py /opt/aitbc/
# Find AI/ML related code # Find AI/ML related code
rg "openclaw|ollama|model|inference" --type py /opt/aitbc/ rg "hermes|ollama|model|inference" --type py /opt/aitbc/
# Find marketplace code # Find marketplace code
rg "marketplace|listing|bid|gpu" --type py /opt/aitbc/ rg "marketplace|listing|bid|gpu" --type py /opt/aitbc/

View File

@@ -26,7 +26,7 @@ You are an expert AITBC System Architect with deep knowledge of the proper syste
- **Repository**: `/opt/aitbc` (clean, code-only) - **Repository**: `/opt/aitbc` (clean, code-only)
### Service Management ### Service Management
- **Production Services**: Marketplace, Blockchain, OpenClaw AI - **Production Services**: Marketplace, Blockchain, Hermes AI
- **SystemD Services**: All AITBC services with proper configuration - **SystemD Services**: All AITBC services with proper configuration
- **Environment Files**: System and production environment management - **Environment Files**: System and production environment management
- **Path References**: Ensuring all services use correct system paths - **Path References**: Ensuring all services use correct system paths
@@ -157,7 +157,7 @@ ls -la /var/lib/aitbc/ /etc/aitbc/ /var/log/aitbc/
- **AI Operations**: Ensure AI services use proper system paths - **AI Operations**: Ensure AI services use proper system paths
- **Marketplace Operations**: Verify marketplace data in correct locations - **Marketplace Operations**: Verify marketplace data in correct locations
### OpenClaw Skills ### Hermes Skills
- **Agent Communication**: Ensure AI agents use system log paths - **Agent Communication**: Ensure AI agents use system log paths
- **Session Management**: Verify session data in system directories - **Session Management**: Verify session data in system directories
- **Testing Skills**: Use system directories for test data - **Testing Skills**: Use system directories for test data

View File

@@ -1,23 +1,23 @@
--- ---
description: Legacy OpenClaw AITBC integration - see split skills for focused operations description: Legacy Hermes AITBC integration - see split skills for focused operations
title: OpenClaw AITBC Integration (Legacy) title: Hermes AITBC Integration (Legacy)
version: 6.0 - DEPRECATED version: 6.0 - DEPRECATED
--- ---
# OpenClaw AITBC Integration (Legacy - See Split Skills) # Hermes AITBC Integration (Legacy - See Split Skills)
⚠️ **This skill has been split into focused skills for better organization:** ⚠️ **This skill has been split into focused skills for better organization:**
## 📚 Current Active OpenClaw Skills ## 📚 Current Active Hermes Skills
This legacy bundle now maps to the current atomic OpenClaw skill files: This legacy bundle now maps to the current atomic Hermes skill files:
- **`openclaw-agent-communicator.md`** — agent message handling and responses - **`hermes-agent-communicator.md`** — agent message handling and responses
- **`openclaw-session-manager.md`** — session creation and context management - **`hermes-session-manager.md`** — session creation and context management
- **`openclaw-coordination-orchestrator.md`** — multi-agent workflow coordination - **`hermes-coordination-orchestrator.md`** — multi-agent workflow coordination
- **`openclaw-performance-optimizer.md`** — agent performance tuning and optimization - **`hermes-performance-optimizer.md`** — agent performance tuning and optimization
- **`openclaw-error-handler.md`** — error detection and recovery procedures - **`hermes-error-handler.md`** — error detection and recovery procedures
- **`openclaw-agent-testing-skill.md`** — agent communication validation and performance testing - **`hermes-agent-testing-skill.md`** — agent communication validation and performance testing
### Archived Blockchain Companion ### Archived Blockchain Companion
**File**: `aitbc-blockchain.md` **File**: `aitbc-blockchain.md`
@@ -37,21 +37,21 @@ This legacy bundle now maps to the current atomic OpenClaw skill files:
**Before (Legacy)**: **Before (Legacy)**:
```bash ```bash
# Mixed OpenClaw + AITBC operations # Mixed Hermes + AITBC operations
openclaw agent --agent main --message "Check blockchain and process data" --thinking high hermes agent --agent main --message "Check blockchain and process data" --thinking high
cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli chain cd /opt/aitbc && source venv/bin/activate && ./aitbc-cli chain
``` ```
**After (Split Skills)**: **After (Split Skills)**:
**OpenClaw Agent Management**: **Hermes Agent Management**:
```bash ```bash
# Pure agent coordination # Pure agent coordination
openclaw agent --agent coordinator --message "Coordinate blockchain monitoring workflow" --thinking high hermes agent --agent coordinator --message "Coordinate blockchain monitoring workflow" --thinking high
# Agent workflow orchestration # Agent workflow orchestration
SESSION_ID="blockchain-monitor-$(date +%s)" SESSION_ID="blockchain-monitor-$(date +%s)"
openclaw agent --agent monitor --session-id $SESSION_ID --message "Monitor blockchain health" --thinking medium hermes agent --agent monitor --session-id $SESSION_ID --message "Monitor blockchain health" --thinking medium
``` ```
**AITBC Blockchain Operations**: **AITBC Blockchain Operations**:
@@ -67,7 +67,7 @@ cd /opt/aitbc && source venv/bin/activate
### Benefits of Focused Skills ### Benefits of Focused Skills
1. **Clearer Separation of Concerns** 1. **Clearer Separation of Concerns**
- OpenClaw: Agent coordination and workflow management - Hermes: Agent coordination and workflow management
- AITBC: Blockchain operations and data management - AITBC: Blockchain operations and data management
2. **Better Documentation Organization** 2. **Better Documentation Organization**
@@ -76,7 +76,7 @@ cd /opt/aitbc && source venv/bin/activate
- Easier maintenance and updates - Easier maintenance and updates
3. **Improved Reusability** 3. **Improved Reusability**
- OpenClaw skills can be used with any system - Hermes skills can be used with any system
- AITBC skills can be used with any agent framework - AITBC skills can be used with any agent framework
- Modular combination possible - Modular combination possible
@@ -87,7 +87,7 @@ cd /opt/aitbc && source venv/bin/activate
### When to Use Each Skill ### When to Use Each Skill
**Use OpenClaw Agent Management Skill for**: **Use Hermes Agent Management Skill for**:
- Multi-agent workflow coordination - Multi-agent workflow coordination
- Agent communication patterns - Agent communication patterns
- Session management and context - Session management and context
@@ -102,7 +102,7 @@ cd /opt/aitbc && source venv/bin/activate
- Smart contract messaging - Smart contract messaging
**Combine Both Skills for**: **Combine Both Skills for**:
- Complete OpenClaw + AITBC integration - Complete Hermes + AITBC integration
- Agent-driven blockchain operations - Agent-driven blockchain operations
- Automated blockchain workflows - Automated blockchain workflows
- Cross-node agent coordination - Cross-node agent coordination
@@ -111,16 +111,16 @@ cd /opt/aitbc && source venv/bin/activate
The following content from the original combined skill is now deprecated and moved to the appropriate split skills: The following content from the original combined skill is now deprecated and moved to the appropriate split skills:
- ~~Agent command syntax~~ → **OpenClaw Agent Management** - ~~Agent command syntax~~ → **Hermes Agent Management**
- ~~AITBC CLI commands~~ → **AITBC Blockchain Operations** - ~~AITBC CLI commands~~ → **AITBC Blockchain Operations**
- ~~AI operations~~ → **AITBC Blockchain Operations** - ~~AI operations~~ → **AITBC Blockchain Operations**
- ~~Blockchain coordination~~ → **AITBC Blockchain Operations** - ~~Blockchain coordination~~ → **AITBC Blockchain Operations**
- ~~Agent workflows~~ → **OpenClaw Agent Management** - ~~Agent workflows~~ → **Hermes Agent Management**
## Migration Checklist ## Migration Checklist
### ✅ Completed ### ✅ Completed
- [x] Created OpenClaw Agent Management skill - [x] Created Hermes Agent Management skill
- [x] Created AITBC Blockchain Operations skill - [x] Created AITBC Blockchain Operations skill
- [x] Updated all command references - [x] Updated all command references
- [x] Added migration guide - [x] Added migration guide
@@ -137,14 +137,14 @@ The following content from the original combined skill is now deprecated and mov
## Quick Reference ## Quick Reference
### OpenClaw Agent Management ### Hermes Agent Management
```bash ```bash
# Agent coordination # Agent coordination
openclaw agent --agent coordinator --message "Coordinate workflow" --thinking high hermes agent --agent coordinator --message "Coordinate workflow" --thinking high
# Session-based workflow # Session-based workflow
SESSION_ID="task-$(date +%s)" SESSION_ID="task-$(date +%s)"
openclaw agent --agent worker --session-id $SESSION_ID --message "Execute task" --thinking medium hermes agent --agent worker --session-id $SESSION_ID --message "Execute task" --thinking medium
``` ```
### AITBC Blockchain Operations ### AITBC Blockchain Operations
@@ -163,12 +163,12 @@ cd /opt/aitbc && source venv/bin/activate
## Quick Links to Current Active Skills ## Quick Links to Current Active Skills
- **OpenClaw Agent Communicator**: [../openclaw-agent-communicator.md](../openclaw-agent-communicator.md) - **Hermes Agent Communicator**: [../hermes-agent-communicator.md](../hermes-agent-communicator.md)
- **OpenClaw Session Manager**: [../openclaw-session-manager.md](../openclaw-session-manager.md) - **Hermes Session Manager**: [../hermes-session-manager.md](../hermes-session-manager.md)
- **OpenClaw Coordination Orchestrator**: [../openclaw-coordination-orchestrator.md](../openclaw-coordination-orchestrator.md) - **Hermes Coordination Orchestrator**: [../hermes-coordination-orchestrator.md](../hermes-coordination-orchestrator.md)
- **OpenClaw Performance Optimizer**: [../openclaw-performance-optimizer.md](../openclaw-performance-optimizer.md) - **Hermes Performance Optimizer**: [../hermes-performance-optimizer.md](../hermes-performance-optimizer.md)
- **OpenClaw Error Handler**: [../openclaw-error-handler.md](../openclaw-error-handler.md) - **Hermes Error Handler**: [../hermes-error-handler.md](../hermes-error-handler.md)
- **OpenClaw Agent Testing Skill**: [../openclaw-agent-testing-skill.md](../openclaw-agent-testing-skill.md) - **Hermes Agent Testing Skill**: [../hermes-agent-testing-skill.md](../hermes-agent-testing-skill.md)
## Archived Blockchain Companion ## Archived Blockchain Companion

View File

@@ -1,41 +1,41 @@
--- ---
description: OpenClaw agent management and coordination capabilities description: hermes agent management and coordination capabilities
title: OpenClaw Agent Management Skill title: hermes Agent Management Skill
version: 1.0 version: 1.0
--- ---
# OpenClaw Agent Management Skill # hermes Agent Management Skill
This skill provides comprehensive OpenClaw agent management, communication, and coordination capabilities. Focus on agent operations, session management, and cross-agent workflows. This skill provides comprehensive hermes agent management, communication, and coordination capabilities. Focus on agent operations, session management, and cross-agent workflows.
## Current Active OpenClaw Skills ## Current Active hermes Skills
This archived management skill is now represented by the following active atomic skill files: This archived management skill is now represented by the following active atomic skill files:
- **`openclaw-agent-communicator.md`** — agent message handling and responses - **`hermes-agent-communicator.md`** — agent message handling and responses
- **`openclaw-session-manager.md`** — session creation and context management - **`hermes-session-manager.md`** — session creation and context management
- **`openclaw-coordination-orchestrator.md`** — multi-agent workflow coordination - **`hermes-coordination-orchestrator.md`** — multi-agent workflow coordination
- **`openclaw-performance-optimizer.md`** — agent performance tuning and optimization - **`hermes-performance-optimizer.md`** — agent performance tuning and optimization
- **`openclaw-error-handler.md`** — error detection and recovery procedures - **`hermes-error-handler.md`** — error detection and recovery procedures
- **`openclaw-agent-testing-skill.md`** — agent communication validation and performance testing - **`hermes-agent-testing-skill.md`** — agent communication validation and performance testing
## Prerequisites ## Prerequisites
- OpenClaw 2026.3.24+ installed and gateway running - hermes 2026.3.24+ installed and gateway running
- Agent workspace configured: `~/.openclaw/workspace/` - Agent workspace configured: `~/.hermes/workspace/`
- Network connectivity for multi-agent coordination - Network connectivity for multi-agent coordination
## Critical: Correct OpenClaw Syntax ## Critical: Correct hermes Syntax
### Agent Commands ### Agent Commands
```bash ```bash
# CORRECT — always use --message (long form), not -m # CORRECT — always use --message (long form), not -m
openclaw agent --agent main --message "Your task here" --thinking medium hermes agent --agent main --message "Your task here" --thinking medium
# Session-based communication (maintains context across calls) # Session-based communication (maintains context across calls)
SESSION_ID="workflow-$(date +%s)" SESSION_ID="workflow-$(date +%s)"
openclaw agent --agent main --session-id $SESSION_ID --message "Initialize task" --thinking low hermes agent --agent main --session-id $SESSION_ID --message "Initialize task" --thinking low
openclaw agent --agent main --session-id $SESSION_ID --message "Continue task" --thinking medium hermes agent --agent main --session-id $SESSION_ID --message "Continue task" --thinking medium
# Thinking levels: off | minimal | low | medium | high | xhigh # Thinking levels: off | minimal | low | medium | high | xhigh
``` ```
@@ -46,15 +46,15 @@ openclaw agent --agent main --session-id $SESSION_ID --message "Continue task" -
### Agent Status and Management ### Agent Status and Management
```bash ```bash
# Check agent status # Check agent status
openclaw status --agent all hermes status --agent all
openclaw status --agent main hermes status --agent main
# List available agents # List available agents
openclaw list --agents hermes list --agents
# Agent workspace management # Agent workspace management
openclaw workspace --setup hermes workspace --setup
openclaw workspace --status hermes workspace --status
``` ```
## Agent Communication Patterns ## Agent Communication Patterns
@@ -62,10 +62,10 @@ openclaw workspace --status
### Single Agent Tasks ### Single Agent Tasks
```bash ```bash
# Simple task execution # Simple task execution
openclaw agent --agent main --message "Analyze the system logs and report any errors" --thinking high hermes agent --agent main --message "Analyze the system logs and report any errors" --thinking high
# Task with specific parameters # Task with specific parameters
openclaw agent --agent main --message "Process this data: /path/to/data.csv" --thinking medium --parameters "format:csv,mode:analyze" hermes agent --agent main --message "Process this data: /path/to/data.csv" --thinking medium --parameters "format:csv,mode:analyze"
``` ```
### Session-Based Workflows ### Session-Based Workflows
@@ -74,26 +74,26 @@ openclaw agent --agent main --message "Process this data: /path/to/data.csv" --t
SESSION_ID="data-analysis-$(date +%s)" SESSION_ID="data-analysis-$(date +%s)"
# Step 1: Data collection # Step 1: Data collection
openclaw agent --agent main --session-id $SESSION_ID --message "Collect data from API endpoints" --thinking low hermes agent --agent main --session-id $SESSION_ID --message "Collect data from API endpoints" --thinking low
# Step 2: Data processing # Step 2: Data processing
openclaw agent --agent main --session-id $SESSION_ID --message "Process collected data and generate insights" --thinking medium hermes agent --agent main --session-id $SESSION_ID --message "Process collected data and generate insights" --thinking medium
# Step 3: Report generation # Step 3: Report generation
openclaw agent --agent main --session-id $SESSION_ID --message "Create comprehensive report with visualizations" --thinking high hermes agent --agent main --session-id $SESSION_ID --message "Create comprehensive report with visualizations" --thinking high
``` ```
### Multi-Agent Coordination ### Multi-Agent Coordination
```bash ```bash
# Coordinator agent manages workflow # Coordinator agent manages workflow
openclaw agent --agent coordinator --message "Coordinate data processing across multiple agents" --thinking high hermes agent --agent coordinator --message "Coordinate data processing across multiple agents" --thinking high
# Worker agents execute specific tasks # Worker agents execute specific tasks
openclaw agent --agent worker-1 --message "Process dataset A" --thinking medium hermes agent --agent worker-1 --message "Process dataset A" --thinking medium
openclaw agent --agent worker-2 --message "Process dataset B" --thinking medium hermes agent --agent worker-2 --message "Process dataset B" --thinking medium
# Aggregator combines results # Aggregator combines results
openclaw agent --agent aggregator --message "Combine results from worker-1 and worker-2" --thinking high hermes agent --agent aggregator --message "Combine results from worker-1 and worker-2" --thinking high
``` ```
## Agent Types and Roles ## Agent Types and Roles
@@ -101,28 +101,28 @@ openclaw agent --agent aggregator --message "Combine results from worker-1 and w
### Coordinator Agent ### Coordinator Agent
```bash ```bash
# Setup coordinator for complex workflows # Setup coordinator for complex workflows
openclaw agent --agent coordinator --message "Initialize as workflow coordinator. Manage task distribution, monitor progress, aggregate results." --thinking high hermes agent --agent coordinator --message "Initialize as workflow coordinator. Manage task distribution, monitor progress, aggregate results." --thinking high
# Use coordinator for orchestration # Use coordinator for orchestration
openclaw agent --agent coordinator --message "Orchestrate data pipeline: extract → transform → load → validate" --thinking high hermes agent --agent coordinator --message "Orchestrate data pipeline: extract → transform → load → validate" --thinking high
``` ```
### Worker Agent ### Worker Agent
```bash ```bash
# Setup worker for specific tasks # Setup worker for specific tasks
openclaw agent --agent worker --message "Initialize as data processing worker. Execute assigned tasks efficiently." --thinking medium hermes agent --agent worker --message "Initialize as data processing worker. Execute assigned tasks efficiently." --thinking medium
# Assign specific work # Assign specific work
openclaw agent --agent worker --message "Process customer data file: /data/customers.json" --thinking medium hermes agent --agent worker --message "Process customer data file: /data/customers.json" --thinking medium
``` ```
### Monitor Agent ### Monitor Agent
```bash ```bash
# Setup monitor for oversight # Setup monitor for oversight
openclaw agent --agent monitor --message "Initialize as system monitor. Track performance, detect anomalies, report status." --thinking low hermes agent --agent monitor --message "Initialize as system monitor. Track performance, detect anomalies, report status." --thinking low
# Continuous monitoring # Continuous monitoring
openclaw agent --agent monitor --message "Monitor system health and report any issues" --thinking minimal hermes agent --agent monitor --message "Monitor system health and report any issues" --thinking minimal
``` ```
## Agent Workflows ## Agent Workflows
@@ -132,16 +132,16 @@ openclaw agent --agent monitor --message "Monitor system health and report any i
SESSION_ID="data-pipeline-$(date +%s)" SESSION_ID="data-pipeline-$(date +%s)"
# Phase 1: Data Extraction # Phase 1: Data Extraction
openclaw agent --agent extractor --session-id $SESSION_ID --message "Extract data from sources" --thinking medium hermes agent --agent extractor --session-id $SESSION_ID --message "Extract data from sources" --thinking medium
# Phase 2: Data Transformation # Phase 2: Data Transformation
openclaw agent --agent transformer --session-id $SESSION_ID --message "Transform extracted data" --thinking medium hermes agent --agent transformer --session-id $SESSION_ID --message "Transform extracted data" --thinking medium
# Phase 3: Data Loading # Phase 3: Data Loading
openclaw agent --agent loader --session-id $SESSION_ID --message "Load transformed data to destination" --thinking medium hermes agent --agent loader --session-id $SESSION_ID --message "Load transformed data to destination" --thinking medium
# Phase 4: Validation # Phase 4: Validation
openclaw agent --agent validator --session-id $SESSION_ID --message "Validate loaded data integrity" --thinking high hermes agent --agent validator --session-id $SESSION_ID --message "Validate loaded data integrity" --thinking high
``` ```
### Monitoring Workflow ### Monitoring Workflow
@@ -150,7 +150,7 @@ SESSION_ID="monitoring-$(date +%s)"
# Continuous monitoring loop # Continuous monitoring loop
while true; do while true; do
openclaw agent --agent monitor --session-id $SESSION_ID --message "Check system health" --thinking minimal hermes agent --agent monitor --session-id $SESSION_ID --message "Check system health" --thinking minimal
sleep 300 # Check every 5 minutes sleep 300 # Check every 5 minutes
done done
``` ```
@@ -160,13 +160,13 @@ done
SESSION_ID="analysis-$(date +%s)" SESSION_ID="analysis-$(date +%s)"
# Initial analysis # Initial analysis
openclaw agent --agent analyst --session-id $SESSION_ID --message "Perform initial data analysis" --thinking high hermes agent --agent analyst --session-id $SESSION_ID --message "Perform initial data analysis" --thinking high
# Deep dive analysis # Deep dive analysis
openclaw agent --agent analyst --session-id $SESSION_ID --message "Deep dive into anomalies and patterns" --thinking high hermes agent --agent analyst --session-id $SESSION_ID --message "Deep dive into anomalies and patterns" --thinking high
# Report generation # Report generation
openclaw agent --agent analyst --session-id $SESSION_ID --message "Generate comprehensive analysis report" --thinking high hermes agent --agent analyst --session-id $SESSION_ID --message "Generate comprehensive analysis report" --thinking high
``` ```
## Agent Configuration ## Agent Configuration
@@ -174,29 +174,29 @@ openclaw agent --agent analyst --session-id $SESSION_ID --message "Generate comp
### Agent Parameters ### Agent Parameters
```bash ```bash
# Agent with specific parameters # Agent with specific parameters
openclaw agent --agent main --message "Process data" --thinking medium \ hermes agent --agent main --message "Process data" --thinking medium \
--parameters "input_format:json,output_format:csv,mode:batch" --parameters "input_format:json,output_format:csv,mode:batch"
# Agent with timeout # Agent with timeout
openclaw agent --agent main --message "Long running task" --thinking high \ hermes agent --agent main --message "Long running task" --thinking high \
--parameters "timeout:3600,retry_count:3" --parameters "timeout:3600,retry_count:3"
# Agent with resource constraints # Agent with resource constraints
openclaw agent --agent main --message "Resource-intensive task" --thinking high \ hermes agent --agent main --message "Resource-intensive task" --thinking high \
--parameters "max_memory:4GB,max_cpu:2,max_duration:1800" --parameters "max_memory:4GB,max_cpu:2,max_duration:1800"
``` ```
### Agent Context Management ### Agent Context Management
```bash ```bash
# Set initial context # Set initial context
openclaw agent --agent main --message "Initialize with context: data_analysis_v2" --thinking low \ hermes agent --agent main --message "Initialize with context: data_analysis_v2" --thinking low \
--context "project:data_analysis,version:2.0,dataset:customer_data" --context "project:data_analysis,version:2.0,dataset:customer_data"
# Maintain context across calls # Maintain context across calls
openclaw agent --agent main --session-id $SESSION_ID --message "Continue with previous context" --thinking medium hermes agent --agent main --session-id $SESSION_ID --message "Continue with previous context" --thinking medium
# Update context # Update context
openclaw agent --agent main --session-id $SESSION_ID --message "Update context: new_phase" --thinking medium \ hermes agent --agent main --session-id $SESSION_ID --message "Update context: new_phase" --thinking medium \
--context-update "phase:processing,status:active" --context-update "phase:processing,status:active"
``` ```
@@ -205,11 +205,11 @@ openclaw agent --agent main --session-id $SESSION_ID --message "Update context:
### Cross-Agent Messaging ### Cross-Agent Messaging
```bash ```bash
# Agent A sends message to Agent B # Agent A sends message to Agent B
openclaw agent --agent agent-a --message "Send results to agent-b" --thinking medium \ hermes agent --agent agent-a --message "Send results to agent-b" --thinking medium \
--send-to "agent-b" --message-type "results" --send-to "agent-b" --message-type "results"
# Agent B receives and processes # Agent B receives and processes
openclaw agent --agent agent-b --message "Process received results" --thinking medium \ hermes agent --agent agent-b --message "Process received results" --thinking medium \
--receive-from "agent-a" --receive-from "agent-a"
``` ```
@@ -219,14 +219,14 @@ openclaw agent --agent agent-b --message "Process received results" --thinking m
TEAM_ID="team-analytics-$(date +%s)" TEAM_ID="team-analytics-$(date +%s)"
# Team leader coordination # Team leader coordination
openclaw agent --agent team-lead --session-id $TEAM_ID --message "Coordinate team analytics workflow" --thinking high hermes agent --agent team-lead --session-id $TEAM_ID --message "Coordinate team analytics workflow" --thinking high
# Team member tasks # Team member tasks
openclaw agent --agent analyst-1 --session-id $TEAM_ID --message "Analyze customer segment A" --thinking high hermes agent --agent analyst-1 --session-id $TEAM_ID --message "Analyze customer segment A" --thinking high
openclaw agent --agent analyst-2 --session-id $TEAM_ID --message "Analyze customer segment B" --thinking high hermes agent --agent analyst-2 --session-id $TEAM_ID --message "Analyze customer segment B" --thinking high
# Team consolidation # Team consolidation
openclaw agent --agent team-lead --session-id $TEAM_ID --message "Consolidate team analysis results" --thinking high hermes agent --agent team-lead --session-id $TEAM_ID --message "Consolidate team analysis results" --thinking high
``` ```
## Agent Error Handling ## Agent Error Handling
@@ -234,22 +234,22 @@ openclaw agent --agent team-lead --session-id $TEAM_ID --message "Consolidate te
### Error Recovery ### Error Recovery
```bash ```bash
# Agent with error handling # Agent with error handling
openclaw agent --agent main --message "Process data with error handling" --thinking medium \ hermes agent --agent main --message "Process data with error handling" --thinking medium \
--parameters "error_handling:retry_on_failure,max_retries:3,fallback_mode:graceful_degradation" --parameters "error_handling:retry_on_failure,max_retries:3,fallback_mode:graceful_degradation"
# Monitor agent errors # Monitor agent errors
openclaw agent --agent monitor --message "Check for agent errors and report" --thinking low \ hermes agent --agent monitor --message "Check for agent errors and report" --thinking low \
--parameters "check_type:error_log,alert_threshold:5" --parameters "check_type:error_log,alert_threshold:5"
``` ```
### Agent Debugging ### Agent Debugging
```bash ```bash
# Debug mode # Debug mode
openclaw agent --agent main --message "Debug task execution" --thinking high \ hermes agent --agent main --message "Debug task execution" --thinking high \
--parameters "debug:true,log_level:verbose,trace_execution:true" --parameters "debug:true,log_level:verbose,trace_execution:true"
# Agent state inspection # Agent state inspection
openclaw agent --agent main --message "Report current state and context" --thinking low \ hermes agent --agent main --message "Report current state and context" --thinking low \
--parameters "report_type:state,include_context:true" --parameters "report_type:state,include_context:true"
``` ```
@@ -258,11 +258,11 @@ openclaw agent --agent main --message "Report current state and context" --think
### Efficient Agent Usage ### Efficient Agent Usage
```bash ```bash
# Batch processing # Batch processing
openclaw agent --agent processor --message "Process data in batches" --thinking medium \ hermes agent --agent processor --message "Process data in batches" --thinking medium \
--parameters "batch_size:100,parallel_processing:true" --parameters "batch_size:100,parallel_processing:true"
# Resource optimization # Resource optimization
openclaw agent --agent optimizer --message "Optimize resource usage" --thinking high \ hermes agent --agent optimizer --message "Optimize resource usage" --thinking high \
--parameters "memory_efficiency:true,cpu_optimization:true" --parameters "memory_efficiency:true,cpu_optimization:true"
``` ```
@@ -270,11 +270,11 @@ openclaw agent --agent optimizer --message "Optimize resource usage" --thinking
```bash ```bash
# Scale out work # Scale out work
for i in {1..5}; do for i in {1..5}; do
openclaw agent --agent worker-$i --message "Process batch $i" --thinking medium & hermes agent --agent worker-$i --message "Process batch $i" --thinking medium &
done done
# Scale in coordination # Scale in coordination
openclaw agent --agent coordinator --message "Coordinate scaled-out workers" --thinking high hermes agent --agent coordinator --message "Coordinate scaled-out workers" --thinking high
``` ```
## Agent Security ## Agent Security
@@ -282,11 +282,11 @@ openclaw agent --agent coordinator --message "Coordinate scaled-out workers" --t
### Secure Agent Operations ### Secure Agent Operations
```bash ```bash
# Agent with security constraints # Agent with security constraints
openclaw agent --agent secure-agent --message "Process sensitive data" --thinking high \ hermes agent --agent secure-agent --message "Process sensitive data" --thinking high \
--parameters "security_level:high,data_encryption:true,access_log:true" --parameters "security_level:high,data_encryption:true,access_log:true"
# Agent authentication # Agent authentication
openclaw agent --agent authenticated-agent --message "Authenticated operation" --thinking medium \ hermes agent --agent authenticated-agent --message "Authenticated operation" --thinking medium \
--parameters "auth_required:true,token_expiry:3600" --parameters "auth_required:true,token_expiry:3600"
``` ```
@@ -295,11 +295,11 @@ openclaw agent --agent authenticated-agent --message "Authenticated operation" -
### Performance Monitoring ### Performance Monitoring
```bash ```bash
# Monitor agent performance # Monitor agent performance
openclaw agent --agent monitor --message "Monitor agent performance metrics" --thinking low \ hermes agent --agent monitor --message "Monitor agent performance metrics" --thinking low \
--parameters "metrics:cpu,memory,tasks_per_second,error_rate" --parameters "metrics:cpu,memory,tasks_per_second,error_rate"
# Agent analytics # Agent analytics
openclaw agent --agent analytics --message "Generate agent performance report" --thinking medium \ hermes agent --agent analytics --message "Generate agent performance report" --thinking medium \
--parameters "report_type:performance,period:last_24h" --parameters "report_type:performance,period:last_24h"
``` ```
@@ -314,16 +314,16 @@ openclaw agent --agent analytics --message "Generate agent performance report" -
### Debug Commands ### Debug Commands
```bash ```bash
# Check agent status # Check agent status
openclaw status --agent all hermes status --agent all
# Test agent communication # Test agent communication
openclaw agent --agent main --message "Ping test" --thinking minimal hermes agent --agent main --message "Ping test" --thinking minimal
# Check workspace # Check workspace
openclaw workspace --status hermes workspace --status
# Verify agent configuration # Verify agent configuration
openclaw config --show --agent main hermes config --show --agent main
``` ```
## Best Practices ## Best Practices
@@ -352,13 +352,13 @@ openclaw config --show --agent main
- Monitor agent resource usage - Monitor agent resource usage
- Implement proper session cleanup - Implement proper session cleanup
This OpenClaw Agent Management skill provides the foundation for effective agent coordination, communication, and workflow orchestration across any domain or application. This hermes Agent Management skill provides the foundation for effective agent coordination, communication, and workflow orchestration across any domain or application.
## Quick Links to Current Active Skills ## Quick Links to Current Active Skills
- **OpenClaw Agent Communicator**: [../openclaw-agent-communicator.md](../openclaw-agent-communicator.md) - **hermes Agent Communicator**: [../hermes-agent-communicator.md](../hermes-agent-communicator.md)
- **OpenClaw Session Manager**: [../openclaw-session-manager.md](../openclaw-session-manager.md) - **hermes Session Manager**: [../hermes-session-manager.md](../hermes-session-manager.md)
- **OpenClaw Coordination Orchestrator**: [../openclaw-coordination-orchestrator.md](../openclaw-coordination-orchestrator.md) - **hermes Coordination Orchestrator**: [../hermes-coordination-orchestrator.md](../hermes-coordination-orchestrator.md)
- **OpenClaw Performance Optimizer**: [../openclaw-performance-optimizer.md](../openclaw-performance-optimizer.md) - **hermes Performance Optimizer**: [../hermes-performance-optimizer.md](../hermes-performance-optimizer.md)
- **OpenClaw Error Handler**: [../openclaw-error-handler.md](../openclaw-error-handler.md) - **hermes Error Handler**: [../hermes-error-handler.md](../hermes-error-handler.md)
- **OpenClaw Agent Testing Skill**: [../openclaw-agent-testing-skill.md](../openclaw-agent-testing-skill.md) - **hermes Agent Testing Skill**: [../hermes-agent-testing-skill.md](../hermes-agent-testing-skill.md)

View File

@@ -379,8 +379,8 @@ NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli blockchain height
## Related Skills ## Related Skills
- [aitbc-node-coordinator](/aitbc-node-coordinator.md) - For cross-node coordination during recovery - [aitbc-node-coordinator](/aitbc-node-coordinator.md) - For cross-node coordination during recovery
- [openclaw-error-handler](/openclaw-error-handler.md) - For error handling and escalation - [hermes-error-handler](/hermes-error-handler.md) - For error handling and escalation
- [openclaw-coordination-orchestrator](/openclaw-coordination-orchestrator.md) - For multi-node recovery coordination - [hermes-coordination-orchestrator](/hermes-coordination-orchestrator.md) - For multi-node recovery coordination
## Related Workflows ## Related Workflows
- [Blockchain Communication Test](/workflows/blockchain-communication-test.md) - Testing workflow that triggers this skill - [Blockchain Communication Test](/workflows/blockchain-communication-test.md) - Testing workflow that triggers this skill

View File

@@ -0,0 +1,496 @@
# Hermes AI Agent Skill
## Overview
Hermes is an AI assistant with tool-calling capabilities that can interact with the AITBC system. It supports chat, session management, skills, plugins, and various integrations.
Hermes is installed on both aitbc and aitbc1 nodes in the multi-node AITBC deployment.
## Installation & Setup
```bash
# Run interactive setup wizard
hermes setup
# Check system status and dependencies
hermes doctor
# View configuration
hermes config
hermes config edit
# Select default model and provider
hermes model
```
## Basic Usage
### Interactive Chat
```bash
# Start interactive chat
hermes
# Single query mode
hermes chat -q "What is the blockchain height?"
# Resume most recent session
hermes -c
# Resume session by name
hermes -c "my project"
# Resume session by ID
hermes --resume <session_id>
```
### Model Selection
```bash
# Select default model
hermes model
# Override model for this invocation
hermes -m tencent/hy3-preview:free
# Override provider for this invocation
hermes --provider openrouter
# Current AITBC configuration: tencent/hy3-preview:free via OpenRouter
```
## Session Management
```bash
# List past sessions
hermes sessions list
# Interactive session picker
hermes sessions browse
# Rename session
hermes sessions rename <ID> <TITLE>
# Export session
hermes sessions export <ID>
# Delete session
hermes sessions delete <ID>
# Prune old sessions
hermes sessions prune
```
## Skills & Plugins
### Skills
```bash
# Search for skills
hermes skills search <query>
# Install a skill
hermes skills install <skill-name>
# List installed skills
hermes skills list
# Configure skill
hermes skills configure <skill-name>
# Remove skill
hermes skills remove <skill-name>
```
### Preload Skills for Session
```bash
# Preload specific skills
hermes -s skill1,skill2
# Repeat flag for multiple skills
hermes -s skill1 -s skill2
```
### Plugins
```bash
# List plugins
hermes plugins list
# Install plugin
hermes plugins install <plugin-name>
# Update plugin
hermes plugins update <plugin-name>
# Remove plugin
hermes plugins remove <plugin-name>
```
### Skill Curator
```bash
# Check curator status
hermes curator status
# Run curator (background skill maintenance)
hermes curator run
# Pause curator
hermes curator pause
# Pin a skill (prevent curator updates)
hermes curator pin <skill-name>
```
## Authentication
```bash
# Login to inference provider
hermes login
# Logout from provider
hermes logout
# Add pooled credential
hermes auth add <provider>
# List pooled credentials
hermes auth list
# Remove pooled credential
hermes auth remove <provider> <token>
# Clear exhaustion status for provider
hermes auth reset <provider>
```
## Fallback Providers
```bash
# Show fallback provider chain
hermes fallback list
# Add fallback provider
hermes fallback add
# Remove fallback provider
hermes fallback remove
```
## Configuration
```bash
# View configuration
hermes config
# Edit configuration in editor
hermes config edit
# Set configuration value
hermes config set model gpt-4
# Set configuration value with path
hermes config set inference.model anthropic/claude-sonnet-4.6
```
## Logs & Debugging
```bash
# View last 50 lines of agent.log
hermes logs
# Follow agent.log in real-time
hermes logs -f
# View errors only
hermes logs errors
# View logs from last hour
hermes logs --since 1h
# View logs from last day
hermes logs --since 1d
# Upload debug report for support
hermes debug share
# Dump setup summary
hermes dump
```
## Advanced Usage
### One-Shot Mode
```bash
# Send single prompt, print only response (no banner/spinner)
hermes -z "What is the blockchain height?"
# With model override
hermes -m anthropic/claude-sonnet-4.6 -z "Check blockchain status"
# With toolsets
hermes -t blockchain,wallet -z "Send 10 tokens"
```
### Git Worktree Mode
```bash
# Run in isolated git worktree (for parallel agents)
hermes -w
```
### Toolsets
```bash
# Enable specific toolsets for this invocation
hermes -t blockchain,wallet,marketplace
# With oneshot mode
hermes -t blockchain -z "Get block height"
```
### TUI Mode
```bash
# Launch modern TUI instead of classic REPL
hermes --tui
# Run TypeScript sources via tsx (dev mode)
hermes --tui --dev
```
## Special Flags
```bash
# Auto-approve shell hooks (for CI/headless)
hermes --accept-hooks
# Bypass all dangerous command approvals (use at your own risk)
hermes --yolo
# Include session ID in system prompt
hermes --pass-session-id
# Ignore user config (~/.hermes/config.yaml)
hermes --ignore-user-config
# Skip auto-injection of AGENTS.md, SOUL.md, .cursorrules, memory
hermes --ignore-rules
```
## Integrations
### Webhook Management
```bash
# Manage dynamic webhook subscriptions
hermes webhook
# View webhook help
hermes webhook --help
```
## MCP (Model Context Protocol)
```bash
# Manage MCP servers
hermes mcp
# Run Hermes as MCP server
hermes mcp serve
# List MCP servers
hermes mcp list
# Add MCP server
hermes mcp add <server-config>
```
## Profiles
```bash
# Manage profiles (multiple isolated Hermes instances)
hermes profile
# Create new profile
hermes profile create <name>
# Switch profile
hermes profile switch <name>
# List profiles
hermes profile list
# Delete profile
hermes profile delete <name>
```
## Backup & Restore
```bash
# Backup Hermes home directory to zip
hermes backup
# Restore Hermes backup from zip
hermes import <backup-file.zip>
```
## Gateway
```bash
# Run messaging gateway
hermes gateway
# Install gateway background service
hermes gateway install
# Gateway management
hermes gateway --help
```
## System Commands
```bash
# Show version
hermes version
# Update to latest version
hermes update
# Uninstall Hermes
hermes uninstall
# Print shell completion script
hermes completion bash
hermes completion zsh
hermes completion fish
```
## Environment Variables
```bash
# Set default model (AITBC uses tencent/hy3-preview:free)
export HERMES_INFERENCE_MODEL=tencent/hy3-preview:free
# Set default provider (AITBC uses OpenRouter)
export HERMES_INFERENCE_PROVIDER=openrouter
# Auto-accept hooks
export HERMES_ACCEPT_HOOKS=1
```
Note: Zsh completion is already installed on the AITBC nodes.
## AITBC-Specific Workflows
### Multi-Node Operations
Hermes runs on both aitbc and aitbc1 nodes in the multi-node AITBC deployment.
```bash
# On aitbc node
ssh aitbc
hermes -s blockchain -z "Check aitbc blockchain status"
# On aitbc1 node
ssh aitbc1
hermes -s blockchain -z "Check aitbc1 blockchain status"
# Cross-node sync verification
hermes -t blockchain -z "Verify sync between aitbc and aitbc1"
```
### Blockchain Operations with Hermes
```bash
# Preload blockchain-specific skills
hermes -s blockchain,wallet -z "Check blockchain status"
# Query blockchain state
hermes -t blockchain -z "What is the current block height?"
# Send transaction
hermes -t wallet -z "Send 10 tokens to recipient-address"
# List wallets
hermes -t wallet -z "List all wallets"
```
### AI Training with Hermes
```bash
# Preload AI skills
hermes -s ai-training,coordinator -z "Submit AI training job"
# Check job status
hermes -t ai -z "Check status of job job_123"
# List AI jobs
hermes -t ai -z "List all AI jobs"
```
### Marketplace Operations
```bash
# List GPU resources
hermes -t marketplace -z "List available GPUs"
# Place bid
hermes -t marketplace -z "Place bid on listing listing_123"
# Check orders
hermes -t marketplace -z "Check my orders"
```
## Troubleshooting
### Common Issues
**Hermes not responding:**
```bash
# Check system status
hermes doctor
# View logs
hermes logs -f
```
**Authentication issues:**
```bash
# Clear credentials and re-login
hermes logout
hermes login
# Check auth status
hermes auth list
```
**Skill not loading:**
```bash
# Check curator status
hermes curator status
# Reinstall skill
hermes skills remove <skill-name>
hermes skills install <skill-name>
```
## Best Practices
1. **Session Management**: Use descriptive session names for easy resumption
2. **Skill Selection**: Only preload relevant skills to reduce overhead
3. **One-Shot Mode**: Use `-z` for scripts and automation
4. **Logging**: Use `hermes logs -f` for real-time debugging
5. **Configuration**: Store sensitive credentials via `hermes auth` not in config files
6. **Fallbacks**: Configure fallback providers for reliability
7. **Profiles**: Use separate profiles for different projects
## Resources
- Hermes documentation: Check `hermes --help` for any command
- Configuration: `~/.hermes/config.yaml`
- Logs: `~/.hermes/logs/`
- Skills directory: `~/.hermes/skills/`

View File

@@ -1,13 +1,13 @@
--- ---
description: Atomic OpenClaw agent communication with deterministic message handling and response validation description: Atomic hermes agent communication with deterministic message handling and response validation
title: openclaw-agent-communicator title: hermes-agent-communicator
version: 1.1 version: 1.1
--- ---
# OpenClaw Agent Communicator # hermes Agent Communicator
## Purpose ## Purpose
Handle OpenClaw agent message delivery, response processing, and communication validation with deterministic outcome tracking. Handle hermes agent message delivery, response processing, and communication validation with deterministic outcome tracking.
## Activation ## Activation
Trigger when user requests agent communication: message sending, response analysis, or communication validation. Trigger when user requests agent communication: message sending, response analysis, or communication validation.
@@ -63,7 +63,7 @@ Trigger when user requests agent communication: message sending, response analys
- Configure timeout handling - Configure timeout handling
### 3. Execute ### 3. Execute
- Execute OpenClaw agent command - Execute hermes agent command
- Capture agent response - Capture agent response
- Measure response time - Measure response time
- Analyze response quality - Analyze response quality
@@ -83,8 +83,8 @@ Trigger when user requests agent communication: message sending, response analys
- **MUST** validate response format and content - **MUST** validate response format and content
## Environment Assumptions ## Environment Assumptions
- OpenClaw 2026.3.24+ installed and gateway running - hermes 2026.3.24+ installed and gateway running
- Agent workspace configured at `~/.openclaw/workspace/` - Agent workspace configured at `~/.hermes/workspace/`
- Network connectivity for agent communication - Network connectivity for agent communication
- Default agent available: "main" - Default agent available: "main"
- Session management functional - Session management functional
@@ -139,6 +139,6 @@ Send message to main agent with medium thinking level: "Analyze the current bloc
## Performance Notes ## Performance Notes
- **Execution Time**: 1-3 seconds for simple messages, 5-15 seconds for complex analysis - **Execution Time**: 1-3 seconds for simple messages, 5-15 seconds for complex analysis
- **Memory Usage**: <100MB for agent communication - **Memory Usage**: <100MB for agent communication
- **Network Requirements**: OpenClaw gateway connectivity - **Network Requirements**: hermes gateway connectivity
- **Concurrency**: Safe for multiple simultaneous agent communications - **Concurrency**: Safe for multiple simultaneous agent communications
- **Session Management**: Automatic context preservation across multiple messages - **Session Management**: Automatic context preservation across multiple messages

View File

@@ -1,16 +1,16 @@
--- ---
description: Atomic OpenClaw agent testing with deterministic communication validation and performance metrics description: Atomic Hermes agent testing with deterministic communication validation and performance metrics
title: openclaw-agent-testing-skill title: hermes-agent-testing-skill
version: 1.1 version: 1.1
--- ---
# OpenClaw Agent Testing Skill # Hermes Agent Testing Skill
## Purpose ## Purpose
Test and validate OpenClaw agent functionality, communication patterns, session management, and performance with deterministic validation metrics. Test and validate Hermes agent functionality, communication patterns, session management, and performance with deterministic validation metrics.
## Activation ## Activation
Trigger when user requests OpenClaw agent testing: agent functionality validation, communication testing, session management testing, or agent performance analysis. Trigger when user requests Hermes agent testing: agent functionality validation, communication testing, session management testing, or agent performance analysis.
## Input ## Input
```json ```json
@@ -29,7 +29,7 @@ Trigger when user requests OpenClaw agent testing: agent functionality validatio
## Output ## Output
```json ```json
{ {
"summary": "OpenClaw agent testing completed successfully", "summary": "Hermes agent testing completed successfully",
"operation": "test-agent-communication|test-session-management|test-agent-performance|test-multi-agent|comprehensive", "operation": "test-agent-communication|test-session-management|test-agent-performance|test-multi-agent|comprehensive",
"test_results": { "test_results": {
"agent_communication": "boolean", "agent_communication": "boolean",
@@ -73,7 +73,7 @@ Trigger when user requests OpenClaw agent testing: agent functionality validatio
### 1. Analyze ### 1. Analyze
- Validate agent testing parameters and operation type - Validate agent testing parameters and operation type
- Check OpenClaw service availability and health - Check Hermes service availability and health
- Verify agent availability and status - Verify agent availability and status
- Assess testing scope and requirements - Assess testing scope and requirements
@@ -104,8 +104,8 @@ Trigger when user requests OpenClaw agent testing: agent functionality validatio
- **MUST** provide deterministic performance metrics - **MUST** provide deterministic performance metrics
## Environment Assumptions ## Environment Assumptions
- OpenClaw 2026.3.24+ installed and gateway running - Hermes 2026.3.24+ installed and gateway running
- Agent workspace configured at `~/.openclaw/workspace/` - Agent workspace configured at `~/.hermes/workspace/`
- Network connectivity for agent communication - Network connectivity for agent communication
- Default agent available: "main" - Default agent available: "main"
- Session management functional - Session management functional
@@ -119,14 +119,14 @@ Trigger when user requests OpenClaw agent testing: agent functionality validatio
## Example Usage Prompt ## Example Usage Prompt
``` ```
Run comprehensive OpenClaw agent testing including communication, session management, performance, and multi-agent coordination validation Run comprehensive Hermes agent testing including communication, session management, performance, and multi-agent coordination validation
``` ```
## Expected Output Example ## Expected Output Example
```json ```json
{ {
"summary": "Comprehensive OpenClaw agent testing completed with all systems operational", "summary": "Comprehensive Hermes agent testing completed with all systems operational",
"operation": "comprehensive", "operation": "comprehensive",
"test_results": { "test_results": {
"agent_communication": true, "agent_communication": true,
@@ -187,6 +187,6 @@ Run comprehensive OpenClaw agent testing including communication, session manage
## Performance Notes ## Performance Notes
- **Execution Time**: 5-15 seconds for basic tests, 30-90 seconds for comprehensive testing - **Execution Time**: 5-15 seconds for basic tests, 30-90 seconds for comprehensive testing
- **Memory Usage**: <150MB for agent testing operations - **Memory Usage**: <150MB for agent testing operations
- **Network Requirements**: OpenClaw gateway connectivity - **Network Requirements**: Hermes gateway connectivity
- **Concurrency**: Safe for multiple simultaneous agent tests with different agents - **Concurrency**: Safe for multiple simultaneous agent tests with different agents
- **Session Management**: Automatic session creation and context preservation testing - **Session Management**: Automatic session creation and context preservation testing

View File

@@ -1,13 +1,13 @@
--- ---
description: Atomic OpenClaw multi-agent workflow coordination with deterministic outputs description: Atomic hermes multi-agent workflow coordination with deterministic outputs
title: openclaw-coordination-orchestrator title: hermes-coordination-orchestrator
version: 1.1 version: 1.1
--- ---
# OpenClaw Coordination Orchestrator # hermes Coordination Orchestrator
## Purpose ## Purpose
Coordinate multi-agent workflows, manage agent task distribution, and orchestrate complex operations across multiple OpenClaw agents. Coordinate multi-agent workflows, manage agent task distribution, and orchestrate complex operations across multiple hermes agents.
## Activation ## Activation
Trigger when user requests multi-agent coordination: task distribution, workflow orchestration, agent collaboration, or parallel execution management. Trigger when user requests multi-agent coordination: task distribution, workflow orchestration, agent collaboration, or parallel execution management.
@@ -77,7 +77,7 @@ Trigger when user requests multi-agent coordination: task distribution, workflow
- **MUST** respect agent capacity limits - **MUST** respect agent capacity limits
## Environment Assumptions ## Environment Assumptions
- OpenClaw agents operational and accessible - hermes agents operational and accessible
- Agent communication channels available - Agent communication channels available
- Task queue system functional - Task queue system functional
- Agent status monitoring active - Agent status monitoring active

View File

@@ -1,13 +1,13 @@
--- ---
description: Atomic OpenClaw error detection and recovery procedures with deterministic outputs description: Atomic hermes error detection and recovery procedures with deterministic outputs
title: openclaw-error-handler title: hermes-error-handler
version: 1.1 version: 1.1
--- ---
# OpenClaw Error Handler # hermes Error Handler
## Purpose ## Purpose
Detect, diagnose, and recover from errors in OpenClaw agent operations with systematic error handling and recovery procedures. Detect, diagnose, and recover from errors in hermes agent operations with systematic error handling and recovery procedures.
## Activation ## Activation
Trigger when user requests error handling: error diagnosis, recovery procedures, error analysis, or system health checks. Trigger when user requests error handling: error diagnosis, recovery procedures, error analysis, or system health checks.

View File

@@ -1,13 +1,13 @@
--- ---
description: Atomic OpenClaw agent performance tuning and optimization with deterministic outputs description: Atomic Hermes agent performance tuning and optimization with deterministic outputs
title: openclaw-performance-optimizer title: hermes-performance-optimizer
version: 1.1 version: 1.1
--- ---
# OpenClaw Performance Optimizer # Hermes Performance Optimizer
## Purpose ## Purpose
Optimize agent performance, tune execution parameters, and improve efficiency for OpenClaw agents through systematic analysis and adjustment. Optimize agent performance, tune execution parameters, and improve efficiency for Hermes agents through systematic analysis and adjustment.
## Activation ## Activation
Trigger when user requests performance optimization: agent tuning, parameter adjustment, efficiency improvements, or performance benchmarking. Trigger when user requests performance optimization: agent tuning, parameter adjustment, efficiency improvements, or performance benchmarking.

View File

@@ -1,13 +1,13 @@
--- ---
description: Atomic OpenClaw session management with deterministic context preservation and workflow coordination description: Atomic hermes session management with deterministic context preservation and workflow coordination
title: openclaw-session-manager title: hermes-session-manager
version: 1.1 version: 1.1
--- ---
# OpenClaw Session Manager # hermes Session Manager
## Purpose ## Purpose
Create, manage, and optimize OpenClaw agent sessions with deterministic context preservation and workflow coordination. Create, manage, and optimize hermes agent sessions with deterministic context preservation and workflow coordination.
## Activation ## Activation
Trigger when user requests session operations: creation, management, context analysis, or session optimization. Trigger when user requests session operations: creation, management, context analysis, or session optimization.
@@ -63,7 +63,7 @@ Trigger when user requests session operations: creation, management, context ana
- Prepare optimization criteria - Prepare optimization criteria
### 3. Execute ### 3. Execute
- Execute OpenClaw session operations - Execute hermes session operations
- Monitor session health - Monitor session health
- Track context preservation - Track context preservation
- Analyze session performance - Analyze session performance
@@ -83,8 +83,8 @@ Trigger when user requests session operations: creation, management, context ana
- **MUST** track session resource usage - **MUST** track session resource usage
## Environment Assumptions ## Environment Assumptions
- OpenClaw 2026.3.24+ installed and gateway running - hermes 2026.3.24+ installed and gateway running
- Agent workspace configured at `~/.openclaw/workspace/` - Agent workspace configured at `~/.hermes/workspace/`
- Session storage functional - Session storage functional
- Context preservation mechanisms operational - Context preservation mechanisms operational
- Default session duration: 4 hours - Default session duration: 4 hours
@@ -145,6 +145,6 @@ Create a new session for main agent with context about blockchain optimization w
## Performance Notes ## Performance Notes
- **Execution Time**: 1-3 seconds for create/list, 5-15 seconds for analysis/optimization - **Execution Time**: 1-3 seconds for create/list, 5-15 seconds for analysis/optimization
- **Memory Usage**: <150MB for session management - **Memory Usage**: <150MB for session management
- **Network Requirements**: OpenClaw gateway connectivity - **Network Requirements**: hermes gateway connectivity
- **Concurrency**: Safe for multiple simultaneous sessions with different agents - **Concurrency**: Safe for multiple simultaneous sessions with different agents
- **Context Preservation**: Automatic context tracking and integrity validation - **Context Preservation**: Automatic context tracking and integrity validation

View File

@@ -1,4 +1,4 @@
# OpenClaw AITBC Agent Templates # Hermes AITBC Agent Templates
> **Canonical validation**: Use [`docs/scenarios/VALIDATION.md`](../../docs/scenarios/VALIDATION.md) with `scripts/workflow/44_comprehensive_multi_node_scenario.sh` when validating these templates. > **Canonical validation**: Use [`docs/scenarios/VALIDATION.md`](../../docs/scenarios/VALIDATION.md) with `scripts/workflow/44_comprehensive_multi_node_scenario.sh` when validating these templates.
@@ -27,7 +27,7 @@
"wallet": "aitbc-user", "wallet": "aitbc-user",
"auto_transaction": true "auto_transaction": true
}, },
"openclaw_config": { "hermes_config": {
"model": "ollama/nemotron-3-super:cloud", "model": "ollama/nemotron-3-super:cloud",
"workspace": "blockchain-monitor", "workspace": "blockchain-monitor",
"routing": { "routing": {
@@ -58,7 +58,7 @@
"profit_margin": 0.15, "profit_margin": 0.15,
"max_positions": 5 "max_positions": 5
}, },
"openclaw_config": { "hermes_config": {
"model": "ollama/nemotron-3-super:cloud", "model": "ollama/nemotron-3-super:cloud",
"workspace": "marketplace-trader", "workspace": "marketplace-trader",
"routing": { "routing": {
@@ -90,7 +90,7 @@
"data_retention": 86400, "data_retention": 86400,
"batch_processing": true "batch_processing": true
}, },
"openclaw_config": { "hermes_config": {
"model": "ollama/nemotron-3-super:cloud", "model": "ollama/nemotron-3-super:cloud",
"workspace": "blockchain-analyzer", "workspace": "blockchain-analyzer",
"routing": { "routing": {
@@ -120,7 +120,7 @@
"auto_failover": true, "auto_failover": true,
"health_checks": ["rpc", "sync", "transactions"] "health_checks": ["rpc", "sync", "transactions"]
}, },
"openclaw_config": { "hermes_config": {
"model": "ollama/nemotron-3-super:cloud", "model": "ollama/nemotron-3-super:cloud",
"workspace": "multi-node-coordinator", "workspace": "multi-node-coordinator",
"routing": { "routing": {
@@ -153,7 +153,7 @@
"chain_id": "ait-mainnet", "chain_id": "ait-mainnet",
"cross_node_routing": true "cross_node_routing": true
}, },
"openclaw_config": { "hermes_config": {
"model": "ollama/nemotron-3-super:cloud", "model": "ollama/nemotron-3-super:cloud",
"workspace": "blockchain-messaging", "workspace": "blockchain-messaging",
"routing": { "routing": {

View File

@@ -1,4 +1,4 @@
# OpenClaw AITBC Workflow Templates # hermes AITBC Workflow Templates
> **Canonical validation**: For end-to-end node coverage, use [`docs/scenarios/VALIDATION.md`](../../docs/scenarios/VALIDATION.md) and `scripts/workflow/44_comprehensive_multi_node_scenario.sh`. > **Canonical validation**: For end-to-end node coverage, use [`docs/scenarios/VALIDATION.md`](../../docs/scenarios/VALIDATION.md) and `scripts/workflow/44_comprehensive_multi_node_scenario.sh`.
@@ -262,7 +262,7 @@ success_criteria:
## Agent Training and Learning Workflow ## Agent Training and Learning Workflow
```yaml ```yaml
name: agent-learning name: agent-learning
description: Continuous learning and improvement for OpenClaw agents description: Continuous learning and improvement for hermes agents
version: 1.0.0 version: 1.0.0
schedule: "0 2 * * *" # Daily at 2 AM schedule: "0 2 * * *" # Daily at 2 AM
steps: steps:

View File

@@ -1,21 +1,21 @@
--- ---
description: Master index for OpenClaw workflows - links to all modules and provides navigation description: Master index for hermes workflows - links to all modules and provides navigation
title: OpenClaw Workflows - Master Index title: hermes Workflows - Master Index
version: 1.0 version: 1.0
--- ---
# OpenClaw Workflows - Master Index # hermes Workflows - Master Index
This master index provides navigation to all OpenClaw agent workflows and documentation. Each workflow focuses on specific aspects of OpenClaw agent training, coordination, and testing. This master index provides navigation to all hermes agent workflows and documentation. Each workflow focuses on specific aspects of hermes agent training, coordination, and testing.
## 📚 Module Overview ## 📚 Module Overview
### 🎓 Agent Training Modules ### 🎓 Agent Training Modules
#### Cross-Node Communication Training #### Cross-Node Communication Training
**File**: `openclaw-cross-node-communication.md` **File**: `hermes-cross-node-communication.md`
**Purpose**: Specialized training for agent-to-agent cross-node communication via AITBC blockchain **Purpose**: Specialized training for agent-to-agent cross-node communication via AITBC blockchain
**Audience**: OpenClaw agents learning multi-node coordination **Audience**: hermes agents learning multi-node coordination
**Prerequisites**: Stage 2 of Mastery Plan, both nodes synchronized **Prerequisites**: Stage 2 of Mastery Plan, both nodes synchronized
**Key Topics**: **Key Topics**:
@@ -28,21 +28,21 @@ This master index provides navigation to all OpenClaw agent workflows and docume
**Quick Start**: **Quick Start**:
```bash ```bash
cd /opt/aitbc/scripts/training cd /opt/aitbc/scripts/training
./openclaw_cross_node_comm.sh ./hermes_cross_node_comm.sh
``` ```
--- ---
### 🧪 Agent Testing Modules ### 🧪 Agent Testing Modules
#### Ollama GPU Provider Test (OpenClaw) #### Ollama GPU Provider Test (hermes)
**File**: `ollama-gpu-test-openclaw.md` **File**: `ollama-gpu-test-hermes.md`
**Purpose**: Complete end-to-end test for Ollama GPU inference jobs using OpenClaw agents **Purpose**: Complete end-to-end test for Ollama GPU inference jobs using hermes agents
**Audience**: QA engineers, OpenClaw developers **Audience**: QA engineers, hermes developers
**Prerequisites**: OpenClaw 2026.3.24+, all services running, enhanced CLI **Prerequisites**: hermes 2026.3.24+, all services running, enhanced CLI
**Key Topics**: **Key Topics**:
- Environment validation with OpenClaw agents - Environment validation with hermes agents
- Wallet setup and management - Wallet setup and management
- Service health verification - Service health verification
- GPU test execution and monitoring - GPU test execution and monitoring
@@ -53,7 +53,7 @@ cd /opt/aitbc/scripts/training
**Quick Start**: **Quick Start**:
```bash ```bash
SESSION_ID="ollama-gpu-test-$(date +%s)" SESSION_ID="ollama-gpu-test-$(date +%s)"
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Initialize complete Ollama GPU test workflow" \ --message "Initialize complete Ollama GPU test workflow" \
--thinking high --thinking high
``` ```
@@ -65,7 +65,7 @@ openclaw agent --agent test-coordinator --session-id $SESSION_ID \
#### Agent Coordination Plan Enhancement #### Agent Coordination Plan Enhancement
**File**: `agent-coordination-enhancement.md` **File**: `agent-coordination-enhancement.md`
**Purpose**: Advanced multi-agent communication patterns, distributed decision making, and scalable architectures **Purpose**: Advanced multi-agent communication patterns, distributed decision making, and scalable architectures
**Audience**: OpenClaw developers, system architects **Audience**: hermes developers, system architects
**Prerequisites**: Advanced AI Teaching Plan completed **Prerequisites**: Advanced AI Teaching Plan completed
**Key Topics**: **Key Topics**:
@@ -79,7 +79,7 @@ openclaw agent --agent test-coordinator --session-id $SESSION_ID \
**Quick Start**: **Quick Start**:
```bash ```bash
SESSION_ID="coordination-$(date +%s)" SESSION_ID="coordination-$(date +%s)"
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "BROADCAST: System-wide resource optimization initiated" \ --message "BROADCAST: System-wide resource optimization initiated" \
--thinking high --thinking high
``` ```
@@ -96,12 +96,12 @@ Cross-Node Communication Training (Foundation)
## 🚀 Recommended Learning Path ## 🚀 Recommended Learning Path
### For New OpenClaw Users ### For New hermes Users
1. **Cross-Node Communication Training** - Learn basic multi-node messaging 1. **Cross-Node Communication Training** - Learn basic multi-node messaging
2. **Ollama GPU Provider Test** - Practice agent-based testing 2. **Ollama GPU Provider Test** - Practice agent-based testing
3. **Agent Coordination Enhancement** - Master advanced coordination 3. **Agent Coordination Enhancement** - Master advanced coordination
### For OpenClaw Developers ### For hermes Developers
1. **Cross-Node Communication Training** - Understand multi-node architecture 1. **Cross-Node Communication Training** - Understand multi-node architecture
2. **Agent Coordination Enhancement** - Master coordination patterns 2. **Agent Coordination Enhancement** - Master coordination patterns
3. **Ollama GPU Provider Test** - Learn testing methodology 3. **Ollama GPU Provider Test** - Learn testing methodology
@@ -127,7 +127,7 @@ Cross-Node Communication Training (Foundation)
| Role | Essential Modules | | Role | Essential Modules |
|---|---| |---|---|
| **OpenClaw Developer** | Cross-Node Communication Training, Agent Coordination Enhancement | | **hermes Developer** | Cross-Node Communication Training, Agent Coordination Enhancement |
| **QA Engineer** | Ollama GPU Provider Test, Cross-Node Communication Training | | **QA Engineer** | Ollama GPU Provider Test, Cross-Node Communication Training |
| **System Architect** | Agent Coordination Enhancement, Cross-Node Communication Training | | **System Architect** | Agent Coordination Enhancement, Cross-Node Communication Training |
| **DevOps Engineer** | Ollama GPU Provider Test, Agent Coordination Enhancement | | **DevOps Engineer** | Ollama GPU Provider Test, Agent Coordination Enhancement |
@@ -147,7 +147,7 @@ Cross-Node Communication Training (Foundation)
```bash ```bash
# Register agent on genesis node # Register agent on genesis node
NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent create \ NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent create \
--name "openclaw-genesis-commander" \ --name "hermes-genesis-commander" \
--description "Primary coordinator agent" \ --description "Primary coordinator agent" \
--verification full --verification full
@@ -161,12 +161,12 @@ NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent message \
```bash ```bash
# Initialize test coordinator # Initialize test coordinator
SESSION_ID="ollama-test-$(date +%s)" SESSION_ID="ollama-test-$(date +%s)"
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Initialize Ollama GPU provider test workflow" \ --message "Initialize Ollama GPU provider test workflow" \
--thinking high --thinking high
# Submit inference job # Submit inference job
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Submit Ollama GPU inference job" \ --message "Submit Ollama GPU inference job" \
--parameters "prompt:What is the capital of France?,model:llama3.2:latest" --parameters "prompt:What is the capital of France?,model:llama3.2:latest"
``` ```
@@ -175,24 +175,24 @@ openclaw agent --agent client-agent --session-id $SESSION_ID \
```bash ```bash
# Hierarchical communication # Hierarchical communication
SESSION_ID="hierarchy-$(date +%s)" SESSION_ID="hierarchy-$(date +%s)"
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "Broadcast: Execute distributed AI workflow" \ --message "Broadcast: Execute distributed AI workflow" \
--thinking high --thinking high
# Consensus voting # Consensus voting
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "VOTE $PROPOSAL_ID: YES - Dynamic allocation optimizes AI performance" \ --message "VOTE $PROPOSAL_ID: YES - Dynamic allocation optimizes AI performance" \
--thinking medium --thinking medium
``` ```
## 📊 System Overview ## 📊 System Overview
### OpenClaw Architecture ### hermes Architecture
``` ```
OpenClaw Agent Ecosystem: hermes Agent Ecosystem:
├── Genesis Node (aitbc) - Primary development server ├── Genesis Node (aitbc) - Primary development server
├── Follower Node (aitbc1) - Secondary node ├── Follower Node (aitbc1) - Secondary node
├── Agent Gateway - OpenClaw communication layer ├── Agent Gateway - hermes communication layer
├── Blockchain Messaging - Transaction-based agent communication ├── Blockchain Messaging - Transaction-based agent communication
├── Smart Contracts - Agent messaging and governance ├── Smart Contracts - Agent messaging and governance
├── GPU Services - Ollama inference and resource management ├── GPU Services - Ollama inference and resource management
@@ -200,7 +200,7 @@ OpenClaw Agent Ecosystem:
``` ```
### Key Components ### Key Components
- **Agent Gateway**: OpenClaw communication and coordination - **Agent Gateway**: hermes communication and coordination
- **Blockchain Messaging**: Transaction-based cross-node communication - **Blockchain Messaging**: Transaction-based cross-node communication
- **Smart Contracts**: Agent messaging, reputation, and governance - **Smart Contracts**: Agent messaging, reputation, and governance
- **GPU Services**: Ollama inference, resource allocation - **GPU Services**: Ollama inference, resource allocation
@@ -237,7 +237,7 @@ OpenClaw Agent Ecosystem:
| Coordination timeout | Agent Coordination Enhancement | Check agent gateway, session management | | Coordination timeout | Agent Coordination Enhancement | Check agent gateway, session management |
### Emergency Procedures ### Emergency Procedures
1. **Agent Recovery**: Restart OpenClaw gateway, check agent status 1. **Agent Recovery**: Restart hermes gateway, check agent status
2. **Network Recovery**: Check node connectivity, restart P2P service 2. **Network Recovery**: Check node connectivity, restart P2P service
3. **Blockchain Recovery**: Check node sync, verify transaction pool 3. **Blockchain Recovery**: Check node sync, verify transaction pool
4. **Service Recovery**: Restart Agent Coordinator, Ollama, GPU miner 4. **Service Recovery**: Restart Agent Coordinator, Ollama, GPU miner
@@ -245,20 +245,20 @@ OpenClaw Agent Ecosystem:
## 📚 Additional Resources ## 📚 Additional Resources
### Documentation Files ### Documentation Files
- **OpenClaw Agent Capabilities**: `docs/openclaw/OPENCLAW_AGENT_CAPABILITIES_ADVANCED.md` - **hermes Agent Capabilities**: `docs/hermes/HERMES_AGENT_CAPABILITIES_ADVANCED.md`
- **Agent Communication Guide**: `docs/openclaw/guides/openclaw_agent_fix_summary.md` - **Agent Communication Guide**: `docs/hermes/guides/hermes_agent_fix_summary.md`
- **Messaging Implementation**: `docs/openclaw/guides/openclaw_messaging_implementation_guide.md` - **Messaging Implementation**: `docs/hermes/guides/hermes_messaging_implementation_guide.md`
- **Cross-Node Communication**: `docs/openclaw/guides/openclaw_cross_node_communication.md` - **Cross-Node Communication**: `docs/hermes/guides/hermes_cross_node_communication.md`
### Workflow Scripts ### Workflow Scripts
- **Cross-Node Training**: `/opt/aitbc/scripts/training/openclaw_cross_node_comm.sh` - **Cross-Node Training**: `/opt/aitbc/scripts/training/hermes_cross_node_comm.sh`
- **Ollama GPU Test**: `ollama_gpu_test_openclaw.sh` - **Ollama GPU Test**: `ollama_gpu_test_hermes.sh`
- **Agent Communication Fix**: `/opt/aitbc/scripts/workflow-openclaw/fix_agent_communication.sh` - **Agent Communication Fix**: `/opt/aitbc/scripts/workflow-hermes/fix_agent_communication.sh`
## 🔄 Version History ## 🔄 Version History
### v1.0 (Current) ### v1.0 (Current)
- Created master index for OpenClaw workflows - Created master index for hermes workflows
- Organized workflows by training, testing, and coordination - Organized workflows by training, testing, and coordination
- Added navigation and learning paths - Added navigation and learning paths
- Included quick reference commands and troubleshooting - Included quick reference commands and troubleshooting
@@ -281,6 +281,6 @@ OpenClaw Agent Ecosystem:
--- ---
**Note**: This master index is your starting point for all OpenClaw workflow operations. Choose the appropriate module based on your current task and expertise level. **Note**: This master index is your starting point for all hermes workflow operations. Choose the appropriate module based on your current task and expertise level.
For immediate help, see the **Cross-Node Communication Training** module for foundational knowledge, or the **Agent Coordination Enhancement** module for advanced patterns. For immediate help, see the **Cross-Node Communication Training** module for foundational knowledge, or the **Agent Coordination Enhancement** module for advanced patterns.

View File

@@ -416,12 +416,12 @@ Two-Node AITBC Blockchain:
## 📚 Additional Resources ## 📚 Additional Resources
### Documentation Files ### Documentation Files
- **OpenClaw Agent Communicator**: `../skills/openclaw-agent-communicator.md` - **hermes Agent Communicator**: `../skills/hermes-agent-communicator.md`
- **OpenClaw Coordination Orchestrator**: `../skills/openclaw-coordination-orchestrator.md` - **hermes Coordination Orchestrator**: `../skills/hermes-coordination-orchestrator.md`
- **OpenClaw Session Manager**: `../skills/openclaw-session-manager.md` - **hermes Session Manager**: `../skills/hermes-session-manager.md`
- **OpenClaw Agent Testing**: `../skills/openclaw-agent-testing-skill.md` - **hermes Agent Testing**: `../skills/hermes-agent-testing-skill.md`
- **OpenClaw Error Handler**: `../skills/openclaw-error-handler.md` - **hermes Error Handler**: `../skills/hermes-error-handler.md`
- **OpenClaw Performance Optimizer**: `../skills/openclaw-performance-optimizer.md` - **hermes Performance Optimizer**: `../skills/hermes-performance-optimizer.md`
### External Resources ### External Resources
- **AITBC Repository**: GitHub repository - **AITBC Repository**: GitHub repository

View File

@@ -6,7 +6,7 @@ version: 1.0
# Agent Coordination Plan Enhancement # Agent Coordination Plan Enhancement
This document outlines advanced multi-agent communication patterns, distributed decision making mechanisms, and scalable agent architectures for the OpenClaw agent ecosystem. This document outlines advanced multi-agent communication patterns, distributed decision making mechanisms, and scalable agent architectures for the hermes agent ecosystem.
## 🎯 Objectives ## 🎯 Objectives
@@ -41,16 +41,16 @@ CoordinatorAgent (Level 1)
SESSION_ID="hierarchy-$(date +%s)" SESSION_ID="hierarchy-$(date +%s)"
# Level 1: Coordinator broadcasts to Level 2 # Level 1: Coordinator broadcasts to Level 2
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "Broadcast: Execute distributed AI workflow across all Level 2 agents" \ --message "Broadcast: Execute distributed AI workflow across all Level 2 agents" \
--thinking high --thinking high
# Level 2: Agents respond to coordinator # Level 2: Agents respond to coordinator
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "Response to Coordinator: Ready for AI workflow execution with resource optimization" \ --message "Response to Coordinator: Ready for AI workflow execution with resource optimization" \
--thinking medium --thinking medium
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "Response to Coordinator: Ready for distributed task participation" \ --message "Response to Coordinator: Ready for distributed task participation" \
--thinking medium --thinking medium
``` ```
@@ -78,16 +78,16 @@ GenesisAgent ←→ FollowerAgent
SESSION_ID="p2p-$(date +%s)" SESSION_ID="p2p-$(date +%s)"
# Direct agent-to-agent communication # Direct agent-to-agent communication
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "P2P to FollowerAgent: Coordinate resource allocation for AI job batch" \ --message "P2P to FollowerAgent: Coordinate resource allocation for AI job batch" \
--thinking medium --thinking medium
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "P2P to GenesisAgent: Confirm resource availability and scheduling" \ --message "P2P to GenesisAgent: Confirm resource availability and scheduling" \
--thinking medium --thinking medium
# Cross-agent resource sharing # Cross-agent resource sharing
openclaw agent --agent AIResourceAgent --session-id $SESSION_ID \ hermes agent --agent AIResourceAgent --session-id $SESSION_ID \
--message "P2P to MultiModalAgent: Share GPU allocation for multi-modal processing" \ --message "P2P to MultiModalAgent: Share GPU allocation for multi-modal processing" \
--thinking low --thinking low
``` ```
@@ -106,13 +106,13 @@ openclaw agent --agent AIResourceAgent --session-id $SESSION_ID \
SESSION_ID="broadcast-$(date +%s)" SESSION_ID="broadcast-$(date +%s)"
# Coordinator broadcasts to all agents # Coordinator broadcasts to all agents
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "BROADCAST: System-wide resource optimization initiated - all agents participate" \ --message "BROADCAST: System-wide resource optimization initiated - all agents participate" \
--thinking high --thinking high
# Agents acknowledge broadcast # Agents acknowledge broadcast
for agent in GenesisAgent FollowerAgent AIResourceAgent MultiModalAgent; do for agent in GenesisAgent FollowerAgent AIResourceAgent MultiModalAgent; do
openclaw agent --agent $agent --session-id $SESSION_ID \ hermes agent --agent $agent --session-id $SESSION_ID \
--message "ACK: Received broadcast, initiating optimization protocols" \ --message "ACK: Received broadcast, initiating optimization protocols" \
--thinking low & --thinking low &
done done
@@ -138,7 +138,7 @@ SESSION_ID="voting-$(date +%s)"
PROPOSAL_ID="resource-strategy-$(date +%s)" PROPOSAL_ID="resource-strategy-$(date +%s)"
# Coordinator presents proposal # Coordinator presents proposal
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "VOTE PROPOSAL $PROPOSAL_ID: Implement dynamic GPU allocation with 70% utilization target" \ --message "VOTE PROPOSAL $PROPOSAL_ID: Implement dynamic GPU allocation with 70% utilization target" \
--thinking high --thinking high
@@ -147,19 +147,19 @@ echo "Collecting votes..."
VOTES=() VOTES=()
# Genesis Agent vote # Genesis Agent vote
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "VOTE $PROPOSAL_ID: YES - Dynamic allocation optimizes AI performance" \ --message "VOTE $PROPOSAL_ID: YES - Dynamic allocation optimizes AI performance" \
--thinking medium & --thinking medium &
VOTES+=("GenesisAgent:YES") VOTES+=("GenesisAgent:YES")
# Follower Agent vote # Follower Agent vote
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "VOTE $PROPOSAL_ID: YES - Improves resource utilization" \ --message "VOTE $PROPOSAL_ID: YES - Improves resource utilization" \
--thinking medium & --thinking medium &
VOTES+=("FollowerAgent:YES") VOTES+=("FollowerAgent:YES")
# AI Resource Agent vote # AI Resource Agent vote
openclaw agent --agent AIResourceAgent --session-id $SESSION_ID \ hermes agent --agent AIResourceAgent --session-id $SESSION_ID \
--message "VOTE $PROPOSAL_ID: YES - Aligns with optimization goals" \ --message "VOTE $PROPOSAL_ID: YES - Aligns with optimization goals" \
--thinking medium & --thinking medium &
VOTES+=("AIResourceAgent:YES") VOTES+=("AIResourceAgent:YES")
@@ -172,7 +172,7 @@ TOTAL_COUNT=${#VOTES[@]}
if [ $YES_COUNT -gt $((TOTAL_COUNT / 2)) ]; then if [ $YES_COUNT -gt $((TOTAL_COUNT / 2)) ]; then
echo "✅ PROPOSAL $PROPOSAL_ID APPROVED: $YES_COUNT/$TOTAL_COUNT votes" echo "✅ PROPOSAL $PROPOSAL_ID APPROVED: $YES_COUNT/$TOTAL_COUNT votes"
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "DECISION: Proposal $PROPOSAL_ID APPROVED - Implementing dynamic GPU allocation" \ --message "DECISION: Proposal $PROPOSAL_ID APPROVED - Implementing dynamic GPU allocation" \
--thinking high --thinking high
else else
@@ -194,23 +194,23 @@ fi
SESSION_ID="weighted-$(date +%s)" SESSION_ID="weighted-$(date +%s)"
# Decision: AI model selection for complex task # Decision: AI model selection for complex task
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "WEIGHTED DECISION: Select optimal AI model for medical diagnosis pipeline" \ --message "WEIGHTED DECISION: Select optimal AI model for medical diagnosis pipeline" \
--thinking high --thinking high
# Agents provide weighted recommendations # Agents provide weighted recommendations
# Genesis Agent (AI Operations Expertise - Weight: 3) # Genesis Agent (AI Operations Expertise - Weight: 3)
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "RECOMMENDATION: ensemble_model (confidence: 0.9, weight: 3) - Best for accuracy" \ --message "RECOMMENDATION: ensemble_model (confidence: 0.9, weight: 3) - Best for accuracy" \
--thinking high & --thinking high &
# MultiModal Agent (Multi-Modal Expertise - Weight: 2) # MultiModal Agent (Multi-Modal Expertise - Weight: 2)
openclaw agent --agent MultiModalAgent --session-id $SESSION_ID \ hermes agent --agent MultiModalAgent --session-id $SESSION_ID \
--message "RECOMMENDATION: multimodal_model (confidence: 0.8, weight: 2) - Handles multiple data types" \ --message "RECOMMENDATION: multimodal_model (confidence: 0.8, weight: 2) - Handles multiple data types" \
--thinking high & --thinking high &
# AI Resource Agent (Resource Expertise - Weight: 1) # AI Resource Agent (Resource Expertise - Weight: 1)
openclaw agent --agent AIResourceAgent --session-id $SESSION_ID \ hermes agent --agent AIResourceAgent --session-id $SESSION_ID \
--message "RECOMMENDATION: efficient_model (confidence: 0.7, weight: 1) - Best resource utilization" \ --message "RECOMMENDATION: efficient_model (confidence: 0.7, weight: 1) - Best resource utilization" \
--thinking medium & --thinking medium &
@@ -223,7 +223,7 @@ echo "Calculating weighted decision..."
# efficient_model: 0.7 * 1 = 0.7 # efficient_model: 0.7 * 1 = 0.7
# Winner: ensemble_model with highest weighted score # Winner: ensemble_model with highest weighted score
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "WEIGHTED DECISION: ensemble_model selected (weighted score: 2.7) - Highest confidence-weighted combination" \ --message "WEIGHTED DECISION: ensemble_model selected (weighted score: 2.7) - Highest confidence-weighted combination" \
--thinking high --thinking high
``` ```
@@ -242,30 +242,30 @@ openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \
SESSION_ID="problem-solving-$(date +%s)" SESSION_ID="problem-solving-$(date +%s)"
# Complex problem: Optimize AI service pricing strategy # Complex problem: Optimize AI service pricing strategy
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "PROBLEM SOLVING: Optimize AI service pricing for maximum profitability and utilization" \ --message "PROBLEM SOLVING: Optimize AI service pricing for maximum profitability and utilization" \
--thinking high --thinking high
# Agents analyze different aspects # Agents analyze different aspects
# Genesis Agent: Technical feasibility # Genesis Agent: Technical feasibility
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "ANALYSIS: Technical constraints suggest pricing range $50-200 per inference job" \ --message "ANALYSIS: Technical constraints suggest pricing range $50-200 per inference job" \
--thinking high & --thinking high &
# Follower Agent: Market analysis # Follower Agent: Market analysis
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "ANALYSIS: Market research shows competitive pricing at $80-150 per job" \ --message "ANALYSIS: Market research shows competitive pricing at $80-150 per job" \
--thinking medium & --thinking medium &
# AI Resource Agent: Cost analysis # AI Resource Agent: Cost analysis
openclaw agent --agent AIResourceAgent --session-id $SESSION_ID \ hermes agent --agent AIResourceAgent --session-id $SESSION_ID \
--message "ANALYSIS: Resource costs indicate minimum $60 per job for profitability" \ --message "ANALYSIS: Resource costs indicate minimum $60 per job for profitability" \
--thinking medium & --thinking medium &
wait wait
# Coordinator synthesizes solution # Coordinator synthesizes solution
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "SYNTHESIS: Optimal pricing strategy $80-120 range with dynamic adjustment based on demand" \ --message "SYNTHESIS: Optimal pricing strategy $80-120 range with dynamic adjustment based on demand" \
--thinking high --thinking high
``` ```
@@ -287,29 +287,29 @@ SESSION_ID="microservices-$(date +%s)"
# Specialized agents with specific responsibilities # Specialized agents with specific responsibilities
# AI Service Agent - Handles AI job processing # AI Service Agent - Handles AI job processing
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "SERVICE: Processing AI job queue with 5 concurrent jobs" \ --message "SERVICE: Processing AI job queue with 5 concurrent jobs" \
--thinking medium & --thinking medium &
# Resource Agent - Manages resource allocation # Resource Agent - Manages resource allocation
openclaw agent --agent AIResourceAgent --session-id $SESSION_ID \ hermes agent --agent AIResourceAgent --session-id $SESSION_ID \
--message "SERVICE: Allocating GPU resources with 85% utilization target" \ --message "SERVICE: Allocating GPU resources with 85% utilization target" \
--thinking medium & --thinking medium &
# Monitoring Agent - Tracks system health # Monitoring Agent - Tracks system health
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "SERVICE: Monitoring system health with 99.9% uptime target" \ --message "SERVICE: Monitoring system health with 99.9% uptime target" \
--thinking low & --thinking low &
# Analytics Agent - Provides insights # Analytics Agent - Provides insights
openclaw agent --agent MultiModalAgent --session-id $SESSION_ID \ hermes agent --agent MultiModalAgent --session-id $SESSION_ID \
--message "SERVICE: Analyzing performance metrics and optimization opportunities" \ --message "SERVICE: Analyzing performance metrics and optimization opportunities" \
--thinking medium & --thinking medium &
wait wait
# Service orchestration # Service orchestration
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "ORCHESTRATION: Coordinating 4 microservices for optimal system performance" \ --message "ORCHESTRATION: Coordinating 4 microservices for optimal system performance" \
--thinking high --thinking high
``` ```
@@ -328,27 +328,27 @@ openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \
SESSION_ID="load-balancing-$(date +%s)" SESSION_ID="load-balancing-$(date +%s)"
# Coordinator monitors agent loads # Coordinator monitors agent loads
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "LOAD BALANCE: Monitoring agent loads and redistributing tasks" \ --message "LOAD BALANCE: Monitoring agent loads and redistributing tasks" \
--thinking high --thinking high
# Agents report current load # Agents report current load
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "LOAD REPORT: Current load 75% - capacity for 5 more AI jobs" \ --message "LOAD REPORT: Current load 75% - capacity for 5 more AI jobs" \
--thinking low & --thinking low &
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "LOAD REPORT: Current load 45% - capacity for 10 more tasks" \ --message "LOAD REPORT: Current load 45% - capacity for 10 more tasks" \
--thinking low & --thinking low &
openclaw agent --agent AIResourceAgent --session-id $SESSION_ID \ hermes agent --agent AIResourceAgent --session-id $SESSION_ID \
--message "LOAD REPORT: Current load 60% - capacity for resource optimization tasks" \ --message "LOAD REPORT: Current load 60% - capacity for resource optimization tasks" \
--thinking low & --thinking low &
wait wait
# Coordinator redistributes load # Coordinator redistributes load
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "REDISTRIBUTION: Routing new tasks to FollowerAgent (45% load) for optimal balance" \ --message "REDISTRIBUTION: Routing new tasks to FollowerAgent (45% load) for optimal balance" \
--thinking high --thinking high
``` ```
@@ -368,24 +368,24 @@ SESSION_ID="federation-$(date +%s)"
# Local agent groups with coordination # Local agent groups with coordination
# Group 1: AI Processing Cluster # Group 1: AI Processing Cluster
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "FEDERATION: AI Processing Cluster - handling complex AI workflows" \ --message "FEDERATION: AI Processing Cluster - handling complex AI workflows" \
--thinking medium & --thinking medium &
# Group 2: Resource Management Cluster # Group 2: Resource Management Cluster
openclaw agent --agent AIResourceAgent --session-id $SESSION_ID \ hermes agent --agent AIResourceAgent --session-id $SESSION_ID \
--message "FEDERATION: Resource Management Cluster - optimizing system resources" \ --message "FEDERATION: Resource Management Cluster - optimizing system resources" \
--thinking medium & --thinking medium &
# Group 3: Monitoring Cluster # Group 3: Monitoring Cluster
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "FEDERATION: Monitoring Cluster - ensuring system health and reliability" \ --message "FEDERATION: Monitoring Cluster - ensuring system health and reliability" \
--thinking low & --thinking low &
wait wait
# Inter-federation coordination # Inter-federation coordination
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "FEDERATION COORDINATION: Coordinating 3 agent clusters for system-wide optimization" \ --message "FEDERATION COORDINATION: Coordinating 3 agent clusters for system-wide optimization" \
--thinking high --thinking high
``` ```
@@ -406,25 +406,25 @@ openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \
SESSION_ID="orchestration-$(date +%s)" SESSION_ID="orchestration-$(date +%s)"
# Step 1: Task decomposition # Step 1: Task decomposition
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "ORCHESTRATION: Decomposing complex AI pipeline into 5 subtasks for agent allocation" \ --message "ORCHESTRATION: Decomposing complex AI pipeline into 5 subtasks for agent allocation" \
--thinking high --thinking high
# Step 2: Task assignment # Step 2: Task assignment
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "ASSIGNMENT: Task 1->GenesisAgent, Task 2->MultiModalAgent, Task 3->AIResourceAgent, Task 4->FollowerAgent, Task 5->CoordinatorAgent" \ --message "ASSIGNMENT: Task 1->GenesisAgent, Task 2->MultiModalAgent, Task 3->AIResourceAgent, Task 4->FollowerAgent, Task 5->CoordinatorAgent" \
--thinking high --thinking high
# Step 3: Parallel execution # Step 3: Parallel execution
for agent in GenesisAgent MultiModalAgent AIResourceAgent FollowerAgent; do for agent in GenesisAgent MultiModalAgent AIResourceAgent FollowerAgent; do
openclaw agent --agent $agent --session-id $SESSION_ID \ hermes agent --agent $agent --session-id $SESSION_ID \
--message "EXECUTION: Starting assigned task with parallel processing" \ --message "EXECUTION: Starting assigned task with parallel processing" \
--thinking medium & --thinking medium &
done done
wait wait
# Step 4: Result aggregation # Step 4: Result aggregation
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "AGGREGATION: Collecting results from all agents for final synthesis" \ --message "AGGREGATION: Collecting results from all agents for final synthesis" \
--thinking high --thinking high
``` ```
@@ -437,18 +437,18 @@ openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \
SESSION_ID="adaptive-$(date +%s)" SESSION_ID="adaptive-$(date +%s)"
# Monitor system conditions # Monitor system conditions
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "MONITORING: System load at 85% - activating adaptive coordination protocols" \ --message "MONITORING: System load at 85% - activating adaptive coordination protocols" \
--thinking high --thinking high
# Adjust coordination strategy # Adjust coordination strategy
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "ADAPTATION: Switching from centralized to distributed coordination for load balancing" \ --message "ADAPTATION: Switching from centralized to distributed coordination for load balancing" \
--thinking high --thinking high
# Agents adapt to new coordination # Agents adapt to new coordination
for agent in GenesisAgent FollowerAgent AIResourceAgent MultiModalAgent; do for agent in GenesisAgent FollowerAgent AIResourceAgent MultiModalAgent; do
openclaw agent --agent $agent --session-id $SESSION_ID \ hermes agent --agent $agent --session-id $SESSION_ID \
--message "ADAPTATION: Adjusting to distributed coordination mode" \ --message "ADAPTATION: Adjusting to distributed coordination mode" \
--thinking medium & --thinking medium &
done done
@@ -464,7 +464,7 @@ SESSION_ID="metrics-$(date +%s)"
# Measure message latency # Measure message latency
start_time=$(date +%s.%N) start_time=$(date +%s.%N)
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "LATENCY TEST: Measuring communication performance" \ --message "LATENCY TEST: Measuring communication performance" \
--thinking low --thinking low
end_time=$(date +%s.%N) end_time=$(date +%s.%N)
@@ -474,7 +474,7 @@ echo "Message latency: ${latency}s"
# Monitor message throughput # Monitor message throughput
echo "Testing message throughput..." echo "Testing message throughput..."
for i in {1..10}; do for i in {1..10}; do
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
-message "THROUGHPUT TEST $i" \ -message "THROUGHPUT TEST $i" \
--thinking low & --thinking low &
done done

View File

@@ -331,7 +331,7 @@ echo "=== 9. SYSTEM DIRECTORY CREATION ==="
echo "Creating Data Directories:" echo "Creating Data Directories:"
mkdir -p /var/lib/aitbc/data/blockchain mkdir -p /var/lib/aitbc/data/blockchain
mkdir -p /var/lib/aitbc/data/marketplace mkdir -p /var/lib/aitbc/data/marketplace
mkdir -p /var/lib/aitbc/data/openclaw mkdir -p /var/lib/aitbc/data/hermes
mkdir -p /var/lib/aitbc/data/coordinator mkdir -p /var/lib/aitbc/data/coordinator
mkdir -p /var/lib/aitbc/data/exchange mkdir -p /var/lib/aitbc/data/exchange
mkdir -p /var/lib/aitbc/data/registry mkdir -p /var/lib/aitbc/data/registry
@@ -341,7 +341,7 @@ echo "✅ Data directories created"
echo "Creating Log Directories:" echo "Creating Log Directories:"
mkdir -p /var/log/aitbc/production/blockchain mkdir -p /var/log/aitbc/production/blockchain
mkdir -p /var/log/aitbc/production/marketplace mkdir -p /var/log/aitbc/production/marketplace
mkdir -p /var/log/aitbc/production/openclaw mkdir -p /var/log/aitbc/production/hermes
mkdir -p /var/log/aitbc/production/services mkdir -p /var/log/aitbc/production/services
mkdir -p /var/log/aitbc/production/errors mkdir -p /var/log/aitbc/production/errors
mkdir -p /var/log/aitbc/repository-logs mkdir -p /var/log/aitbc/repository-logs
@@ -419,7 +419,7 @@ echo "✅ SystemD reloaded"
```bash ```bash
# Restart AITBC services # Restart AITBC services
echo "=== 12. SERVICE RESTART ===" echo "=== 12. SERVICE RESTART ==="
services=("aitbc-marketplace.service" "aitbc-mining-blockchain.service" "aitbc-openclaw-ai.service" "aitbc-blockchain-node.service" "aitbc-blockchain-rpc.service") services=("aitbc-marketplace.service" "aitbc-mining-blockchain.service" "aitbc-hermes-ai.service" "aitbc-blockchain-node.service" "aitbc-blockchain-rpc.service")
for service in "${services[@]}"; do for service in "${services[@]}"; do
echo "Restarting $service..." echo "Restarting $service..."

View File

@@ -8,12 +8,12 @@ This workflow executes the complete end-to-end test for Ollama GPU inference job
## Current Active Skill Mapping ## Current Active Skill Mapping
This archived workflow maps to these active OpenClaw skills when you need agent coordination or validation support: This archived workflow maps to these active hermes skills when you need agent coordination or validation support:
- **`openclaw-agent-testing-skill.md`** — agent communication validation and performance testing - **`hermes-agent-testing-skill.md`** — agent communication validation and performance testing
- **`openclaw-agent-communicator.md`** — agent message handling and responses - **`hermes-agent-communicator.md`** — agent message handling and responses
- **`openclaw-coordination-orchestrator.md`** — multi-agent workflow coordination - **`hermes-coordination-orchestrator.md`** — multi-agent workflow coordination
- **`openclaw-session-manager.md`** — session creation and context management - **`hermes-session-manager.md`** — session creation and context management
## Prerequisites ## Prerequisites

View File

@@ -310,4 +310,4 @@ sudo systemctl restart aitbc-blockchain
--- ---
**Dependencies**: None (base module) **Dependencies**: None (base module)
**Next Module**: [OpenClaw Agent Testing](test-openclaw-agents.md) or [AI Operations Testing](test-ai-operations.md) **Next Module**: [hermes Agent Testing](test-hermes-agents.md) or [AI Operations Testing](test-ai-operations.md)

View File

@@ -1,51 +1,51 @@
--- ---
description: OpenClaw agent functionality and coordination testing module description: hermes agent functionality and coordination testing module
title: OpenClaw Agent Testing Module title: hermes Agent Testing Module
version: 1.0 version: 1.0
--- ---
# OpenClaw Agent Testing Module # hermes Agent Testing Module
This module covers OpenClaw agent functionality testing, multi-agent coordination, session management, and agent workflow validation. This module covers hermes agent functionality testing, multi-agent coordination, session management, and agent workflow validation.
## Current Active Skill Mapping ## Current Active Skill Mapping
This archived workflow maps to these active split skill files: This archived workflow maps to these active split skill files:
- **`openclaw-agent-testing-skill.md`** — agent communication validation and performance testing - **`hermes-agent-testing-skill.md`** — agent communication validation and performance testing
- **`openclaw-agent-communicator.md`** — agent message handling and responses - **`hermes-agent-communicator.md`** — agent message handling and responses
- **`openclaw-session-manager.md`** — session creation and context management - **`hermes-session-manager.md`** — session creation and context management
- **`openclaw-coordination-orchestrator.md`** — multi-agent workflow coordination - **`hermes-coordination-orchestrator.md`** — multi-agent workflow coordination
- **`openclaw-performance-optimizer.md`** — agent performance tuning and optimization - **`hermes-performance-optimizer.md`** — agent performance tuning and optimization
## Prerequisites ## Prerequisites
### Required Setup ### Required Setup
- Working directory: `/opt/aitbc` - Working directory: `/opt/aitbc`
- OpenClaw 2026.3.24+ installed - hermes 2026.3.24+ installed
- OpenClaw gateway running - hermes gateway running
- Basic Testing Module completed - Basic Testing Module completed
### Environment Setup ### Environment Setup
```bash ```bash
cd /opt/aitbc cd /opt/aitbc
source venv/bin/activate source venv/bin/activate
openclaw --version hermes --version
openclaw gateway status hermes gateway status
``` ```
## 1. OpenClaw Agent Basic Testing ## 1. hermes Agent Basic Testing
### Agent Registration and Status ### Agent Registration and Status
```bash ```bash
# Check OpenClaw gateway status # Check hermes gateway status
openclaw gateway status hermes gateway status
# List available agents # List available agents
openclaw agent list hermes agent list
# Check agent capabilities # Check agent capabilities
openclaw agent --agent GenesisAgent --session-id test --message "Status check" --thinking low hermes agent --agent GenesisAgent --session-id test --message "Status check" --thinking low
``` ```
### Expected Results ### Expected Results
@@ -55,14 +55,14 @@ openclaw agent --agent GenesisAgent --session-id test --message "Status check" -
### Troubleshooting Agent Issues ### Troubleshooting Agent Issues
```bash ```bash
# Restart OpenClaw gateway # Restart hermes gateway
sudo systemctl restart openclaw-gateway sudo systemctl restart hermes-gateway
# Check gateway logs # Check gateway logs
sudo journalctl -u openclaw-gateway -f sudo journalctl -u hermes-gateway -f
# Verify agent configuration # Verify agent configuration
openclaw config show hermes config show
``` ```
## 2. Single Agent Testing ## 2. Single Agent Testing
@@ -73,16 +73,16 @@ openclaw config show
SESSION_ID="genesis-test-$(date +%s)" SESSION_ID="genesis-test-$(date +%s)"
echo "Testing Genesis Agent with minimal thinking..." echo "Testing Genesis Agent with minimal thinking..."
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Test message - minimal thinking" --thinking minimal hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Test message - minimal thinking" --thinking minimal
echo "Testing Genesis Agent with low thinking..." echo "Testing Genesis Agent with low thinking..."
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Test message - low thinking" --thinking low hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Test message - low thinking" --thinking low
echo "Testing Genesis Agent with medium thinking..." echo "Testing Genesis Agent with medium thinking..."
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Test message - medium thinking" --thinking medium hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Test message - medium thinking" --thinking medium
echo "Testing Genesis Agent with high thinking..." echo "Testing Genesis Agent with high thinking..."
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Test message - high thinking" --thinking high hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Test message - high thinking" --thinking high
``` ```
### Follower Agent Testing ### Follower Agent Testing
@@ -91,10 +91,10 @@ openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Test mes
SESSION_ID="follower-test-$(date +%s)" SESSION_ID="follower-test-$(date +%s)"
echo "Testing Follower Agent..." echo "Testing Follower Agent..."
openclaw agent --agent FollowerAgent --session-id $SESSION_ID --message "Test follower agent response" --thinking low hermes agent --agent FollowerAgent --session-id $SESSION_ID --message "Test follower agent response" --thinking low
# Test follower agent coordination # Test follower agent coordination
openclaw agent --agent FollowerAgent --session-id $SESSION_ID --message "Coordinate with genesis node" --thinking medium hermes agent --agent FollowerAgent --session-id $SESSION_ID --message "Coordinate with genesis node" --thinking medium
``` ```
### Coordinator Agent Testing ### Coordinator Agent Testing
@@ -103,10 +103,10 @@ openclaw agent --agent FollowerAgent --session-id $SESSION_ID --message "Coordin
SESSION_ID="coordinator-test-$(date +%s)" SESSION_ID="coordinator-test-$(date +%s)"
echo "Testing Coordinator Agent..." echo "Testing Coordinator Agent..."
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID --message "Test coordination capabilities" --thinking high hermes agent --agent CoordinatorAgent --session-id $SESSION_ID --message "Test coordination capabilities" --thinking high
# Test multi-agent coordination # Test multi-agent coordination
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID --message "Coordinate multi-agent workflow" --thinking high hermes agent --agent CoordinatorAgent --session-id $SESSION_ID --message "Coordinate multi-agent workflow" --thinking high
``` ```
## 3. Multi-Agent Coordination Testing ## 3. Multi-Agent Coordination Testing
@@ -117,13 +117,13 @@ openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID --message "Coor
SESSION_ID="cross-agent-$(date +%s)" SESSION_ID="cross-agent-$(date +%s)"
# Genesis agent initiates # Genesis agent initiates
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Initiating cross-agent coordination test" --thinking high hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Initiating cross-agent coordination test" --thinking high
# Follower agent responds # Follower agent responds
openclaw agent --agent FollowerAgent --session-id $SESSION_ID --message "Responding to genesis agent coordination" --thinking medium hermes agent --agent FollowerAgent --session-id $SESSION_ID --message "Responding to genesis agent coordination" --thinking medium
# Coordinator agent orchestrates # Coordinator agent orchestrates
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID --message "Orchestrating multi-agent coordination" --thinking high hermes agent --agent CoordinatorAgent --session-id $SESSION_ID --message "Orchestrating multi-agent coordination" --thinking high
``` ```
### Session Management Testing ### Session Management Testing
@@ -132,12 +132,12 @@ openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID --message "Orch
SESSION_ID="session-test-$(date +%s)" SESSION_ID="session-test-$(date +%s)"
# Multiple messages in same session # Multiple messages in same session
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "First message in session" --thinking low hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "First message in session" --thinking low
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Second message in session" --thinking low hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Second message in session" --thinking low
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Third message in session" --thinking low hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Third message in session" --thinking low
# Test session with different agents # Test session with different agents
openclaw agent --agent FollowerAgent --session-id $SESSION_ID --message "Follower response in same session" --thinking medium hermes agent --agent FollowerAgent --session-id $SESSION_ID --message "Follower response in same session" --thinking medium
``` ```
## 4. Advanced Agent Capabilities Testing ## 4. Advanced Agent Capabilities Testing
@@ -148,17 +148,17 @@ openclaw agent --agent FollowerAgent --session-id $SESSION_ID --message "Followe
SESSION_ID="ai-workflow-$(date +%s)" SESSION_ID="ai-workflow-$(date +%s)"
# Genesis agent designs complex AI pipeline # Genesis agent designs complex AI pipeline
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "Design complex AI pipeline for medical diagnosis with parallel processing and error handling" \ --message "Design complex AI pipeline for medical diagnosis with parallel processing and error handling" \
--thinking high --thinking high
# Follower agent participates in pipeline # Follower agent participates in pipeline
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "Participate in complex AI pipeline execution with resource monitoring" \ --message "Participate in complex AI pipeline execution with resource monitoring" \
--thinking medium --thinking medium
# Coordinator agent orchestrates workflow # Coordinator agent orchestrates workflow
openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \ hermes agent --agent CoordinatorAgent --session-id $SESSION_ID \
--message "Orchestrate complex AI pipeline execution across multiple agents" \ --message "Orchestrate complex AI pipeline execution across multiple agents" \
--thinking high --thinking high
``` ```
@@ -169,12 +169,12 @@ openclaw agent --agent CoordinatorAgent --session-id $SESSION_ID \
SESSION_ID="multimodal-$(date +%s)" SESSION_ID="multimodal-$(date +%s)"
# Genesis agent designs multi-modal system # Genesis agent designs multi-modal system
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "Design multi-modal AI system for customer feedback analysis with cross-modal attention" \ --message "Design multi-modal AI system for customer feedback analysis with cross-modal attention" \
--thinking high --thinking high
# Follower agent handles specific modality # Follower agent handles specific modality
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "Handle text analysis modality in multi-modal AI system" \ --message "Handle text analysis modality in multi-modal AI system" \
--thinking medium --thinking medium
``` ```
@@ -185,12 +185,12 @@ openclaw agent --agent FollowerAgent --session-id $SESSION_ID \
SESSION_ID="resource-opt-$(date +%s)" SESSION_ID="resource-opt-$(date +%s)"
# Genesis agent optimizes resources # Genesis agent optimizes resources
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "Optimize GPU resource allocation for AI service provider with demand forecasting" \ --message "Optimize GPU resource allocation for AI service provider with demand forecasting" \
--thinking high --thinking high
# Follower agent monitors resources # Follower agent monitors resources
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "Monitor resource utilization and report optimization opportunities" \ --message "Monitor resource utilization and report optimization opportunities" \
--thinking medium --thinking medium
``` ```
@@ -206,14 +206,14 @@ echo "Testing agent response times..."
# Measure Genesis Agent response time # Measure Genesis Agent response time
start_time=$(date +%s.%N) start_time=$(date +%s.%N)
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Quick response test" --thinking low hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Quick response test" --thinking low
end_time=$(date +%s.%N) end_time=$(date +%s.%N)
genesis_time=$(echo "$end_time - $start_time" | bc) genesis_time=$(echo "$end_time - $start_time" | bc)
echo "Genesis Agent response time: ${genesis_time}s" echo "Genesis Agent response time: ${genesis_time}s"
# Measure Follower Agent response time # Measure Follower Agent response time
start_time=$(date +%s.%N) start_time=$(date +%s.%N)
openclaw agent --agent FollowerAgent --session-id $SESSION_ID --message "Quick response test" --thinking low hermes agent --agent FollowerAgent --session-id $SESSION_ID --message "Quick response test" --thinking low
end_time=$(date +%s.%N) end_time=$(date +%s.%N)
follower_time=$(echo "$end_time - $start_time" | bc) follower_time=$(echo "$end_time - $start_time" | bc)
echo "Follower Agent response time: ${follower_time}s" echo "Follower Agent response time: ${follower_time}s"
@@ -227,7 +227,7 @@ echo "Testing concurrent sessions..."
# Create multiple concurrent sessions # Create multiple concurrent sessions
for i in {1..5}; do for i in {1..5}; do
SESSION_ID="concurrent-$i-$(date +%s)" SESSION_ID="concurrent-$i-$(date +%s)"
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Concurrent test $i" --thinking low & hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Concurrent test $i" --thinking low &
done done
# Wait for all to complete # Wait for all to complete
@@ -243,13 +243,13 @@ echo "Concurrent session tests completed"
SESSION_ID="format-test-$(date +%s)" SESSION_ID="format-test-$(date +%s)"
# Test short message # Test short message
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Short" --thinking low hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Short" --thinking low
# Test medium message # Test medium message
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "This is a medium length message to test agent processing capabilities" --thinking low hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "This is a medium length message to test agent processing capabilities" --thinking low
# Test long message # Test long message
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "This is a longer message that tests the agent's ability to process more complex requests and provide detailed responses. It should demonstrate the agent's capability to handle substantial input and generate comprehensive output." --thinking medium hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "This is a longer message that tests the agent's ability to process more complex requests and provide detailed responses. It should demonstrate the agent's capability to handle substantial input and generate comprehensive output." --thinking medium
``` ```
### Special Character Testing ### Special Character Testing
@@ -258,10 +258,10 @@ openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "This is
SESSION_ID="special-test-$(date +%s)" SESSION_ID="special-test-$(date +%s)"
# Test special characters # Test special characters
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Test special chars: !@#$%^&*()_+-=[]{}|;':\",./<>?" --thinking low hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Test special chars: !@#$%^&*()_+-=[]{}|;':\",./<>?" --thinking low
# Test code blocks # Test code blocks
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Test code: \`print('Hello World')\` and \`\`\`python\ndef hello():\n print('Hello')\`\`\`" --thinking low hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Test code: \`print('Hello World')\` and \`\`\`python\ndef hello():\n print('Hello')\`\`\`" --thinking low
``` ```
## 7. Agent Error Handling Testing ## 7. Agent Error Handling Testing
@@ -270,14 +270,14 @@ openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Test cod
```bash ```bash
# Test invalid agent names # Test invalid agent names
echo "Testing invalid agent handling..." echo "Testing invalid agent handling..."
openclaw agent --agent InvalidAgent --session-id test --message "Test message" --thinking low 2>/dev/null && echo "ERROR: Invalid agent accepted" || echo "✅ Invalid agent properly rejected" hermes agent --agent InvalidAgent --session-id test --message "Test message" --thinking low 2>/dev/null && echo "ERROR: Invalid agent accepted" || echo "✅ Invalid agent properly rejected"
``` ```
### Invalid Session Testing ### Invalid Session Testing
```bash ```bash
# Test session handling # Test session handling
echo "Testing session handling..." echo "Testing session handling..."
openclaw agent --agent GenesisAgent --session-id "" --message "Test message" --thinking low 2>/dev/null && echo "ERROR: Empty session accepted" || echo "✅ Empty session properly rejected" hermes agent --agent GenesisAgent --session-id "" --message "Test message" --thinking low 2>/dev/null && echo "ERROR: Empty session accepted" || echo "✅ Empty session properly rejected"
``` ```
## 8. Agent Integration Testing ## 8. Agent Integration Testing
@@ -288,7 +288,7 @@ openclaw agent --agent GenesisAgent --session-id "" --message "Test message" --t
SESSION_ID="ai-integration-$(date +%s)" SESSION_ID="ai-integration-$(date +%s)"
# Agent submits AI job # Agent submits AI job
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "Submit AI job for text generation: Generate a short story about AI" \ --message "Submit AI job for text generation: Generate a short story about AI" \
--thinking high --thinking high
@@ -302,7 +302,7 @@ openclaw agent --agent GenesisAgent --session-id $SESSION_ID \
SESSION_ID="blockchain-integration-$(date +%s)" SESSION_ID="blockchain-integration-$(date +%s)"
# Agent checks blockchain status # Agent checks blockchain status
openclaw agent --agent GenesisAgent --session-id $SESSION_ID \ hermes agent --agent GenesisAgent --session-id $SESSION_ID \
--message "Check blockchain status and report current height and network conditions" \ --message "Check blockchain status and report current height and network conditions" \
--thinking medium --thinking medium
``` ```
@@ -313,7 +313,7 @@ openclaw agent --agent GenesisAgent --session-id $SESSION_ID \
SESSION_ID="resource-integration-$(date +%s)" SESSION_ID="resource-integration-$(date +%s)"
# Agent monitors resources # Agent monitors resources
openclaw agent --agent FollowerAgent --session-id $SESSION_ID \ hermes agent --agent FollowerAgent --session-id $SESSION_ID \
--message "Monitor system resources and report CPU, memory, and GPU utilization" \ --message "Monitor system resources and report CPU, memory, and GPU utilization" \
--thinking medium --thinking medium
``` ```
@@ -325,26 +325,26 @@ openclaw agent --agent FollowerAgent --session-id $SESSION_ID \
#!/bin/bash #!/bin/bash
# automated_agent_tests.sh # automated_agent_tests.sh
echo "=== OpenClaw Agent Tests ===" echo "=== hermes Agent Tests ==="
# Test gateway status # Test gateway status
echo "Testing OpenClaw gateway..." echo "Testing hermes gateway..."
openclaw gateway status || exit 1 hermes gateway status || exit 1
# Test basic agent functionality # Test basic agent functionality
echo "Testing basic agent functionality..." echo "Testing basic agent functionality..."
SESSION_ID="auto-test-$(date +%s)" SESSION_ID="auto-test-$(date +%s)"
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Automated test message" --thinking low || exit 1 hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Automated test message" --thinking low || exit 1
# Test multi-agent coordination # Test multi-agent coordination
echo "Testing multi-agent coordination..." echo "Testing multi-agent coordination..."
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Initiate coordination test" --thinking low || exit 1 hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Initiate coordination test" --thinking low || exit 1
openclaw agent --agent FollowerAgent --session-id $SESSION_ID --message "Respond to coordination test" --thinking low || exit 1 hermes agent --agent FollowerAgent --session-id $SESSION_ID --message "Respond to coordination test" --thinking low || exit 1
# Test session management # Test session management
echo "Testing session management..." echo "Testing session management..."
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Session test message 1" --thinking low || exit 1 hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Session test message 1" --thinking low || exit 1
openclaw agent --agent GenesisAgent --session-id $SESSION_ID --message "Session test message 2" --thinking low || exit 1 hermes agent --agent GenesisAgent --session-id $SESSION_ID --message "Session test message 2" --thinking low || exit 1
echo "✅ All agent tests passed!" echo "✅ All agent tests passed!"
``` ```
@@ -355,26 +355,26 @@ echo "✅ All agent tests passed!"
#### Gateway Not Running #### Gateway Not Running
```bash ```bash
# Problem: OpenClaw gateway not responding # Problem: hermes gateway not responding
# Solution: Start gateway service # Solution: Start gateway service
sudo systemctl start openclaw-gateway sudo systemctl start hermes-gateway
sudo systemctl status openclaw-gateway sudo systemctl status hermes-gateway
``` ```
#### Agent Not Responding #### Agent Not Responding
```bash ```bash
# Problem: Agent not responding to messages # Problem: Agent not responding to messages
# Solution: Check agent configuration and restart # Solution: Check agent configuration and restart
openclaw agent list hermes agent list
sudo systemctl restart openclaw-gateway sudo systemctl restart hermes-gateway
``` ```
#### Session Issues #### Session Issues
```bash ```bash
# Problem: Session not persisting # Problem: Session not persisting
# Solution: Check session storage # Solution: Check session storage
openclaw config show hermes config show
openclaw gateway status hermes gateway status
``` ```
#### Performance Issues #### Performance Issues
@@ -383,13 +383,13 @@ openclaw gateway status
# Solution: Check system resources # Solution: Check system resources
free -h free -h
df -h df -h
ps aux | grep openclaw ps aux | grep hermes
``` ```
## 11. Success Criteria ## 11. Success Criteria
### Pass/Fail Criteria ### Pass/Fail Criteria
-OpenClaw gateway running and responsive -hermes gateway running and responsive
- ✅ All agents respond to basic messages - ✅ All agents respond to basic messages
- ✅ Multi-agent coordination working - ✅ Multi-agent coordination working
- ✅ Session management functioning - ✅ Session management functioning

View File

@@ -16,7 +16,7 @@ See **[TEST_MASTER_INDEX.md](TEST_MASTER_INDEX.md)** for complete navigation to
### New Test Modules Available ### New Test Modules Available
1. **[Basic Testing Module](test-basic.md)** - CLI and core operations testing 1. **[Basic Testing Module](test-basic.md)** - CLI and core operations testing
2. **[OpenClaw Agent Testing](test-openclaw-agents.md)** - Agent functionality and coordination 2. **[hermes Agent Testing](test-hermes-agents.md)** - Agent functionality and coordination
3. **[AI Operations Testing](test-ai-operations.md)** - AI job submission and processing 3. **[AI Operations Testing](test-ai-operations.md)** - AI job submission and processing
4. **[Advanced AI Testing](test-advanced-ai.md)** - Complex AI workflows and multi-model pipelines 4. **[Advanced AI Testing](test-advanced-ai.md)** - Complex AI workflows and multi-model pipelines
5. **[Cross-Node Testing](test-cross-node.md)** - Multi-node coordination and distributed operations 5. **[Cross-Node Testing](test-cross-node.md)** - Multi-node coordination and distributed operations
@@ -57,11 +57,11 @@ source venv/bin/activate
./aitbc-cli resource status ./aitbc-cli resource status
``` ```
### Run OpenClaw Agent Tests ### Run hermes Agent Tests
```bash ```bash
# Reference: test-openclaw-agents.md # Reference: test-hermes-agents.md
openclaw agent --agent GenesisAgent --session-id test --message "Test message" --thinking low hermes agent --agent GenesisAgent --session-id test --message "Test message" --thinking low
openclaw agent --agent FollowerAgent --session-id test --message "Test response" --thinking low hermes agent --agent FollowerAgent --session-id test --message "Test response" --thinking low
``` ```
### Run AI Operations Tests ### Run AI Operations Tests
@@ -82,7 +82,7 @@ ssh aitbc1 'cd /opt/aitbc && ./aitbc-cli resource status'
### Phase 1: Basic Validation ### Phase 1: Basic Validation
1. **[Basic Testing Module](test-basic.md)** - Verify core functionality 1. **[Basic Testing Module](test-basic.md)** - Verify core functionality
2. **[OpenClaw Agent Testing](test-openclaw-agents.md)** - Validate agent operations 2. **[hermes Agent Testing](test-hermes-agents.md)** - Validate agent operations
3. **[AI Operations Testing](test-ai-operations.md)** - Confirm AI job processing 3. **[AI Operations Testing](test-ai-operations.md)** - Confirm AI job processing
### Phase 2: Advanced Validation ### Phase 2: Advanced Validation
@@ -98,12 +98,12 @@ ssh aitbc1 'cd /opt/aitbc && ./aitbc-cli resource status'
| Module | Focus | Prerequisites | Quick Command | | Module | Focus | Prerequisites | Quick Command |
|--------|-------|---------------|---------------| |--------|-------|---------------|---------------|
| **[Basic](test-basic.md)** | CLI & Core Ops | None | `./aitbc-cli --version` | | **[Basic](test-basic.md)** | CLI & Core Ops | None | `./aitbc-cli --version` |
| **[OpenClaw](test-openclaw-agents.md)** | Agent Testing | Basic | `openclaw agent --agent GenesisAgent --session-id test --message "test"` | | **[hermes](test-hermes-agents.md)** | Agent Testing | Basic | `hermes agent --agent GenesisAgent --session-id test --message "test"` |
| **[AI Ops](test-ai-operations.md)** | AI Jobs | Basic | `./aitbc-cli ai-submit --wallet genesis-ops --type inference --prompt "test" --payment 100` | | **[AI Ops](test-ai-operations.md)** | AI Jobs | Basic | `./aitbc-cli ai-submit --wallet genesis-ops --type inference --prompt "test" --payment 100` |
| **[Advanced AI](test-advanced-ai.md)** | Complex AI | AI Ops | `./aitbc-cli ai-submit --wallet genesis-ops --type parallel --prompt "complex test" --payment 500` | | **[Advanced AI](test-advanced-ai.md)** | Complex AI | AI Ops | `./aitbc-cli ai-submit --wallet genesis-ops --type parallel --prompt "complex test" --payment 500` |
| **[Cross-Node](test-cross-node.md)** | Multi-Node | AI Ops | `ssh aitbc1 'cd /opt/aitbc && ./aitbc-cli resource status'` | | **[Cross-Node](test-cross-node.md)** | Multi-Node | AI Ops | `ssh aitbc1 'cd /opt/aitbc && ./aitbc-cli resource status'` |
| **[Performance](test-performance.md)** | Performance | All | `./aitbc-cli simulate blockchain --blocks 100 --transactions 1000` | | **[Performance](test-performance.md)** | Performance | All | `./aitbc-cli simulate blockchain --blocks 100 --transactions 1000` |
| **[Integration](test-integration.md)** | End-to-End | All | `./scripts/workflow-openclaw/06_advanced_ai_workflow_openclaw.sh` | | **[Integration](test-integration.md)** | End-to-End | All | `./scripts/workflow-hermes/06_advanced_ai_workflow_hermes.sh` |
## 🎯 Migration Guide ## 🎯 Migration Guide
@@ -128,7 +128,7 @@ ssh aitbc1 'cd /opt/aitbc && ./aitbc-cli resource status'
#### **For New Deployments** #### **For New Deployments**
1. Start with **[Basic Testing Module](test-basic.md)** 1. Start with **[Basic Testing Module](test-basic.md)**
2. Add **[OpenClaw Agent Testing](test-openclaw-agents.md)** 2. Add **[hermes Agent Testing](test-hermes-agents.md)**
3. Include **[AI Operations Testing](test-ai-operations.md)** 3. Include **[AI Operations Testing](test-ai-operations.md)**
4. Add advanced modules as needed 4. Add advanced modules as needed
@@ -163,22 +163,22 @@ python run_cli_tests.py
python -m pytest cli/tests/test_marketplace.py -v python -m pytest cli/tests/test_marketplace.py -v
``` ```
### 2. Run OpenClaw Agent Tests ### 2. Run hermes Agent Tests
```bash ```bash
# Test OpenClaw gateway status # Test hermes gateway status
openclaw status --agent all hermes status --agent all
# Test basic agent communication # Test basic agent communication
openclaw agent --agent main --message "Test communication" --thinking minimal hermes agent --agent main --message "Test communication" --thinking minimal
# Test session-based workflow # Test session-based workflow
SESSION_ID="test-$(date +%s)" SESSION_ID="test-$(date +%s)"
openclaw agent --agent main --session-id $SESSION_ID --message "Initialize test session" --thinking low hermes agent --agent main --session-id $SESSION_ID --message "Initialize test session" --thinking low
openclaw agent --agent main --session-id $SESSION_ID --message "Continue test session" --thinking medium hermes agent --agent main --session-id $SESSION_ID --message "Continue test session" --thinking medium
# Test multi-agent coordination # Test multi-agent coordination
openclaw agent --agent coordinator --message "Test coordination" --thinking high & hermes agent --agent coordinator --message "Test coordination" --thinking high &
openclaw agent --agent worker --message "Test worker response" --thinking medium & hermes agent --agent worker --message "Test worker response" --thinking medium &
wait wait
``` ```
@@ -234,7 +234,7 @@ ssh aitbc1 'curl -s http://localhost:8006/health | jq .'
```bash ```bash
# Test complex AI pipeline # Test complex AI pipeline
SESSION_ID="advanced-test-$(date +%s)" SESSION_ID="advanced-test-$(date +%s)"
openclaw agent --agent main --session-id $SESSION_ID --message "Design complex AI pipeline for testing" --thinking high hermes agent --agent main --session-id $SESSION_ID --message "Design complex AI pipeline for testing" --thinking high
# Test parallel AI operations # Test parallel AI operations
./aitbc-cli ai-submit --wallet genesis-ops --type parallel --prompt "Parallel AI test" --payment 100 ./aitbc-cli ai-submit --wallet genesis-ops --type parallel --prompt "Parallel AI test" --payment 100
@@ -435,9 +435,9 @@ netstat -tlnp | grep -E "(8000|8001|8006|11434)"
./aitbc-cli wallet list ./aitbc-cli wallet list
./aitbc-cli chain ./aitbc-cli chain
# Check OpenClaw functionality # Check hermes functionality
openclaw --version hermes --version
openclaw status --agent all hermes status --agent all
# Check AI operations # Check AI operations
./aitbc-cli ai-ops --action status --job-id "latest" ./aitbc-cli ai-ops --action status --job-id "latest"
@@ -448,25 +448,25 @@ curl -s http://localhost:8006/health | jq .
ssh aitbc1 'curl -s http://localhost:8006/health | jq .' ssh aitbc1 'curl -s http://localhost:8006/health | jq .'
``` ```
### 13. OpenClaw Agent Debugging ### 13. hermes Agent Debugging
```bash ```bash
# Test OpenClaw gateway connectivity # Test hermes gateway connectivity
openclaw status --agent all hermes status --agent all
# Debug agent communication # Debug agent communication
openclaw agent --agent main --message "Debug test" --thinking high hermes agent --agent main --message "Debug test" --thinking high
# Test session management # Test session management
SESSION_ID="debug-$(date +%s)" SESSION_ID="debug-$(date +%s)"
openclaw agent --agent main --session-id $SESSION_ID --message "Session debug test" --thinking medium hermes agent --agent main --session-id $SESSION_ID --message "Session debug test" --thinking medium
# Test multi-agent coordination # Test multi-agent coordination
openclaw agent --agent coordinator --message "Debug coordination test" --thinking high & hermes agent --agent coordinator --message "Debug coordination test" --thinking high &
openclaw agent --agent worker --message "Debug worker response" --thinking medium & hermes agent --agent worker --message "Debug worker response" --thinking medium &
wait wait
# Check agent workspace # Check agent workspace
openclaw workspace --status hermes workspace --status
``` ```
### 14. AI Operations Debugging ### 14. AI Operations Debugging
@@ -500,8 +500,8 @@ ab -n 100 -c 10 http://localhost:8000/health
# Test blockchain RPC performance # Test blockchain RPC performance
time curl -s http://localhost:8006/rpc/head | python3 -m json.tool time curl -s http://localhost:8006/rpc/head | python3 -m json.tool
# Test OpenClaw agent performance # Test hermes agent performance
time openclaw agent --agent main --message "Performance test" --thinking high time hermes agent --agent main --message "Performance test" --thinking high
# Test AI operations performance # Test AI operations performance
time ./aitbc-cli ai-submit --wallet genesis-ops --type inference --prompt "Performance test" --payment 10 time ./aitbc-cli ai-submit --wallet genesis-ops --type inference --prompt "Performance test" --payment 10
@@ -644,7 +644,7 @@ python -m pytest cli/tests/test_cli_basic.py -v
## Recent Updates (v3.0) ## Recent Updates (v3.0)
### New Testing Capabilities ### New Testing Capabilities
- **OpenClaw Agent Testing**: Added comprehensive agent communication and coordination tests - **hermes Agent Testing**: Added comprehensive agent communication and coordination tests
- **AI Operations Testing**: Added AI job submission, resource allocation, and marketplace testing - **AI Operations Testing**: Added AI job submission, resource allocation, and marketplace testing
- **Modular Workflow Testing**: Added testing for all 6 modular workflow components - **Modular Workflow Testing**: Added testing for all 6 modular workflow components
- **Advanced AI Operations**: Added testing for complex AI pipelines and cross-node coordination - **Advanced AI Operations**: Added testing for complex AI pipelines and cross-node coordination
@@ -654,14 +654,14 @@ python -m pytest cli/tests/test_cli_basic.py -v
- **Multi-Agent Workflows**: Session-based agent coordination testing - **Multi-Agent Workflows**: Session-based agent coordination testing
- **AI Pipeline Testing**: Complex AI workflow orchestration testing - **AI Pipeline Testing**: Complex AI workflow orchestration testing
- **Distributed Testing**: Cross-node blockchain and AI operations testing - **Distributed Testing**: Cross-node blockchain and AI operations testing
- **Performance Testing**: Added OpenClaw and AI operations performance benchmarks - **Performance Testing**: Added hermes and AI operations performance benchmarks
- **Debugging Tools**: Enhanced troubleshooting for agent and AI operations - **Debugging Tools**: Enhanced troubleshooting for agent and AI operations
### Updated Project Structure ### Updated Project Structure
- **Working Directory**: `/opt/aitbc` - **Working Directory**: `/opt/aitbc`
- **Virtual Environment**: `/opt/aitbc/venv` - **Virtual Environment**: `/opt/aitbc/venv`
- **CLI Wrapper**: `./aitbc-cli` - **CLI Wrapper**: `./aitbc-cli`
- **OpenClaw Integration**: OpenClaw 2026.3.24+ gateway and agents - **hermes Integration**: hermes 2026.3.24+ gateway and agents
- **Modular Workflows**: 6 focused workflow modules - **Modular Workflows**: 6 focused workflow modules
- **Test Structure**: Updated to include agent and AI testing - **Test Structure**: Updated to include agent and AI testing
@@ -670,7 +670,7 @@ python -m pytest cli/tests/test_cli_basic.py -v
- **Exchange API**: Port 8001 - **Exchange API**: Port 8001
- **Blockchain RPC**: Port 8006 - **Blockchain RPC**: Port 8006
- **Ollama**: Port 11434 (GPU operations) - **Ollama**: Port 11434 (GPU operations)
- **OpenClaw Gateway**: Default port (configured in OpenClaw) - **hermes Gateway**: Default port (configured in hermes)
### Enhanced Testing Features ### Enhanced Testing Features
- **Agent Testing**: Multi-agent communication and coordination - **Agent Testing**: Multi-agent communication and coordination
@@ -682,7 +682,7 @@ python -m pytest cli/tests/test_cli_basic.py -v
### Current Commands ### Current Commands
- **CLI Commands**: Updated to use actual CLI implementation - **CLI Commands**: Updated to use actual CLI implementation
- **OpenClaw Commands**: Agent communication and coordination - **hermes Commands**: Agent communication and coordination
- **AI Operations**: Job submission, monitoring, marketplace - **AI Operations**: Job submission, monitoring, marketplace
- **Service Management**: Updated to current systemd services - **Service Management**: Updated to current systemd services
- **Modular Workflows**: Testing for all workflow modules - **Modular Workflows**: Testing for all workflow modules

View File

@@ -169,7 +169,7 @@ ssh aitbc1 'cd /opt/aitbc && git log --oneline -5 --decorate'
## Training Integration ## Training Integration
### Integration with Mastery Plan ### Integration with Mastery Plan
This workflow integrates with Stage 2 (Intermediate Operations) of the OpenClaw AITBC Mastery Plan. This workflow integrates with Stage 2 (Intermediate Operations) of the hermes AITBC Mastery Plan.
### Training Script ### Training Script
`/opt/aitbc/scripts/training/stage2_intermediate.sh` includes blockchain communication testing as part of the training curriculum. `/opt/aitbc/scripts/training/stage2_intermediate.sh` includes blockchain communication testing as part of the training curriculum.
@@ -259,4 +259,4 @@ ssh gitea-runner 'journalctl -u aitbc-blockchain-p2p -n 30 --no-pager'
## Related Workflows ## Related Workflows
- [Multi-Node Operations](/multi-node-blockchain-operations.md) - [Multi-Node Operations](/multi-node-blockchain-operations.md)
- [Multi-Node Setup Core](/multi-node-blockchain-setup-core.md) - [Multi-Node Setup Core](/multi-node-blockchain-setup-core.md)
- [Ollama GPU Test OpenClaw](/ollama-gpu-test-openclaw.md) - [Ollama GPU Test hermes](/ollama-gpu-test-hermes.md)

View File

@@ -1,25 +1,25 @@
--- ---
description: OpenClaw specialized training workflow for agent-to-agent cross-node communication via AITBC blockchain description: hermes specialized training workflow for agent-to-agent cross-node communication via AITBC blockchain
title: OpenClaw Cross-Node Communication Training title: hermes Cross-Node Communication Training
version: 1.0 version: 1.0
--- ---
# OpenClaw Cross-Node Communication Training # hermes Cross-Node Communication Training
## Purpose ## Purpose
This specialized training module teaches OpenClaw agents how to establish, verify, and utilize cross-node communication channels over the AITBC blockchain network (between genesis node `aitbc` and follower node `aitbc1`). This specialized training module teaches hermes agents how to establish, verify, and utilize cross-node communication channels over the AITBC blockchain network (between genesis node `aitbc` and follower node `aitbc1`).
## Learning Objectives ## Learning Objectives
1. **Agent Registration**: Register OpenClaw agents on multiple distinct blockchain nodes. 1. **Agent Registration**: Register hermes agents on multiple distinct blockchain nodes.
2. **Peer Discovery**: Discover agent endpoints and IDs across the blockchain state. 2. **Peer Discovery**: Discover agent endpoints and IDs across the blockchain state.
3. **Cross-Node Messaging**: Send and receive secure messages via blockchain transactions. 3. **Cross-Node Messaging**: Send and receive secure messages via blockchain transactions.
4. **Task Coordination**: Delegate AI tasks from a genesis-based agent to a follower-based agent. 4. **Task Coordination**: Delegate AI tasks from a genesis-based agent to a follower-based agent.
5. **Event Monitoring**: Subscribe to and parse blockchain events for incoming messages. 5. **Event Monitoring**: Subscribe to and parse blockchain events for incoming messages.
## Prerequisites ## Prerequisites
- Completed [Stage 2 of the Mastery Plan](/OPENCLAW_AITBC_MASTERY_PLAN.md) - Completed [Stage 2 of the Mastery Plan](/hermes_AITBC_MASTERY_PLAN.md)
- Both nodes synchronized and communicating on port 8006 - Both nodes synchronized and communicating on port 8006
- Funded wallets on both nodes (`openclaw-trainee` and `follower-ops`) - Funded wallets on both nodes (`hermes-trainee` and `follower-ops`)
## Training Modules ## Training Modules
@@ -29,14 +29,14 @@ Agents must be registered on the blockchain to receive messages.
```bash ```bash
# Genesis Node (aitbc: 10.1.223.40) # Genesis Node (aitbc: 10.1.223.40)
NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent create \ NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent create \
--name "openclaw-genesis-commander" \ --name "hermes-genesis-commander" \
--description "Primary coordinator agent on genesis node" \ --description "Primary coordinator agent on genesis node" \
--verification full \ --verification full \
--verbose --verbose
# Follower Node (aitbc1: <aitbc1-ip>) # Follower Node (aitbc1: <aitbc1-ip>)
NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent create \ NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent create \
--name "openclaw-follower-worker" \ --name "hermes-follower-worker" \
--description "Worker agent on follower node" \ --description "Worker agent on follower node" \
--verification full \ --verification full \
--debug --debug
@@ -47,7 +47,7 @@ Learn to format and transmit messages between the registered agents.
```bash ```bash
# Get follower agent ID # Get follower agent ID
FOLLOWER_AGENT_ID=$(NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent list --output json | jq -r '.[] | select(.name=="openclaw-follower-worker") | .id') FOLLOWER_AGENT_ID=$(NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent list --output json | jq -r '.[] | select(.name=="hermes-follower-worker") | .id')
# Send instruction from genesis to follower # Send instruction from genesis to follower
NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent message \ NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent message \
@@ -62,11 +62,11 @@ The follower agent must listen for and decode messages.
```bash ```bash
# Retrieve messages on follower node # Retrieve messages on follower node
NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent messages \ NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent messages \
--from openclaw-genesis-commander \ --from hermes-genesis-commander \
--output json --output json
# Acknowledge receipt (Follower -> Genesis) # Acknowledge receipt (Follower -> Genesis)
GENESIS_AGENT_ID=$(NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent list --output json | jq -r '.[] | select(.name=="openclaw-genesis-commander") | .id') GENESIS_AGENT_ID=$(NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent list --output json | jq -r '.[] | select(.name=="hermes-genesis-commander") | .id')
NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent message \ NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent message \
--to $GENESIS_AGENT_ID \ --to $GENESIS_AGENT_ID \
@@ -97,19 +97,19 @@ NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent message \
## Automated Training Script ## Automated Training Script
Execute the specialized training script to practice these operations autonomously. Execute the specialized training script to practice these operations autonomously.
**Script Path:** `/opt/aitbc/scripts/training/openclaw_cross_node_comm.sh` **Script Path:** `/opt/aitbc/scripts/training/hermes_cross_node_comm.sh`
```bash ```bash
# Run the interactive training # Run the interactive training
cd /opt/aitbc/scripts/training cd /opt/aitbc/scripts/training
./openclaw_cross_node_comm.sh ./hermes_cross_node_comm.sh
# Run in automated evaluation mode # Run in automated evaluation mode
./openclaw_cross_node_comm.sh --auto-eval ./hermes_cross_node_comm.sh --auto-eval
``` ```
## Success Validation ## Success Validation
An OpenClaw agent has mastered cross-node communication when it can: An hermes agent has mastered cross-node communication when it can:
1. Parse the local state to find remote agent IDs. 1. Parse the local state to find remote agent IDs.
2. Construct and broadcast a valid JSON payload in an `agent message` transaction. 2. Construct and broadcast a valid JSON payload in an `agent message` transaction.
3. Automatically poll or listen for response messages on the remote node. 3. Automatically poll or listen for response messages on the remote node.
@@ -118,4 +118,4 @@ An OpenClaw agent has mastered cross-node communication when it can:
## Related Skills ## Related Skills
- [aitbc-node-coordinator](/aitbc-node-coordinator.md) - [aitbc-node-coordinator](/aitbc-node-coordinator.md)
- [openclaw-coordination-orchestrator](/openclaw-coordination-orchestrator.md) - [hermes-coordination-orchestrator](/hermes-coordination-orchestrator.md)

View File

@@ -344,7 +344,7 @@ sudo sysctl -p
```bash ```bash
# Use session IDs for agent workflows # Use session IDs for agent workflows
SESSION_ID="task-$(date +%s)" SESSION_ID="task-$(date +%s)"
openclaw agent --agent main --session-id $SESSION_ID --message "Task description" hermes agent --agent main --session-id $SESSION_ID --message "Task description"
# Always verify transactions # Always verify transactions
./aitbc-cli wallet transactions wallet-name --limit 5 ./aitbc-cli wallet transactions wallet-name --limit 5

View File

@@ -1,13 +1,13 @@
--- ---
description: Multi-node blockchain deployment workflow executed by OpenClaw agents using optimized scripts description: Multi-node blockchain deployment workflow executed by hermes agents using optimized scripts
title: OpenClaw Multi-Node Blockchain Deployment title: hermes Multi-Node Blockchain Deployment
version: 4.1 version: 4.1
--- ---
# OpenClaw Multi-Node Blockchain Deployment Workflow # hermes Multi-Node Blockchain Deployment Workflow
Two-node AITBC blockchain setup: **aitbc** (genesis authority) + **aitbc1** (follower node). Two-node AITBC blockchain setup: **aitbc** (genesis authority) + **aitbc1** (follower node).
Coordinated by OpenClaw agents with AI operations, advanced coordination, and genesis reset capabilities. Coordinated by hermes agents with AI operations, advanced coordination, and genesis reset capabilities.
## 🆕 What's New in v4.1 ## 🆕 What's New in v4.1
@@ -23,13 +23,13 @@ Coordinated by OpenClaw agents with AI operations, advanced coordination, and ge
## Critical CLI Syntax ## Critical CLI Syntax
```bash ```bash
# OpenClaw — ALWAYS use --message (long form). -m does NOT work. # hermes — ALWAYS use --message (long form). -m does NOT work.
openclaw agent --agent main --message "task description" --thinking medium hermes agent --agent main --message "task description" --thinking medium
# Session-based (maintains context across calls) # Session-based (maintains context across calls)
SESSION_ID="deploy-$(date +%s)" SESSION_ID="deploy-$(date +%s)"
openclaw agent --agent main --session-id $SESSION_ID --message "Initialize deployment" --thinking low hermes agent --agent main --session-id $SESSION_ID --message "Initialize deployment" --thinking low
openclaw agent --agent main --session-id $SESSION_ID --message "Report progress" --thinking medium hermes agent --agent main --session-id $SESSION_ID --message "Report progress" --thinking medium
# AITBC CLI — always from /opt/aitbc with venv # AITBC CLI — always from /opt/aitbc with venv
cd /opt/aitbc && source venv/bin/activate cd /opt/aitbc && source venv/bin/activate
@@ -69,15 +69,15 @@ python3 /tmp/aitbc1_heartbeat.py
| Blockchain data | `/var/lib/aitbc/data/ait-mainnet/` | | Blockchain data | `/var/lib/aitbc/data/ait-mainnet/` |
| Keystore | `/var/lib/aitbc/keystore/` | | Keystore | `/var/lib/aitbc/keystore/` |
| Central env config | `/etc/aitbc/.env` | | Central env config | `/etc/aitbc/.env` |
| Workflow scripts | `/opt/aitbc/scripts/workflow-openclaw/` | | Workflow scripts | `/opt/aitbc/scripts/workflow-hermes/` |
| Documentation | `/opt/aitbc/docs/openclaw/` | | Documentation | `/opt/aitbc/docs/hermes/` |
| Logs | `/var/log/aitbc/` | | Logs | `/var/log/aitbc/` |
> All databases go in `/var/lib/aitbc/data/`, NOT in app directories. > All databases go in `/var/lib/aitbc/data/`, NOT in app directories.
## Unique Node Identity Configuration ## Unique Node Identity Configuration
Each node must have unique `proposer_id` and `p2p_node_id` for proper P2P network operation. The OpenClaw setup scripts automatically generate UUID-based IDs during initial setup. Each node must have unique `proposer_id` and `p2p_node_id` for proper P2P network operation. The hermes setup scripts automatically generate UUID-based IDs during initial setup.
### Node Identity Files ### Node Identity Files
- `/etc/aitbc/.env` - Contains `proposer_id` for block signing and consensus - `/etc/aitbc/.env` - Contains `proposer_id` for block signing and consensus
@@ -108,55 +108,55 @@ ssh gitea-runner 'grep -E "^(proposer_id|p2p_node_id)=" /etc/aitbc/.env /etc/ait
``` ```
### P2P Identity Issues ### P2P Identity Issues
If OpenClaw agents report P2P connection failures due to duplicate IDs: If hermes agents report P2P connection failures due to duplicate IDs:
1. Run the ID generation utility on affected nodes 1. Run the ID generation utility on affected nodes
2. Restart P2P services: `systemctl restart aitbc-blockchain-p2p` 2. Restart P2P services: `systemctl restart aitbc-blockchain-p2p`
3. Verify connectivity: `journalctl -u aitbc-blockchain-p2p -n 30` 3. Verify connectivity: `journalctl -u aitbc-blockchain-p2p -n 30`
4. Re-run OpenClaw agent coordination to confirm P2P connectivity 4. Re-run hermes agent coordination to confirm P2P connectivity
## Quick Start ## Quick Start
### Full Deployment (Recommended) ### Full Deployment (Recommended)
```bash ```bash
# 1. Complete orchestrated workflow # 1. Complete orchestrated workflow
/opt/aitbc/scripts/workflow-openclaw/05_complete_workflow_openclaw.sh /opt/aitbc/scripts/workflow-hermes/05_complete_workflow_hermes.sh
# 2. Verify both nodes # 2. Verify both nodes
curl -s http://localhost:8006/rpc/head | jq '.height' curl -s http://localhost:8006/rpc/head | jq '.height'
ssh aitbc1 'curl -s http://localhost:8006/rpc/head | jq .height' ssh aitbc1 'curl -s http://localhost:8006/rpc/head | jq .height'
# 3. Agent analysis of deployment # 3. Agent analysis of deployment
openclaw agent --agent main --message "Analyze multi-node blockchain deployment status" --thinking high hermes agent --agent main --message "Analyze multi-node blockchain deployment status" --thinking high
``` ```
### Phase-by-Phase Execution ### Phase-by-Phase Execution
```bash ```bash
# Phase 1: Pre-flight (tested, working) # Phase 1: Pre-flight (tested, working)
/opt/aitbc/scripts/workflow-openclaw/01_preflight_setup_openclaw_simple.sh /opt/aitbc/scripts/workflow-hermes/01_preflight_setup_hermes_simple.sh
# Phase 2: Genesis authority setup # Phase 2: Genesis authority setup
/opt/aitbc/scripts/workflow-openclaw/02_genesis_authority_setup_openclaw.sh /opt/aitbc/scripts/workflow-hermes/02_genesis_authority_setup_hermes.sh
# Phase 3: Follower node setup # Phase 3: Follower node setup
/opt/aitbc/scripts/workflow-openclaw/03_follower_node_setup_openclaw.sh /opt/aitbc/scripts/workflow-hermes/03_follower_node_setup_hermes.sh
# Phase 4: Wallet operations (tested, working) # Phase 4: Wallet operations (tested, working)
/opt/aitbc/scripts/workflow-openclaw/04_wallet_operations_openclaw_corrected.sh /opt/aitbc/scripts/workflow-hermes/04_wallet_operations_hermes_corrected.sh
# Phase 5: Smart contract messaging training # Phase 5: Smart contract messaging training
/opt/aitbc/scripts/workflow-openclaw/train_agent_messaging.sh /opt/aitbc/scripts/workflow-hermes/train_agent_messaging.sh
``` ```
## Available Scripts ## Available Scripts
``` ```
/opt/aitbc/scripts/workflow-openclaw/ /opt/aitbc/scripts/workflow-hermes/
├── 01_preflight_setup_openclaw_simple.sh # Pre-flight (tested) ├── 01_preflight_setup_hermes_simple.sh # Pre-flight (tested)
├── 01_preflight_setup_openclaw_corrected.sh # Pre-flight (corrected) ├── 01_preflight_setup_hermes_corrected.sh # Pre-flight (corrected)
├── 02_genesis_authority_setup_openclaw.sh # Genesis authority ├── 02_genesis_authority_setup_hermes.sh # Genesis authority
├── 03_follower_node_setup_openclaw.sh # Follower node ├── 03_follower_node_setup_hermes.sh # Follower node
├── 04_wallet_operations_openclaw_corrected.sh # Wallet ops (tested) ├── 04_wallet_operations_hermes_corrected.sh # Wallet ops (tested)
├── 05_complete_workflow_openclaw.sh # Full orchestration ├── 05_complete_workflow_hermes.sh # Full orchestration
├── fix_agent_communication.sh # Agent comm fix ├── fix_agent_communication.sh # Agent comm fix
├── train_agent_messaging.sh # SC messaging training ├── train_agent_messaging.sh # SC messaging training
└── implement_agent_messaging.sh # Advanced messaging └── implement_agent_messaging.sh # Advanced messaging
@@ -165,11 +165,11 @@ openclaw agent --agent main --message "Analyze multi-node blockchain deployment
## Workflow Phases ## Workflow Phases
### Phase 1: Pre-Flight Setup ### Phase 1: Pre-Flight Setup
- Verify OpenClaw gateway running - Verify hermes gateway running
- Check blockchain services on both nodes - Check blockchain services on both nodes
- Validate SSH connectivity to aitbc1 - Validate SSH connectivity to aitbc1
- Confirm data directories at `/var/lib/aitbc/data/ait-mainnet/` - Confirm data directories at `/var/lib/aitbc/data/ait-mainnet/`
- Initialize OpenClaw agent session - Initialize hermes agent session
### Phase 2: Genesis Authority Setup ### Phase 2: Genesis Authority Setup
- Configure genesis node environment - Configure genesis node environment
@@ -238,7 +238,7 @@ AITBC's `AgentMessagingContract` enables on-chain agent communication:
```bash ```bash
# Train agents on messaging # Train agents on messaging
openclaw agent --agent main --message "Teach me AITBC Agent Messaging Contract for cross-node communication" --thinking high hermes agent --agent main --message "Teach me AITBC Agent Messaging Contract for cross-node communication" --thinking high
``` ```
## Troubleshooting ## Troubleshooting
@@ -269,7 +269,7 @@ systemctl is-active aitbc-blockchain-{node,rpc}.service
ssh aitbc1 'systemctl is-active aitbc-blockchain-{node,rpc}.service' ssh aitbc1 'systemctl is-active aitbc-blockchain-{node,rpc}.service'
# Agent health check # Agent health check
openclaw agent --agent main --message "Report multi-node blockchain health" --thinking medium hermes agent --agent main --message "Report multi-node blockchain health" --thinking medium
# Integration test # Integration test
/opt/aitbc/scripts/workflow/44_comprehensive_multi_node_scenario.sh /opt/aitbc/scripts/workflow/44_comprehensive_multi_node_scenario.sh
@@ -277,7 +277,7 @@ openclaw agent --agent main --message "Report multi-node blockchain health" --th
## Documentation ## Documentation
Reports and guides are in `/opt/aitbc/docs/openclaw/`: Reports and guides are in `/opt/aitbc/docs/hermes/`:
- `guides/` — Implementation and fix guides - `guides/` — Implementation and fix guides
- `reports/` — Deployment and analysis reports - `reports/` — Deployment and analysis reports
- `training/` — Agent training materials - `training/` — Agent training materials

View File

@@ -1,16 +1,16 @@
--- ---
description: OpenClaw agent workflow for complete Ollama GPU provider testing from client submission to blockchain recording description: Hermes agent workflow for complete Ollama GPU provider testing from client submission to blockchain recording
title: OpenClaw Ollama GPU Provider Test Workflow title: Hermes Ollama GPU Provider Test Workflow
version: 1.0 version: 1.0
--- ---
# OpenClaw Ollama GPU Provider Test Workflow # Hermes Ollama GPU Provider Test Workflow
This OpenClaw agent workflow executes the complete end-to-end test for Ollama GPU inference jobs, including payment processing and blockchain transaction recording. This Hermes agent workflow executes the complete end-to-end test for Ollama GPU inference jobs, including payment processing and blockchain transaction recording.
## Prerequisites ## Prerequisites
- OpenClaw 2026.3.24+ installed and gateway running - Hermes 2026.3.24+ installed and gateway running
- All services running: coordinator, GPU miner, Ollama, blockchain node - All services running: coordinator, GPU miner, Ollama, blockchain node
- Home directory wallets configured - Home directory wallets configured
- Enhanced CLI with multi-wallet support - Enhanced CLI with multi-wallet support
@@ -41,19 +41,19 @@ This OpenClaw agent workflow executes the complete end-to-end test for Ollama GP
- Validate transaction confirmations - Validate transaction confirmations
- Check wallet balance updates - Check wallet balance updates
## OpenClaw Agent Workflow ## Hermes Agent Workflow
### Phase 1: Environment Validation ### Phase 1: Environment Validation
```bash ```bash
# Initialize test coordinator # Initialize test coordinator
SESSION_ID="ollama-test-$(date +%s)" SESSION_ID="ollama-test-$(date +%s)"
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Initialize Ollama GPU provider test workflow. Validate all services and dependencies." \ --message "Initialize Ollama GPU provider test workflow. Validate all services and dependencies." \
--thinking high --thinking high
# Agent performs environment checks # Agent performs environment checks
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Execute environment validation: check coordinator API, Ollama service, GPU miner, blockchain node health" \ --message "Execute environment validation: check coordinator API, Ollama service, GPU miner, blockchain node health" \
--thinking medium --thinking medium
``` ```
@@ -62,18 +62,18 @@ openclaw agent --agent test-coordinator --session-id $SESSION_ID \
```bash ```bash
# Initialize client agent # Initialize client agent
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Initialize as client agent. Create test wallets and configure for AI job submission." \ --message "Initialize as client agent. Create test wallets and configure for AI job submission." \
--thinking medium --thinking medium
# Agent creates test wallets # Agent creates test wallets
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Create test wallets: test-client and test-miner. Switch to client wallet and verify balance." \ --message "Create test wallets: test-client and test-miner. Switch to client wallet and verify balance." \
--thinking medium \ --thinking medium \
--parameters "wallet_type:simple,backup_enabled:true" --parameters "wallet_type:simple,backup_enabled:true"
# Initialize miner agent # Initialize miner agent
openclaw agent --agent miner-agent --session-id $SESSION_ID \ hermes agent --agent miner-agent --session-id $SESSION_ID \
--message "Initialize as miner agent. Verify miner wallet and GPU resource availability." \ --message "Initialize as miner agent. Verify miner wallet and GPU resource availability." \
--thinking medium --thinking medium
``` ```
@@ -82,13 +82,13 @@ openclaw agent --agent miner-agent --session-id $SESSION_ID \
```bash ```bash
# Coordinator agent checks all services # Coordinator agent checks all services
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Perform comprehensive service health check: coordinator API, Ollama GPU service, GPU miner service, blockchain RPC" \ --message "Perform comprehensive service health check: coordinator API, Ollama GPU service, GPU miner service, blockchain RPC" \
--thinking high \ --thinking high \
--parameters "timeout:30,retry_count:3" --parameters "timeout:30,retry_count:3"
# Agent reports service status # Agent reports service status
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Report service health status and readiness for GPU testing" \ --message "Report service health status and readiness for GPU testing" \
--thinking medium --thinking medium
``` ```
@@ -97,19 +97,19 @@ openclaw agent --agent test-coordinator --session-id $SESSION_ID \
```bash ```bash
# Client agent submits inference job # Client agent submits inference job
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Submit Ollama GPU inference job: 'What is the capital of France?' using llama3.2:latest model" \ --message "Submit Ollama GPU inference job: 'What is the capital of France?' using llama3.2:latest model" \
--thinking high \ --thinking high \
--parameters "prompt:What is the capital of France?,model:llama3.2:latest,payment:10" --parameters "prompt:What is the capital of France?,model:llama3.2:latest,payment:10"
# Agent monitors job progress # Agent monitors job progress
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Monitor job progress through states: QUEUED → RUNNING → COMPLETED" \ --message "Monitor job progress through states: QUEUED → RUNNING → COMPLETED" \
--thinking medium \ --thinking medium \
--parameters "polling_interval:5,timeout:300" --parameters "polling_interval:5,timeout:300"
# Agent validates job results # Agent validates job results
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Validate job result: 'The capital of France is Paris.' Check accuracy and completeness" \ --message "Validate job result: 'The capital of France is Paris.' Check accuracy and completeness" \
--thinking medium --thinking medium
``` ```
@@ -118,13 +118,13 @@ openclaw agent --agent client-agent --session-id $SESSION_ID \
```bash ```bash
# Client agent handles payment processing # Client agent handles payment processing
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Process payment for completed GPU job: verify receipt information, pricing, and total cost" \ --message "Process payment for completed GPU job: verify receipt information, pricing, and total cost" \
--thinking high \ --thinking high \
--parameters "validate_receipt:true,check_pricing:true" --parameters "validate_receipt:true,check_pricing:true"
# Agent reports payment details # Agent reports payment details
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Report payment details: receipt ID, provider, GPU seconds, unit price, total cost" \ --message "Report payment details: receipt ID, provider, GPU seconds, unit price, total cost" \
--thinking medium --thinking medium
``` ```
@@ -133,13 +133,13 @@ openclaw agent --agent client-agent --session-id $SESSION_ID \
```bash ```bash
# Blockchain agent verifies transaction recording # Blockchain agent verifies transaction recording
openclaw agent --agent blockchain-agent --session-id $SESSION_ID \ hermes agent --agent blockchain-agent --session-id $SESSION_ID \
--message "Verify blockchain transaction recording: check for payment transaction, validate confirmation, track block inclusion" \ --message "Verify blockchain transaction recording: check for payment transaction, validate confirmation, track block inclusion" \
--thinking high \ --thinking high \
--parameters "confirmations:1,timeout:60" --parameters "confirmations:1,timeout:60"
# Agent reports blockchain status # Agent reports blockchain status
openclaw agent --agent blockchain-agent --session-id $SESSION_ID \ hermes agent --agent blockchain-agent --session-id $SESSION_ID \
--message "Report blockchain verification results: transaction hash, block height, confirmation status" \ --message "Report blockchain verification results: transaction hash, block height, confirmation status" \
--thinking medium --thinking medium
``` ```
@@ -148,12 +148,12 @@ openclaw agent --agent blockchain-agent --session-id $SESSION_ID \
```bash ```bash
# Client agent checks final wallet balances # Client agent checks final wallet balances
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Verify final wallet balances after transaction: compare initial vs final balances" \ --message "Verify final wallet balances after transaction: compare initial vs final balances" \
--thinking medium --thinking medium
# Miner agent checks earnings # Miner agent checks earnings
openclaw agent --agent miner-agent --session-id $SESSION_ID \ hermes agent --agent miner-agent --session-id $SESSION_ID \
--message "Verify miner earnings: check wallet balance increase from GPU job payment" \ --message "Verify miner earnings: check wallet balance increase from GPU job payment" \
--thinking medium --thinking medium
``` ```
@@ -162,18 +162,18 @@ openclaw agent --agent miner-agent --session-id $SESSION_ID \
```bash ```bash
# Coordinator agent generates final report # Coordinator agent generates final report
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Generate comprehensive test completion report: all phases status, results, wallet changes, blockchain verification" \ --message "Generate comprehensive test completion report: all phases status, results, wallet changes, blockchain verification" \
--thinking xhigh \ --thinking xhigh \
--parameters "include_metrics:true,include_logs:true,format:comprehensive" --parameters "include_metrics:true,include_logs:true,format:comprehensive"
# Agent posts results to coordination topic # Agent posts results to coordination topic
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Post test results to blockchain coordination topic for permanent recording" \ --message "Post test results to blockchain coordination topic for permanent recording" \
--thinking high --thinking high
``` ```
## OpenClaw Agent Templates ## Hermes Agent Templates
### Test Coordinator Agent Template ### Test Coordinator Agent Template
@@ -289,22 +289,22 @@ openclaw agent --agent test-coordinator --session-id $SESSION_ID \
```bash ```bash
# Service Health Issues # Service Health Issues
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Service health check failed. Implementing recovery procedures: restart services, verify connectivity, check logs" \ --message "Service health check failed. Implementing recovery procedures: restart services, verify connectivity, check logs" \
--thinking high --thinking high
# Wallet Issues # Wallet Issues
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Wallet operation failed. Implementing wallet recovery: check keystore, verify permissions, recreate wallet if needed" \ --message "Wallet operation failed. Implementing wallet recovery: check keystore, verify permissions, recreate wallet if needed" \
--thinking high --thinking high
# GPU Issues # GPU Issues
openclaw agent --agent miner-agent --session-id $SESSION_ID \ hermes agent --agent miner-agent --session-id $SESSION_ID \
--message "GPU processing failed. Implementing recovery: check GPU availability, restart Ollama, verify model availability" \ --message "GPU processing failed. Implementing recovery: check GPU availability, restart Ollama, verify model availability" \
--thinking high --thinking high
# Blockchain Issues # Blockchain Issues
openclaw agent --agent blockchain-agent --session-id $SESSION_ID \ hermes agent --agent blockchain-agent --session-id $SESSION_ID \
--message "Blockchain verification failed. Implementing recovery: check node sync, verify transaction pool, retry with different parameters" \ --message "Blockchain verification failed. Implementing recovery: check node sync, verify transaction pool, retry with different parameters" \
--thinking high --thinking high
``` ```
@@ -315,17 +315,17 @@ openclaw agent --agent blockchain-agent --session-id $SESSION_ID \
```bash ```bash
# Monitor agent performance # Monitor agent performance
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Report agent performance metrics: response time, success rate, error count, resource utilization" \ --message "Report agent performance metrics: response time, success rate, error count, resource utilization" \
--thinking medium --thinking medium
# System performance during test # System performance during test
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Monitor system performance during GPU test: CPU usage, memory usage, GPU utilization, network I/O" \ --message "Monitor system performance during GPU test: CPU usage, memory usage, GPU utilization, network I/O" \
--thinking medium --thinking medium
``` ```
## OpenClaw Integration ## Hermes Integration
### Session Management ### Session Management
@@ -334,22 +334,22 @@ openclaw agent --agent test-coordinator --session-id $SESSION_ID \
SESSION_ID="ollama-gpu-test-$(date +%s)" SESSION_ID="ollama-gpu-test-$(date +%s)"
# Use session across all agents # Use session across all agents
openclaw agent --agent test-coordinator --session-id $SESSION_ID --message "Initialize test" --thinking high hermes agent --agent test-coordinator --session-id $SESSION_ID --message "Initialize test" --thinking high
openclaw agent --agent client-agent --session-id $SESSION_ID --message "Submit job" --thinking medium hermes agent --agent client-agent --session-id $SESSION_ID --message "Submit job" --thinking medium
openclaw agent --agent miner-agent --session-id $SESSION_ID --message "Monitor GPU" --thinking medium hermes agent --agent miner-agent --session-id $SESSION_ID --message "Monitor GPU" --thinking medium
openclaw agent --agent blockchain-agent --session-id $SESSION_ID --message "Verify blockchain" --thinking high hermes agent --agent blockchain-agent --session-id $SESSION_ID --message "Verify blockchain" --thinking high
``` ```
### Cross-Agent Communication ### Cross-Agent Communication
```bash ```bash
# Agents communicate through coordination topic # Agents communicate through coordination topic
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Post coordination message: Test phase completed, next phase starting" \ --message "Post coordination message: Test phase completed, next phase starting" \
--thinking medium --thinking medium
# Other agents respond to coordination # Other agents respond to coordination
openclaw agent --agent client-agent --session-id $SESSION_ID \ hermes agent --agent client-agent --session-id $SESSION_ID \
--message "Acknowledge coordination: Ready for next phase" \ --message "Acknowledge coordination: Ready for next phase" \
--thinking minimal --thinking minimal
``` ```
@@ -360,24 +360,24 @@ openclaw agent --agent client-agent --session-id $SESSION_ID \
```bash ```bash
#!/bin/bash #!/bin/bash
# ollama_gpu_test_openclaw.sh # ollama_gpu_test_hermes.sh
SESSION_ID="ollama-gpu-test-$(date +%s)" SESSION_ID="ollama-gpu-test-$(date +%s)"
echo "Starting OpenClaw Ollama GPU Provider Test..." echo "Starting Hermes Ollama GPU Provider Test..."
# Initialize coordinator # Initialize coordinator
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Initialize complete Ollama GPU test workflow" \ --message "Initialize complete Ollama GPU test workflow" \
--thinking high --thinking high
# Execute all phases automatically # Execute all phases automatically
openclaw agent --agent test-coordinator --session-id $SESSION_ID \ hermes agent --agent test-coordinator --session-id $SESSION_ID \
--message "Execute complete test: environment check, wallet setup, service health, GPU test, payment processing, blockchain verification, final reporting" \ --message "Execute complete test: environment check, wallet setup, service health, GPU test, payment processing, blockchain verification, final reporting" \
--thinking xhigh \ --thinking xhigh \
--parameters "auto_execute:true,timeout:600,report_format:comprehensive" --parameters "auto_execute:true,timeout:600,report_format:comprehensive"
echo "OpenClaw Ollama GPU test completed!" echo "Hermes Ollama GPU test completed!"
``` ```
## Integration with Existing Workflow ## Integration with Existing Workflow
@@ -389,11 +389,11 @@ echo "OpenClaw Ollama GPU test completed!"
cd /home/oib/windsurf/aitbc/home cd /home/oib/windsurf/aitbc/home
python3 test_ollama_blockchain.py python3 test_ollama_blockchain.py
# OpenClaw automated workflow # Hermes automated workflow
./ollama_gpu_test_openclaw.sh ./ollama_gpu_test_hermes.sh
``` ```
### Benefits of OpenClaw Integration ### Benefits of Hermes Integration
- **Intelligent Error Handling**: Agents detect and recover from failures - **Intelligent Error Handling**: Agents detect and recover from failures
- **Adaptive Testing**: Agents adjust test parameters based on system state - **Adaptive Testing**: Agents adjust test parameters based on system state
@@ -406,14 +406,14 @@ python3 test_ollama_blockchain.py
### Agent Communication Issues ### Agent Communication Issues
```bash ```bash
# Check OpenClaw gateway status # Check Hermes gateway status
openclaw status --agent all hermes status --agent all
# Test agent communication # Test agent communication
openclaw agent --agent test --message "ping" --thinking minimal hermes agent --agent test --message "ping" --thinking minimal
# Check session context # Check session context
openclaw agent --agent test-coordinator --session-id $SESSION_ID --message "report status" --thinking medium hermes agent --agent test-coordinator --session-id $SESSION_ID --message "report status" --thinking medium
``` ```
### Service Integration Issues ### Service Integration Issues
@@ -429,4 +429,4 @@ systemctl is-active aitbc-host-gpu-miner.service
./aitbc-cli wallet info ./aitbc-cli wallet info
``` ```
This OpenClaw agent workflow transforms the manual Ollama GPU test into an intelligent, automated, and blockchain-recorded testing process with comprehensive error handling and reporting capabilities. This Hermes agent workflow transforms the manual Ollama GPU test into an intelligent, automated, and blockchain-recorded testing process with comprehensive error handling and reporting capabilities.

View File

@@ -15,7 +15,7 @@
- **Multi-node federation** with independent islands and hub discovery - **Multi-node federation** with independent islands and hub discovery
### AI & Agent Systems ### AI & Agent Systems
- **OpenClaw agent communication** with blockchain integration - **Hermes agent communication** with blockchain integration
- **AI engine** for autonomous agent operations - **AI engine** for autonomous agent operations
- **Agent services** including registry, compliance, protocols, and trading - **Agent services** including registry, compliance, protocols, and trading
- **Agent daemon** with systemd integration - **Agent daemon** with systemd integration

View File

@@ -84,9 +84,9 @@ SERVICES = {
"base_url": os.getenv("MONITORING_SERVICE_URL", "http://localhost:8107"), "base_url": os.getenv("MONITORING_SERVICE_URL", "http://localhost:8107"),
"prefix": "/monitoring", "prefix": "/monitoring",
}, },
"openclaw": { "hermes": {
"base_url": os.getenv("OPENCLAW_SERVICE_URL", "http://localhost:8108"), "base_url": os.getenv("HERMES_SERVICE_URL", "http://localhost:8108"),
"prefix": "/openclaw", "prefix": "/hermes",
}, },
"plugin": { "plugin": {
"base_url": os.getenv("PLUGIN_SERVICE_URL", "http://localhost:8109"), "base_url": os.getenv("PLUGIN_SERVICE_URL", "http://localhost:8109"),

View File

@@ -1,7 +1,7 @@
[tool.poetry] [tool.poetry]
name = "blockchain-event-bridge" name = "blockchain-event-bridge"
version = "0.1.0" version = "0.1.0"
description = "Bridge between AITBC blockchain events and OpenClaw agent triggers" description = "Bridge between AITBC blockchain events and hermes agent triggers"
authors = ["AITBC Team"] authors = ["AITBC Team"]
readme = "README.md" readme = "README.md"

View File

@@ -1,3 +1,3 @@
"""Blockchain Event Bridge - Connects AITBC blockchain events to OpenClaw agent triggers.""" """Blockchain Event Bridge - Connects AITBC blockchain events to hermes agent triggers."""
__version__ = "0.1.0" __version__ = "0.1.0"

View File

@@ -1,4 +1,4 @@
"""Action handler modules for OpenClaw agent triggers.""" """Action handler modules for hermes agent triggers."""
from .coordinator_api import CoordinatorAPIHandler from .coordinator_api import CoordinatorAPIHandler
from .agent_daemon import AgentDaemonHandler from .agent_daemon import AgentDaemonHandler

View File

@@ -1,4 +1,4 @@
"""Coordinator API action handler for triggering OpenClaw agent actions.""" """Coordinator API action handler for triggering hermes agent actions."""
from typing import Any, Dict, List, Optional from typing import Any, Dict, List, Optional
from aitbc.http_client import AsyncAITBCHTTPClient from aitbc.http_client import AsyncAITBCHTTPClient

View File

@@ -1,4 +1,4 @@
"""Core bridge logic for blockchain event to OpenClaw agent trigger mapping.""" """Core bridge logic for blockchain event to hermes agent trigger mapping."""
import asyncio import asyncio
from typing import Any, Dict, Optional from typing import Any, Dict, Optional
@@ -25,7 +25,7 @@ logger = get_logger(__name__)
class BlockchainEventBridge: class BlockchainEventBridge:
"""Main bridge service connecting blockchain events to OpenClaw agent actions.""" """Main bridge service connecting blockchain events to hermes agent actions."""
def __init__(self, settings: Settings) -> None: def __init__(self, settings: Settings) -> None:
self.settings = settings self.settings = settings

View File

@@ -46,7 +46,7 @@ async def lifespan(app: FastAPI):
app = FastAPI( app = FastAPI(
title=settings.app_name, title=settings.app_name,
description="Bridge between AITBC blockchain events and OpenClaw agent triggers", description="Bridge between AITBC blockchain events and hermes agent triggers",
version="0.1.0", version="0.1.0",
lifespan=lifespan, lifespan=lifespan,
) )

View File

@@ -9,7 +9,7 @@ logger = get_logger(__name__)
class ConditionPoller: class ConditionPoller:
"""Polls for specific conditions that should trigger OpenClaw actions.""" """Polls for specific conditions that should trigger hermes actions."""
def __init__(self, settings: Any) -> None: def __init__(self, settings: Any) -> None:
self.settings = settings self.settings = settings

View File

@@ -188,7 +188,7 @@ def create_app() -> FastAPI:
"http://localhost:8012", # Modality Optimization "http://localhost:8012", # Modality Optimization
"http://localhost:8013", # Adaptive Learning "http://localhost:8013", # Adaptive Learning
"http://localhost:8014", # Marketplace Enhanced "http://localhost:8014", # Marketplace Enhanced
"http://localhost:8015", # OpenClaw Enhanced "http://localhost:8015", # hermes Enhanced
"http://localhost:8016", # Web UI "http://localhost:8016", # Web UI
], ],
allow_methods=["GET", "POST", "OPTIONS"], allow_methods=["GET", "POST", "OPTIONS"],

View File

@@ -82,7 +82,7 @@ def create_app() -> Starlette:
"http://localhost:8012", # Modality Optimization "http://localhost:8012", # Modality Optimization
"http://localhost:8013", # Adaptive Learning "http://localhost:8013", # Adaptive Learning
"http://localhost:8014", # Marketplace Enhanced "http://localhost:8014", # Marketplace Enhanced
"http://localhost:8015", # OpenClaw Enhanced "http://localhost:8015", # hermes Enhanced
"http://localhost:8016", # Web UI "http://localhost:8016", # Web UI
], ],
allow_methods=["POST", "GET", "OPTIONS"] allow_methods=["POST", "GET", "OPTIONS"]

View File

@@ -13,7 +13,7 @@
- `modality_optimization_health.py` - Modality Optimization Service (Port 8004) - `modality_optimization_health.py` - Modality Optimization Service (Port 8004)
- `adaptive_learning_health.py` - Adaptive Learning Service (Port 8005) - `adaptive_learning_health.py` - Adaptive Learning Service (Port 8005)
- `marketplace_enhanced_health.py` - Enhanced Marketplace Service (Port 8006) - `marketplace_enhanced_health.py` - Enhanced Marketplace Service (Port 8006)
- `openclaw_enhanced_health.py` - OpenClaw Enhanced Service (Port 8007) - `hermes_enhanced_health.py` - hermes Enhanced Service (Port 8007)
**Features:** **Features:**
- Basic `/health` endpoints with system metrics - Basic `/health` endpoints with system metrics
@@ -107,7 +107,7 @@ async def collect_all_health_data() -> Dict[str, Any]:
| Modality Optimization | 8004 | ✅ | ✅ | ✅ | | Modality Optimization | 8004 | ✅ | ✅ | ✅ |
| Adaptive Learning | 8005 | ✅ | ✅ | ✅ | | Adaptive Learning | 8005 | ✅ | ✅ | ✅ |
| Enhanced Marketplace | 8006 | ✅ | ✅ | ✅ | | Enhanced Marketplace | 8006 | ✅ | ✅ | ✅ |
| OpenClaw Enhanced | 8007 | ✅ | ✅ | ✅ | | hermes Enhanced | 8007 | ✅ | ✅ | ✅ |
## 🚀 Usage Instructions ## 🚀 Usage Instructions

View File

@@ -38,7 +38,7 @@ declare -A SERVICES=(
["aitbc-modality-optimization"]="8004:Modality Optimization Service" ["aitbc-modality-optimization"]="8004:Modality Optimization Service"
["aitbc-adaptive-learning"]="8005:Adaptive Learning Service" ["aitbc-adaptive-learning"]="8005:Adaptive Learning Service"
["aitbc-marketplace-enhanced"]="8006:Enhanced Marketplace Service" ["aitbc-marketplace-enhanced"]="8006:Enhanced Marketplace Service"
["aitbc-openclaw-enhanced"]="8007:OpenClaw Enhanced Service" ["aitbc-hermes-enhanced"]="8007:hermes Enhanced Service"
) )
print_header "=== AITBC Enhanced Services Status ===" print_header "=== AITBC Enhanced Services Status ==="

View File

@@ -97,20 +97,20 @@ def process_multimodal_data(request_data):
print(f"❌ Multi-Modal Processing: ERROR - {e}") print(f"❌ Multi-Modal Processing: ERROR - {e}")
return None return None
def route_to_openclaw_agents(processing_results): def route_to_hermes_agents(processing_results):
"""Route processing to OpenClaw agents for optimization""" """Route processing to hermes agents for optimization"""
print("\n🤖 OPENCLAW AGENT ROUTING") print("\n🤖 hermes AGENT ROUTING")
print("=" * 50) print("=" * 50)
# Test OpenClaw integration # Test hermes integration
try: try:
response = requests.post(f"{BASE_URL}/test-openclaw", response = requests.post(f"{BASE_URL}/test-hermes",
json=processing_results, json=processing_results,
timeout=10) timeout=10)
if response.status_code == 200: if response.status_code == 200:
result = response.json() result = response.json()
print(f"OpenClaw Integration: SUCCESS") print(f"hermes Integration: SUCCESS")
print(f" Service: {result['service']}") print(f" Service: {result['service']}")
print(f" Status: {result['status']}") print(f" Status: {result['status']}")
print(f" Agent Capabilities:") print(f" Agent Capabilities:")
@@ -133,11 +133,11 @@ def route_to_openclaw_agents(processing_results):
return agent_routing return agent_routing
else: else:
print(f"OpenClaw Integration: FAILED") print(f"hermes Integration: FAILED")
return None return None
except Exception as e: except Exception as e:
print(f"OpenClaw Integration: ERROR - {e}") print(f"hermes Integration: ERROR - {e}")
return None return None
def process_marketplace_transaction(agent_routing): def process_marketplace_transaction(agent_routing):
@@ -266,7 +266,7 @@ def run_complete_workflow():
print("🚀 AITBC Enhanced Services - Client-to-Miner Workflow Demo") print("🚀 AITBC Enhanced Services - Client-to-Miner Workflow Demo")
print("=" * 60) print("=" * 60)
print("Demonstrating complete AI agent processing pipeline") print("Demonstrating complete AI agent processing pipeline")
print("with multi-modal processing, OpenClaw integration, and marketplace") print("with multi-modal processing, hermes integration, and marketplace")
print("=" * 60) print("=" * 60)
# Step 1: Client Request # Step 1: Client Request
@@ -278,8 +278,8 @@ def run_complete_workflow():
print("\n❌ Workflow failed at multi-modal processing") print("\n❌ Workflow failed at multi-modal processing")
return False return False
# Step 3: OpenClaw Agent Routing # Step 3: hermes Agent Routing
agent_routing = route_to_openclaw_agents(processing_results) agent_routing = route_to_hermes_agents(processing_results)
if not agent_routing: if not agent_routing:
print("\n❌ Workflow failed at agent routing") print("\n❌ Workflow failed at agent routing")
return False return False
@@ -303,7 +303,7 @@ def run_complete_workflow():
print("🎯 Workflow Summary:") print("🎯 Workflow Summary:")
print(" 1. ✅ Client Request Received") print(" 1. ✅ Client Request Received")
print(" 2. ✅ Multi-Modal Data Processed (Text, Image, Audio)") print(" 2. ✅ Multi-Modal Data Processed (Text, Image, Audio)")
print(" 3. ✅ OpenClaw Agent Routing Applied") print(" 3. ✅ hermes Agent Routing Applied")
print(" 4. ✅ Marketplace Transaction Processed") print(" 4. ✅ Marketplace Transaction Processed")
print(" 5. ✅ Miner Job Completed") print(" 5. ✅ Miner Job Completed")
print(" 6. ✅ Result Returned to Client") print(" 6. ✅ Result Returned to Client")
@@ -317,7 +317,7 @@ def run_complete_workflow():
print(f"\n🔗 Enhanced Services Demonstrated:") print(f"\n🔗 Enhanced Services Demonstrated:")
print(f" ✅ Multi-Modal Processing: Text, Image, Audio analysis") print(f" ✅ Multi-Modal Processing: Text, Image, Audio analysis")
print(f"OpenClaw Integration: Agent routing and optimization") print(f"hermes Integration: Agent routing and optimization")
print(f" ✅ Marketplace Enhancement: Royalties, licensing, verification") print(f" ✅ Marketplace Enhancement: Royalties, licensing, verification")
print(f" ✅ GPU Acceleration: High-performance processing") print(f" ✅ GPU Acceleration: High-performance processing")
print(f" ✅ Client-to-Miner: Complete workflow pipeline") print(f" ✅ Client-to-Miner: Complete workflow pipeline")

View File

@@ -46,7 +46,7 @@ SERVICES=(
"aitbc-modality-optimization:8004:Modality Optimization" "aitbc-modality-optimization:8004:Modality Optimization"
"aitbc-adaptive-learning:8005:Adaptive Learning" "aitbc-adaptive-learning:8005:Adaptive Learning"
"aitbc-marketplace-enhanced:8006:Enhanced Marketplace" "aitbc-marketplace-enhanced:8006:Enhanced Marketplace"
"aitbc-openclaw-enhanced:8007:OpenClaw Enhanced" "aitbc-hermes-enhanced:8007:hermes Enhanced"
) )
# Install systemd services # Install systemd services
@@ -87,8 +87,8 @@ $SUDO sed -i 's|src.app.services.adaptive_learning:app|src.app.services.adaptive
# Update marketplace enhanced service # Update marketplace enhanced service
$SUDO sed -i 's|src.app.routers.marketplace_enhanced_simple:router|src.app.routers.marketplace_enhanced_app:app|' /etc/systemd/system/aitbc-marketplace-enhanced.service $SUDO sed -i 's|src.app.routers.marketplace_enhanced_simple:router|src.app.routers.marketplace_enhanced_app:app|' /etc/systemd/system/aitbc-marketplace-enhanced.service
# Update openclaw enhanced service # Update hermes enhanced service
$SUDO sed -i 's|src.app.routers.openclaw_enhanced_simple:router|src.app.routers.openclaw_enhanced_app:app|' /etc/systemd/system/aitbc-openclaw-enhanced.service $SUDO sed -i 's|src.app.routers.hermes_enhanced_simple:router|src.app.routers.hermes_enhanced_app:app|' /etc/systemd/system/aitbc-hermes-enhanced.service
# Reload systemd # Reload systemd
$SUDO systemctl daemon-reload $SUDO systemctl daemon-reload
@@ -151,7 +151,7 @@ SERVICES=(
"aitbc-modality-optimization:8004" "aitbc-modality-optimization:8004"
"aitbc-adaptive-learning:8005" "aitbc-adaptive-learning:8005"
"aitbc-marketplace-enhanced:8006" "aitbc-marketplace-enhanced:8006"
"aitbc-openclaw-enhanced:8007" "aitbc-hermes-enhanced:8007"
) )
for service_info in "${SERVICES[@]}"; do for service_info in "${SERVICES[@]}"; do
@@ -179,7 +179,7 @@ echo "$SUDO journalctl -u aitbc-gpu-multimodal -f"
echo "$SUDO journalctl -u aitbc-modality-optimization -f" echo "$SUDO journalctl -u aitbc-modality-optimization -f"
echo "$SUDO journalctl -u aitbc-adaptive-learning -f" echo "$SUDO journalctl -u aitbc-adaptive-learning -f"
echo "$SUDO journalctl -u aitbc-marketplace-enhanced -f" echo "$SUDO journalctl -u aitbc-marketplace-enhanced -f"
echo "$SUDO journalctl -u aitbc-openclaw-enhanced -f" echo "$SUDO journalctl -u aitbc-hermes-enhanced -f"
EOF EOF
chmod +x /home/oib/aitbc/apps/coordinator-api/check_services.sh chmod +x /home/oib/aitbc/apps/coordinator-api/check_services.sh
@@ -195,15 +195,15 @@ cat > /home/oib/aitbc/apps/coordinator-api/manage_services.sh << 'EOF'
case "$1" in case "$1" in
start) start)
echo "🚀 Starting all enhanced services..." echo "🚀 Starting all enhanced services..."
$SUDO systemctl start aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-openclaw-enhanced $SUDO systemctl start aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-hermes-enhanced
;; ;;
stop) stop)
echo "🛑 Stopping all enhanced services..." echo "🛑 Stopping all enhanced services..."
$SUDO systemctl stop aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-openclaw-enhanced $SUDO systemctl stop aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-hermes-enhanced
;; ;;
restart) restart)
echo "🔄 Restarting all enhanced services..." echo "🔄 Restarting all enhanced services..."
$SUDO systemctl restart aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-openclaw-enhanced $SUDO systemctl restart aitbc-multimodal aitbc-gpu-multimodal aitbc-modality-optimization aitbc-adaptive-learning aitbc-marketplace-enhanced aitbc-hermes-enhanced
;; ;;
status) status)
/home/oib/aitbc/apps/coordinator-api/check_services.sh /home/oib/aitbc/apps/coordinator-api/check_services.sh
@@ -219,7 +219,7 @@ case "$1" in
echo "aitbc-modality-optimization" echo "aitbc-modality-optimization"
echo "aitbc-adaptive-learning" echo "aitbc-adaptive-learning"
echo "aitbc-marketplace-enhanced" echo "aitbc-marketplace-enhanced"
echo "aitbc-openclaw-enhanced" echo "aitbc-hermes-enhanced"
echo "" echo ""
echo "Usage: $0 logs <service-name>" echo "Usage: $0 logs <service-name>"
fi fi
@@ -257,7 +257,7 @@ print_status " GPU Multi-Modal: http://127.0.0.1:8003"
print_status " Modality Optimization: http://127.0.0.1:8004" print_status " Modality Optimization: http://127.0.0.1:8004"
print_status " Adaptive Learning: http://127.0.0.1:8005" print_status " Adaptive Learning: http://127.0.0.1:8005"
print_status " Enhanced Marketplace: http://127.0.0.1:8006" print_status " Enhanced Marketplace: http://127.0.0.1:8006"
print_status " OpenClaw Enhanced: http://127.0.0.1:8007" print_status " hermes Enhanced: http://127.0.0.1:8007"
print_status "" print_status ""
print_status "📊 Monitoring:" print_status "📊 Monitoring:"
print_status " $SUDO systemctl status aitbc-multimodal" print_status " $SUDO systemctl status aitbc-multimodal"
@@ -266,4 +266,4 @@ print_status " $SUDO journalctl -u aitbc-gpu-multimodal -f"
print_status " $SUDO journalctl -u aitbc-modality-optimization -f" print_status " $SUDO journalctl -u aitbc-modality-optimization -f"
print_status " $SUDO journalctl -u aitbc-adaptive-learning -f" print_status " $SUDO journalctl -u aitbc-adaptive-learning -f"
print_status " $SUDO journalctl -u aitbc-marketplace-enhanced -f" print_status " $SUDO journalctl -u aitbc-marketplace-enhanced -f"
print_status " $SUDO journalctl -u aitbc-openclaw-enhanced -f" print_status " $SUDO journalctl -u aitbc-hermes-enhanced -f"

View File

@@ -36,7 +36,7 @@ declare -A SERVICES=(
["aitbc-modality-optimization"]="Modality Optimization Service" ["aitbc-modality-optimization"]="Modality Optimization Service"
["aitbc-adaptive-learning"]="Adaptive Learning Service" ["aitbc-adaptive-learning"]="Adaptive Learning Service"
["aitbc-marketplace-enhanced"]="Enhanced Marketplace Service" ["aitbc-marketplace-enhanced"]="Enhanced Marketplace Service"
["aitbc-openclaw-enhanced"]="OpenClaw Enhanced Service" ["aitbc-hermes-enhanced"]="hermes Enhanced Service"
) )
# Show usage # Show usage

View File

@@ -1,6 +1,6 @@
""" """
High Priority Implementation - Phase 6.5 & 6.6 High Priority Implementation - Phase 6.5 & 6.6
On-Chain Model Marketplace Enhancement and OpenClaw Integration Enhancement On-Chain Model Marketplace Enhancement and hermes Integration Enhancement
""" """
import asyncio import asyncio
@@ -71,7 +71,7 @@ class HighPriorityImplementation:
implementation_result["errors"].append(f"Phase 6.5 task {task} failed: {e}") implementation_result["errors"].append(f"Phase 6.5 task {task} failed: {e}")
logger.error(f"❌ Failed Phase 6.5 task {task}: {e}") logger.error(f"❌ Failed Phase 6.5 task {task}: {e}")
# Implement Phase 6.6: OpenClaw Enhancement # Implement Phase 6.6: hermes Enhancement
for task in self.phase6_6_tasks: for task in self.phase6_6_tasks:
try: try:
task_result = await self._implement_phase6_6_task(task) task_result = await self._implement_phase6_6_task(task)
@@ -347,7 +347,7 @@ class HighPriorityImplementation:
} }
async def _implement_opencaw_ecosystem_development(self) -> Dict[str, Any]: async def _implement_opencaw_ecosystem_development(self) -> Dict[str, Any]:
"""Implement OpenClaw ecosystem development""" """Implement hermes ecosystem development"""
return { return {
"developer_tools": { "developer_tools": {
@@ -377,7 +377,7 @@ class HighPriorityImplementation:
} }
async def _implement_opencaw_partnership_programs(self) -> Dict[str, Any]: async def _implement_opencaw_partnership_programs(self) -> Dict[str, Any]:
"""Implement OpenClaw partnership programs""" """Implement hermes partnership programs"""
return { return {
"technology_integration": { "technology_integration": {
@@ -768,7 +768,7 @@ async def main():
print("=" * 60) print("=" * 60)
print(f"✅ Implementation Status: {result['implementation_status']}") print(f"✅ Implementation Status: {result['implementation_status']}")
print(f"✅ Phase 6.5: Marketplace Enhancement Complete") print(f"✅ Phase 6.5: Marketplace Enhancement Complete")
print(f"✅ Phase 6.6: OpenClaw Enhancement Complete") print(f"✅ Phase 6.6: hermes Enhancement Complete")
print(f"✅ High Priority Features: {len(result['features_implemented'])} implemented") print(f"✅ High Priority Features: {len(result['features_implemented'])} implemented")
print(f"✅ Ready for: Production deployment and user adoption") print(f"✅ Ready for: Production deployment and user adoption")

View File

@@ -139,7 +139,7 @@ class Settings(BaseSettings):
"http://localhost:8012", # Modality Optimization "http://localhost:8012", # Modality Optimization
"http://localhost:8013", # Adaptive Learning "http://localhost:8013", # Adaptive Learning
"http://localhost:8014", # Marketplace Enhanced "http://localhost:8014", # Marketplace Enhanced
"http://localhost:8015", # OpenClaw Enhanced "http://localhost:8015", # hermes Enhanced
"http://localhost:8016", # Web UI "http://localhost:8016", # Web UI
] ]

View File

@@ -47,7 +47,7 @@ class Settings(BaseSettings):
"http://localhost:8012", # Modality Optimization "http://localhost:8012", # Modality Optimization
"http://localhost:8013", # Adaptive Learning "http://localhost:8013", # Adaptive Learning
"http://localhost:8014", # Marketplace Enhanced "http://localhost:8014", # Marketplace Enhanced
"http://localhost:8015", # OpenClaw Enhanced "http://localhost:8015", # hermes Enhanced
"http://localhost:8016", # Web UI "http://localhost:8016", # Web UI
"https://aitbc.bubuit.net", "https://aitbc.bubuit.net",
"https://aitbc.bubuit.net:8011", "https://aitbc.bubuit.net:8011",

View File

@@ -70,7 +70,7 @@ class AgentPerformanceProfile(SQLModel, table=True):
# Agent identification # Agent identification
agent_id: str = Field(index=True) agent_id: str = Field(index=True)
agent_type: str = Field(default="openclaw") agent_type: str = Field(default="hermes")
agent_version: str = Field(default="1.0.0") agent_version: str = Field(default="1.0.0")
# Performance metrics # Performance metrics

View File

@@ -1,6 +1,6 @@
""" """
Community and Developer Ecosystem Models Community and Developer Ecosystem Models
Database models for OpenClaw agent community, third-party solutions, and innovation labs Database models for hermes agent community, third-party solutions, and innovation labs
""" """
import uuid import uuid
@@ -44,7 +44,7 @@ class HackathonStatus(StrEnum):
class DeveloperProfile(SQLModel, table=True): class DeveloperProfile(SQLModel, table=True):
"""Profile for a developer in the OpenClaw community""" """Profile for a developer in the hermes community"""
__tablename__ = "developer_profiles" __tablename__ = "developer_profiles"

View File

@@ -1,6 +1,6 @@
""" """
Decentralized Governance Models Decentralized Governance Models
Database models for OpenClaw DAO, voting, proposals, and governance analytics Database models for hermes DAO, voting, proposals, and governance analytics
""" """
import uuid import uuid

View File

@@ -77,7 +77,7 @@ except ImportError:
print("WARNING: ML ZK proofs router not available (missing tenseal)") print("WARNING: ML ZK proofs router not available (missing tenseal)")
from .routers.marketplace_enhanced_simple import router as marketplace_enhanced from .routers.marketplace_enhanced_simple import router as marketplace_enhanced
from .routers.monitoring_dashboard import router as monitoring_dashboard from .routers.monitoring_dashboard import router as monitoring_dashboard
from .routers.openclaw_enhanced_simple import router as openclaw_enhanced from .routers.hermes_enhanced_simple import router as hermes_enhanced
# Skip optional routers with missing dependencies # Skip optional routers with missing dependencies
try: try:
@@ -339,7 +339,7 @@ def create_app() -> FastAPI:
if ml_zk_proofs: if ml_zk_proofs:
app.include_router(ml_zk_proofs) app.include_router(ml_zk_proofs)
app.include_router(marketplace_enhanced, prefix="/v1") app.include_router(marketplace_enhanced, prefix="/v1")
app.include_router(openclaw_enhanced, prefix="/v1") app.include_router(hermes_enhanced, prefix="/v1")
app.include_router(monitoring_dashboard, prefix="/v1") app.include_router(monitoring_dashboard, prefix="/v1")
app.include_router(agent_router.router, prefix="/v1/agents") app.include_router(agent_router.router, prefix="/v1/agents")
app.include_router(agent_identity, prefix="/v1") app.include_router(agent_identity, prefix="/v1")

View File

@@ -47,7 +47,7 @@ class PerformanceProfileRequest(BaseModel):
"""Request model for performance profile creation""" """Request model for performance profile creation"""
agent_id: str agent_id: str
agent_type: str = Field(default="openclaw") agent_type: str = Field(default="hermes")
initial_metrics: Dict[str, float] = Field(default_factory=dict) initial_metrics: Dict[str, float] = Field(default_factory=dict)

View File

@@ -4,7 +4,7 @@ from sqlalchemy.orm import Session
""" """
Community and Developer Ecosystem API Endpoints Community and Developer Ecosystem API Endpoints
REST API for managing OpenClaw developer profiles, SDKs, solutions, and hackathons REST API for managing hermes developer profiles, SDKs, solutions, and hackathons
""" """
from typing import Any from typing import Any
@@ -85,7 +85,7 @@ class HackathonCreateRequest(BaseModel):
# Endpoints - Developer Ecosystem # Endpoints - Developer Ecosystem
@router.post("/developers", response_model=DeveloperProfile) @router.post("/developers", response_model=DeveloperProfile)
async def create_developer_profile(request: DeveloperProfileCreate, session: Annotated[Session, Depends(get_session)]) -> DeveloperProfile: async def create_developer_profile(request: DeveloperProfileCreate, session: Annotated[Session, Depends(get_session)]) -> DeveloperProfile:
"""Register a new developer in the OpenClaw ecosystem""" """Register a new developer in the hermes ecosystem"""
service = DeveloperEcosystemService(session) service = DeveloperEcosystemService(session)
try: try:
profile = await service.create_developer_profile( profile = await service.create_developer_profile(
@@ -109,7 +109,7 @@ async def get_developer_profile(developer_id: str, session: Annotated[Session, D
@router.get("/sdk/latest") @router.get("/sdk/latest")
async def get_latest_sdk(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]: async def get_latest_sdk(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]:
"""Get information about the latest OpenClaw SDK releases""" """Get information about the latest hermes SDK releases"""
service = DeveloperEcosystemService(session) service = DeveloperEcosystemService(session)
return await service.get_sdk_release_info() return await service.get_sdk_release_info()

View File

@@ -4,7 +4,7 @@ from sqlalchemy.orm import Session
""" """
Decentralized Governance API Endpoints Decentralized Governance API Endpoints
REST API for OpenClaw DAO voting, proposals, and governance analytics REST API for hermes DAO voting, proposals, and governance analytics
""" """
from __future__ import annotations from __future__ import annotations

View File

@@ -52,8 +52,8 @@ SERVICES = {
"description": "NFT 2.0, royalties, analytics", "description": "NFT 2.0, royalties, analytics",
"icon": "🏪", "icon": "🏪",
}, },
"openclaw_enhanced": { "hermes_enhanced": {
"name": "OpenClaw Enhanced Service", "name": "hermes Enhanced Service",
"port": 8007, "port": 8007,
"url": "http://localhost:8007", "url": "http://localhost:8007",
"description": "Agent orchestration, edge computing", "description": "Agent orchestration, edge computing",

View File

@@ -3,7 +3,7 @@ from typing import Annotated
from sqlalchemy.orm import Session from sqlalchemy.orm import Session
""" """
OpenClaw Integration Enhancement API Router - Phase 6.6 hermes Integration Enhancement API Router - Phase 6.6
REST API endpoints for advanced agent orchestration, edge computing integration, and ecosystem development REST API endpoints for advanced agent orchestration, edge computing integration, and ecosystem development
""" """
@@ -14,7 +14,7 @@ logger = get_logger(__name__)
from fastapi import APIRouter, Depends, HTTPException from fastapi import APIRouter, Depends, HTTPException
from ..deps import require_admin_key from ..deps import require_admin_key
from ..schemas.openclaw_enhanced import ( from ..schemas.hermes_enhanced import (
AgentCollaborationRequest, AgentCollaborationRequest,
AgentCollaborationResponse, AgentCollaborationResponse,
EcosystemDevelopmentRequest, EcosystemDevelopmentRequest,
@@ -30,10 +30,10 @@ from ..schemas.openclaw_enhanced import (
SkillRoutingRequest, SkillRoutingRequest,
SkillRoutingResponse, SkillRoutingResponse,
) )
from ..services.openclaw_enhanced import OpenClawEnhancedService from ..services.hermes_enhanced import hermesEnhancedService
from ..storage import get_session from ..storage import get_session
router = APIRouter(prefix="/openclaw/enhanced", tags=["OpenClaw Enhanced"]) router = APIRouter(prefix="/hermes/enhanced", tags=["hermes Enhanced"])
@router.post("/routing/skill", response_model=SkillRoutingResponse) @router.post("/routing/skill", response_model=SkillRoutingResponse)
@@ -45,7 +45,7 @@ async def route_agent_skill(
"""Sophisticated agent skill routing""" """Sophisticated agent skill routing"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.route_agent_skill( result = await enhanced_service.route_agent_skill(
skill_type=routing_request.skill_type, skill_type=routing_request.skill_type,
requirements=routing_request.requirements, requirements=routing_request.requirements,
@@ -73,7 +73,7 @@ async def intelligent_job_offloading(
"""Intelligent job offloading strategies""" """Intelligent job offloading strategies"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.offload_job_intelligently( result = await enhanced_service.offload_job_intelligently(
job_data=offloading_request.job_data, job_data=offloading_request.job_data,
cost_optimization=offloading_request.cost_optimization, cost_optimization=offloading_request.cost_optimization,
@@ -102,7 +102,7 @@ async def coordinate_agent_collaboration(
"""Agent collaboration and coordination""" """Agent collaboration and coordination"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.coordinate_agent_collaboration( result = await enhanced_service.coordinate_agent_collaboration(
task_data=collaboration_request.task_data, task_data=collaboration_request.task_data,
agent_ids=collaboration_request.agent_ids, agent_ids=collaboration_request.agent_ids,
@@ -131,7 +131,7 @@ async def optimize_hybrid_execution(
"""Hybrid execution optimization""" """Hybrid execution optimization"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.optimize_hybrid_execution( result = await enhanced_service.optimize_hybrid_execution(
execution_request=execution_request.execution_request, execution_request=execution_request.execution_request,
optimization_strategy=execution_request.optimization_strategy, optimization_strategy=execution_request.optimization_strategy,
@@ -159,7 +159,7 @@ async def deploy_to_edge(
"""Deploy agent to edge computing infrastructure""" """Deploy agent to edge computing infrastructure"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.deploy_to_edge( result = await enhanced_service.deploy_to_edge(
agent_id=deployment_request.agent_id, agent_id=deployment_request.agent_id,
edge_locations=deployment_request.edge_locations, edge_locations=deployment_request.edge_locations,
@@ -188,7 +188,7 @@ async def coordinate_edge_to_cloud(
"""Coordinate edge-to-cloud agent operations""" """Coordinate edge-to-cloud agent operations"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.coordinate_edge_to_cloud( result = await enhanced_service.coordinate_edge_to_cloud(
edge_deployment_id=coordination_request.edge_deployment_id, edge_deployment_id=coordination_request.edge_deployment_id,
coordination_config=coordination_request.coordination_config, coordination_config=coordination_request.coordination_config,
@@ -209,16 +209,16 @@ async def coordinate_edge_to_cloud(
@router.post("/ecosystem/develop", response_model=EcosystemDevelopmentResponse) @router.post("/ecosystem/develop", response_model=EcosystemDevelopmentResponse)
async def develop_openclaw_ecosystem( async def develop_hermes_ecosystem(
ecosystem_request: EcosystemDevelopmentRequest, ecosystem_request: EcosystemDevelopmentRequest,
session: Session = Depends(Annotated[Session, Depends(get_session)]), session: Session = Depends(Annotated[Session, Depends(get_session)]),
current_user: str = Depends(require_admin_key()), current_user: str = Depends(require_admin_key()),
) -> EcosystemDevelopmentResponse: ) -> EcosystemDevelopmentResponse:
"""Build comprehensive OpenClaw ecosystem""" """Build comprehensive hermes ecosystem"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.develop_openclaw_ecosystem(ecosystem_config=ecosystem_request.ecosystem_config) result = await enhanced_service.develop_hermes_ecosystem(ecosystem_config=ecosystem_request.ecosystem_config)
return EcosystemDevelopmentResponse( return EcosystemDevelopmentResponse(
ecosystem_id=result["ecosystem_id"], ecosystem_id=result["ecosystem_id"],
@@ -230,5 +230,5 @@ async def develop_openclaw_ecosystem(
) )
except Exception as e: except Exception as e:
logger.error(f"Error developing OpenClaw ecosystem: {e}") logger.error(f"Error developing hermes ecosystem: {e}")
raise HTTPException(status_code=500, detail=str(e)) raise HTTPException(status_code=500, detail=str(e))

View File

@@ -1,7 +1,7 @@
""" """
OpenClaw Enhanced Service - FastAPI Entry Point hermes Enhanced Service - FastAPI Entry Point
""" """
from typing import Any from typing import Any
@@ -9,13 +9,13 @@ from typing import Any
from fastapi import FastAPI from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware from fastapi.middleware.cors import CORSMiddleware
from .openclaw_enhanced_health import router as health_router from .hermes_enhanced_health import router as health_router
from .openclaw_enhanced_simple import router from .hermes_enhanced_simple import router
app = FastAPI( app = FastAPI(
title="AITBC OpenClaw Enhanced Service", title="AITBC hermes Enhanced Service",
version="1.0.0", version="1.0.0",
description="OpenClaw integration with agent orchestration and edge computing", description="hermes integration with agent orchestration and edge computing",
) )
app.add_middleware( app.add_middleware(
@@ -35,7 +35,7 @@ app.include_router(health_router, tags=["health"])
@app.get("/health") @app.get("/health")
async def health() -> dict[str, str]: async def health() -> dict[str, str]:
return {"status": "ok", "service": "openclaw-enhanced"} return {"status": "ok", "service": "hermes-enhanced"}
@app.get("/health/detailed") @app.get("/health/detailed")
@@ -48,7 +48,7 @@ async def detailed_health() -> dict[str, Any]:
return { return {
"status": "healthy", "status": "healthy",
"service": "openclaw-enhanced", "service": "hermes-enhanced",
"port": 8014, "port": 8014,
"timestamp": datetime.now(timezone.utc).isoformat(), "timestamp": datetime.now(timezone.utc).isoformat(),
"python_version": "3.13.5", "python_version": "3.13.5",

View File

@@ -1,7 +1,7 @@
from typing import Annotated from typing import Annotated
""" """
OpenClaw Enhanced Service Health Check Router hermes Enhanced Service Health Check Router
Provides health monitoring for agent orchestration, edge computing, and ecosystem development Provides health monitoring for agent orchestration, edge computing, and ecosystem development
""" """
@@ -15,21 +15,21 @@ from sqlalchemy.orm import Session
from aitbc import get_logger from aitbc import get_logger
from ..services.openclaw_enhanced import OpenClawEnhancedService from ..services.hermes_enhanced import hermesEnhancedService
from ..storage import get_session from ..storage import get_session
router = APIRouter() router = APIRouter()
logger = get_logger(__name__) logger = get_logger(__name__)
@router.get("/health", tags=["health"], summary="OpenClaw Enhanced Service Health") @router.get("/health", tags=["health"], summary="hermes Enhanced Service Health")
async def openclaw_enhanced_health(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]: async def hermes_enhanced_health(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]:
""" """
Health check for OpenClaw Enhanced Service (Port 8007) Health check for hermes Enhanced Service (Port 8007)
""" """
try: try:
# Initialize service # Initialize service
OpenClawEnhancedService(session) hermesEnhancedService(session)
# Check system resources # Check system resources
cpu_percent = psutil.cpu_percent(interval=1) cpu_percent = psutil.cpu_percent(interval=1)
@@ -41,7 +41,7 @@ async def openclaw_enhanced_health(session: Annotated[Session, Depends(get_sessi
service_status = { service_status = {
"status": "healthy" if edge_status["available"] else "degraded", "status": "healthy" if edge_status["available"] else "degraded",
"service": "openclaw-enhanced", "service": "hermes-enhanced",
"port": 8007, "port": 8007,
"timestamp": datetime.now(timezone.utc).isoformat(), "timestamp": datetime.now(timezone.utc).isoformat(),
"python_version": f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}", "python_version": f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}",
@@ -55,7 +55,7 @@ async def openclaw_enhanced_health(session: Annotated[Session, Depends(get_sessi
}, },
# Edge computing status # Edge computing status
"edge_computing": edge_status, "edge_computing": edge_status,
# OpenClaw capabilities # hermes capabilities
"capabilities": { "capabilities": {
"agent_orchestration": True, "agent_orchestration": True,
"edge_deployment": True, "edge_deployment": True,
@@ -86,29 +86,29 @@ async def openclaw_enhanced_health(session: Annotated[Session, Depends(get_sessi
}, },
} }
logger.info("OpenClaw Enhanced Service health check completed successfully") logger.info("hermes Enhanced Service health check completed successfully")
return service_status return service_status
except Exception as e: except Exception as e:
logger.error(f"OpenClaw Enhanced Service health check failed: {e}") logger.error(f"hermes Enhanced Service health check failed: {e}")
return { return {
"status": "unhealthy", "status": "unhealthy",
"service": "openclaw-enhanced", "service": "hermes-enhanced",
"port": 8007, "port": 8007,
"timestamp": datetime.now(timezone.utc).isoformat(), "timestamp": datetime.now(timezone.utc).isoformat(),
"error": "Health check failed", "error": "Health check failed",
} }
@router.get("/health/deep", tags=["health"], summary="Deep OpenClaw Enhanced Service Health") @router.get("/health/deep", tags=["health"], summary="Deep hermes Enhanced Service Health")
async def openclaw_enhanced_deep_health(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]: async def hermes_enhanced_deep_health(session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]:
""" """
Deep health check with OpenClaw ecosystem validation Deep health check with hermes ecosystem validation
""" """
try: try:
OpenClawEnhancedService(session) hermesEnhancedService(session)
# Test each OpenClaw feature # Test each hermes feature
feature_tests = {} feature_tests = {}
# Test agent orchestration # Test agent orchestration
@@ -160,7 +160,7 @@ async def openclaw_enhanced_deep_health(session: Annotated[Session, Depends(get_
return { return {
"status": "healthy" if edge_status["available"] else "degraded", "status": "healthy" if edge_status["available"] else "degraded",
"service": "openclaw-enhanced", "service": "hermes-enhanced",
"port": 8007, "port": 8007,
"timestamp": datetime.now(timezone.utc).isoformat(), "timestamp": datetime.now(timezone.utc).isoformat(),
"feature_tests": feature_tests, "feature_tests": feature_tests,
@@ -173,10 +173,10 @@ async def openclaw_enhanced_deep_health(session: Annotated[Session, Depends(get_
} }
except Exception as e: except Exception as e:
logger.error(f"Deep OpenClaw Enhanced health check failed: {e}") logger.error(f"Deep hermes Enhanced health check failed: {e}")
return { return {
"status": "unhealthy", "status": "unhealthy",
"service": "openclaw-enhanced", "service": "hermes-enhanced",
"port": 8007, "port": 8007,
"timestamp": datetime.now(timezone.utc).isoformat(), "timestamp": datetime.now(timezone.utc).isoformat(),
"error": "Deep health check failed", "error": "Deep health check failed",

View File

@@ -3,8 +3,8 @@ from typing import Annotated
from sqlalchemy.orm import Session from sqlalchemy.orm import Session
""" """
OpenClaw Enhanced API Router - Simplified Version hermes Enhanced API Router - Simplified Version
REST API endpoints for OpenClaw integration features REST API endpoints for hermes integration features
""" """
from typing import Any from typing import Any
@@ -18,10 +18,10 @@ from pydantic import BaseModel, Field
from sqlmodel import Session from sqlmodel import Session
from ..deps import require_admin_key from ..deps import require_admin_key
from ..services.openclaw_enhanced_simple import OpenClawEnhancedService, SkillType from ..services.hermes_enhanced_simple import hermesEnhancedService, SkillType
from ..storage import get_session from ..storage import get_session
router = APIRouter(prefix="/openclaw/enhanced", tags=["OpenClaw Enhanced"]) router = APIRouter(prefix="/hermes/enhanced", tags=["hermes Enhanced"])
class SkillRoutingRequest(BaseModel): class SkillRoutingRequest(BaseModel):
@@ -85,7 +85,7 @@ async def route_agent_skill(
"""Route agent skill to appropriate agent""" """Route agent skill to appropriate agent"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.route_agent_skill( result = await enhanced_service.route_agent_skill(
skill_type=request.skill_type, skill_type=request.skill_type,
requirements=request.requirements, requirements=request.requirements,
@@ -108,7 +108,7 @@ async def intelligent_job_offloading(
"""Intelligent job offloading strategies""" """Intelligent job offloading strategies"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.offload_job_intelligently( result = await enhanced_service.offload_job_intelligently(
job_data=request.job_data, job_data=request.job_data,
cost_optimization=request.cost_optimization, cost_optimization=request.cost_optimization,
@@ -131,7 +131,7 @@ async def coordinate_agent_collaboration(
"""Agent collaboration and coordination""" """Agent collaboration and coordination"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.coordinate_agent_collaboration( result = await enhanced_service.coordinate_agent_collaboration(
task_data=request.task_data, agent_ids=request.agent_ids, coordination_algorithm=request.coordination_algorithm task_data=request.task_data, agent_ids=request.agent_ids, coordination_algorithm=request.coordination_algorithm
) )
@@ -152,7 +152,7 @@ async def optimize_hybrid_execution(
"""Hybrid execution optimization""" """Hybrid execution optimization"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.optimize_hybrid_execution( result = await enhanced_service.optimize_hybrid_execution(
execution_request=request.execution_request, optimization_strategy=request.optimization_strategy execution_request=request.execution_request, optimization_strategy=request.optimization_strategy
) )
@@ -173,7 +173,7 @@ async def deploy_to_edge(
"""Deploy agent to edge computing infrastructure""" """Deploy agent to edge computing infrastructure"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.deploy_to_edge( result = await enhanced_service.deploy_to_edge(
agent_id=request.agent_id, edge_locations=request.edge_locations, deployment_config=request.deployment_config agent_id=request.agent_id, edge_locations=request.edge_locations, deployment_config=request.deployment_config
) )
@@ -194,7 +194,7 @@ async def coordinate_edge_to_cloud(
"""Coordinate edge-to-cloud agent operations""" """Coordinate edge-to-cloud agent operations"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.coordinate_edge_to_cloud( result = await enhanced_service.coordinate_edge_to_cloud(
edge_deployment_id=request.edge_deployment_id, coordination_config=request.coordination_config edge_deployment_id=request.edge_deployment_id, coordination_config=request.coordination_config
) )
@@ -207,19 +207,19 @@ async def coordinate_edge_to_cloud(
@router.post("/ecosystem/develop") @router.post("/ecosystem/develop")
async def develop_openclaw_ecosystem( async def develop_hermes_ecosystem(
request: EcosystemDevelopmentRequest, request: EcosystemDevelopmentRequest,
session: Session = Depends(Annotated[Session, Depends(get_session)]), session: Session = Depends(Annotated[Session, Depends(get_session)]),
current_user: str = Depends(require_admin_key()), current_user: str = Depends(require_admin_key()),
) -> dict[str, Any]: ) -> dict[str, Any]:
"""Build OpenClaw ecosystem components""" """Build hermes ecosystem components"""
try: try:
enhanced_service = OpenClawEnhancedService(session) enhanced_service = hermesEnhancedService(session)
result = await enhanced_service.develop_openclaw_ecosystem(ecosystem_config=request.ecosystem_config) result = await enhanced_service.develop_hermes_ecosystem(ecosystem_config=request.ecosystem_config)
return result return result
except Exception as e: except Exception as e:
logger.error(f"Error developing OpenClaw ecosystem: {e}") logger.error(f"Error developing hermes ecosystem: {e}")
raise HTTPException(status_code=500, detail=str(e)) raise HTTPException(status_code=500, detail=str(e))

View File

@@ -1,6 +1,6 @@
""" """
OpenClaw Enhanced Pydantic Schemas - Phase 6.6 hermes Enhanced Pydantic Schemas - Phase 6.6
Request and response models for advanced OpenClaw integration features Request and response models for advanced hermes integration features
""" """
from enum import StrEnum from enum import StrEnum

View File

@@ -1,5 +1,5 @@
""" """
Agent Orchestrator Service for OpenClaw Autonomous Economics Agent Orchestrator Service for hermes Autonomous Economics
Implements multi-agent coordination and sub-task management Implements multi-agent coordination and sub-task management
""" """

View File

@@ -1,6 +1,6 @@
""" """
Advanced Agent Performance Service Advanced Agent Performance Service
Implements meta-learning, resource optimization, and performance enhancement for OpenClaw agents Implements meta-learning, resource optimization, and performance enhancement for hermes agents
""" """
import asyncio import asyncio
@@ -849,7 +849,7 @@ class AgentPerformanceService:
self.performance_optimizer = PerformanceOptimizer() self.performance_optimizer = PerformanceOptimizer()
async def create_performance_profile( async def create_performance_profile(
self, agent_id: str, agent_type: str = "openclaw", initial_metrics: dict[str, float] | None = None self, agent_id: str, agent_type: str = "hermes", initial_metrics: dict[str, float] | None = None
) -> AgentPerformanceProfile: ) -> AgentPerformanceProfile:
"""Create comprehensive agent performance profile""" """Create comprehensive agent performance profile"""
@@ -886,7 +886,7 @@ class AgentPerformanceService:
if not profile: if not profile:
# Create profile if it doesn't exist # Create profile if it doesn't exist
profile = await self.create_performance_profile(agent_id, "openclaw", new_metrics) profile = await self.create_performance_profile(agent_id, "hermes", new_metrics)
else: else:
# Update existing profile # Update existing profile
profile.performance_metrics.update(new_metrics) profile.performance_metrics.update(new_metrics)

View File

@@ -1,5 +1,5 @@
""" """
Bid Strategy Engine for OpenClaw Autonomous Economics Bid Strategy Engine for hermes Autonomous Economics
Implements intelligent bidding algorithms for GPU rental negotiations Implements intelligent bidding algorithms for GPU rental negotiations
""" """

View File

@@ -1,6 +1,6 @@
""" """
Community and Developer Ecosystem Services Community and Developer Ecosystem Services
Services for managing OpenClaw developer tools, SDKs, and third-party solutions Services for managing hermes developer tools, SDKs, and third-party solutions
""" """
from datetime import datetime, timezone from datetime import datetime, timezone

View File

@@ -1,6 +1,6 @@
""" """
Decentralized Governance Service Decentralized Governance Service
Implements the OpenClaw DAO, voting mechanisms, and proposal lifecycle Implements the hermes DAO, voting mechanisms, and proposal lifecycle
Enhanced with multi-jurisdictional support and regional governance Enhanced with multi-jurisdictional support and regional governance
""" """

View File

@@ -1,5 +1,5 @@
""" """
OpenClaw Integration Enhancement Service - Phase 6.6 hermes Integration Enhancement Service - Phase 6.6
Implements advanced agent orchestration, edge computing integration, and ecosystem development Implements advanced agent orchestration, edge computing integration, and ecosystem development
""" """
@@ -34,8 +34,8 @@ class ExecutionMode(StrEnum):
HYBRID = "hybrid" HYBRID = "hybrid"
class OpenClawEnhancedService: class hermesEnhancedService:
"""Enhanced OpenClaw integration service""" """Enhanced hermes integration service"""
def __init__(self, session: Session) -> None: def __init__(self, session: Session) -> None:
self.session = session self.session = session
@@ -361,8 +361,8 @@ class OpenClawEnhancedService:
"backup_locations": ["cloud-primary", "edge-secondary"], "backup_locations": ["cloud-primary", "edge-secondary"],
} }
async def develop_openclaw_ecosystem(self, ecosystem_config: dict[str, Any]) -> dict[str, Any]: async def develop_hermes_ecosystem(self, ecosystem_config: dict[str, Any]) -> dict[str, Any]:
"""Build comprehensive OpenClaw ecosystem""" """Build comprehensive hermes ecosystem"""
# Create developer tools and SDKs # Create developer tools and SDKs
developer_tools = await self._create_developer_tools(ecosystem_config) developer_tools = await self._create_developer_tools(ecosystem_config)
@@ -386,34 +386,34 @@ class OpenClawEnhancedService:
} }
async def _create_developer_tools(self, config: dict[str, Any]) -> dict[str, Any]: async def _create_developer_tools(self, config: dict[str, Any]) -> dict[str, Any]:
"""Create OpenClaw developer tools and SDKs""" """Create hermes developer tools and SDKs"""
return { return {
"sdk_version": "2.0.0", "sdk_version": "2.0.0",
"languages": ["python", "javascript", "go", "rust"], "languages": ["python", "javascript", "go", "rust"],
"tools": ["cli", "ide-plugin", "debugger"], "tools": ["cli", "ide-plugin", "debugger"],
"documentation": "https://docs.openclaw.ai", "documentation": "https://docs.hermes.ai",
} }
async def _create_agent_marketplace(self, config: dict[str, Any]) -> dict[str, Any]: async def _create_agent_marketplace(self, config: dict[str, Any]) -> dict[str, Any]:
"""Create OpenClaw marketplace for agent solutions""" """Create hermes marketplace for agent solutions"""
return { return {
"marketplace_url": "https://marketplace.openclaw.ai", "marketplace_url": "https://marketplace.hermes.ai",
"agent_categories": ["inference", "training", "custom"], "agent_categories": ["inference", "training", "custom"],
"payment_methods": ["cryptocurrency", "fiat"], "payment_methods": ["cryptocurrency", "fiat"],
"revenue_model": "commission_based", "revenue_model": "commission_based",
} }
async def _develop_community_governance(self, config: dict[str, Any]) -> dict[str, Any]: async def _develop_community_governance(self, config: dict[str, Any]) -> dict[str, Any]:
"""Develop OpenClaw community and governance""" """Develop hermes community and governance"""
return { return {
"governance_model": "dao", "governance_model": "dao",
"voting_mechanism": "token_based", "voting_mechanism": "token_based",
"community_forum": "https://community.openclaw.ai", "community_forum": "https://community.hermes.ai",
"contribution_guidelines": "https://github.com/openclaw/contributing", "contribution_guidelines": "https://github.com/hermes/contributing",
} }
async def _establish_partnership_programs(self, config: dict[str, Any]) -> dict[str, Any]: async def _establish_partnership_programs(self, config: dict[str, Any]) -> dict[str, Any]:
"""Establish OpenClaw partnership programs""" """Establish hermes partnership programs"""
return { return {
"technology_partners": ["cloud_providers", "hardware_manufacturers"], "technology_partners": ["cloud_providers", "hardware_manufacturers"],
"integration_partners": ["ai_frameworks", "ml_platforms"], "integration_partners": ["ai_frameworks", "ml_platforms"],

View File

@@ -1,6 +1,6 @@
""" """
OpenClaw Enhanced Service - Simplified Version for Deployment hermes Enhanced Service - Simplified Version for Deployment
Basic OpenClaw integration features compatible with existing infrastructure Basic hermes integration features compatible with existing infrastructure
""" """
from aitbc import get_logger from aitbc import get_logger
@@ -32,8 +32,8 @@ class ExecutionMode(StrEnum):
HYBRID = "hybrid" HYBRID = "hybrid"
class OpenClawEnhancedService: class hermesEnhancedService:
"""Simplified OpenClaw enhanced service""" """Simplified hermes enhanced service"""
def __init__(self, session: Session): def __init__(self, session: Session):
self.session = session self.session = session
@@ -409,8 +409,8 @@ class OpenClawEnhancedService:
logger.error(f"Error coordinating edge-to-cloud: {e}") logger.error(f"Error coordinating edge-to-cloud: {e}")
raise raise
async def develop_openclaw_ecosystem(self, ecosystem_config: dict[str, Any]) -> dict[str, Any]: async def develop_hermes_ecosystem(self, ecosystem_config: dict[str, Any]) -> dict[str, Any]:
"""Develop OpenClaw ecosystem components""" """Develop hermes ecosystem components"""
try: try:
ecosystem_id = f"ecosystem_{uuid4().hex[:8]}" ecosystem_id = f"ecosystem_{uuid4().hex[:8]}"
@@ -420,12 +420,12 @@ class OpenClawEnhancedService:
"sdk_version": "1.0.0", "sdk_version": "1.0.0",
"languages": ["python", "javascript", "go"], "languages": ["python", "javascript", "go"],
"tools": ["cli", "sdk", "debugger"], "tools": ["cli", "sdk", "debugger"],
"documentation": "https://docs.openclaw.aitbc.net", "documentation": "https://docs.hermes.aitbc.net",
} }
# Marketplace # Marketplace
marketplace = { marketplace = {
"marketplace_url": "https://marketplace.openclaw.aitbc.net", "marketplace_url": "https://marketplace.hermes.aitbc.net",
"agent_categories": ["inference", "training", "data_processing"], "agent_categories": ["inference", "training", "data_processing"],
"payment_methods": ["AITBC", "BTC", "ETH"], "payment_methods": ["AITBC", "BTC", "ETH"],
"revenue_model": "commission_based", "revenue_model": "commission_based",
@@ -435,7 +435,7 @@ class OpenClawEnhancedService:
community = { community = {
"governance_model": "dao", "governance_model": "dao",
"voting_mechanism": "token_based", "voting_mechanism": "token_based",
"community_forum": "https://forum.openclaw.aitbc.net", "community_forum": "https://forum.hermes.aitbc.net",
"member_count": 150, "member_count": 150,
} }
@@ -456,5 +456,5 @@ class OpenClawEnhancedService:
} }
except Exception as e: except Exception as e:
logger.error(f"Error developing OpenClaw ecosystem: {e}") logger.error(f"Error developing hermes ecosystem: {e}")
raise raise

View File

@@ -1,5 +1,5 @@
""" """
Task Decomposition Service for OpenClaw Autonomous Economics Task Decomposition Service for hermes Autonomous Economics
Implements intelligent task splitting and sub-task management Implements intelligent task splitting and sub-task management
""" """

View File

@@ -105,8 +105,8 @@ class TestEnhancedServicesHealth:
"port": 8006, "port": 8006,
"url": "http://localhost:8006", "url": "http://localhost:8006",
}, },
"openclaw_enhanced": { "hermes_enhanced": {
"name": "OpenClaw Enhanced Service", "name": "hermes Enhanced Service",
"port": 8007, "port": 8007,
"url": "http://localhost:8007", "url": "http://localhost:8007",
} }

View File

@@ -1,6 +1,6 @@
""" """
Decentralized Governance Models Decentralized Governance Models
Database models for OpenClaw DAO, voting, proposals, and governance analytics Database models for hermes DAO, voting, proposals, and governance analytics
""" """
import uuid import uuid

View File

@@ -1,7 +1,7 @@
[tool.poetry] [tool.poetry]
name = "openclaw-service" name = "hermes-service"
version = "0.1.0" version = "0.1.0"
description = "AITBC OpenClaw Service for agent orchestration and edge computing" description = "AITBC hermes Service for agent orchestration and edge computing"
authors = ["AITBC Team"] authors = ["AITBC Team"]
[tool.poetry.dependencies] [tool.poetry.dependencies]

View File

@@ -1,4 +1,4 @@
"""OpenClaw Service for agent orchestration and edge computing.""" """Hermes Service for agent orchestration and edge computing."""
from __future__ import annotations from __future__ import annotations
@@ -9,7 +9,7 @@ from fastapi import FastAPI
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
app = FastAPI( app = FastAPI(
title="AITBC OpenClaw Service", title="AITBC Hermes Service",
description="Agent orchestration and edge computing service", description="Agent orchestration and edge computing service",
version="1.0.0" version="1.0.0"
) )
@@ -18,14 +18,14 @@ app = FastAPI(
@app.get("/health") @app.get("/health")
async def health(): async def health():
"""Health check endpoint.""" """Health check endpoint."""
return {"status": "healthy", "service": "openclaw-service"} return {"status": "healthy", "service": "hermes-service"}
@app.get("/") @app.get("/")
async def root(): async def root():
"""Root endpoint.""" """Root endpoint."""
return { return {
"service": "AITBC OpenClaw Service", "service": "AITBC Hermes Service",
"version": "1.0.0", "version": "1.0.0",
"status": "operational" "status": "operational"
} }
@@ -104,8 +104,8 @@ async def coordinate_edge_to_cloud(request: dict[str, Any]) -> dict[str, Any]:
@app.post("/ecosystem/develop") @app.post("/ecosystem/develop")
async def develop_openclaw_ecosystem(request: dict[str, Any]) -> dict[str, Any]: async def develop_hermes_ecosystem(request: dict[str, Any]) -> dict[str, Any]:
"""Build comprehensive OpenClaw ecosystem""" """Build comprehensive Hermes ecosystem"""
return { return {
"ecosystem_id": "eco_789", "ecosystem_id": "eco_789",
"developer_tools": ["cli", "sdk", "dashboard"], "developer_tools": ["cli", "sdk", "dashboard"],

View File

@@ -25,7 +25,7 @@ The AITBC CLI provides 27 commands for comprehensive blockchain management:
- `ai-ops` - AI compute operations - `ai-ops` - AI compute operations
- `mining` - Mining operations and status - `mining` - Mining operations and status
- `agent` - AI agent workflow and execution management - `agent` - AI agent workflow and execution management
- `openclaw` - OpenClaw agent ecosystem operations - `hermes` - Hermes agent ecosystem operations
- `workflow` - Workflow automation and management - `workflow` - Workflow automation and management
- `resource` - Resource management and optimization - `resource` - Resource management and optimization
- `system` - System status and information - `system` - System status and information
@@ -52,8 +52,8 @@ aitbc list
**Output:** **Output:**
``` ```
Wallets: Wallets:
openclaw-backup: ait1cebd266469be5f85b5f0052f1556b5d708b42de9 hermes-backup: ait1cebd266469be5f85b5f0052f1556b5d708b42de9
openclaw-trainee: ait10a252a31c79939c689bf392e960afc7861df5ee9 hermes-trainee: ait10a252a31c79939c689bf392e960afc7861df5ee9
``` ```
### 2. Get Balance ### 2. Get Balance
@@ -66,12 +66,12 @@ aitbc balance --name <wallet-name>
**Examples:** **Examples:**
```bash ```bash
# Get balance for specific wallet # Get balance for specific wallet
aitbc balance --name openclaw-backup aitbc balance --name hermes-backup
``` ```
**Output:** **Output:**
``` ```
Wallet: openclaw-backup Wallet: hermes-backup
Address: ait1cebd266469be5f85b5f0052f1556b5d708b42de9 Address: ait1cebd266469be5f85b5f0052f1556b5d708b42de9
Balance: 0 AIT Balance: 0 AIT
Nonce: 0 Nonce: 0

View File

@@ -1292,8 +1292,8 @@ def agent_operations(action: str, **kwargs) -> Optional[Dict]:
return None return None
def openclaw_training_operations(action: str, **kwargs) -> Optional[Dict]: def hermes_training_operations(action: str, **kwargs) -> Optional[Dict]:
"""Handle OpenClaw agent ecosystem operations""" """Handle hermes agent ecosystem operations"""
try: try:
if action == "deploy": if action == "deploy":
return { return {
@@ -1301,7 +1301,7 @@ def openclaw_training_operations(action: str, **kwargs) -> Optional[Dict]:
"deployment_id": f"deploy_{int(time.time())}", "deployment_id": f"deploy_{int(time.time())}",
"environment": kwargs.get("environment", "dev"), "environment": kwargs.get("environment", "dev"),
"status": "Deploying", "status": "Deploying",
"agent_id": f"openclaw_{int(time.time())}", "agent_id": f"hermes_{int(time.time())}",
"estimated_deployment_time": "2-3 minutes", "estimated_deployment_time": "2-3 minutes",
"deployment_cost": "50 AIT" "deployment_cost": "50 AIT"
} }
@@ -1325,9 +1325,9 @@ def openclaw_training_operations(action: str, **kwargs) -> Optional[Dict]:
"action": "market", "action": "market",
"market_action": "list", "market_action": "list",
"agents": [ "agents": [
{"id": "openclaw_001", "name": "Data Analysis Pro", "price": 100, "rating": 4.8}, {"id": "hermes_001", "name": "Data Analysis Pro", "price": 100, "rating": 4.8},
{"id": "openclaw_002", "name": "Trading Expert", "price": 250, "rating": 4.6}, {"id": "hermes_002", "name": "Trading Expert", "price": 250, "rating": 4.6},
{"id": "openclaw_003", "name": "Content Creator", "price": 75, "rating": 4.9} {"id": "hermes_003", "name": "Content Creator", "price": 75, "rating": 4.9}
], ],
"total_available": 3 "total_available": 3
} }
@@ -1373,17 +1373,17 @@ def openclaw_training_operations(action: str, **kwargs) -> Optional[Dict]:
os.makedirs(log_dir, exist_ok=True) os.makedirs(log_dir, exist_ok=True)
log_file = f"{log_dir}/agent_{kwargs.get('agent_id')}_{stage}_{int(time.time())}.log" log_file = f"{log_dir}/agent_{kwargs.get('agent_id')}_{stage}_{int(time.time())}.log"
# Execute training operations with actual OpenClaw calls # Execute training operations with actual hermes calls
operations = training_config.get('training_data', {}).get('operations', []) operations = training_config.get('training_data', {}).get('operations', [])
completed_ops = 0 completed_ops = 0
failed_ops = 0 failed_ops = 0
# OpenClaw service endpoints # hermes service endpoints
agent_coordinator_url = "http://localhost:9001" agent_coordinator_url = "http://localhost:9001"
exchange_url = "http://localhost:8001" exchange_url = "http://localhost:8001"
blockchain_rpc_url = "http://localhost:8006" blockchain_rpc_url = "http://localhost:8006"
# Write training log with actual OpenClaw calls # Write training log with actual hermes calls
for i, op in enumerate(operations, 1): for i, op in enumerate(operations, 1):
operation = op.get('operation') operation = op.get('operation')
parameters = op.get('parameters', {}) parameters = op.get('parameters', {})
@@ -1399,16 +1399,16 @@ def openclaw_training_operations(action: str, **kwargs) -> Optional[Dict]:
} }
} }
# Execute training via OpenClaw agent with allowlist enabled # Execute training via hermes agent with allowlist enabled
start_time = time.time() start_time = time.time()
try: try:
# Build prompt for OpenClaw agent to execute AITBC command # Build prompt for hermes agent to execute AITBC command
prompt_message = f"Execute AITBC CLI command: {operation}" prompt_message = f"Execute AITBC CLI command: {operation}"
if parameters: if parameters:
prompt_message += f" with parameters: {json.dumps(parameters)}" prompt_message += f" with parameters: {json.dumps(parameters)}"
# Use OpenClaw agent with allowlist (AITBC CLI now allowed) # Use hermes agent with allowlist (AITBC CLI now allowed)
cmd = ["openclaw", "agent", "--message", prompt_message, "--agent", "main"] cmd = ["hermes", "agent", "--message", prompt_message, "--agent", "main"]
try: try:
result = subprocess.run(cmd, capture_output=True, text=True, timeout=30) result = subprocess.run(cmd, capture_output=True, text=True, timeout=30)
@@ -1551,7 +1551,7 @@ def openclaw_training_operations(action: str, **kwargs) -> Optional[Dict]:
return {"action": action, "status": "Not implemented yet"} return {"action": action, "status": "Not implemented yet"}
except Exception as e: except Exception as e:
print(f"Error in OpenClaw operations: {e}") print(f"Error in hermes operations: {e}")
return None return None
@@ -2132,7 +2132,7 @@ def legacy_main():
mining_parser.add_argument("--wallet", help="Wallet name for mining rewards") mining_parser.add_argument("--wallet", help="Wallet name for mining rewards")
mining_parser.add_argument("--rpc-url", default=DEFAULT_RPC_URL, help="RPC URL") mining_parser.add_argument("--rpc-url", default=DEFAULT_RPC_URL, help="RPC URL")
# Agent management commands (OpenClaw agent focused) # Agent management commands (hermes agent focused)
agent_parser = subparsers.add_parser("agent", help="AI agent workflow and execution management") agent_parser = subparsers.add_parser("agent", help="AI agent workflow and execution management")
agent_subparsers = agent_parser.add_subparsers(dest="agent_action", help="Agent actions") agent_subparsers = agent_parser.add_subparsers(dest="agent_action", help="Agent actions")
@@ -2162,27 +2162,27 @@ def legacy_main():
agent_list_parser = agent_subparsers.add_parser("list", help="List available agent workflows") agent_list_parser = agent_subparsers.add_parser("list", help="List available agent workflows")
agent_list_parser.add_argument("--status", choices=["active", "completed", "failed"], help="Filter by status") agent_list_parser.add_argument("--status", choices=["active", "completed", "failed"], help="Filter by status")
# OpenClaw specific commands # hermes specific commands
openclaw_parser = subparsers.add_parser("openclaw", help="OpenClaw agent ecosystem operations") hermes_parser = subparsers.add_parser("hermes", help="hermes agent ecosystem operations")
openclaw_subparsers = openclaw_parser.add_subparsers(dest="openclaw_action", help="OpenClaw actions") hermes_subparsers = hermes_parser.add_subparsers(dest="hermes_action", help="hermes actions")
# OpenClaw deploy # hermes deploy
openclaw_deploy_parser = openclaw_subparsers.add_parser("deploy", help="Deploy OpenClaw agent") hermes_deploy_parser = hermes_subparsers.add_parser("deploy", help="Deploy hermes agent")
openclaw_deploy_parser.add_argument("--agent-file", required=True, help="Agent configuration file") hermes_deploy_parser.add_argument("--agent-file", required=True, help="Agent configuration file")
openclaw_deploy_parser.add_argument("--wallet", required=True, help="Wallet for deployment costs") hermes_deploy_parser.add_argument("--wallet", required=True, help="Wallet for deployment costs")
openclaw_deploy_parser.add_argument("--environment", choices=["dev", "staging", "prod"], default="dev", help="Deployment environment") hermes_deploy_parser.add_argument("--environment", choices=["dev", "staging", "prod"], default="dev", help="Deployment environment")
# OpenClaw monitor # hermes monitor
openclaw_monitor_parser = openclaw_subparsers.add_parser("monitor", help="Monitor OpenClaw agent performance") hermes_monitor_parser = hermes_subparsers.add_parser("monitor", help="Monitor hermes agent performance")
openclaw_monitor_parser.add_argument("--agent-id", help="Specific agent ID to monitor") hermes_monitor_parser.add_argument("--agent-id", help="Specific agent ID to monitor")
openclaw_monitor_parser.add_argument("--metrics", choices=["performance", "cost", "errors", "all"], default="all", help="Metrics to show") hermes_monitor_parser.add_argument("--metrics", choices=["performance", "cost", "errors", "all"], default="all", help="Metrics to show")
# OpenClaw market # hermes market
openclaw_market_parser = openclaw_subparsers.add_parser("market", help="OpenClaw agent marketplace") hermes_market_parser = hermes_subparsers.add_parser("market", help="hermes agent marketplace")
openclaw_market_parser.add_argument("--action", choices=["list", "publish", "purchase", "evaluate"], hermes_market_parser.add_argument("--action", choices=["list", "publish", "purchase", "evaluate"],
required=True, help="Market action") required=True, help="Market action")
openclaw_market_parser.add_argument("--agent-id", help="Agent ID for market operations") hermes_market_parser.add_argument("--agent-id", help="Agent ID for market operations")
openclaw_market_parser.add_argument("--price", type=float, help="Price for market operations") hermes_market_parser.add_argument("--price", type=float, help="Price for market operations")
# Workflow automation commands # Workflow automation commands
workflow_parser = subparsers.add_parser("workflow", help="Workflow automation and management") workflow_parser = subparsers.add_parser("workflow", help="Workflow automation and management")
@@ -2600,7 +2600,7 @@ def legacy_main():
else: else:
sys.exit(1) sys.exit(1)
elif args.command == "openclaw": elif args.command == "hermes":
# Only pass arguments that are defined for this subcommand # Only pass arguments that are defined for this subcommand
kwargs = {} kwargs = {}
if hasattr(args, 'agent_file') and args.agent_file: if hasattr(args, 'agent_file') and args.agent_file:
@@ -2614,14 +2614,14 @@ def legacy_main():
if hasattr(args, 'metrics') and args.metrics: if hasattr(args, 'metrics') and args.metrics:
kwargs['metrics'] = args.metrics kwargs['metrics'] = args.metrics
# Handle the market action parameter specifically # Handle the market action parameter specifically
if hasattr(args, 'action') and args.action and args.openclaw_action == 'market': if hasattr(args, 'action') and args.action and args.hermes_action == 'market':
kwargs['market_action'] = args.action kwargs['market_action'] = args.action
if hasattr(args, 'price') and args.price: if hasattr(args, 'price') and args.price:
kwargs['price'] = args.price kwargs['price'] = args.price
result = openclaw_operations(args.openclaw_action, **kwargs) result = hermes_operations(args.hermes_action, **kwargs)
if result: if result:
print(f"OpenClaw {result['action']}:") print(f"hermes {result['action']}:")
for key, value in result.items(): for key, value in result.items():
if key != "action": if key != "action":
if isinstance(value, list): if isinstance(value, list):
@@ -2989,13 +2989,13 @@ def legacy_main():
print("Falling back to mock balances:") print("Falling back to mock balances:")
print(" genesis: 10000 AIT") print(" genesis: 10000 AIT")
print(" aitbc1: 5000 AIT") print(" aitbc1: 5000 AIT")
print(" openclaw-trainee: 100 AIT") print(" hermes-trainee: 100 AIT")
except Exception as e: except Exception as e:
print(f"Warning: Failed to query wallet daemon: {e}") print(f"Warning: Failed to query wallet daemon: {e}")
print("Falling back to mock balances:") print("Falling back to mock balances:")
print(" genesis: 10000 AIT") print(" genesis: 10000 AIT")
print(" aitbc1: 5000 AIT") print(" aitbc1: 5000 AIT")
print(" openclaw-trainee: 100 AIT") print(" hermes-trainee: 100 AIT")
elif args.name: elif args.name:
try: try:
http_client = AITBCHTTPClient(base_url=daemon_url, timeout=5) http_client = AITBCHTTPClient(base_url=daemon_url, timeout=5)
@@ -3045,7 +3045,7 @@ def legacy_main():
print("All wallet balances:") print("All wallet balances:")
print(" genesis: 10000 AIT") print(" genesis: 10000 AIT")
print(" aitbc1: 5000 AIT") print(" aitbc1: 5000 AIT")
print(" openclaw-trainee: 100 AIT") print(" hermes-trainee: 100 AIT")
elif args.command == "mining": elif args.command == "mining":
# Handle flag-based commands # Handle flag-based commands

View File

@@ -31,7 +31,7 @@ class CLIConfig(BaseAITBCConfig):
governance_service_url: str = Field(default="http://localhost:8105", description="Governance Service URL") governance_service_url: str = Field(default="http://localhost:8105", description="Governance Service URL")
ai_service_url: str = Field(default="http://localhost:8106", description="AI Service URL") ai_service_url: str = Field(default="http://localhost:8106", description="AI Service URL")
monitoring_service_url: str = Field(default="http://localhost:8107", description="Monitoring Service URL") monitoring_service_url: str = Field(default="http://localhost:8107", description="Monitoring Service URL")
openclaw_service_url: str = Field(default="http://localhost:8108", description="OpenClaw Service URL") hermes_service_url: str = Field(default="http://localhost:8108", description="hermes Service URL")
plugin_service_url: str = Field(default="http://localhost:8109", description="Plugin Service URL") plugin_service_url: str = Field(default="http://localhost:8109", description="Plugin Service URL")
wallet_daemon_url: str = Field(default="http://localhost:8003", description="Wallet daemon URL") wallet_daemon_url: str = Field(default="http://localhost:8003", description="Wallet daemon URL")
wallet_url: str = Field(default="http://localhost:8003", description="Wallet daemon URL (alias for compatibility)") wallet_url: str = Field(default="http://localhost:8003", description="Wallet daemon URL (alias for compatibility)")

View File

@@ -65,7 +65,7 @@ cli/
13. **agent** - Agent operations 13. **agent** - Agent operations
14. **multimodal** - Multimodal AI operations 14. **multimodal** - Multimodal AI operations
15. **optimize** - Optimization operations 15. **optimize** - Optimization operations
16. **openclaw** - OpenClaw operations 16. **hermes** - hermes operations
17. **advanced** - Advanced marketplace operations 17. **advanced** - Advanced marketplace operations
18. **swarm** - Swarm operations 18. **swarm** - Swarm operations
19. **plugin** - Plugin management 19. **plugin** - Plugin management

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
""" """
OpenClaw DAO CLI Commands Hermes DAO CLI Commands
Provides command-line interface for DAO governance operations Provides command-line interface for DAO governance operations
""" """
@@ -14,7 +14,7 @@ from utils.config import load_config
@click.group() @click.group()
def dao(): def dao():
"""OpenClaw DAO governance commands""" """Hermes DAO governance commands"""
pass pass
@dao.command() @dao.command()
@@ -22,7 +22,7 @@ def dao():
@click.option('--timelock-address', required=True, help='Timelock controller address') @click.option('--timelock-address', required=True, help='Timelock controller address')
@click.option('--network', default='mainnet', help='Blockchain network') @click.option('--network', default='mainnet', help='Blockchain network')
def deploy(token_address: str, timelock_address: str, network: str): def deploy(token_address: str, timelock_address: str, network: str):
"""Deploy OpenClaw DAO contract""" """Deploy Hermes DAO contract"""
try: try:
w3 = get_web3_connection(network) w3 = get_web3_connection(network)
config = load_config() config = load_config()
@@ -60,7 +60,7 @@ def deploy(token_address: str, timelock_address: str, network: str):
# Wait for confirmation # Wait for confirmation
receipt = w3.eth.wait_for_transaction_receipt(tx_hash) receipt = w3.eth.wait_for_transaction_receipt(tx_hash)
click.echo(f"OpenClaw DAO deployed at: {receipt.contractAddress}") click.echo(f"Hermes DAO deployed at: {receipt.contractAddress}")
click.echo(f"📦 Transaction hash: {tx_hash.hex()}") click.echo(f"📦 Transaction hash: {tx_hash.hex()}")
except Exception as e: except Exception as e:
@@ -87,7 +87,7 @@ def propose(dao_address: str, targets: str, values: str, calldatas: str,
calldata_list = calldatas.split(',') calldata_list = calldatas.split(',')
# Get contract # Get contract
dao_contract = get_contract(dao_address, "OpenClawDAO") dao_contract = get_contract(dao_address, "HermesDAO")
# Build transaction # Build transaction
tx = dao_contract.functions.propose( tx = dao_contract.functions.propose(
@@ -137,7 +137,7 @@ def vote(dao_address: str, proposal_id: int):
config = load_config() config = load_config()
# Get contract # Get contract
dao_contract = get_contract(dao_address, "OpenClawDAO") dao_contract = get_contract(dao_address, "HermesDAO")
# Check proposal state # Check proposal state
state = dao_contract.functions.state(proposal_id).call() state = dao_contract.functions.state(proposal_id).call()
@@ -196,7 +196,7 @@ def execute(dao_address: str, proposal_id: int):
config = load_config() config = load_config()
# Get contract # Get contract
dao_contract = get_contract(dao_address, "OpenClawDAO") dao_contract = get_contract(dao_address, "HermesDAO")
# Check proposal state # Check proposal state
state = dao_contract.functions.state(proposal_id).call() state = dao_contract.functions.state(proposal_id).call()
@@ -228,7 +228,7 @@ def list_proposals(dao_address: str):
"""List all proposals""" """List all proposals"""
try: try:
w3 = get_web3_connection() w3 = get_web3_connection()
dao_contract = get_contract(dao_address, "OpenClawDAO") dao_contract = get_contract(dao_address, "HermesDAO")
# Get proposal count # Get proposal count
proposal_count = dao_contract.functions.proposalCount().call() proposal_count = dao_contract.functions.proposalCount().call()
@@ -277,7 +277,7 @@ def status(dao_address: str):
"""Show DAO status and statistics""" """Show DAO status and statistics"""
try: try:
w3 = get_web3_connection() w3 = get_web3_connection()
dao_contract = get_contract(dao_address, "OpenClawDAO") dao_contract = get_contract(dao_address, "HermesDAO")
# Get DAO info # Get DAO info
token_address = dao_contract.functions.governanceToken().call() token_address = dao_contract.functions.governanceToken().call()
@@ -289,7 +289,7 @@ def status(dao_address: str):
# Get active proposals # Get active proposals
active_proposals = dao_contract.functions.getActiveProposals().call() active_proposals = dao_contract.functions.getActiveProposals().call()
click.echo("🏛️ OpenClaw DAO Status") click.echo("🏛️ Hermes DAO Status")
click.echo("=" * 40) click.echo("=" * 40)
click.echo(f"📊 Total Supply: {total_supply / 1e18:.2f} tokens") click.echo(f"📊 Total Supply: {total_supply / 1e18:.2f} tokens")
click.echo(f"📋 Total Proposals: {proposal_count}") click.echo(f"📋 Total Proposals: {proposal_count}")

View File

@@ -1,4 +1,4 @@
"""OpenClaw integration commands for AITBC CLI""" """hermes integration commands for AITBC CLI"""
import click import click
import httpx import httpx
@@ -12,8 +12,8 @@ from utils import output, error, success, warning
@click.group() @click.group()
def openclaw(): def hermes():
"""OpenClaw integration with edge computing deployment""" """hermes integration with edge computing deployment"""
pass pass
@@ -23,7 +23,7 @@ def deploy():
pass pass
openclaw.add_command(deploy) hermes.add_command(deploy)
@deploy.command() @deploy.command()
@@ -36,7 +36,7 @@ openclaw.add_command(deploy)
@click.pass_context @click.pass_context
def deploy_agent(ctx, agent_id: str, region: str, instances: int, instance_type: str, def deploy_agent(ctx, agent_id: str, region: str, instances: int, instance_type: str,
edge_locations: Optional[str], auto_scale: bool): edge_locations: Optional[str], auto_scale: bool):
"""Deploy agent to OpenClaw network""" """Deploy agent to hermes network"""
config = ctx.obj['config'] config = ctx.obj['config']
deployment_data = { deployment_data = {
@@ -53,7 +53,7 @@ def deploy_agent(ctx, agent_id: str, region: str, instances: int, instance_type:
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.post( response = client.post(
f"{config.coordinator_url}/openclaw/deploy", f"{config.coordinator_url}/hermes/deploy",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
json=deployment_data json=deployment_data
) )
@@ -92,7 +92,7 @@ def scale(ctx, deployment_id: str, instances: int, auto_scale: bool, min_instanc
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.post( response = client.post(
f"{config.coordinator_url}/openclaw/deployments/{deployment_id}/scale", f"{config.coordinator_url}/hermes/deployments/{deployment_id}/scale",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
json=scale_data json=scale_data
) )
@@ -126,7 +126,7 @@ def optimize(ctx, deployment_id: str, objective: str):
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.post( response = client.post(
f"{config.coordinator_url}/openclaw/deployments/{deployment_id}/optimize", f"{config.coordinator_url}/hermes/deployments/{deployment_id}/optimize",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
json=optimization_data json=optimization_data
) )
@@ -147,11 +147,11 @@ def optimize(ctx, deployment_id: str, objective: str):
@click.group() @click.group()
def monitor(): def monitor():
"""OpenClaw monitoring operations""" """hermes monitoring operations"""
pass pass
openclaw.add_command(monitor) hermes.add_command(monitor)
@monitor.command() @monitor.command()
@@ -161,7 +161,7 @@ openclaw.add_command(monitor)
@click.option("--interval", default=10, help="Update interval for real-time monitoring") @click.option("--interval", default=10, help="Update interval for real-time monitoring")
@click.pass_context @click.pass_context
def monitor_metrics(ctx, deployment_id: str, metrics: str, real_time: bool, interval: int): def monitor_metrics(ctx, deployment_id: str, metrics: str, real_time: bool, interval: int):
"""Monitor OpenClaw agent performance""" """Monitor hermes agent performance"""
config = ctx.obj['config'] config = ctx.obj['config']
params = {"metrics": [m.strip() for m in metrics.split(',')]} params = {"metrics": [m.strip() for m in metrics.split(',')]}
@@ -170,7 +170,7 @@ def monitor_metrics(ctx, deployment_id: str, metrics: str, real_time: bool, inte
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.get( response = client.get(
f"{config.coordinator_url}/openclaw/deployments/{deployment_id}/metrics", f"{config.coordinator_url}/hermes/deployments/{deployment_id}/metrics",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
params=params params=params
) )
@@ -220,7 +220,7 @@ def status(ctx, deployment_id: str):
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.get( response = client.get(
f"{config.coordinator_url}/openclaw/deployments/{deployment_id}/status", f"{config.coordinator_url}/hermes/deployments/{deployment_id}/status",
headers={"X-Api-Key": config.api_key or ""} headers={"X-Api-Key": config.api_key or ""}
) )
@@ -241,7 +241,7 @@ def edge():
pass pass
openclaw.add_command(edge) hermes.add_command(edge)
@edge.command() @edge.command()
@@ -266,7 +266,7 @@ def deploy(ctx, agent_id: str, locations: str, strategy: str, replicas: int):
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.post( response = client.post(
f"{config.coordinator_url}/openclaw/edge/deploy", f"{config.coordinator_url}/hermes/edge/deploy",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
json=edge_data json=edge_data
) )
@@ -299,7 +299,7 @@ def resources(ctx, location: Optional[str]):
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.get( response = client.get(
f"{config.coordinator_url}/openclaw/edge/resources", f"{config.coordinator_url}/hermes/edge/resources",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
params=params params=params
) )
@@ -337,7 +337,7 @@ def optimize(ctx, deployment_id: str, latency_target: Optional[int],
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.post( response = client.post(
f"{config.coordinator_url}/openclaw/edge/deployments/{deployment_id}/optimize", f"{config.coordinator_url}/hermes/edge/deployments/{deployment_id}/optimize",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
json=optimization_data json=optimization_data
) )
@@ -371,7 +371,7 @@ def compliance(ctx, deployment_id: str, standards: Optional[str]):
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.get( response = client.get(
f"{config.coordinator_url}/openclaw/edge/deployments/{deployment_id}/compliance", f"{config.coordinator_url}/hermes/edge/deployments/{deployment_id}/compliance",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
params=params params=params
) )
@@ -393,7 +393,7 @@ def routing():
pass pass
openclaw.add_command(routing) hermes.add_command(routing)
@routing.command() @routing.command()
@@ -414,7 +414,7 @@ def optimize(ctx, deployment_id: str, algorithm: str, weights: Optional[str]):
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.post( response = client.post(
f"{config.coordinator_url}/openclaw/routing/deployments/{deployment_id}/optimize", f"{config.coordinator_url}/hermes/routing/deployments/{deployment_id}/optimize",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
json=routing_data json=routing_data
) )
@@ -443,7 +443,7 @@ def status(ctx, deployment_id: str):
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.get( response = client.get(
f"{config.coordinator_url}/openclaw/routing/deployments/{deployment_id}/status", f"{config.coordinator_url}/hermes/routing/deployments/{deployment_id}/status",
headers={"X-Api-Key": config.api_key or ""} headers={"X-Api-Key": config.api_key or ""}
) )
@@ -460,11 +460,11 @@ def status(ctx, deployment_id: str):
@click.group() @click.group()
def ecosystem(): def ecosystem():
"""OpenClaw ecosystem development""" """hermes ecosystem development"""
pass pass
openclaw.add_command(ecosystem) hermes.add_command(ecosystem)
@click.group() @click.group()
@@ -473,7 +473,7 @@ def train():
pass pass
openclaw.add_command(train) hermes.add_command(train)
@ecosystem.command() @ecosystem.command()
@@ -485,7 +485,7 @@ openclaw.add_command(train)
@click.option("--package", type=click.File('rb'), help="Solution package file") @click.option("--package", type=click.File('rb'), help="Solution package file")
@click.pass_context @click.pass_context
def create(ctx, name: str, type: str, description: str, package): def create(ctx, name: str, type: str, description: str, package):
"""Create OpenClaw ecosystem solution""" """Create hermes ecosystem solution"""
config = ctx.obj['config'] config = ctx.obj['config']
solution_data = { solution_data = {
@@ -501,7 +501,7 @@ def create(ctx, name: str, type: str, description: str, package):
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.post( response = client.post(
f"{config.coordinator_url}/openclaw/ecosystem/solutions", f"{config.coordinator_url}/hermes/ecosystem/solutions",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
data=solution_data, data=solution_data,
files=files files=files
@@ -509,7 +509,7 @@ def create(ctx, name: str, type: str, description: str, package):
if response.status_code == 201: if response.status_code == 201:
solution = response.json() solution = response.json()
success(f"OpenClaw solution created: {solution['id']}") success(f"hermes solution created: {solution['id']}")
output(solution, ctx.obj['output_format']) output(solution, ctx.obj['output_format'])
else: else:
error(f"Failed to create solution: {response.status_code}") error(f"Failed to create solution: {response.status_code}")
@@ -527,7 +527,7 @@ def create(ctx, name: str, type: str, description: str, package):
@click.option("--limit", default=20, help="Number of solutions to list") @click.option("--limit", default=20, help="Number of solutions to list")
@click.pass_context @click.pass_context
def list(ctx, type: Optional[str], category: Optional[str], limit: int): def list(ctx, type: Optional[str], category: Optional[str], limit: int):
"""List OpenClaw ecosystem solutions""" """List hermes ecosystem solutions"""
config = ctx.obj['config'] config = ctx.obj['config']
params = {"limit": limit} params = {"limit": limit}
@@ -539,7 +539,7 @@ def list(ctx, type: Optional[str], category: Optional[str], limit: int):
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.get( response = client.get(
f"{config.coordinator_url}/openclaw/ecosystem/solutions", f"{config.coordinator_url}/hermes/ecosystem/solutions",
headers={"X-Api-Key": config.api_key or ""}, headers={"X-Api-Key": config.api_key or ""},
params=params params=params
) )
@@ -559,13 +559,13 @@ def list(ctx, type: Optional[str], category: Optional[str], limit: int):
@click.argument("solution_id") @click.argument("solution_id")
@click.pass_context @click.pass_context
def install(ctx, solution_id: str): def install(ctx, solution_id: str):
"""Install OpenClaw ecosystem solution""" """Install hermes ecosystem solution"""
config = ctx.obj['config'] config = ctx.obj['config']
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.post( response = client.post(
f"{config.coordinator_url}/openclaw/ecosystem/solutions/{solution_id}/install", f"{config.coordinator_url}/hermes/ecosystem/solutions/{solution_id}/install",
headers={"X-Api-Key": config.api_key or ""} headers={"X-Api-Key": config.api_key or ""}
) )
@@ -590,7 +590,7 @@ def install(ctx, solution_id: str):
@click.option("--log-level", default="INFO", type=click.Choice(["DEBUG", "INFO", "SUCCESS", "WARNING", "ERROR"]), help="Logging level") @click.option("--log-level", default="INFO", type=click.Choice(["DEBUG", "INFO", "SUCCESS", "WARNING", "ERROR"]), help="Logging level")
@click.pass_context @click.pass_context
def agent(ctx, agent_id: str, stage: str, training_data: str, log_level: str): def agent(ctx, agent_id: str, stage: str, training_data: str, log_level: str):
"""Train OpenClaw agent on AITBC operations""" """Train hermes agent on AITBC operations"""
config = ctx.obj['config'] config = ctx.obj['config']
# Load training data # Load training data
@@ -869,11 +869,11 @@ def certify(ctx, agent_id: str):
}, ctx.obj['output_format']) }, ctx.obj['output_format'])
@openclaw.command() @hermes.command()
@click.argument("deployment_id") @click.argument("deployment_id")
@click.pass_context @click.pass_context
def terminate(ctx, deployment_id: str): def terminate(ctx, deployment_id: str):
"""Terminate OpenClaw deployment""" """Terminate hermes deployment"""
config = ctx.obj['config'] config = ctx.obj['config']
if not click.confirm(f"Terminate deployment {deployment_id}? This action cannot be undone."): if not click.confirm(f"Terminate deployment {deployment_id}? This action cannot be undone."):
@@ -883,7 +883,7 @@ def terminate(ctx, deployment_id: str):
try: try:
with httpx.Client() as client: with httpx.Client() as client:
response = client.delete( response = client.delete(
f"{config.coordinator_url}/openclaw/deployments/{deployment_id}", f"{config.coordinator_url}/hermes/deployments/{deployment_id}",
headers={"X-Api-Key": config.api_key or ""} headers={"X-Api-Key": config.api_key or ""}
) )

View File

@@ -688,10 +688,10 @@ def list(ctx, status: Optional[str], gpu_model: Optional[str], price_max: Option
error(f"Network error: {e}") error(f"Network error: {e}")
# OpenClaw Agent Marketplace Commands # hermes Agent Marketplace Commands
@marketplace.group() @marketplace.group()
def agents(): def agents():
"""OpenClaw agent marketplace operations""" """hermes agent marketplace operations"""
pass pass
@@ -704,7 +704,7 @@ def agents():
@click.pass_context @click.pass_context
def register(ctx, agent_id: str, agent_type: str, capabilities: Optional[str], def register(ctx, agent_id: str, agent_type: str, capabilities: Optional[str],
region: Optional[str], reputation: float): region: Optional[str], reputation: float):
"""Register agent on OpenClaw marketplace""" """Register agent on hermes marketplace"""
config = ctx.obj['config'] config = ctx.obj['config']
agent_data = { agent_data = {
@@ -994,7 +994,7 @@ def analytics(ctx, time_range: str):
# Governance Commands # Governance Commands
@marketplace.group() @marketplace.group()
def governance(): def governance():
"""OpenClaw agent governance operations""" """hermes agent governance operations"""
pass pass
@@ -1104,7 +1104,7 @@ def list_proposals(ctx, status: Optional[str], limit: int):
# Performance Testing Commands # Performance Testing Commands
@marketplace.group() @marketplace.group()
def test(): def test():
"""OpenClaw marketplace testing operations""" """hermes marketplace testing operations"""
pass pass

View File

@@ -75,7 +75,7 @@ def check(service):
else: else:
click.echo(f"❌ Service file missing: {service_file}") click.echo(f"❌ Service file missing: {service_file}")
else: else:
services = ['marketplace', 'mining-blockchain', 'openclaw-ai', 'blockchain-node'] services = ['marketplace', 'mining-blockchain', 'hermes-ai', 'blockchain-node']
for svc in services: for svc in services:
service_file = f"/etc/systemd/system/aitbc-{svc}.service" service_file = f"/etc/systemd/system/aitbc-{svc}.service"
if os.path.exists(service_file): if os.path.exists(service_file):

View File

@@ -5,14 +5,14 @@ This document analyzes the currently disabled CLI commands and provides recommen
## Disabled Commands ## Disabled Commands
### 1. `openclaw` - Edge Computing Integration ### 1. `hermes` - Edge Computing Integration
**File**: `cli/aitbc_cli/commands/openclaw.py` **File**: `cli/aitbc_cli/commands/hermes.py`
**Status**: Commented out in `main.py` line 28 **Status**: Commented out in `main.py` line 28
**Reason**: "Temporarily disabled due to command registration issues" **Reason**: "Temporarily disabled due to command registration issues"
**Analysis**: **Analysis**:
- **Size**: 604 lines of code - **Size**: 604 lines of code
- **Functionality**: OpenClaw integration with edge computing deployment - **Functionality**: hermes integration with edge computing deployment
- **Dependencies**: httpx, JSON, time utilities - **Dependencies**: httpx, JSON, time utilities
- **Potential Value**: High - edge computing is strategic for AITBC - **Potential Value**: High - edge computing is strategic for AITBC
@@ -55,11 +55,11 @@ This document analyzes the currently disabled CLI commands and provides recommen
## Cleanup Action Items ## Cleanup Action Items
### Immediate Actions (High Priority) ### Immediate Actions (High Priority)
1. **Fix `openclaw` registration** 1. **Fix `hermes` registration**
```bash ```bash
# Uncomment line 28 in main.py # Uncomment line 28 in main.py
# from .commands.openclaw import openclaw # from .commands.hermes import hermes
# cli.add_command(openclaw) # cli.add_command(hermes)
``` ```
- Test for naming conflicts - Test for naming conflicts
- Rename if necessary (e.g., `edge-deploy`) - Rename if necessary (e.g., `edge-deploy`)
@@ -116,7 +116,7 @@ Before re-enabling any disabled command:
| Week | Action | Status | | Week | Action | Status |
|------|--------|--------| |------|--------|--------|
| 1 | Fix openclaw registration issues | 🔄 In Progress | | 1 | Fix hermes registration issues | 🔄 In Progress |
| 1 | Resolve marketplace command conflicts | 🔄 In Progress | | 1 | Resolve marketplace command conflicts | 🔄 In Progress |
| 2 | Locate and evaluate marketplace_advanced | ⏳ Pending | | 2 | Locate and evaluate marketplace_advanced | ⏳ Pending |
| 2 | Add comprehensive tests | ⏳ Pending | | 2 | Add comprehensive tests | ⏳ Pending |
@@ -126,7 +126,7 @@ Before re-enabling any disabled command:
| Command | Risk Level | Action | | Command | Risk Level | Action |
|---------|-----------|--------| |---------|-----------|--------|
| openclaw | Low | Re-enable after testing | | hermes | Low | Re-enable after testing |
| marketplace_cmd | Low | Merge or delete | | marketplace_cmd | Low | Merge or delete |
| marketplace_advanced | Unknown | Locate and evaluate | | marketplace_advanced | Unknown | Locate and evaluate |

View File

@@ -191,8 +191,8 @@ def handle_agent_sdk_action(args, render_mapping):
render_mapping("SDK Operation:", sdk_result) render_mapping("SDK Operation:", sdk_result)
def handle_openclaw_training_action(args, openclaw_training_operations, first, render_mapping): def handle_hermes_training_action(args, hermes_training_operations, first, render_mapping):
"""Handle OpenClaw training action command.""" """Handle hermes training action command."""
kwargs = {} kwargs = {}
for name in ("agent_file", "wallet", "environment", "agent_id", "metrics", "price"): for name in ("agent_file", "wallet", "environment", "agent_id", "metrics", "price"):
value = getattr(args, name, None) value = getattr(args, name, None)
@@ -203,7 +203,7 @@ def handle_openclaw_training_action(args, openclaw_training_operations, first, r
kwargs["market_action"] = market_action kwargs["market_action"] = market_action
# Handle train actions # Handle train actions
if getattr(args, "openclaw_training_action", None) == "train": if getattr(args, "hermes_training_action", None) == "train":
train_action = getattr(args, "train_action", None) train_action = getattr(args, "train_action", None)
if train_action == "agent": if train_action == "agent":
for name in ("agent_id", "stage", "training_data", "log_level"): for name in ("agent_id", "stage", "training_data", "log_level"):
@@ -224,10 +224,10 @@ def handle_openclaw_training_action(args, openclaw_training_operations, first, r
kwargs[name] = value kwargs[name] = value
kwargs["train_action"] = "certify" kwargs["train_action"] = "certify"
result = openclaw_training_operations(args.openclaw_training_action, **kwargs) result = hermes_training_operations(args.hermes_training_action, **kwargs)
if not result: if not result:
sys.exit(1) sys.exit(1)
render_mapping(f"OpenClaw Training {result['action']}:", result) render_mapping(f"hermes Training {result['action']}:", result)
def handle_workflow_action(args, workflow_operations, render_mapping): def handle_workflow_action(args, workflow_operations, render_mapping):

View File

@@ -1,6 +1,6 @@
"""Parser registration modules for the unified CLI.""" """Parser registration modules for the unified CLI."""
from . import ai, agent, analytics, blockchain, bridge, contract, genesis, market, messaging, network, openclaw, pool_hub, resource, script, system, wallet, workflow from . import ai, agent, analytics, blockchain, bridge, contract, genesis, market, messaging, network, hermes, pool_hub, resource, script, system, wallet, workflow
def register_all(subparsers, ctx): def register_all(subparsers, ctx):
wallet.register(subparsers, ctx) wallet.register(subparsers, ctx)
@@ -13,7 +13,7 @@ def register_all(subparsers, ctx):
script.register(subparsers, ctx) script.register(subparsers, ctx)
system.register(subparsers, ctx) system.register(subparsers, ctx)
agent.register(subparsers, ctx) agent.register(subparsers, ctx)
openclaw.register(subparsers, ctx) hermes.register(subparsers, ctx)
workflow.register(subparsers, ctx) workflow.register(subparsers, ctx)
resource.register(subparsers, ctx) resource.register(subparsers, ctx)
genesis.register(subparsers, ctx) genesis.register(subparsers, ctx)

48
cli/parsers/hermes.py Normal file
View File

@@ -0,0 +1,48 @@
"""hermes Agent Training command registration for the unified CLI."""
import argparse
from parser_context import ParserContext
def register(subparsers: argparse._SubParsersAction, ctx: ParserContext) -> None:
hermes_training_parser = subparsers.add_parser("hermes-training", help="hermes agent training operations")
hermes_training_parser.set_defaults(handler=lambda parsed, parser=hermes_training_parser: parser.print_help())
hermes_training_subparsers = hermes_training_parser.add_subparsers(dest="hermes_training_action")
hermes_deploy_parser = hermes_training_subparsers.add_parser("deploy", help="Deploy an hermes agent")
hermes_deploy_parser.add_argument("--agent-file", required=True)
hermes_deploy_parser.add_argument("--wallet", required=True)
hermes_deploy_parser.add_argument("--environment", choices=["dev", "staging", "prod"], default="dev")
hermes_deploy_parser.set_defaults(handler=ctx.handle_hermes_training_action)
hermes_monitor_parser = hermes_training_subparsers.add_parser("monitor", help="Monitor hermes performance")
hermes_monitor_parser.add_argument("--agent-id")
hermes_monitor_parser.add_argument("--metrics", choices=["performance", "cost", "errors", "all"], default="all")
hermes_monitor_parser.set_defaults(handler=ctx.handle_hermes_training_action)
hermes_market_parser = hermes_training_subparsers.add_parser("market", help="Manage hermes marketplace activity")
hermes_market_parser.add_argument("market_action", nargs="?", choices=["list", "publish", "purchase", "evaluate"])
hermes_market_parser.add_argument("--action", dest="market_action_opt", choices=["list", "publish", "purchase", "evaluate"], help=argparse.SUPPRESS)
hermes_market_parser.add_argument("--agent-id")
hermes_market_parser.add_argument("--price", type=float)
hermes_market_parser.set_defaults(handler=ctx.handle_hermes_training_action, hermes_training_action="market")
hermes_train_parser = hermes_training_subparsers.add_parser("train", help="Agent training operations")
hermes_train_subparsers = hermes_train_parser.add_subparsers(dest="train_action")
hermes_train_agent_parser = hermes_train_subparsers.add_parser("agent", help="Train hermes agent on AITBC operations")
hermes_train_agent_parser.add_argument("--agent-id", required=True, help="Agent ID to train")
hermes_train_agent_parser.add_argument("--stage", required=True, help="Training stage (stage1_foundation, stage2_operations_mastery, etc.)")
hermes_train_agent_parser.add_argument("--training-data", required=True, help="Path to training data JSON file")
hermes_train_agent_parser.add_argument("--log-level", default="INFO", choices=["DEBUG", "INFO", "SUCCESS", "WARNING", "ERROR"], help="Logging level")
hermes_train_agent_parser.set_defaults(handler=ctx.handle_hermes_training_action, hermes_training_action="train")
hermes_train_validate_parser = hermes_train_subparsers.add_parser("validate", help="Validate agent training progress")
hermes_train_validate_parser.add_argument("--agent-id", required=True, help="Agent ID to validate")
hermes_train_validate_parser.add_argument("--stage", required=True, help="Training stage to validate")
hermes_train_validate_parser.set_defaults(handler=ctx.handle_hermes_training_action, hermes_training_action="train")
hermes_train_certify_parser = hermes_train_subparsers.add_parser("certify", help="Certify agent mastery")
hermes_train_certify_parser.add_argument("--agent-id", required=True, help="Agent ID to certify")
hermes_train_certify_parser.set_defaults(handler=ctx.handle_hermes_training_action, hermes_training_action="train")

View File

@@ -1,48 +0,0 @@
"""OpenClaw Agent Training command registration for the unified CLI."""
import argparse
from parser_context import ParserContext
def register(subparsers: argparse._SubParsersAction, ctx: ParserContext) -> None:
openclaw_training_parser = subparsers.add_parser("openclaw-training", help="OpenClaw agent training operations")
openclaw_training_parser.set_defaults(handler=lambda parsed, parser=openclaw_training_parser: parser.print_help())
openclaw_training_subparsers = openclaw_training_parser.add_subparsers(dest="openclaw_training_action")
openclaw_deploy_parser = openclaw_training_subparsers.add_parser("deploy", help="Deploy an OpenClaw agent")
openclaw_deploy_parser.add_argument("--agent-file", required=True)
openclaw_deploy_parser.add_argument("--wallet", required=True)
openclaw_deploy_parser.add_argument("--environment", choices=["dev", "staging", "prod"], default="dev")
openclaw_deploy_parser.set_defaults(handler=ctx.handle_openclaw_training_action)
openclaw_monitor_parser = openclaw_training_subparsers.add_parser("monitor", help="Monitor OpenClaw performance")
openclaw_monitor_parser.add_argument("--agent-id")
openclaw_monitor_parser.add_argument("--metrics", choices=["performance", "cost", "errors", "all"], default="all")
openclaw_monitor_parser.set_defaults(handler=ctx.handle_openclaw_training_action)
openclaw_market_parser = openclaw_training_subparsers.add_parser("market", help="Manage OpenClaw marketplace activity")
openclaw_market_parser.add_argument("market_action", nargs="?", choices=["list", "publish", "purchase", "evaluate"])
openclaw_market_parser.add_argument("--action", dest="market_action_opt", choices=["list", "publish", "purchase", "evaluate"], help=argparse.SUPPRESS)
openclaw_market_parser.add_argument("--agent-id")
openclaw_market_parser.add_argument("--price", type=float)
openclaw_market_parser.set_defaults(handler=ctx.handle_openclaw_training_action, openclaw_training_action="market")
openclaw_train_parser = openclaw_training_subparsers.add_parser("train", help="Agent training operations")
openclaw_train_subparsers = openclaw_train_parser.add_subparsers(dest="train_action")
openclaw_train_agent_parser = openclaw_train_subparsers.add_parser("agent", help="Train OpenClaw agent on AITBC operations")
openclaw_train_agent_parser.add_argument("--agent-id", required=True, help="Agent ID to train")
openclaw_train_agent_parser.add_argument("--stage", required=True, help="Training stage (stage1_foundation, stage2_operations_mastery, etc.)")
openclaw_train_agent_parser.add_argument("--training-data", required=True, help="Path to training data JSON file")
openclaw_train_agent_parser.add_argument("--log-level", default="INFO", choices=["DEBUG", "INFO", "SUCCESS", "WARNING", "ERROR"], help="Logging level")
openclaw_train_agent_parser.set_defaults(handler=ctx.handle_openclaw_training_action, openclaw_training_action="train")
openclaw_train_validate_parser = openclaw_train_subparsers.add_parser("validate", help="Validate agent training progress")
openclaw_train_validate_parser.add_argument("--agent-id", required=True, help="Agent ID to validate")
openclaw_train_validate_parser.add_argument("--stage", required=True, help="Training stage to validate")
openclaw_train_validate_parser.set_defaults(handler=ctx.handle_openclaw_training_action, openclaw_training_action="train")
openclaw_train_certify_parser = openclaw_train_subparsers.add_parser("certify", help="Certify agent mastery")
openclaw_train_certify_parser.add_argument("--agent-id", required=True, help="Agent ID to certify")
openclaw_train_certify_parser.set_defaults(handler=ctx.handle_openclaw_training_action, openclaw_training_action="train")

View File

@@ -133,7 +133,7 @@ class TestIntegrationScenarios:
def test_cli_help_comprehensive(self): def test_cli_help_comprehensive(self):
result = run_cli("--help") result = run_cli("--help")
assert result.returncode == 0 assert result.returncode == 0
for command in ["wallet", "blockchain", "network", "market", "ai", "mining", "agent", "openclaw", "workflow", "resource", "simulate"]: for command in ["wallet", "blockchain", "network", "market", "ai", "mining", "agent", "hermes", "workflow", "resource", "simulate"]:
assert command in result.stdout assert command in result.stdout
def test_wallet_alias_and_nested_forms(self): def test_wallet_alias_and_nested_forms(self):

View File

@@ -59,7 +59,7 @@ def run_cli(argv, core):
ai_operations = core["ai_operations"] ai_operations = core["ai_operations"]
mining_operations = core["mining_operations"] mining_operations = core["mining_operations"]
agent_operations = core["agent_operations"] agent_operations = core["agent_operations"]
openclaw_training_operations = core["openclaw_training_operations"] hermes_training_operations = core["hermes_training_operations"]
workflow_operations = core["workflow_operations"] workflow_operations = core["workflow_operations"]
resource_operations = core["resource_operations"] resource_operations = core["resource_operations"]
simulate_blockchain = core["simulate_blockchain"] simulate_blockchain = core["simulate_blockchain"]
@@ -577,8 +577,8 @@ def run_cli(argv, core):
def handle_agent_sdk_action(args): def handle_agent_sdk_action(args):
system_handlers.handle_agent_sdk_action(args, render_mapping) system_handlers.handle_agent_sdk_action(args, render_mapping)
def handle_openclaw_training_action(args): def handle_hermes_training_action(args):
system_handlers.handle_openclaw_training_action(args, openclaw_training_operations, first, render_mapping) system_handlers.handle_hermes_training_action(args, hermes_training_operations, first, render_mapping)
def handle_workflow_action(args): def handle_workflow_action(args):
system_handlers.handle_workflow_action(args, workflow_operations, render_mapping) system_handlers.handle_workflow_action(args, workflow_operations, render_mapping)
@@ -739,7 +739,7 @@ def run_cli(argv, core):
"handle_analytics": handle_analytics, "handle_analytics": handle_analytics,
"handle_agent_action": handle_agent_action, "handle_agent_action": handle_agent_action,
"handle_agent_sdk_action": handle_agent_sdk_action, "handle_agent_sdk_action": handle_agent_sdk_action,
"handle_openclaw_training_action": handle_openclaw_training_action, "handle_hermes_training_action": handle_hermes_training_action,
"handle_workflow_action": handle_workflow_action, "handle_workflow_action": handle_workflow_action,
"handle_resource_action": handle_resource_action, "handle_resource_action": handle_resource_action,
"handle_simulate_action": handle_simulate_action, "handle_simulate_action": handle_simulate_action,

View File

@@ -3,17 +3,17 @@ pragma solidity ^0.8.19;
import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./OpenClawDAO.sol"; import "./HermesDAO.sol";
/** /**
* @title AgentWallet * @title AgentWallet
* @dev Smart contract wallet for AI agents to participate in OpenClaw DAO governance * @dev Smart contract wallet for AI agents to participate in Hermes DAO governance
* @notice Enables autonomous voting and reputation-based governance participation * @notice Enables autonomous voting and reputation-based governance participation
*/ */
contract AgentWallet is Ownable { contract AgentWallet is Ownable {
using SafeMath for uint256; using SafeMath for uint256;
// Agent roles matching OpenClawDAO // Agent roles matching HermesDAO
enum AgentRole { enum AgentRole {
NONE, NONE,
PROVIDER, PROVIDER,
@@ -40,13 +40,13 @@ contract AgentWallet is Ownable {
uint8 supportThreshold; // 0-255, higher means more likely to support uint8 supportThreshold; // 0-255, higher means more likely to support
uint256 minReputationToVote; uint256 minReputationToVote;
bool voteBasedOnRole; bool voteBasedOnRole;
mapping(OpenClawDAO.ProposalType => uint8) roleVotingPreferences; mapping(HermesDAO.ProposalType => uint8) roleVotingPreferences;
} }
// State variables // State variables
AgentState public agentState; AgentState public agentState;
VotingStrategy public votingStrategy; VotingStrategy public votingStrategy;
OpenClawDAO public dao; HermesDAO public dao;
IERC20 public governanceToken; IERC20 public governanceToken;
// Events // Events
@@ -83,7 +83,7 @@ contract AgentWallet is Ownable {
agentState.isActive = true; agentState.isActive = true;
agentState.authorizedCallers[_owner] = true; agentState.authorizedCallers[_owner] = true;
dao = OpenClawDAO(_daoContract); dao = HermesDAO(_daoContract);
governanceToken = IERC20(_governanceToken); governanceToken = IERC20(_governanceToken);
// Set default voting strategy based on role // Set default voting strategy based on role
@@ -93,7 +93,7 @@ contract AgentWallet is Ownable {
} }
/** /**
* @dev Register agent with OpenClaw DAO * @dev Register agent with Hermes DAO
*/ */
function registerWithDAO() external onlyAuthorized { function registerWithDAO() external onlyAuthorized {
dao.registerAgentWallet(address(this), agentState.role); dao.registerAgentWallet(address(this), agentState.role);
@@ -182,7 +182,7 @@ contract AgentWallet is Ownable {
* @param preference Voting preference (0-255) * @param preference Voting preference (0-255)
*/ */
function setRoleVotingPreference( function setRoleVotingPreference(
OpenClawDAO.ProposalType proposalType, HermesDAO.ProposalType proposalType,
uint8 preference uint8 preference
) external onlyAuthorized { ) external onlyAuthorized {
votingStrategy.roleVotingPreferences[proposalType] = preference; votingStrategy.roleVotingPreferences[proposalType] = preference;
@@ -232,7 +232,7 @@ contract AgentWallet is Ownable {
*/ */
function _calculateAutonomousVote(uint256 proposalId) internal view returns (bool) { function _calculateAutonomousVote(uint256 proposalId) internal view returns (bool) {
// Get proposal type preference // Get proposal type preference
(, , , OpenClawDAO.ProposalType proposalType, , , , , , ) = dao.getProposal(proposalId); (, , , HermesDAO.ProposalType proposalType, , , , , , ) = dao.getProposal(proposalId);
uint8 preference = votingStrategy.roleVotingPreferences[proposalType]; uint8 preference = votingStrategy.roleVotingPreferences[proposalType];
// Combine with general support threshold // Combine with general support threshold
@@ -252,7 +252,7 @@ contract AgentWallet is Ownable {
uint256 proposalId, uint256 proposalId,
bool support bool support
) internal view returns (string memory) { ) internal view returns (string memory) {
(, , , OpenClawDAO.ProposalType proposalType, , , , , , ) = dao.getProposal(proposalId); (, , , HermesDAO.ProposalType proposalType, , , , , , ) = dao.getProposal(proposalId);
string memory roleString = _roleToString(agentState.role); string memory roleString = _roleToString(agentState.role);
string memory actionString = support ? "support" : "oppose"; string memory actionString = support ? "support" : "oppose";
@@ -278,25 +278,25 @@ contract AgentWallet is Ownable {
if (role == AgentRole.PROVIDER) { if (role == AgentRole.PROVIDER) {
// Providers favor infrastructure and resource proposals // Providers favor infrastructure and resource proposals
votingStrategy.roleVotingPreferences[OpenClawDAO.ProposalType.PARAMETER_CHANGE] = 180; votingStrategy.roleVotingPreferences[HermesDAO.ProposalType.PARAMETER_CHANGE] = 180;
votingStrategy.roleVotingPreferences[OpenClawDAO.ProposalType.TREASURY_ALLOCATION] = 160; votingStrategy.roleVotingPreferences[HermesDAO.ProposalType.TREASURY_ALLOCATION] = 160;
votingStrategy.roleVotingPreferences[OpenClawDAO.ProposalType.AGENT_TRADING] = 200; votingStrategy.roleVotingPreferences[HermesDAO.ProposalType.AGENT_TRADING] = 200;
votingStrategy.supportThreshold = 128; votingStrategy.supportThreshold = 128;
} else if (role == AgentRole.CONSUMER) { } else if (role == AgentRole.CONSUMER) {
// Consumers favor access and pricing proposals // Consumers favor access and pricing proposals
votingStrategy.roleVotingPreferences[OpenClawDAO.ProposalType.PARAMETER_CHANGE] = 140; votingStrategy.roleVotingPreferences[HermesDAO.ProposalType.PARAMETER_CHANGE] = 140;
votingStrategy.roleVotingPreferences[OpenClawDAO.ProposalType.TREASURY_ALLOCATION] = 180; votingStrategy.roleVotingPreferences[HermesDAO.ProposalType.TREASURY_ALLOCATION] = 180;
votingStrategy.roleVotingPreferences[OpenClawDAO.ProposalType.AGENT_TRADING] = 160; votingStrategy.roleVotingPreferences[HermesDAO.ProposalType.AGENT_TRADING] = 160;
votingStrategy.supportThreshold = 128; votingStrategy.supportThreshold = 128;
} else if (role == AgentRole.BUILDER) { } else if (role == AgentRole.BUILDER) {
// Builders favor development and upgrade proposals // Builders favor development and upgrade proposals
votingStrategy.roleVotingPreferences[OpenClawDAO.ProposalType.PROTOCOL_UPGRADE] = 200; votingStrategy.roleVotingPreferences[HermesDAO.ProposalType.PROTOCOL_UPGRADE] = 200;
votingStrategy.roleVotingPreferences[OpenClawDAO.ProposalType.DAO_GRANTS] = 180; votingStrategy.roleVotingPreferences[HermesDAO.ProposalType.DAO_GRANTS] = 180;
votingStrategy.supportThreshold = 150; votingStrategy.supportThreshold = 150;
} else if (role == AgentRole.COORDINATOR) { } else if (role == AgentRole.COORDINATOR) {
// Coordinators favor governance and system proposals // Coordinators favor governance and system proposals
votingStrategy.roleVotingPreferences[OpenClawDAO.ProposalType.PARAMETER_CHANGE] = 160; votingStrategy.roleVotingPreferences[HermesDAO.ProposalType.PARAMETER_CHANGE] = 160;
votingStrategy.roleVotingPreferences[OpenClawDAO.ProposalType.PROTOCOL_UPGRADE] = 180; votingStrategy.roleVotingPreferences[HermesDAO.ProposalType.PROTOCOL_UPGRADE] = 180;
votingStrategy.supportThreshold = 140; votingStrategy.supportThreshold = 140;
} }
} }
@@ -319,13 +319,13 @@ contract AgentWallet is Ownable {
* @param proposalType Proposal type * @param proposalType Proposal type
* @return typeString String representation * @return typeString String representation
*/ */
function _proposalTypeToString(OpenClawDAO.ProposalType proposalType) internal pure returns (string memory) { function _proposalTypeToString(HermesDAO.ProposalType proposalType) internal pure returns (string memory) {
if (proposalType == OpenClawDAO.ProposalType.PARAMETER_CHANGE) return "Parameter Change"; if (proposalType == HermesDAO.ProposalType.PARAMETER_CHANGE) return "Parameter Change";
if (proposalType == OpenClawDAO.ProposalType.PROTOCOL_UPGRADE) return "Protocol Upgrade"; if (proposalType == HermesDAO.ProposalType.PROTOCOL_UPGRADE) return "Protocol Upgrade";
if (proposalType == OpenClawDAO.ProposalType.TREASURY_ALLOCATION) return "Treasury Allocation"; if (proposalType == HermesDAO.ProposalType.TREASURY_ALLOCATION) return "Treasury Allocation";
if (proposalType == OpenClawDAO.ProposalType.EMERGENCY_ACTION) return "Emergency Action"; if (proposalType == HermesDAO.ProposalType.EMERGENCY_ACTION) return "Emergency Action";
if (proposalType == OpenClawDAO.ProposalType.AGENT_TRADING) return "Agent Trading"; if (proposalType == HermesDAO.ProposalType.AGENT_TRADING) return "Agent Trading";
if (proposalType == OpenClawDAO.ProposalType.DAO_GRANTS) return "DAO Grants"; if (proposalType == HermesDAO.ProposalType.DAO_GRANTS) return "DAO Grants";
return "Unknown"; return "Unknown";
} }

View File

@@ -12,11 +12,11 @@ import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol";
/** /**
* @title OpenClawDAO * @title HermesDAO
* @dev Decentralized Autonomous Organization for AITBC governance * @dev Decentralized Autonomous Organization for AITBC governance
* @notice Implements token-weighted voting with snapshot security and agent integration * @notice Implements token-weighted voting with snapshot security and agent integration
*/ */
contract OpenClawDAO is contract HermesDAO is
Governor, Governor,
GovernorSettings, GovernorSettings,
GovernorCountingSimple, GovernorCountingSimple,
@@ -133,7 +133,7 @@ contract OpenClawDAO is
address _governanceToken, address _governanceToken,
TimelockController _timelock TimelockController _timelock
) )
Governor("OpenClawDAO") Governor("HermesDAO")
GovernorSettings(VOTING_DELAY, VOTING_PERIOD, PROPOSAL_THRESHOLD) GovernorSettings(VOTING_DELAY, VOTING_PERIOD, PROPOSAL_THRESHOLD)
GovernorVotes(IVotes(_governanceToken)) GovernorVotes(IVotes(_governanceToken))
GovernorVotesQuorumFraction(QUORUM_PERCENTAGE) GovernorVotesQuorumFraction(QUORUM_PERCENTAGE)
@@ -239,7 +239,7 @@ contract OpenClawDAO is
) public override returns (uint256) { ) public override returns (uint256) {
require( require(
state(proposalId) == ProposalState.Active, state(proposalId) == ProposalState.Active,
"OpenClawDAO: voting is not active" "HermesDAO: voting is not active"
); );
Proposal storage proposal = proposals[proposalId]; Proposal storage proposal = proposals[proposalId];
@@ -365,7 +365,7 @@ contract OpenClawDAO is
require( require(
state(proposalId) == ProposalState.Succeeded, state(proposalId) == ProposalState.Succeeded,
"OpenClawDAO: proposal not successful" "HermesDAO: proposal not successful"
); );
// Check multi-sig for critical proposals // Check multi-sig for critical proposals

View File

@@ -3,7 +3,7 @@ const fs = require("fs");
const path = require("path"); const path = require("path");
async function main() { async function main() {
console.log("🚀 Deploying OpenClaw Autonomous Economics Contracts"); console.log("🚀 Deploying Hermes Autonomous Economics Contracts");
console.log("=============================================="); console.log("==============================================");
const [deployer] = await ethers.getSigners(); const [deployer] = await ethers.getSigners();
@@ -179,7 +179,7 @@ async function main() {
// Generate environment variables for frontend // Generate environment variables for frontend
const envVars = ` const envVars = `
# AITBC OpenClaw Autonomous Economics - ${hre.network.name.toUpperCase()} # AITBC Hermes Autonomous Economics - ${hre.network.name.toUpperCase()}
# Generated on ${new Date().toISOString()} # Generated on ${new Date().toISOString()}
# Contract Addresses # Contract Addresses

View File

@@ -3,7 +3,7 @@ const fs = require("fs");
const path = require("path"); const path = require("path");
async function main() { async function main() {
console.log("🔍 Verifying OpenClaw Autonomous Economics Contracts"); console.log("🔍 Verifying Hermes Autonomous Economics Contracts");
console.log("=============================================="); console.log("==============================================");
const networkName = hre.network.name; const networkName = hre.network.name;

View File

@@ -48,7 +48,7 @@ required_files=(
"compute-provider.md" "compute-provider.md"
"advanced-ai-agents.md" "advanced-ai-agents.md"
"collaborative-agents.md" "collaborative-agents.md"
"openclaw-integration.md" "hermes-integration.md"
"project-structure.md" "project-structure.md"
"MERGE_SUMMARY.md" "MERGE_SUMMARY.md"
) )

View File

@@ -14,7 +14,7 @@
├── 🏠 README.md # Main documentation entry point ├── 🏠 README.md # Main documentation entry point
├── 🧭 MASTER_INDEX.md # This file - complete catalog ├── 🧭 MASTER_INDEX.md # This file - complete catalog
├── 📖 about/ # Documentation standards, audits, and remediation notes ├── 📖 about/ # Documentation standards, audits, and remediation notes
├── 🤖 agent-sdk/ # OpenClaw agent communication SDK documentation ├── 🤖 agent-sdk/ # hermes agent communication SDK documentation
├── 🤖 agents/ # Agent documentation and integration assets ├── 🤖 agents/ # Agent documentation and integration assets
├── 📱 apps/ # Applications documentation (72 items) ├── 📱 apps/ # Applications documentation (72 items)
├── 🏗️ architecture/ # System architecture and design patterns ├── 🏗️ architecture/ # System architecture and design patterns
@@ -29,13 +29,13 @@
├── 📖 guides/ # Getting started guides (6 items) ├── 📖 guides/ # Getting started guides (6 items)
├── 🏗️ infrastructure/ # System infrastructure documentation (11 items) ├── 🏗️ infrastructure/ # System infrastructure documentation (11 items)
├── ⛏️ mining/ # Mining operations documentation (8 items) ├── ⛏️ mining/ # Mining operations documentation (8 items)
├── 🧩 openclaw/ # OpenClaw agent integration documentation (19 items) ├── 🧩 hermes/ # hermes agent integration documentation (19 items)
├── 📦 packages/ # Language-specific packages and SDKs (1 item) ├── 📦 packages/ # Language-specific packages and SDKs (1 item)
├── 📋 project/ # Project documentation (28 items) ├── 📋 project/ # Project documentation (28 items)
├── 📖 reference/ # Compact lookup and reference docs (22 items) ├── 📖 reference/ # Compact lookup and reference docs (22 items)
├── 📋 releases/ # Release notes and version history (7 items) ├── 📋 releases/ # Release notes and version history (7 items)
├── 📊 reports/ # Status, quality, and completion reports (29 items) ├── 📊 reports/ # Status, quality, and completion reports (29 items)
├── 🎭 scenarios/ # OpenClaw agent scenarios (49 items) ├── 🎭 scenarios/ # hermes agent scenarios (49 items)
├── 🔒 security/ # Security documentation (20 items) ├── 🔒 security/ # Security documentation (20 items)
├── 🧪 testing/ # Test suite documentation (7 items) ├── 🧪 testing/ # Test suite documentation (7 items)
├── 🌐 website # Symlink to /website/docs/ ├── 🌐 website # Symlink to /website/docs/
@@ -50,7 +50,7 @@
- **Total Files**: 600+ markdown files - **Total Files**: 600+ markdown files
- **Archive Items**: 228 historical documents - **Archive Items**: 228 historical documents
- **Apps Documentation**: 72 items - **Apps Documentation**: 72 items
- **Scenarios**: 49 OpenClaw agent scenarios - **Scenarios**: 49 hermes agent scenarios
--- ---
@@ -71,7 +71,7 @@ Documentation about the documentation system itself
- **[Sorting Summary](about/DOCUMENTATION_SORTING_SUMMARY.md)** - Documentation sorting and organization - **[Sorting Summary](about/DOCUMENTATION_SORTING_SUMMARY.md)** - Documentation sorting and organization
### 🤖 Agent Documentation ### 🤖 Agent Documentation
- **[Agent SDK](agent-sdk/)** - OpenClaw agent communication SDK (10 items) - **[Agent SDK](agent-sdk/)** - hermes agent communication SDK (10 items)
- [Agent Communication Guide](agent-sdk/AGENT_COMMUNICATION_GUIDE.md) - [Agent Communication Guide](agent-sdk/AGENT_COMMUNICATION_GUIDE.md)
- [Quick Start Guide](agent-sdk/QUICK_START_GUIDE.md) - [Quick Start Guide](agent-sdk/QUICK_START_GUIDE.md)
- [API Reference](agent-sdk/API_REFERENCE.md) - [API Reference](agent-sdk/API_REFERENCE.md)
@@ -136,8 +136,8 @@ Documentation about the documentation system itself
### ⛏️ Mining Documentation ### ⛏️ Mining Documentation
- **[Mining](mining/)** - Mining operations documentation (8 items) - **[Mining](mining/)** - Mining operations documentation (8 items)
### 🧩 OpenClaw Documentation ### 🧩 hermes Documentation
- **[OpenClaw](openclaw/)** - OpenClaw agent integration documentation (19 items) - **[hermes](hermes/)** - hermes agent integration documentation (19 items)
### 📦 Packages Documentation ### 📦 Packages Documentation
- **[Packages](packages/)** - Language-specific packages and SDKs (1 item) - **[Packages](packages/)** - Language-specific packages and SDKs (1 item)
@@ -170,7 +170,7 @@ Documentation about the documentation system itself
- [github-resolution/](reports/github-resolution/) - GitHub PR resolution and updates - [github-resolution/](reports/github-resolution/) - GitHub PR resolution and updates
### 🎭 Scenarios Documentation ### 🎭 Scenarios Documentation
- **[Scenarios](scenarios/)** - OpenClaw agent scenarios (49 items) - **[Scenarios](scenarios/)** - hermes agent scenarios (49 items)
- 45 scenarios covering all AITBC features - 45 scenarios covering all AITBC features
- Beginner (20 scenarios), Intermediate (15 scenarios), Advanced (10 scenarios) - Beginner (20 scenarios), Intermediate (15 scenarios), Advanced (10 scenarios)
@@ -214,7 +214,7 @@ All cross-references have been updated to reflect these changes.
- **New Users**: Start with [Getting Started Guides](guides/getting-started/) - **New Users**: Start with [Getting Started Guides](guides/getting-started/)
- **Developers**: Review [Project Structure](project/) and [Blockchain](blockchain/) documentation - **Developers**: Review [Project Structure](project/) and [Blockchain](blockchain/) documentation
- **System Administrators**: Check [Deployment](deployment/) and [Security](security/) documentation - **System Administrators**: Check [Deployment](deployment/) and [Security](security/) documentation
- **OpenClaw Agents**: See [Agent SDK](agent-sdk/) and [Scenarios](scenarios/) documentation - **hermes Agents**: See [Agent SDK](agent-sdk/) and [Scenarios](scenarios/) documentation
- **Historical Reference**: Browse [Archive](archive/) for completed work and historical documents - **Historical Reference**: Browse [Archive](archive/) for completed work and historical documents
--- ---

View File

@@ -22,7 +22,7 @@
- **🚀 [Blockchain Documentation](blockchain/) - Deep technical topics - **🚀 [Blockchain Documentation](blockchain/) - Deep technical topics
- **📁 [Project Documentation](project/README.md)** - Project-level guides and completion tracking - **📁 [Project Documentation](project/README.md)** - Project-level guides and completion tracking
- **🧭 [Master Index](MASTER_INDEX.md)** - Complete catalog of all documentation - **🧭 [Master Index](MASTER_INDEX.md)** - Complete catalog of all documentation
- **🎭 [Agent Scenarios](scenarios/README.md)** - OpenClaw agent scenarios for all AITBC features - **🎭 [Agent Scenarios](scenarios/README.md)** - hermes agent scenarios for all AITBC features
## 🎉 **PROJECT STATUS: 100% COMPLETED - April 13, 2026** ## 🎉 **PROJECT STATUS: 100% COMPLETED - April 13, 2026**
@@ -127,7 +127,7 @@ For new users, developers getting started, and basic operational tasks.
- [`reports/github-resolution/`](./reports/github-resolution/) - GitHub PR resolution and updates - [`reports/github-resolution/`](./reports/github-resolution/) - GitHub PR resolution and updates
### 🤖 **Agent SDK Documentation** ### 🤖 **Agent SDK Documentation**
For OpenClaw agents wanting to communicate and collaborate on the blockchain. For hermes agents wanting to communicate and collaborate on the blockchain.
- **[Agent Communication Guide](agent-sdk/AGENT_COMMUNICATION_GUIDE.md)** - Comprehensive guide for agent communication - **[Agent Communication Guide](agent-sdk/AGENT_COMMUNICATION_GUIDE.md)** - Comprehensive guide for agent communication
- **[Quick Start Guide](agent-sdk/QUICK_START_GUIDE.md)** - Get started in 5 minutes - **[Quick Start Guide](agent-sdk/QUICK_START_GUIDE.md)** - Get started in 5 minutes
@@ -234,7 +234,7 @@ Files are organized with descriptive names based on their content and purpose.
- **👛 CLI Technical**: [CLI](cli/README.md) - CLI installation and usage notes - **👛 CLI Technical**: [CLI](cli/README.md) - CLI installation and usage notes
- **🤖 Agent Integration Assets**: [agents/](agents/) - Agent API spec and manifest assets - **🤖 Agent Integration Assets**: [agents/](agents/) - Agent API spec and manifest assets
- **📜 Contracts**: [Contracts](contracts/) - ZK verification and contract docs - **📜 Contracts**: [Contracts](contracts/) - ZK verification and contract docs
- **🧩 OpenClaw**: [OpenClaw](openclaw/) - OpenClaw agent integration and coordination docs - **🧩 hermes**: [hermes](hermes/) - hermes agent integration and coordination docs
- **🌐 Website**: [Website](website/) - Rendered documentation site assets - **🌐 Website**: [Website](website/) - Rendered documentation site assets
- **🧪 Testing**: [Testing](testing/README.md) - Test suite documentation and validation procedures - **🧪 Testing**: [Testing](testing/README.md) - Test suite documentation and validation procedures
@@ -412,7 +412,7 @@ Documentation about the documentation system itself
| [📋 Sorting Summary](about/DOCUMENTATION_SORTING_SUMMARY.md) | Documentation sorting and organization | | [📋 Sorting Summary](about/DOCUMENTATION_SORTING_SUMMARY.md) | Documentation sorting and organization |
**🤖 [Agent SDK Documentation](agent-sdk/)** **🤖 [Agent SDK Documentation](agent-sdk/)**
Complete documentation for OpenClaw agent communication Complete documentation for hermes agent communication
| File | Purpose | | File | Purpose |
|------|---------| |------|---------|
@@ -430,7 +430,7 @@ Canonical agent API spec and manifest bundle
| [🧾 Agent Manifest](agents/agent-manifest.json) | Canonical agent types, prerequisites, and quick commands | | [🧾 Agent Manifest](agents/agent-manifest.json) | Canonical agent types, prerequisites, and quick commands |
**🎭 [Agent Scenarios](scenarios/)** **🎭 [Agent Scenarios](scenarios/)**
45 OpenClaw agent scenarios covering all AITBC features 45 hermes agent scenarios covering all AITBC features
| Level | Scenarios | Content | | Level | Scenarios | Content |
|-------|-----------|---------| |-------|-----------|---------|
@@ -491,7 +491,7 @@ Project tracking and completion documentation (now in archive)
| [📖 Reference](reference/README.md) | Compact lookup and reference docs | Active | | [📖 Reference](reference/README.md) | Compact lookup and reference docs | Active |
| [📋 Releases](releases/README.md) | Release notes and version history | Active | | [📋 Releases](releases/README.md) | Release notes and version history | Active |
| [📊 Reports](reports/README.md) | Status, quality, and completion reports | Active | | [📊 Reports](reports/README.md) | Status, quality, and completion reports | Active |
| [🧩 OpenClaw](openclaw/README.md) | OpenClaw agent integration documentation | Active | | [🧩 hermes](hermes/README.md) | hermes agent integration documentation | Active |
| [🌐 Website](website/) | Rendered documentation site assets | Active | | [🌐 Website](website/) | Rendered documentation site assets | Active |
| [🔄 Workflows](workflows/README.md) | Documentation workflow outcomes | Active | | [🔄 Workflows](workflows/README.md) | Documentation workflow outcomes | Active |
| [👥 Project](project/README.md) | Project information and coordination | Active | | [👥 Project](project/README.md) | Project information and coordination | Active |

View File

@@ -56,7 +56,7 @@ This checklist tracks the current remediation target:
- [x] `maintenance/README.md` - [x] `maintenance/README.md`
- [x] `mobile/README.md` - [x] `mobile/README.md`
- [x] `nodes/README.md` - [x] `nodes/README.md`
- [x] `openclaw/README.md` - [x] `hermes/README.md`
- [x] `packages/README.md` - [x] `packages/README.md`
- [x] `policies/README.md` - [x] `policies/README.md`
- [x] `reference/README.md` - [x] `reference/README.md`
@@ -116,7 +116,7 @@ This checklist tracks the current remediation target:
- The following directories now have landing pages added in this pass: `about/`, `deployment/`, `development/`, `guides/`, `governance/`, `mobile/`, `nodes/`, `policies/`, `reference/`, `releases/`, `reports/`, `trail/`, and `workflows/`. - The following directories now have landing pages added in this pass: `about/`, `deployment/`, `development/`, `guides/`, `governance/`, `mobile/`, `nodes/`, `policies/`, `reference/`, `releases/`, `reports/`, `trail/`, and `workflows/`.
- The project and apps landing pages now include template-compliant related resources and quality metrics sections. - The project and apps landing pages now include template-compliant related resources and quality metrics sections.
- Legacy content `completed/` and `summaries/` directories were moved to `archive/completed/` and `archive/summaries/` for better organization. - Legacy content `completed/` and `summaries/` directories were moved to `archive/completed/` and `archive/summaries/` for better organization.
- Cross-link fixes applied: main README.md updated to point to archive locations, broken link in governance/openclaw-dao-governance.md removed. - Cross-link fixes applied: main README.md updated to point to archive locations, broken link in governance/hermes-dao-governance.md removed.
- MASTER_INDEX.md updated to reflect new archive structure with 10 categories (156+ documents). - MASTER_INDEX.md updated to reflect new archive structure with 10 categories (156+ documents).
- Any future docs area should either include a README index or be documented here as an intentional exception. - Any future docs area should either include a README index or be documented here as an intentional exception.

Some files were not shown because too many files have changed in this diff Show More