Skip to content

CLI reference

hipmmcode [OPTIONS] [PROMPT]... [COMMAND]

No arguments → interactive REPL. A positional prompt (or piped stdin) → headless exec.

Subcommands

CommandPurpose
chatInteractive session (default). --legion <name>, --as <agent>
exec [prompt]One-shot headless run (--json, --stream, --max-turns)
resume [id]List recent sessions, or restore one
config show|set|providersInspect / set configuration
model [channel]Interactive channel setup wizard
models [--all] [--json]List models per channel (live discovery)
doctor [--json]Environment diagnosis (read-only, no network)
cost [--all] [--json]Aggregate token usage across sessions
update [--check]Self-update to the latest release
serve [--port] [--host] [--auth-token] [--gateway] [--gateway-only] …HTTP/WS server + task queue; optional membership gateway
member create|list|show|set-quota|…Admin: manage gateway members / activation codes
join <code>Member side: redeem a one-time code against a gateway
acp [--listen host:port] [--auth-token]Agent Client Protocol (stdio or WebSocket)
integrationPrint the embedded machine-integration handbook
agents [-l legion] [--json]List agent profiles
agent new|listAuthor / list agent profiles
legions [--json]List legions
team list|rm <name> [-f]Manage teams
skills [-l legion] [--json]List skills
skill add <src> [--name]|list|rm <name>Install / remove skills
skill install-defaults (defaults) [--force] [--dry-run]Sync L1 default skills pack into ~/.hipmmcode/skills/
plugin list|details|add|init|install|uninstall|enable|disable|marketplace …Plugins & marketplaces
commands [--json]List custom markdown slash commands
mcp add|add-json|add-mcpb|list|get|login|remove|sync|reset-project-choicesMCP servers
cron daemon [--interval]|list [--json]Durable scheduled tasks
daemon run|status|logs|stop|stop-service|uninstall …Background-session supervisor (see below)
flags [--json]Experimental feature flags
completions <shell>Shell completion script (bash / zsh / fish / elvish / powershell)

Global flags

Accepted on every invocation.

Model & session

FlagDescription
-p, --provider <id>Channel for this run
-m, --model <id>Model (bare alias, canonical id, or provider/model)
--fallback-model <id>Fallback model(s), tried in order (repeatable, ≤3)
-C, --cwd <dir>Working directory
-c, --continueResume the most recent session
--resume <id|name>Resume a specific session
--fork-sessionResume into a new branched session
--resume-session-at <n>Rewind to just after the Nth user turn
--session-id <id>Write to a specific session id
--allSessions/cost across all projects

Output & input

FlagDescription
--output-format text|json|stream-jsonOutput envelope (--json / --stream are shorthands)
--input-format text|stream-jsonstream-json = SDK host mode
--printForce non-interactive mode
--verboseVerbose output
--include-partial-messagesPer-token frames (stream-json)
--include-hook-eventsHook lifecycle frames (stream-json)
--prompt-suggestionsPredicted next-user-message frames
--replay-user-messagesEcho user turns as frames
--json-schema <schema>Validate the answer against a JSON Schema (with retry)

Limits & autonomy

FlagDescription
--max-turns <n>Tool-iteration cap (default 200)
--max-budget-usd <x>Hard spend ceiling
--goal <condition>Auto-continue until an evaluator model confirms the condition
--auto-memoryEnd-of-run memory extraction
--no-memorySkip memory injection
--no-session-persistenceDon't save the session (headless)

Permissions

FlagDescription
--permission-mode default|acceptEdits|plan|auto|bypassPermissions|dontAskSession permission mode; bypass requires dangerous availability
--dangerously-skip-permissions= bypassPermissions
--permission-webhook <url>POST ask-decisions to a service
--permission-prompt-tool <tool>Route decisions to an MCP tool
--ask-webhook <url>POST AskUserQuestion calls to a service

Prompt & tools

FlagDescription
--system-prompt <text> / --system-prompt-file <f>Replace the system prompt (exec only)
--append-system-prompt <text> / --append-system-prompt-file <f>Append to it
--dump-system-promptPrint the assembled prompt and exit
--exclude-dynamic-system-prompt-sectionsBetter prompt-cache reuse
--allowed-tools <names> / --disallowed-tools <names>Tool allow/deny lists
--add-dir <dir>Extra directory for file/shell tools (repeatable)
--agents <json>Session-only agent profiles
--mcp-config <file|json>Extra MCP servers for this run (repeatable)
--strict-mcp-configUse only --mcp-config servers
--settings <file|json>Extra settings layer
--setting-sources user,project,localRestrict settings layers
--ideConnect to a running IDE for diagnostics
--bareFast start: skip skills/MCP/hooks; tools narrowed to Bash+Read+Edit
--safe-modeDisable all customizations (troubleshooting)

Daemon

The daemon subcommand manages the background-session supervisor (durable workers independent of any one TUI). Paths default under the native config root (daemon.json / daemon.log).

ActionPurpose
daemon runRun the supervisor in the foreground
daemon statusPid, version, uptime, socket, worker roster
daemon logsPrint the daemon log
daemon stop [--any] [--keep-workers]Shut down the supervisor (--any also stops a transient on-demand daemon)
daemon stop-service <name> [--force]v0.16.0+. Stop a single named service (pkill-based) without restarting the whole daemon; --force sends SIGKILL
daemon uninstallRemove stale service metadata
bash
hipmmcode daemon status
hipmmcode daemon stop-service my-worker
hipmmcode daemon stop-service my-worker --force

Exit codes

CodeMeaning
0Success
1Error (flag / config / auth / network)
2Bad JSON argument, or a hook blocked the action
non-zeroMax-turns cap, budget ceiling, or schema-validation exhaustion

Shell completions

bash
hipmmcode completions zsh  > ~/.zfunc/_hipmmcode
hipmmcode completions bash > /usr/local/etc/bash_completion.d/hipmmcode
hipmmcode completions fish > ~/.config/fish/completions/hipmmcode.fish