@quarry-systems/pangolin-cli
v0.2.0
Published
The pangolin binary — a thin CLI over PangolinClient that resolves pangolin.config.{ts,js,mjs} and dispatches to subcommands.
Readme
-systems/pangolin-cli
The pangolin binary. A thin command-line front end over PangolinClient that resolves an pangolin.config.{ts,js,mjs} from the working directory, constructs the client, and dispatches to subcommands for capability/subagent/env registration, manifest-driven deploys, and dispatch operations. The CLI is the canonical privileged entry point: it runs from a human terminal or CI shell where secrets in the environment can be safely staged into the registry.
Install
pnpm add -D -systems/pangolin-cliBasic usage
# Register artifacts ad-hoc
pangolin capabilities register --name git-write --from ./caps/git-write/
pangolin subagent register --name code-reviewer \
--system-prompt "Review code carefully." --capability git-write
pangolin env register --name prod --secret CLAUDE_API_KEY=arn:...
# Or reconcile a full manifest
pangolin deploy --from pangolin-manifest.yaml
# Or bulk-import an existing Claude Code skill/agent tree
pangolin capabilities sync --provider claude-code
pangolin subagent sync --provider claude-code
# Then dispatch
pangolin dispatch run --target fargate-prod --subagent code-reviewer --env prod \
--worker-image public.ecr.aws/quarry-systems/pangolin-worker@sha256:...
pangolin dispatch describe <id>
pangolin dispatch cancel <id>The CLI expects an pangolin.config.ts in the working directory exporting an PangolinClient as the default (or named client) export.
Guides
- Getting started — zero-to-first-dispatch runbook including CLI wiring and
pangolin.config.mjs. - Dispatch lifecycle — what each event in worker stdout means, and which step each
dispatch.failed.reasonmaps to. - Capability recipes — where to put files so the worker picks them up (skills, settings, plugins, setup scripts), and the
pangolin-setup.shsingle-slot constraint that catches first-time authors. - Sync providers —
pangolin capabilities sync/pangolin subagent syncreference, theclaude-codeandstoaproviders shipped today, and how to author a new one. - needs_input — how a sub-agent pauses for clarification and how to resume it.
- Writing a provider — plug in a new compute backend, storage layer, credential source, or result sink.
- Remote dispatch over SSH — orchestrate from one machine, run workers on another's Docker daemon.
Spec
- §4.4 A worked Hello World — the end-to-end flow the CLI scripts.
- §4.5 Deploy manifest (CLI-driven registration) — the manifest format
pangolin deployreconciles.
Decisions
- ADR-0001 — Package scope: the
@quarry-systems/pangolin-*namespace this package publishes under. - ADR-0005 — Privileged ops never AI-reachable: why
registerandassignare CLI-only and not exposed via MCP.
