概览

Hermes Agent 整体架构

四层架构设计概览:UI / Core / Tools / Infrastructure / Extensions

架构图 四层架构与扩展模块
UI Layer CLI (cli.py) Gateway Batch Runner IDE Bridge 7 Platforms Core Layer AIAgent Main Loop run_agent.py ~11,650 lines Prompt Builder Context Compressor Auxiliary LLM Memory Manager Tools Layer Tool Registry Orchestrator 72 Tools MCP Plugins Infrastructure Session Persistence Config SQLite + FTS5 Extensions Skills Hub IDE Bridge Platforms 统计数据 ~15K lines Python 172+ Tools 7 Platform Adapters 4 Core Layers + 5 Security

入口多样性

  • CLI 命令行
  • Gateway HTTP API
  • Batch 批量处理
  • 7 个消息平台

核心引擎

  • AIAgent Main Loop
  • Context 压缩
  • Prompt 构建
  • Memory 管理

扩展能力

  • 72 内置工具
  • MCP 协议支持
  • 技能库自动管理
  • 平台适配器