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
61 lines
2.2 KiB
Bash
Executable File
61 lines
2.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# Hermes Agent Communication Fix
|
|
# This script demonstrates the correct way to use Hermes agents with sessions
|
|
|
|
set -e
|
|
|
|
echo "=== Hermes Agent Communication Fix ==="
|
|
|
|
# 1. Check Hermes status
|
|
echo "1. Checking Hermes status..."
|
|
hermes status --all | head -10
|
|
|
|
# 2. Create a session for agent operations
|
|
echo "2. Creating agent session for blockchain operations..."
|
|
SESSION_ID="blockchain-workflow-$(date +%s)"
|
|
|
|
# 3. Test agent communication with session
|
|
echo "3. Testing agent communication with proper session..."
|
|
hermes agent --agent main --session-id $SESSION_ID --message "Test agent communication for blockchain workflow" --thinking low
|
|
|
|
echo "✅ Agent communication working with session ID: $SESSION_ID"
|
|
|
|
# 4. Demonstrate agent coordination
|
|
echo "4. Demonstrating agent coordination for blockchain operations..."
|
|
hermes agent --agent main --session-id $SESSION_ID --message "Coordinate multi-node blockchain deployment and provide status analysis" --thinking medium
|
|
|
|
# 5. Show session information
|
|
echo "5. Session information:"
|
|
echo "Session ID: $SESSION_ID"
|
|
echo "Agent: main"
|
|
echo "Status: Active"
|
|
|
|
# 6. Generate fix report
|
|
cat > /tmp/hermes_agent_fix_report.json << EOF
|
|
{
|
|
"fix_status": "completed",
|
|
"issue": "Agent communication failed due to missing session context",
|
|
"solution": "Added --session-id parameter to agent commands",
|
|
"session_id": "$SESSION_ID",
|
|
"agent_id": "main",
|
|
"working_commands": [
|
|
"hermes agent --agent main --session-id \$SESSION_ID --message 'task'",
|
|
"hermes agent --agent main --session-id \$SESSION_ID --message 'task' --thinking medium"
|
|
],
|
|
"timestamp": "$(date -Iseconds)"
|
|
}
|
|
EOF
|
|
|
|
echo "✅ Hermes Agent Communication Fix Completed!"
|
|
echo "📊 Report saved to: /tmp/hermes_agent_fix_report.json"
|
|
echo ""
|
|
echo "=== Correct Usage Examples ==="
|
|
echo "# Basic agent communication:"
|
|
echo "hermes agent --agent main --session-id $SESSION_ID --message 'your task'"
|
|
echo ""
|
|
echo "# With thinking level:"
|
|
echo "hermes agent --agent main --session-id $SESSION_ID --message 'complex task' --thinking high"
|
|
echo ""
|
|
echo "# For blockchain operations:"
|
|
echo "hermes agent --agent main --session-id $SESSION_ID --message 'coordinate blockchain deployment' --thinking medium"
|