Skip to main content

CLI & Subcommands

⚙️ CLI flags

FlagDescription
-c / -rContinue / browse-resume session
-p, --printNon-interactive: print and exit
--mode json|rpcStructured output modes
--provider / --modelProvider name / model ID (:<thinking> suffix ok)
--thinking <level>off·minimal·low·medium·high·xhigh
--architect / --editor <model>Architect/editor split
--tools <list>Enable specific tools
--no-toolsDisable all built-in tools
--extension <path>Load an extension
--no-extensionsDisable extension discovery

🚀 Subcommands

CommandDescription
caveman goal start "<text>"Autonomous Ralph-style loop
caveman goal resume [id] [--force]Resume a paused goal
caveman goal status [id]Show goal state and ledger
caveman goal cancel [id]Mark goal as cancelled
caveman goal listList all goals in project
caveman mcp <subcmd>Manage MCP servers
caveman watch [paths]File watcher for // cave! triggers
caveman exec [flags] "<prompt>"Non-interactive CI mode
caveman plugin <subcmd>Plugin marketplace
caveman run-recipe <name>Run YAML workflow recipes
caveman rollback NRevert to checkpoint N
caveman models <subcmd>Manage model registry
caveman serve / attachDaemon mode

Env: ANTHROPIC_API_KEY · OPENAI_API_KEY · CAVE_CODING_AGENT_DIR (config dir) · CAVE_CACHE_RETENTION=long (extended prompt cache).