Hermes Agent 项目思维导图
这份文档用于导入 XMind 或其他支持 Markdown 层级导入的思维导图工具。主体内容尽量使用稳定的分级结构,减少长段解释,方便直接转换为脑图。
- Hermes Agent
- 项目定位
- 自主型 AI Agent 运行时
- 不只是聊天界面
- 不只是 IDE copilot
- 目标
- 调用工具完成任务
- 跨会话保留长期能力
- 跨平台运行
- 支持自动化与扩展
- 典型场景
- 本地开发助手
- 远程消息平台代理
- 定时任务与监控
- 企业内部系统接入
- 研究与批处理
- 用户入口
- CLI
hermes- 交互式主入口
- 最完整的调试与观察界面
- Gateway
hermes gateway- Telegram
- Discord
- Slack
- Signal
- 其他平台适配器
- ACP
- 编辑器集成
- VS Code
- Zed
- JetBrains
- API Server / Python Library / Batch Runner
- 程序化调用
- 轨迹批处理
- 研究与训练相关入口
- 核心能力
- Tools
- 文件操作
- 终端执行
- Web 搜索与抽取
- Browser 自动化
- Vision / TTS / Image Gen
- Memory
- Messaging
- Delegation
- Cron
- Toolsets
- 核心 toolset
- 组合 toolset
- 平台 toolset
- 动态 toolset
- Skills
- 按需加载的流程知识
- 本地 skills
- Skills Hub
- 动态 slash commands
- Memory
- 跨会话事实信息
- MEMORY.md / USER.md
- 外部 memory provider
- Context Files
AGENTS.mdSOUL.md.cursorrules.cursor/rules/*.mdc
- MCP
- 外部工具接入
- stdio server
- HTTP server
- 动态工具注册
- Cron
- 定时运行新 session
- delivery 到平台
- Delegation
- 子代理
- 并行任务
- 上下文隔离
- 核心运行系统
- AIAgent
run_agent.pychat()run_conversation()- 同步 agent loop
- Prompt Builder
agent/prompt_builder.py- 组装系统提示词
- 注入 personality / memory / context / skills
- Prompt Caching
agent/prompt_caching.py- 保持 prefix cache
- Context Compression
agent/context_compressor.py- 长会话压缩
- Provider / Runtime Resolution
hermes_cli/runtime_provider.pyhermes_cli/auth.py- provider 选择
- credentials 解析
- Tool Dispatch
model_tools.py- schema 收集
- handle function call
- tool availability gating
- Session Storage
hermes_state.pygateway/session.py- SQLite + FTS5
- Response Delivery
- CLI display
- gateway delivery
- cron delivery
- 核心模块
- 顶层核心文件
run_agent.pycli.pymodel_tools.pytoolsets.pyhermes_state.pybatch_runner.py
-
agent/- prompt builder
- context compressor
- prompt caching
- auxiliary client
- display
- skill commands
- trajectory
-
hermes_cli/main.pyconfig.pycommands.pysetup.pytools_config.pyskills_config.pymodel_switch.pyauth.py
-
tools/registry.pyterminal_tool.pyfile_tools.pyweb_tools.pybrowser_tool.pycode_execution_tool.pydelegate_tool.pymcp_tool.pyenvironments/
-
gateway/run.pysession.pydelivery.pypairing.pyplatforms/
-
cron/jobs.pyscheduler.py
- 其他关键目录
acp_adapter/plugins/skills/optional-skills/website/tests/
- 配置与状态体系
~/.hermes/config.yaml~/.hermes/.env~/.hermes/SOUL.md~/.hermes/skills/~/.hermes/sessions/HERMES_HOME- Profiles
hermes profile listhermes profile createhermes profile usehermes profile show
- 关键规则
- Prompt cache 不应随意打破
- 不要中途重建系统提示
- Toolset 不应在会话中随意变化
- profile-safe 路径规则
get_hermes_home()display_hermes_home()
- Tool / Skill / MCP 的选择边界
- 流程优先 skill
- 外部系统优先 MCP
- 原生底层能力再做 tool
- 测试不要写到真实
~/.hermes - 关键文件
- 入口
run_agent.pycli.pygateway/run.py
- 工具系统
model_tools.pytoolsets.pytools/registry.py
- 配置系统
hermes_cli/config.pyhermes_cli/main.pyhermes_constants.py
- 会话与状态
hermes_state.pygateway/session.py
- 扩展系统
tools/mcp_tool.pyagent/skill_commands.pyhermes_cli/commands.py
- 关键流程
- CLI 请求流程
- 用户输入
- CLI
- AIAgent
- Prompt Builder
- Provider / Runtime Resolution
- Model API Call
- Tool Dispatch
- Built-in Tools / MCP Tools
- Session Storage
- CLI display
- Gateway 请求流程
- 平台消息
- Gateway
- 会话解析与授权
- AIAgent
- Tool Dispatch
- Session Storage
- 平台回传
- Cron 请求流程
- Scheduler Tick
- 新 session
- AIAgent
- Tool Dispatch
- Session Storage
- Delivery target
- MCP 工具接入流程
mcp_servers- server connect
- tool discovery
- dynamic toolset
- model 可调用
- Tool 调用流程
- schema collection
- model tool call
handle_function_call()- registry dispatch
- tool result
- loop continuation
- 常用命令与观察点
- CLI
hermeshermes setuphermes modelhermes toolshermes gatewayhermes cron
- Session Commands
/model/usage/compress/tools/toolsets/skills/reload-mcp/background
- Debug
hermes doctorhermes status/verbosepython -m pytest tests/ -q
Top comments (0)