差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
| tech:opencode [2026/01/17 21:59] – [安裝與選用 plugin / MCP / Skills] jonathan | tech:opencode [2026/05/11 16:55] (目前版本) – [安裝 OpenCode (Ubuntu 24.04)] jonathan | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== 安裝 OpenCode (Ubuntu 24.04) ====== | ====== 安裝 OpenCode (Ubuntu 24.04) ====== | ||
| + | <note tip> | ||
| + | * 也可以參考我整合好的專案 \\ **[[https:// | ||
| + | * 用 docker compose 就可啟動使用 | ||
| + | </ | ||
| ===== 安裝程序 ===== | ===== 安裝程序 ===== | ||
| * < | * < | ||
| 行 26: | 行 30: | ||
| For more information visit https:// | For more information visit https:// | ||
| </ | </ | ||
| + | < | ||
| + | * 預設啟動 opencode 就會自動檢查與更新至最新版本, | ||
| + | - 在 ~/ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | - 安裝特定版本執行檔 Exp. 1.3.2< | ||
| + | curl -fsSL https:// | ||
| + | </ | ||
| + | </ | ||
| ===== 使用方式 ===== | ===== 使用方式 ===== | ||
| * 進入專案目錄執行< | * 進入專案目錄執行< | ||
| ===== 安裝與選用 plugin / MCP / Skills ===== | ===== 安裝與選用 plugin / MCP / Skills ===== | ||
| - | ==== 安裝 Oh My OpenCode | + | ==== 安裝 Oh My OpenAgent |
| - | * Ref - https:// | + | * Ref - https:// |
| sudo snap remove bun-js | sudo snap remove bun-js | ||
| sudo apt install unzip | sudo apt install unzip | ||
| 行 38: | 行 53: | ||
| source ~/.bashrc | source ~/.bashrc | ||
| cp ~/ | cp ~/ | ||
| - | bunx oh-my-opencode | + | bunx oh-my-openagent |
| </ | </ | ||
| - | * Oh My OpenCode | + | * Oh My OpenAgent |
| * Serena MCP : OpenCode 原生就支援 [[https:// | * Serena MCP : OpenCode 原生就支援 [[https:// | ||
| * ulw : UltraWork Mode -> 讓所有 Agent 可以儘可能最大極限合作執行 Exp. < | * ulw : UltraWork Mode -> 讓所有 Agent 可以儘可能最大極限合作執行 Exp. < | ||
| + | * ralph-loop : 自主持續迭代 -> 讓 AI 持續不停優化 Exp. 搭配 ulw 使用< | ||
| + | * mcp_tool 執行 playwrite 出現 JSON 異常問題 - 參考解法 - https:// | ||
| ==== 安裝 Claude 官方提供的 Skills ==== | ==== 安裝 Claude 官方提供的 Skills ==== | ||
| * Ref - https:// | * Ref - https:// | ||
| 行 49: | 行 65: | ||
| ==== 安裝 ui-ux-pro-max-skill ==== | ==== 安裝 ui-ux-pro-max-skill ==== | ||
| * Ref - https:// | * Ref - https:// | ||
| + | * <cli> | ||
| + | # Install CLI globally | ||
| + | sudo npm install -g uipro-cli | ||
| + | # Go to your project | ||
| + | cd / | ||
| + | # Install for your AI assistant | ||
| + | uipro init --ai opencode | ||
| + | </ | ||
| + | * 重新啟動 opencode 輸入 "Build a landing page for a SaaS product" | ||
| + | ==== 安裝 openspec ==== | ||
| + | * Ref - https:// | ||
| + | * Step 1.< | ||
| + | sudo npm install -g @fission-ai/ | ||
| + | jonathan@claude-code-194: | ||
| + | 0.21.0 | ||
| + | </ | ||
| + | * Step 2.< | ||
| + | cd my-project | ||
| + | openspec init | ||
| + | </ | ||
| + | * ++看畫面|< | ||
| + | | ||
| + | ██ | ||
| + | ██ | ||
| + | ██ | ||
| + | | ||
| - | ===== 有訂閱 Google | + | Welcome to OpenSpec! |
| - | * 參考 - https://github.com/ | + | |
| - | * 如果之後安裝或更新 oh-my-opencode 必須要將 ~/.config/ | + | Step 3/3 |
| - | * 將會增加 Antigravity + Gemini CLI 所提供的模型 | + | |
| - | - 先將 opencode.json 進行備份 | + | Review selections |
| - | | + | Press Enter to confirm or Backspace to adjust. |
| - | { | + | |
| - | " | + | ▌ Antigravity |
| - | : | + | ▌ OpenCode |
| - | : | + | ▌ OpenSpec structure created |
| - | } | + | ▌ AI tools configured |
| - | </file> | + | |
| - | - 進行 Google oAuth 認證<cli>opencode auth login</ | + | ✔ OpenSpec initialized successfully! |
| - | - 選擇 *Google** | + | |
| - | - 將產生的 URL 貼到瀏覽器, | + | Tool summary: |
| - | - 如果是 ssh 登入遠端主機, | + | ▌ Root AGENTS.md stub refreshed for other assistants |
| - | | + | ▌ Created: Antigravity, |
| - | { | + | ▌ Skipped: Amazon Q Developer, Auggie, Claude Code, Cline, Codex, CodeBuddy Code, Continue (VS Code / JetBrains |
| - | " | + | |
| - | "oh-my-opencode", | + | Use `openspec update` to refresh shared OpenSpec instructions in the future. |
| - | " | + | |
| - | ], | + | Important: Restart your IDE |
| - | " | + | Slash commands are loaded at startup. Please restart your coding assistant |
| - | " | + | to ensure the new /openspec commands appear in your command palette. |
| - | " | + | |
| - | " | + | Next steps - Copy these prompts to Antigravity, |
| - | " | + | ──────────────────────────────────────────────────────────── |
| - | " | + | 1. Populate your project context: |
| - | " | + | " |
| - | " | + | with details about my project, tech stack, and conventions" |
| - | " | + | |
| - | " | + | 2. Create your first change proposal: |
| - | " | + | " |
| - | } | + | OpenSpec change proposal for this feature" |
| - | }, | + | |
| - | " | + | 3. Learn the OpenSpec workflow: |
| - | " | + | " |
| - | " | + | and how I should work with you on this project" |
| - | " | + | ──────────────────────────────────────────────────────────── |
| - | " | + | |
| - | " | + | </cli>++ |
| - | " | + | * 複製畫面看到的這段<cli>1. Populate your project context: |
| - | " | + | " |
| - | " | + | with details about my project, tech stack, and conventions" |
| - | } | + | |
| - | }, | + | 2. Create your first change proposal: |
| - | " | + | " |
| - | | + | OpenSpec change proposal for this feature" |
| - | " | + | |
| - | " | + | 3. Learn the OpenSpec workflow: |
| - | }, | + | " |
| - | " | + | and how I should work with you on this project"< |
| - | " | + | |
| - | " | + | - Draft the Proposal Exp. < |
| - | " | + | - Verify & Review |
| - | " | + | $ openspec list # Confirm the change folder exists |
| - | " | + | $ openspec validate add-profile-filters |
| - | " | + | $ openspec show add-profile-filters |
| - | } | + | </code> |
| - | }, | + | - Refine the Specs <cli>請修正 xxx 功能, 將 abc 改成 zyx</ |
| - | " | + | - Implement the Change < |
| - | " | + | - Archive the Completed Change |
| - | " | + | |
| - | " | + | * 更版方式 |
| - | " | + | sudo npm install |
| - | " | + | cd myproject |
| - | " | + | openspec update |
| - | } | + | </ |
| - | }, | + | |
| - | : | + | ===== 使用 openchamber Web 操作介面 ===== |
| - | : | + | <note tip>[[tech/ |
| - | } | + | * 參考網址 |
| - | } | + | * <cli> |
| - | } | + | # Quick install |
| - | }, | + | curl -fsSL https:// |
| - | " | + | |
| - | } | + | # Quick start daemon |
| - | </ | + | openchamber --port 6001 --daemon |
| + | |||
| + | # 其他參數 | ||
| + | openchamber | ||
| + | openchamber --port 8080 # Custom port | ||
| + | openchamber --daemon | ||
| + | openchamber | ||
| + | openchamber --try-cf-tunnel | ||
| + | openchamber --try-cf-tunnel | ||
| + | openchamber | ||
| + | OPENCODE_PORT=4096 OPENCODE_SKIP_START=true openchamber | ||
| + | openchamber stop # Stop server | ||
| + | openchamber update | ||
| + | </ | ||
| + | | ||
| ===== 參考網址 ===== | ===== 參考網址 ===== | ||
| 行 135: | 行 191: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| {{tag> | {{tag> | ||