mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat: add Grok Build support (#1030)
* test: define Grok Build integration behavior * feat: add Grok Build agent integration * test: cover Grok permissions and resume paths * docs: add Grok Build setup guide * fix: scope Grok ACP discovery to session cwd * fix: align Grok permission UI semantics * docs: clarify Grok runner setup * test: require Grok create model and effort options * feat: add Grok create model and effort pickers * test: define Grok runtime parity behavior * feat: add Grok runtime ACP controls and discovery * fix: tighten Grok runtime controls * fix: suppress nonfatal Grok title quota errors * feat: support Grok Auto permission mode * feat: forward ACP native session titles for Grok * fix: guard Grok Windows shell arguments
This commit is contained in:
+5
-1
@@ -1,12 +1,13 @@
|
||||
# hapi CLI
|
||||
|
||||
Run Claude Code, Codex, Cursor Agent, Gemini, or OpenCode sessions from your terminal and control them remotely through the hapi hub.
|
||||
Run Claude Code, Codex, Cursor Agent, Grok Build, or OpenCode sessions from your terminal and control them remotely through the hapi hub.
|
||||
|
||||
## What it does
|
||||
|
||||
- Starts Claude Code sessions and registers them with hapi-hub.
|
||||
- Starts Codex mode for OpenAI-based sessions.
|
||||
- Starts Cursor Agent mode for Cursor CLI sessions.
|
||||
- Starts Grok Build locally or via ACP for remote sessions.
|
||||
- Starts Gemini mode via ACP (Anthropic Code Plugins).
|
||||
- Starts OpenCode mode via ACP and its plugin hook system.
|
||||
- Provides an MCP stdio bridge for external tools.
|
||||
@@ -30,6 +31,7 @@ Run Claude Code, Codex, Cursor Agent, Gemini, or OpenCode sessions from your ter
|
||||
- `hapi cursor` - Start Cursor Agent mode. See `src/cursor/runCursor.ts`.
|
||||
Supports `hapi cursor resume <chatId>`, `hapi cursor --continue`, `--mode plan|ask`, `--yolo`, `--model`.
|
||||
Local and remote modes supported; remote uses `agent -p` with stream-json.
|
||||
- `hapi grok` - Start Grok Build mode. See `src/grok/runGrok.ts`.
|
||||
- `hapi gemini` - Start Gemini mode via ACP. See `src/agent/runners/runAgentSession.ts`.
|
||||
Note: Gemini runs in remote mode only; it waits for messages from the hub UI/Telegram.
|
||||
- `hapi opencode` - Start OpenCode mode via ACP. See `src/opencode/runOpencode.ts`.
|
||||
@@ -127,6 +129,7 @@ Data is stored in `~/.hapi/` (or `$HAPI_HOME`):
|
||||
|
||||
- Claude CLI installed and logged in (`claude` on PATH).
|
||||
- Cursor Agent CLI installed (`agent` on PATH) for `hapi cursor`. Install: `curl https://cursor.com/install -fsS | bash` (macOS/Linux), `irm 'https://cursor.com/install?win32=true' | iex` (Windows).
|
||||
- Grok Build CLI installed (`grok` on PATH) for `hapi grok`. Authenticate with `grok login --device-auth` on headless runner machines, or set `XAI_API_KEY`.
|
||||
- OpenCode CLI installed (`opencode` on PATH).
|
||||
- Bun for building from source.
|
||||
|
||||
@@ -152,6 +155,7 @@ bun run build:single-exe
|
||||
- `src/claude/` - Claude Code integration.
|
||||
- `src/codex/` - Codex mode integration.
|
||||
- `src/cursor/` - Cursor Agent integration.
|
||||
- `src/grok/` - Grok Build native TUI + ACP integration.
|
||||
- `src/agent/` - Multi-agent support (Gemini via ACP).
|
||||
- `src/opencode/` - OpenCode ACP + hook integration.
|
||||
- `src/runner/` - Background service.
|
||||
|
||||
Reference in New Issue
Block a user