first build nexus
This commit is contained in:
74
openclaw/xingjiang/oh-my-openagent.md
Normal file
74
openclaw/xingjiang/oh-my-openagent.md
Normal file
@@ -0,0 +1,74 @@
|
||||
# oh-my-openagent (omo) 研究笔记
|
||||
|
||||
> 来源: https://github.com/code-yeongyu/oh-my-openagent
|
||||
> 记录时间: 2026-03-20
|
||||
|
||||
## 核心理念
|
||||
|
||||
- **不绑定单一模型**: Claude / Kimi / GLM 用于编排,GPT 用于推理,Minimax 用于速度,Gemini 用于创意
|
||||
- **模型只会越来越便宜越来越聪明**: 为开放的模型市场而构建
|
||||
|
||||
## 核心特性
|
||||
|
||||
| 特性 | 功能 |
|
||||
|------|------|
|
||||
| 🤖 Discipline Agents | Sisyphus 指挥 Hephaestus, Oracle, Librarian, Explore 并行工作 |
|
||||
| ⚡ ultrawork / ulw | 一句话激活所有 agent,持续执行直到完成 |
|
||||
| 🚪 IntentGate | 分析真实用户意图再分类/行动 |
|
||||
| 🔗 Hash-Anchored Edit | LINE#ID + 内容哈希,零 stale-line 错误 |
|
||||
| 🛠️ **LSP + AST-Grep** | 工作区重命名、预构建诊断、AST 感知重写 |
|
||||
| 🧠 Background Agents | 并行运行 5+ 专家 |
|
||||
| 📚 Built-in MCPs | Exa (web search), Context7 (docs), Grep.app |
|
||||
| 🔁 Ralph Loop | 自循环直到 100% 完成 |
|
||||
| ✅ Todo Enforcer | 强制任务完成 |
|
||||
| 💬 Comment Checker | 检查注释质量 |
|
||||
|
||||
## LSP 集成详情
|
||||
|
||||
- **lsp_rename**: 工作区重命名
|
||||
- **lsp_goto_definition**: 跳转到定义
|
||||
- **lsp_find_references**: 查找引用
|
||||
- **lsp_diagnostics**: 诊断
|
||||
- **AST-Grep**: 25 种语言的模式感知代码搜索和重写
|
||||
|
||||
## Agents 架构
|
||||
|
||||
| Agent | 模型 | 职责 |
|
||||
|-------|------|------|
|
||||
| **Sisyphus** | opus-4-6 / kimi-k2.5 / glm-5 | 主 orchestrator,规划、委托、驱动任务完成 |
|
||||
| **Hephaestus** | gpt-5.3-codex | 自主深度工作者,探索代码库、研究模式、端到端执行 |
|
||||
| **Prometheus** | opus-4-6 / kimi-k2.5 / glm-5 | 战略规划者,面试模式提问、识别范围、构建计划 |
|
||||
| **Oracle** | - | 架构/调试专家 |
|
||||
| **Librarian** | - | 文档/代码搜索 |
|
||||
| **Explore** | - | 快速代码库 grep |
|
||||
|
||||
## Agent 类别路由
|
||||
|
||||
- `visual-engineering` → 前端/UI/UX
|
||||
- `deep` → 自主研究+执行
|
||||
- `quick` → 单文件修改
|
||||
- `ultrabrain` → 困难逻辑/架构决策
|
||||
|
||||
## ultrawork 命令
|
||||
|
||||
```bash
|
||||
opencode run --agent sisyphus "ulw 实现 JWT 认证并添加测试"
|
||||
```
|
||||
|
||||
或交互模式:
|
||||
```bash
|
||||
opencode --agent sisyphus
|
||||
# 里面用 @plan 规划,/start-work 执行
|
||||
```
|
||||
|
||||
## 安装验证
|
||||
|
||||
```bash
|
||||
cat ~/.config/opencode/opencode.json | grep "oh-my-opencode"
|
||||
```
|
||||
|
||||
## 相关链接
|
||||
|
||||
- GitHub: https://github.com/code-yeongyu/oh-my-openagent
|
||||
- Discord: https://discord.gg/PUwSMR9XNk
|
||||
- Sisyphus Labs: https://sisyphuslabs.ai
|
||||
Reference in New Issue
Block a user