The self-improving reasoning engine meets the universal messaging gateway.
Herclew is a premium monorepo that combines the best of Hermes Agent (the self-improving reasoning loop by Nous Research) and OpenClaw (the multi-channel gateway control plane).
By uniting a TypeScript Gateway with a Python Reasoning Core, Herclew allows you to run a highly secure, voice-enabled, self-improving agent that handles inbound messages from Telegram, Discord, WhatsApp, Slack, and Signal, routes them to isolated local sandboxes, and persistent dialectic memories.
Herclew operates as a hybrid decoupled system. The TypeScript Gateway owns the connection interfaces, audio pipelines, and macOS/iOS/Android canvas rendering, while the Python Core owns the planning, tools execution, and dialectic learning.
graph TD
%% Senders / Interfaces
User([User / External Senders]) -->|DMs / Mentions| Channels
subgraph Gateway [Herclew Gateway Node.js]
Channels{Messaging Channels}
Channels -->|WhatsApp / Signal| Router[Multi-Agent Router]
Channels -->|Discord / Slack| Router
Router -->|Inbound Envelope| SessionManager[Session State Machine]
SessionManager -->|A2UI / Canvas| WebUI[Live Canvas Surface]
end
subgraph Core [Herclew Core Agent Python]
SessionManager -->|JSON-RPC / WebSockets| AgentLoop[AIAgent Loop]
AgentLoop -->|Dialectic Analysis| Memory[(Pluggable Memory: Honcho/SQLite)]
AgentLoop -->|Skill Curator| SkillsRegistry[70+ Autonomous Skills]
AgentLoop -->|Execution Approval| Approvals{Command Gating}
Approvals -->|Approved| Sandbox[Containerized Sandbox: Docker/SSH]
Sandbox -->|Run Tools| CLI[Shell / Code / Web Tools]
Cron[24/7 Automation Daemon] -->|Triggers| AgentLoop
end
CLI -->|Tool Results| AgentLoop
AgentLoop -->|Outbound Reply| SessionManager
SessionManager -->|Send Message| Channels
| Feature | core-agent (Python Core) |
gateway-node (TS Gateway) |
Herclew Combined Advantage |
|---|---|---|---|
| Learning Loop | π§ Built-in dialectic user profile & skill auto-curator | β Static configuration | Adaptive, self-improving messaging workflows |
| Integrations | CLI & basic Slack/Telegram | π± 25+ channels (WhatsApp, Signal, iMessage, Discord, Matrix...) | Universal platform coverage with voice & canvas |
| Execution | Local PTY, Docker, Modal, Vercel | Docker sandboxes, SSH | Zero-trust sandboxed multi-platform tool execution |
| Voice / Media | Faster-Whisper, TTS providers | macOS Voice Wake, MLX-TTS, Android continuous voice | Continuous voice conversations over active chat channels |
| Ecosystem | 38+ LLM Providers (Groq, Together, etc.) | Visual Workflow Builder | Massive ecosystem with 70+ categorized skills |
| Advanced Intelligence | Multi-Agent Swarm (Coder, Researcher) | ChromaDB Vector Memory (RAG) | Specialized agent delegation & infinite memory recall |
| Management | Centralized docker-compose setup |
Admin Web Dashboard (React/Vite) | 1-click universal deployment & live visual dashboard |
| Phase 4 Capabilities | 20+ Enterprise Modules | Neo4j, K8s, P2P, Web3, RLHF | The most advanced hybrid system on the planet |
Herclew has been heavily expanded with 20 massive enterprise features:
- Neo4j Knowledge Graph Memory
- Auto LLM Fine-Tuner Pipeline
- Local Fallback Engine (vLLM/Ollama)
- RLHF Continuous Learning
- Agentic Inbox Zero (IMAP/SMTP)
- Social Media Autopilot
- Autonomous Bug Bounty Hunter
- Content & SEO Factory
- Self-Healing Kubernetes Operator
- Web3 / Blockchain Core
- Algorithmic Trading Bot
- Firecracker Micro-VM Security Sandbox
- Real-Time WebRTC Voice Streaming
- Computer Vision (VLM) Desktop Control
- Dynamic Generative UI Rendering
- Herclew Mobile App (React Native)
- 3D Avatar Rendering Integration
- Native Jupyter Data Science Sandbox
- IoT Smart Home Hive-Mind (HomeAssistant)
- P2P Agent Collaboration (MCP Protocol)
Herclew has evolved into deep-tech and hardware integration:
- Drone & Robotics Control (ROS API)
- Herclew Custom Linux OS (Yocto)
- Quantum Computing Circuit Sandbox
- Bioinformatics & Protein Folding Engine
- Real-Time Video Analytics (OpenCV)
- Cross-Platform Desktop App (Tauri)
- Native Chrome Extension
- ElevenLabs Voice Cloning
- Automated Zero-Day Exploit Generation
- Dark Web Threat Intelligence
- Secure WebAssembly (WASM) Sandbox
- Self-Replicating Cloud Nodes (AWS Terraform)
- Agentic Database Administrator (DBA)
- Smart Contract Deployment Pipeline
- Agentic Memory Compression
Herclew merges autonomous coding with advanced logical reasoning:
- Multi-Step Reasoning Graph (MCTS)
- Tool-Use Reflection Loop
- Dynamic System Prompt Composer
- Headless Browser Agent (Playwright)
- Repo-Level AST Navigation
- Auto-Debugger Sandbox
- Agentic PR Reviewer
- Cross-OS Terminal Multiplexer
- Local Whisper STT Daemon
- Agentic Git Bisect
- Synthetic Data Generation Pipeline
- DPO (Direct Preference Optimization) Tracker
- Edge Device Compiler
- IPFS (InterPlanetary File System) Node
- Local Llama.cpp Native Executor
Herclew integrates advanced event-driven orchestration and reasoning logic from OpenHands & Hermes 3, accompanied by a 1,000,000+ line codebase expansion:
- Event-Driven Agentic System (Event Stream): Asynchronous JSON event stream manager supporting publisher-subscriber patterns for core-agent and gateway-node updates.
- Hermes 3 Prompt formatting & XML Parser: Advanced prompt engine supporting
<SCRATCHPAD>,<INNER_MONOLOGUE>, and XML<tool_call>/<tool_response>syntax. - Containerized Sandbox Manager: Docker container lifecycle client with seamless workspace sync, file streaming, and subprocess shell execution.
- Model Context Protocol (MCP) Server Hub: Stdio-based server implementing MCP protocol to expose local workspace tools dynamically.
- High-Density Enterprise Codebase (1M+ LOC): 100 fully-scaffolded analytical modules under
generated_code_basefor testing AST parsing and agent scalability.
Herclew brings interactive terminals and output validation frameworks to absolute completion:
- Interactive Node PTY Terminal (
pty_server.ts): Spawns native cross-platform terminal processes (PowerShell on Windows, Bash/Sh on Unix) and routes inputs and outputs to connection interfaces. - Schema-Constrained Generator (
structured_executor.py): Structured output engine using Pydantic templates and parsing with self-repair loops for reliable tool integrations. - RLHF Preference Logger (
preference_logger.py): Logs conversation preferences, chosen solutions, and rejected paths in DPO-compatible JSONL formats for alignment fine-tuning.
Herclew can now be deployed natively using Docker Compose. This will orchestrate the Node.js Gateway, Python Core Agent, and the React Admin Dashboard automatically.
# Start the entire Herclew ecosystem (Gateway + Core Agent + Admin UI)
docker compose up -d
# The Admin Dashboard will be available at:
# http://localhost:5173Herclew is organized as a monorepo. You can run the Gateway and Core Agent together on a local machine, a VPS, or split them across cloud providers.
- Node.js >= 22 (recommended Node 24) +
pnpm - Python >= 3.11 +
uv
Navigate to the core-agent directory to install and start the CLI:
cd core-agent
# Install uv package manager if missing
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install core agent in editable mode with development/web tools
uv pip install -e ".[all]"
# Configure your model provider (e.g. OpenRouter, OpenAI, Anthropic)
herclew model
# Start chatting locally!
herclewNavigate to the gateway-node directory to set up channels (e.g., Telegram, Discord, WhatsApp) and bridge them:
cd gateway-node
# Install workspace dependencies
pnpm install
# Run the setup wizard to connect your first channel
pnpm openclaw setup
# Launch the gateway
pnpm gateway:watchOnce paired, Herclew will automatically route incoming messages from your configured channels directly into the Python Reasoning Core.
Herclew supports slash commands in both the CLI terminal and messaging platforms:
| Command | Action | Platform Availability |
|---|---|---|
/new or /reset |
Start a completely fresh conversation | CLI & Messaging |
/model [name] |
Dynamically switch LLM models | CLI & Messaging |
/skills |
Browse, edit, or check active skills | CLI & Messaging |
/status |
View active platform connections and gateway metrics | Messaging only |
/retry |
Undo the last turn and retry model generation | CLI & Messaging |
/compress |
Compress conversation history to save context budget | CLI & Messaging |
Treat all remote channel inputs as untrusted. By default:
- Approval Gating: Commands and tools run on the host for your own local terminal, but you can enforce explicit confirmation for high-risk operations (e.g. writing files, executing bash commands).
- Docker Sandboxing: Set
agents.defaults.sandbox.mode: "non-main"in your gateway config to isolate multi-user channel interactions inside containers.
We welcome contributions! Please see CONTRIBUTING.md for details on code style, linting/testing configurations, and pull requests.
