2026-09-13 07:25:02 +00:00
|
|
|
|
# GrokBoy
|
|
|
|
|
|
|
2026-09-13 07:42:59 +00:00
|
|
|
|
Minimal local **GrokBot-like** CLI agent. Phase **P1**: tools + ReAct + sessions.
|
2026-09-13 07:25:02 +00:00
|
|
|
|
|
|
|
|
|
|
## Status
|
|
|
|
|
|
|
|
|
|
|
|
| Phase | Status |
|
|
|
|
|
|
|-------|--------|
|
|
|
|
|
|
| P0 streaming chat | done |
|
2026-09-13 07:42:59 +00:00
|
|
|
|
| P1 shell / files + ReAct | done |
|
2026-09-13 07:25:02 +00:00
|
|
|
|
| P2 completion / loop guard | planned |
|
|
|
|
|
|
| P3 browser (Playwright) | later |
|
|
|
|
|
|
|
|
|
|
|
|
No Docker desktop, no Codex/LazyBoy fork.
|
|
|
|
|
|
|
|
|
|
|
|
## Setup (macOS)
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
export GROKBOY_API_KEY=your_key # or XAI_API_KEY
|
|
|
|
|
|
# optional:
|
|
|
|
|
|
# export GROKBOY_BASE_URL=https://api.x.ai/v1
|
2026-09-13 07:42:59 +00:00
|
|
|
|
# export GROKBOY_MODEL=grok-4.6
|
2026-09-13 07:25:02 +00:00
|
|
|
|
|
|
|
|
|
|
cd ~/GrokBoy
|
|
|
|
|
|
cargo run -p grokboy -- chat
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Commands
|
|
|
|
|
|
|
2026-09-13 07:42:59 +00:00
|
|
|
|
- `grokboy chat` — interactive streaming chat (no tools)
|
|
|
|
|
|
- `grokboy run "<prompt>"` — one-shot agent with tools (`shell`, `list_dir`, `read_file`, `write_file`)
|
|
|
|
|
|
- `grokboy run --session <id> "<prompt>"` — continue a saved session
|
|
|
|
|
|
- `grokboy smoke` — offline tool checks (no API key required)
|
2026-09-13 07:25:02 +00:00
|
|
|
|
- `grokboy help`
|
|
|
|
|
|
|
2026-09-13 07:42:59 +00:00
|
|
|
|
Sessions are stored under `~/.grokboy/sessions/<id>.json`.
|
|
|
|
|
|
|
2026-09-13 07:25:02 +00:00
|
|
|
|
## 繁體中文
|
|
|
|
|
|
|
2026-09-13 07:42:59 +00:00
|
|
|
|
本機終端機 coding assistant。P1 已支援讀寫檔、列目錄、shell,以及多輪 tool-calling。
|
2026-09-13 07:25:02 +00:00
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
export GROKBOY_API_KEY=你的金鑰
|
|
|
|
|
|
cd ~/GrokBoy
|
2026-09-13 07:42:59 +00:00
|
|
|
|
cargo run -p grokboy -- smoke
|
|
|
|
|
|
cargo run -p grokboy -- run "列出目前目錄並讀 README.md"
|
2026-09-13 07:25:02 +00:00
|
|
|
|
cargo run -p grokboy -- chat
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Layout
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2026-09-13 07:42:59 +00:00
|
|
|
|
crates/grokboy-core/ # config, model, tools, agent, session
|
2026-09-13 07:25:02 +00:00
|
|
|
|
crates/grokboy/ # CLI binary
|
|
|
|
|
|
docs/ACCEPTANCE.md
|
|
|
|
|
|
```
|