一个能够自行演化并动态加强安全性的代理
OmniAgent is an open-source self-evolving Agent framework inspired by OpenClaw. It's the only agent that implements full-dimensional self-evolution (OmniEvolve):
Together, these enable full-dimensional (Skill, Context, BrainModel) self-evolution of the Agent. Additionally, Hyper Harness and Deep Reflexion modules enhance system safety and task success rate:
OmniAgent V.S. OpenClaw V.S. Hermes
| Dimension | OpenClaw | Hermes | * OmniAgent |
|---|---|---|---|
| Skill Evolution | Static skills, no evolution | Periodic post-execution evolution (slow to take effect) | Real-time self-evolution during execution (fast to take effect) |
| Skill Injection | User Message | User Message | User Message (saves 90% token cost) |
| Context Evolution | Static context assembly, no evolution (weak) | Prompt-instruction-based evolution (weak) | Real-time interaction feedback + LLM summarization self-evolution (strong) |
| BrainModel Evolution | Fixed model, no evolution | Fixed model, no evolution | Self-deployed model, online RL evolution |
| Harness Safety | Static security scanning (bypassable) | Skill trust-level policy, static scanning (bypassable) | Tool & Skill trust-level policy + four-layer dynamic security scanning (unbypassable) |
| Hyper-Harness | None (slow) | None (slow) | Dynamic multi-agent + dynamic concurrent tool execution (fast) |
| Agent-Loop | ReAct single loop (low success rate) | ReAct single loop (low success rate) | Dual-layer Deep Reflexion loop (high success rate) |
OmniEvolve (Full-Dimensional Self-Evolution): The agent evolves continuously through interaction, and safety hardens dynamically.
Hyper-Harness (Super Scaffold): A more efficient, safe, and intelligent Harness engine.
Deep Reflexion (Inner-Outer Dual-Layer Reflective Architecture): Improves agent task success rate (PASS@1).
| Use Case | What OmniAgent Does |
|---|---|
| Workspace & Skills | Config injection: define Agent personality, tasks, and behavior rules via bootstrap files (AGENTS.md / SOUL.md / CUSTOM.md); Progressive loading: read associated documents in graduated stages (L0/L1/L2) based on conversation depth to prevent Token overflow |
| Coding & Dev | Full-lifecycle code handling: write, run, and test code directly in the local environment; Auto-correction: on runtime errors, the Agent reads Traceback and attempts fixes until the program runs |
| Research & Analysis | Multi-source web search: auto-invokes search tools and visits multiple pages to extract key information; Knowledge cross-validation: compares information from different sources, outputs a comprehensive report with source annotations |
| System Admin | Shell command execution: supports terminal commands in sandbox or host environments; Safety control flow: built-in security scanning system auto-suspends and requests user approval for high-risk commands like delete and format |
| Multi-Channel | Unified gateway: manages message routing for Feishu, Discord, Telegram, CLI, and more; Session persistence: seamless switching between clients while maintaining Agent memory consistency |
| Flexible LLM Backends | Hybrid model routing: freely combine OpenAI, Claude, DeepSeek, Ollama, and other backends |
Requirements: Python 3.11+, an LLM API key (DeepSeek / OpenAI / Anthropic / Ollama / Gemini).
# 1. Install
$ pip install -e .
# 2. Interactive setup — choose provider, enter API key, done
$ omniagent onboard
# 3. Start
$ omniagent chat # CLI
$ omniagent serve # Web UI → http://127.0.0.1:18790
| Mode | Command | Description |
|---|---|---|
| Terminal | omniagent chat |
Interactive chat in your terminal |
| Web UI | omniagent serve |
Start Gateway, open http://127.0.0.1:18790 in your browser |
| Mobile (Feishu / Discord / Telegram) | omniagent serve |
Start Gateway, configure Channel in config.yaml, then open a session in your terminal |
Configuration is layered: defaults → ~/.omniagent/config.yaml → environment variables.
providers:
deepseek:
api_key: "sk-your-key"
model_id: deepseek-chat
agent:
model_provider: deepseek
reflexion_enabled: true
Full configuration reference: docs.omniagent.dev (coming soon)
…
omniagent/
├── agents/ # Core: reflexion loop, sentinel, guardian, skill/memory evolution, context management
├── security/ # Policy engine, approval, audit, sandbox
├── tools/ # Built-in tools
├── channels/ # Feishu, Discord, Telegram, Webhook
├── config/ # OmniAgentConfig + sub-configs
├── gateway/ # WebSocket + HTTP server
└── rl/ # GRPO + PRM training pipeline
python -m pytest to verifyWe welcome contributions of all kinds — bug fixes, new tools, channel connectors, and documentation improvements.
This project is licensed under GPL-3.0. Any code that references this project must also be open-sourced under the same license.
暂无开放 Issues,或尚未同步最近议题。