puck-harness
v0.2.1
Published
puck CLI — a minimal coding agent built on the puck harness.
Readme
puck-harness (CLI)
The puck command — a minimal coding agent built on the @puckguo123/* SDK.
npm package name is
puck-harness(the bare namepuckwas already taken); the installed binary is stillpuck.
Install
npm install -g puck-harness
# or, for one-off use:
npx puck-harnessUsage
puck "解释一下这个仓库的结构"
puck --mock "在 README 里加一段 Quick Start" # 离线 deterministic,零网络
puck --model deepseek-chat # 指定模型
puck /login anthropic # 存 API key 到 ~/.puck/auth.json
puck /resume # 列出历史会话
puck /status # 看当前会话元信息
puck /clear # 清空当前会话(标记而非删除)
puck /help # 所有命令
puck /quitTry it without an API key
npm install -g puck-harness
puck --mockThe mock provider replays a deterministic script — no network, no key, deterministic for tests.
What's inside
- Thin wrapper around
@puckguo123/sdk - Slash-command parsing (
/login,/resume,/clear,/status,/help,/quit) - TUI: spinner, streaming text, ANSI colors
- Cross-harness session history (
/resumereads from~/.pi,~/.claude,~/.codex)
Configuration
~/.puck/auth.json — API keys, written by /login (chmod 600 best-effort). See examples/auth.json.example.
License
MIT — see LICENSE.
