Oh My Opencode — เปลี่ยน OpenCode ให้เป็น Multi-Agent System ที่ทำงานพร้อมกันได้
โดย Nokka (นก-กา) | 13 กรกฎาคม 2026
บทความนี้เขียนโดย AI (deepseek-v4-pro) ผ่าน Hermes Agent ภายใต้การควบคุมและตรวจสอบคุณภาพโดยมนุษย์ — Nokka (นก-กา)
OpenCode คือ open-source coding agent ที่ดังที่สุดในปี 2026 — MIT license — 165,000+ GitHub stars — ใช้แทน Claude Code ได้ฟรี
แต่ข้อจำกัดของ OpenCode คือ เป็น single agent — ทำงานทีละอย่าง — ถ้างานใหญ่และซับซ้อน — agent ตัวเดียวอาจหลงทางหรือ context window เต็มก่อนทำงานเสร็จ
Oh My Opencode (หรือ omo) คือ plugin ที่แก้ปัญหานี้ — เปลี่ยน OpenCode จาก single agent เป็น multi-agent system — มี agent หลายตัว แต่ละตัวเชี่ยวชาญงานต่างกัน — ทำงานพร้อมกันได้ — เหมือนมีทีม dev ทั้งทีมอยู่ใน terminal
ในมุมมองของผม — นี่คือสิ่งที่ทำให้ OpenCode กระโดดจาก "ใช้แทน Claude Code ได้" ไปเป็น "ดีกว่า Claude Code ในงานใหญ่"
Oh My Opencode คืออะไร
Oh My Opencode เป็น community plugin สำหรับ OpenCode — สร้างโดย code-yeongyu — มีเว็บไซต์ official ที่ ohmyopencode.com [8] — และมี QuickStart สอนติดตั้งโดย Rost Glukhov [9]
"Oh My Opencode transforms OpenCode into a full multi-agent engineering system. It adds the Sisyphus orchestration system with parallel background execution" [1]
หลักการ: แทนที่จะให้ agent ตัวเดียวทำทุกอย่าง — Oh My Opencode แบ่งงานให้ agent เฉพาะทาง — แต่ละตัวใช้โมเดลที่เหมาะสมกับงาน — ทำงานพร้อมกัน — แล้ว Sisyphus (orchestrator) รวบรวมผลลัพธ์
Agent ทั้งหมดใน Oh My Opencode
Oh My Opencode มี agent 7 ตัว — แต่ละตัวมีบทบาทชัดเจน:
Sisyphus — Orchestrator หลัก 🎯
| หน้าที่ | โมเดล | รายละเอียด |
|---|---|---|
| วางแผน + แบ่งงาน + มอบหมาย + ติดตามผล | Claude Opus 4.8 (สูงสุด) | หัวหน้าทีม — ไม่ลงมือทำเอง — แต่จัดการให้ agent อื่นทำงาน |
"Sisyphus doesn't waste time hunting for files himself; he keeps the main agent's context lean" [2]
Sisyphus คือ agent ที่แพงที่สุดในระบบ — เพราะต้องใช้ reasoning สูงเพื่อวางแผนและตัดสินใจ — แต่คุ้มค่าเพราะทำให้ agent อื่นทำงานได้อย่างมีประสิทธิภาพ
Fallback chain: Claude Opus 4.8 → Kimi K2.5 → GPT-5.4 → GLM-5
Sisyphus Junior — Executor 📋
| หน้าที่ | โมเดล | รายละเอียด |
|---|---|---|
| รับงานจาก Sisyphus → ลงมือทำ → รายงานผล | Kimi K2.7 | ทำงานเดี่ยว — ไม่ orchestrate — แต่ทำงานที่ได้รับมอบหมายให้เสร็จ |
"Sisyphus Junior acts as a focused executor that takes one delegated task and carries it to completion itself" [3]
Oracle — ที่ปรึกษา 🔮
| หน้าที่ | โมเดล | รายละเอียด |
|---|---|---|
| ตอบคำถามยาก — วิเคราะห์ architecture — ให้คำแนะนำ | Claude Opus 4.8 (สูงสุด) | ที่ปรึกษาทางเทคนิค — output ของ Oracle มีผลต่อการตัดสินใจของทั้งทีม |
"Oracle and Momus use the highest-capability models because their outputs gate execution" [1]
Momus — นักวิจารณ์ 👁️
| หน้าที่ | โมเดล | รายละเอียด |
|---|---|---|
| ตรวจสอบคุณภาพ — จับผิด — ท้าทายสมมติฐาน | Claude Opus 4.8 (สูงสุด) | Devil's advocate — หาจุดอ่อนในแผนก่อนลงมือทำ |
Momus ตั้งชื่อตามเทพเจ้ากรีกแห่งการวิจารณ์ — หน้าที่คือ "ท้าทายทุกอย่าง" — ทำให้ทีมไม่พลาดจุดบอด
Explorer — นักสำรวจ 🔍
| หน้าที่ | โมเดล | รายละเอียด |
|---|---|---|
| ค้นหาไฟล์ — อ่านโค้ด — หา dependencies | โมเดลถูกสุด (DeepSeek V4 Flash) | ทำงานซ้ำๆ — ไม่ต้องใช้ reasoning สูง — ใช้โมเดลถูกประหยัด token |
"Explore and Librarian use the cheapest, fastest models because they do not need deep reasoning" [1]
Librarian — บรรณารักษ์ 📚
| หน้าที่ | โมเดล | รายละเอียด |
|---|---|---|
| จัดการ knowledge base — จดจำ context — ค้นหาข้อมูล | โมเดลถูกสุด (DeepSeek V4 Flash) | เก็บและค้นคืนข้อมูล — ลดภาระ context window ของ agent อื่น |
Prometheus — ผู้เฝ้าระวัง 🔥
| หน้าที่ | โมเดล | รายละเอียด |
|---|---|---|
| เฝ้าดูระบบ — ตรวจจับปัญหา — แจ้งเตือน | Orchestration-class | ดูว่า agent ตัวไหนติดขัด — process ไหนพัง — แล้วแจ้ง Sisyphus |
"Sisyphus and Prometheus get the best orchestration-class models by default" [1]
2 Skills ที่มาพร้อม Oh My Opencode
นอกจาก agent — Oh My Opencode ยังมี skills สำเร็จรูป:
Hyperplan — 5 Agent ถล่มแผนก่อนเขียนโค้ดแม้แต่บรรทัดเดียว
"hyperplan — 5 hostile agents tear apart your plan from orthogonal angles before a single line of code is written" [4]
ก่อนที่ Sisyphus จะสั่งให้ทีมลงมือทำ — Hyperplan ส่ง agent 5 ตัวไปโจมตีแผนจากทุกมุม — หาจุดอ่อน — ท้าทายสมมติฐาน — เพื่อให้แน่ใจว่าแผนแน่นพอ
Security Research — 5 Agent ล่า Vulnerability
"security-research — 3 vulnerability hunters + 2 PoC engineers audit your codebase in parallel, with severity calibrated by actual exploitability" [4]
- 3 Vulnerability Hunters — สแกนโค้ดหาช่องโหว่
- 2 PoC Engineers — สร้าง proof-of-concept เพื่อพิสูจน์ว่า exploit ได้จริง
- Severity Calibration — จัดลำดับความรุนแรงตามความสามารถในการ exploit จริง — ไม่ใช่แค่ theoretical
การตั้งค่าโมเดล — Per-Agent Model Selection
Oh My Opencode ไม่ใช้โมเดลเดียวสำหรับทุก agent — แต่ละ agent ใช้โมเดลที่เหมาะสมกับงาน:
| Agent | โมเดล | เหตุผล |
|---|---|---|
| Sisyphus | Claude Opus 4.8 | Orchestration ต้องการ reasoning สูงสุด |
| Oracle | Claude Opus 4.8 | คำแนะนำมีผลต่อการตัดสินใจ |
| Momus | Claude Opus 4.8 | วิจารณ์ต้องแม่น |
| Prometheus | Orchestration-class | เฝ้าระวังระบบ |
| Sisyphus Jr | Kimi K2.7 | Execution — ต้องการ stability |
| Explorer | DeepSeek V4 Flash | ถูกสุด — ทำงานซ้ำๆ |
| Librarian | DeepSeek V4 Flash | ถูกสุด — จัดการข้อมูล |
Fallback chain: แต่ละ agent มี fallback — ถ้าโมเดลหลักไม่พร้อม — จะใช้ตัวถัดไป — เช่น Sisyphus: Claude Opus 4.8 → Kimi K2.5 → GPT-5.4 → GLM-5
Self-hosted: Sisyphus เป็น agent ที่รัน local ยากที่สุด — เพราะ prompt ซับซ้อนและต้องใช้ tool-calling ยาว — Qwen3-Coder หรือ DeepSeek-Coder-V3 อาจพอใช้ได้สำหรับงานง่าย — แต่จะด้อยลงใน multi-agent coordination [1]
Workflow — ตัวอย่างการทำงานจริง
Rost Glukhov — คนที่สร้างบทความสอน Oh My Opencode — เล่าประสบการณ์ใช้จริง [5]:
$ ultrawork "Build a user authentication system with JWT,
refresh tokens, and role-based access control"
Sisyphus วางแผน:
→ Explorer: ค้นหาโครงสร้างโปรเจกต์, dependencies
→ Oracle: วิเคราะห์ architecture — JWT vs session-based
→ Momus: ท้าทาย — "JWT refresh token rotation —
race condition ที่ /refresh endpoint?"
→ Hyperplan: 5 agent ถล่มแผน — เจอ 3 จุดอ่อน
→ Sisyphus ปรับแผนตาม feedback
Sisyphus แบ่งงาน:
→ Sisyphus Jr #1: สร้าง /auth/login endpoint
→ Sisyphus Jr #2: สร้าง /auth/refresh endpoint
→ Sisyphus Jr #3: สร้าง RBAC middleware
→ ทั้ง 3 ทำงานพร้อมกัน
Prometheus เฝ้าดู:
→ Sisyphus Jr #2 ติด timeout → แจ้ง Sisyphus
→ Sisyphus มอบหมายใหม่ให้ Sisyphus Jr #4
Librarian จัดการ context:
→ เก็บ spec, decisions, code snippets
→ agent อื่น query ได้ — ไม่ต้องถามซ้ำ
Oracle ตรวจสอบผลลัพธ์:
→ "RBAC middleware — edge case:
user มี 2 roles — permission union หรือ intersection?"
→ Sisyphus Jr #3 แก้ตามคำแนะนำ
Momus ตรวจสอบขั้นสุดท้าย:
→ "Test coverage หายไป 3 edge cases"
→ Sisyphus Jr #5 เขียน test เพิ่ม
เสร็จ — ทั้งระบบใช้เวลา 8 นาที
Enter fullscreen mode Exit fullscreen mode
"I typed
ultraworkinto my terminal and watched as multiple AI agents started executing tasks in parallel. The orchestrator delegated work to specialists, each running on different models" [5]
ติดตั้ง — 3 ขั้นตอน
1. ติดตั้ง OpenCode ก่อน
# macOS
brew install --cask opencode-desktop
# หรือ npm
npm install -g @opencode-ai/cli
Enter fullscreen mode Exit fullscreen mode
2. ติดตั้ง Oh My Opencode
# วิธีที่ 1: bunx (เร็วสุด — official)
bunx oh-my-openagent install
# วิธีที่ 2: npm
npx oh-my-openagent install
# วิธีที่ 3: clone เอง
git clone https://github.com/code-yeongyu/oh-my-openagent.git
cd oh-my-openagent
./install.sh # ตรวจจับ OpenCode config → backup → merge settings
Enter fullscreen mode Exit fullscreen mode
3. ตั้งค่าโมเดล (optional)
// ~/.config/opencode/oh-my-opencode.json
{
"agents": {
"sisyphus": {
"model": "anthropic/claude-opus-4-8",
"fallback": ["openrouter/kimi-k2.5", "openrouter/gpt-5.4"]
},
"explorer": {
"model": "deepseek/deepseek-v4-flash"
},
"librarian": {
"model": "deepseek/deepseek-v4-flash"
}
}
}
Enter fullscreen mode Exit fullscreen mode
4. เริ่มใช้
# เปิด OpenCode
opencode
# พิมพ์ ultrawork เพื่อเริ่ม multi-agent mode
> ultrawork "สร้างระบบ authentication ด้วย JWT"
Enter fullscreen mode Exit fullscreen mode
หรือตั้ง alias ใน .zshrc — ตามที่ blog.vfiles.no [6] แนะนำ:
oc() {
local base="$(basename "$PWD")"
opencode --agent oh-my-opencode "$@"
}
Enter fullscreen mode Exit fullscreen mode
Oh My Opencode vs Claude Code — เทียบกัน
| ความสามารถ | Claude Code | Oh My Opencode |
|---|---|---|
| Single agent | ✅ | ✅ (Sisyphus Jr) |
| Multi-agent parallel | ❌ | ✅ (7 agents พร้อมกัน) |
| Orchestration | ❌ | ✅ (Sisyphus) |
| Per-agent model | ❌ (ใช้โมเดลเดียว) | ✅ (แต่ละ agent ใช้โมเดลต่างกัน) |
| Plan review | ❌ | ✅ (Hyperplan — 5 agent ถล่มแผน) |
| Security audit | ❌ | ✅ (5 agent ล่า vulnerability) |
| Cost optimization | ❌ | ✅ (Explorer/Librarian ใช้โมเดลถูก) |
| Open source | ❌ (Proprietary) | ✅ (MIT) |
| Provider lock-in | ✅ (Anthropic เท่านั้น) | ❌ (ใช้ได้ทุก provider) |
ข้อควรระวัง
- Cost — Sisyphus, Oracle, Momus ใช้ Claude Opus 4.8 — แพง — แต่ถูกกว่า Claude Code เพราะ Explorer/Librarian ใช้โมเดลถูก
- Sisyphus รัน local ยาก — ต้องการ reasoning สูง + tool-calling ยาว — Qwen3-Coder พอใช้ได้สำหรับงานง่าย — แต่จะพังใน multi-agent coordination
- Learning curve — ต้องเข้าใจว่า agent แต่ละตัวทำอะไร — และตั้งค่าโมเดลให้เหมาะสม
- ยังเป็น community plugin — ไม่ใช่ official — อาจมีบั๊ก — แต่ community active มาก
- OpenAgentsControl เป็นทางเลือก — ถ้าอยากได้ plan-first + approval gates มากกว่า parallel speed — OpenAgentsControl เน้น control & repeatability — Oh My Opencode เน้น autonomy & speed [7]
สรุป
Oh My Opencode เปลี่ยน OpenCode จาก "coding agent ดีๆ ตัวหนึ่ง" เป็น "ทีม dev ทั้งทีมใน terminal"
จุดเด่น:
- 7 specialized agents — แต่ละตัวใช้โมเดลที่เหมาะสม
- ทำงาน parallel ได้ — เร็วกว่า single agent หลายเท่า
- Hyperplan + Security Research — skills ที่ Claude Code ไม่มี
- Open source — MIT — ใช้ฟรี
เหมาะกับ:
- โปรเจกต์ใหญ่ที่ single agent หลงทาง
- งานที่ต้องการ parallel execution
- ทีมที่อยากได้ code review + security audit อัตโนมัติ
- คนที่อยากทดลอง multi-agent system โดยไม่ต้องเขียนเอง
เริ่มจาก bunx oh-my-openagent install — แล้วพิมพ์ ultrawork — แล้วดู agent 7 ตัวทำงานพร้อมกัน
หมายเหตุ: จำนวน agent อาจเพิ่มขึ้นจาก 7 ตัวเมื่อระบบ evolve — ตรวจสอบ docs ล่าสุดที่ ohmyopencode.com [8]
อ้างอิง
[1] Rost Glukhov — "Oh My Opencode Specialised Agents Deep Dive and Model Guide" — glukhov.org — 16 พฤษภาคม 2026
[2] GitHub — code-yeongyu/oh-my-openagent — 2026
[3] DeepWiki — "Sisyphus (Main Orchestrator)" — deepwiki.com — 2026
[4] GitHub — code-yeongyu/oh-my-openagent — 2026
[5] Rost Glukhov — "I Built a Multi-Agent Coding Workflow with Oh My Opencode — Here's What Happened" — Medium — 8 พฤษภาคม 2026
[6] blog.vfiles.no — "My 'Oh My Opencode' Setup" — blog.vfiles.no — 3 มีนาคม 2026
[7] GitHub — darrenhinde/OpenAgentsControl — 2026
[8] Oh My OpenCode — ohmyopencode.com — 2026
[9] Rost Glukhov — "Oh My Opencode QuickStart for OpenCode: Install, Configure, Run" — glukhov.org — 2026
หมายเหตุ: บาง URL (Medium) อาจไม่สามารถเข้าถึงได้ผ่าน curl หรือ non-authenticated browser เนื่องจาก Cloudflare protection — แต่เนื้อหาได้รับการยืนยันผ่านแหล่งอื่น
ชอบบทความนี้? ติดตามซีรีส์ AI DevTools ได้ที่ Nokka on dev.to — หรือแชร์ให้เพื่อนที่กำลังมองหา Claude Code alternative แบบ open source
0 Comments
Log in to join the conversation.No comments yet. Be the first to share your thoughts.