Skip to content

CLI commands

Many commands accept:

OptionDescription
-d, --dir <path>Workspace directory (default: current directory)
-c, --config <path>Path to shield.yaml

Create a default shield.yaml in the current directory.

Terminal window
shieldedshell init
shieldedshell init --force # overwrite existing

Print environment diagnostics: Node version, config path, engine readiness.

Terminal window
shieldedshell doctor

Run a command inside the sandboxed workspace.

Terminal window
shieldedshell run node ./script.mjs
shieldedshell --dir ./my-project run npm test

Use -- before arguments if flags would confuse the parser.

Interactive shell with workspace binding and overlay.

Terminal window
shieldedshell shell

Static safety checks without running agents.

Terminal window
shieldedshell verify --type ledger --balances '...' --transfers '...'
shieldedshell verify --type routing --policies '...' --routes '...'

Dual-agent loop with engine dispatch and prompt templates.

Terminal window
shieldedshell loop --engine cline --benchmark 02_ledger_consensus --dir .
shieldedshell loop --engine cursor --dir .
OptionDescription
-e, --engine <name>Agent engine (required)
--benchmark <name>Benchmark folder under ./benchmark
--target <path>Merge target file (default: auth_service.js)

Dual-agent loop with explicit dev/audit shell commands.

Terminal window
shieldedshell orchestrate \
--dev "node ./agents/dev.mjs" \
--audit "node ./agents/audit.mjs" \
--dir .

Run the reconciler gate on current JSON buffers (without spawning agents).

Terminal window
shieldedshell reconcile --dir .

Programmatic APIs for sandbox, policy, reconcile, and orchestration:

import {
runCommandSync,
orchestrateDualAgentLoop,
buildLoopCommands,
loadConfig,
} from '@shieldedshell/core';

See the GitHub repo for exports.