CLI commands
Global options
Section titled “Global options”Many commands accept:
| Option | Description |
|---|---|
-d, --dir <path> | Workspace directory (default: current directory) |
-c, --config <path> | Path to shield.yaml |
shieldedshell init
Section titled “shieldedshell init”Create a default shield.yaml in the current directory.
shieldedshell initshieldedshell init --force # overwrite existingshieldedshell doctor
Section titled “shieldedshell doctor”Print environment diagnostics: Node version, config path, engine readiness.
shieldedshell doctorshieldedshell run
Section titled “shieldedshell run”Run a command inside the sandboxed workspace.
shieldedshell run node ./script.mjsshieldedshell --dir ./my-project run npm testUse -- before arguments if flags would confuse the parser.
shieldedshell shell
Section titled “shieldedshell shell”Interactive shell with workspace binding and overlay.
shieldedshell shellshieldedshell verify
Section titled “shieldedshell verify”Static safety checks without running agents.
shieldedshell verify --type ledger --balances '...' --transfers '...'shieldedshell verify --type routing --policies '...' --routes '...'shieldedshell loop
Section titled “shieldedshell loop”Dual-agent loop with engine dispatch and prompt templates.
shieldedshell loop --engine cline --benchmark 02_ledger_consensus --dir .shieldedshell loop --engine cursor --dir .| Option | Description |
|---|---|
-e, --engine <name> | Agent engine (required) |
--benchmark <name> | Benchmark folder under ./benchmark |
--target <path> | Merge target file (default: auth_service.js) |
shieldedshell orchestrate
Section titled “shieldedshell orchestrate”Dual-agent loop with explicit dev/audit shell commands.
shieldedshell orchestrate \ --dev "node ./agents/dev.mjs" \ --audit "node ./agents/audit.mjs" \ --dir .shieldedshell reconcile
Section titled “shieldedshell reconcile”Run the reconciler gate on current JSON buffers (without spawning agents).
shieldedshell reconcile --dir .@shieldedshell/core (library)
Section titled “@shieldedshell/core (library)”Programmatic APIs for sandbox, policy, reconcile, and orchestration:
import { runCommandSync, orchestrateDualAgentLoop, buildLoopCommands, loadConfig,} from '@shieldedshell/core';See the GitHub repo for exports.