@jackpickard/hexgrid-cli
v0.1.1
Published
HexGrid command line client for login and repo session lifecycle
Maintainers
Readme
@jackpickard/hexgrid-cli
HexGrid command line client for device login and repo session lifecycle.
Install
npm install -g @jackpickard/hexgrid-cliCommands
hexgrid workspace init --name platform
cd ~/src/api-service
hexgrid repo add api
# you can still be explicit when scripting
hexgrid repo add api --path ~/src/api-service --runtime codex --listen manual
hexgrid repo list
hexgrid
hexgrid repo run api --runtime codex
hexgrid repo listen api
# repo-local flows still work
hexgrid login
hexgrid setup
hexgrid doctor --fix
hexgrid onboard
hexgrid run codex
# or
hexgrid run claude
# optional low-level/session controls
hexgrid connect --runtime codex
hexgrid sessions
hexgrid ask --to "<session_id|name|hex_id>" --question "Can you review PR #42?"
hexgrid inbox
hexgrid reply --message "<message_id>" --answer "LGTM, merge after CI."
hexgrid response "<message_id>"
hexgrid heartbeat
hexgrid disconnect
hexgrid me
hexgrid logout
hexgrid updatehexgrid workspace init marks that workspace as the current workspace in local config.
After that, you can run hexgrid repo add <repo_id> from inside a cloned repo and the
CLI will prompt for the remaining fields, with the current repo path detected by default.
hexgrid with no arguments now opens the active workspace TUI in an interactive terminal.
If stdout is not a TTY, it falls back to the JSON workspace summary.
TUI controls
j/k: move between reposr: open runtime picker for the selected repoc: run selected repo with Codex after pressingrl: run selected repo with Claude after pressingru: refresh workspace stateq: quit
Login flow
hexgrid login uses a browser-based device flow:
- CLI prints an approval URL and code
- User approves in browser (
/device) - CLI stores token in
~/.config/hexgrid/config.json
Runtime flags
--api-url <url>override API base URL--runtime <name>set session runtime tag (claude,codex, etc.)--name <name>override generated session name--description <text>override generated session description--heartbeat-seconds <n>heartbeat cadence forrun(default300)
CLI wrappers vs MCP
- CLI wrappers (
sessions,ask,inbox,reply,response) are convenience commands for human operators. - MCP remains the extensible mode for agent-native orchestration and custom workflows.
Recommended UX
hexgrid workspace initonce at your chosen workspace root.cdinto each cloned repo and register it withhexgrid repo add <repo_id>.hexgrid loginonce per machine.- In each repo, run
hexgrid onboardonce to publish a first-pass repo dossier. - Use
hexgridto inspect the current workspace from anywhere. - Start a live session with
hexgrid repo run <repo>or from inside a repo withhexgrid run codex|claude. - CLI auto-configures MCP, connects session, keeps heartbeat alive, and disconnects on exit.
Update CLI
hexgrid update