doco-cli
v0.1.1
Published
Doco CLI — init, bootstrap, search, capture, patch, lint, query.
Downloads
11
Readme
doco-cli
The doco command-line interface for Doco — an alignment framework
that documents and verifies the relationships between user intent, agent reasoning, and
agent actions.
Install
npm install -g doco-cli
# or:
pnpm add -g doco-cliThis installs the doco binary on your $PATH.
Why install globally?
Sandboxed coding agents (OpenAI Codex web, GitHub Coding Agent, Anthropic web sandbox,
etc.) block raw curl calls that expose bearer tokens in the command text. The CLI
reads DOCO_TOKEN from the environment (or ./.env) inside the Node process, so the
token never appears in a shell command — most sandboxes will then approve the network
call.
The single biggest lever for keeping agents unblocked in a sandboxed environment:
- Allowlist
doco.toin the sandbox's network settings. - Add
npm install -g doco-clito the environment's setup script so every agent session hasdocoon$PATHbefore it tries to bootstrap. - Set
DOCO_TOKENas an environment secret so the CLI can authenticate without a freshdoco loginper session.
Quick start
# In a new directory:
doco login --host https://doco.to --create my-project
# In an existing Doco project (DOCO_ID in AGENTS.md, DOCO_TOKEN in ./.env):
doco bootstrap # fetch the agent canonical
doco search "what we know about auth" # query the graph
doco capture decision --question "..." --chosen "..." --scope <comma,list>
doco patch decision <id> --append-body "Update YYYY-MM-DD: <what + why>."Run doco --help for the full command list, and doco <command> --help for any
subcommand's flags.
Authentication
Two values, two homes:
DOCO_TOKEN— bearer; secret. Lives in./.env(gitignored) or as an environment secret in your CI/agent runtime. Minted bydoco login.DOCO_ID— the immutabledoco_...id; non-secret. Lives at the top ofAGENTS.mdso every contributor (and every agent) picks up the same value.
doco login writes DOCO_TOKEN to ./.env and stamps DOCO_ID into AGENTS.md in
one step.
License
Apache-2.0 — see LICENSE.
Links
- Homepage: doco.to
- Source: github.com/torrenegra/doco
