Skip to content

agentgate ci

The gate: compare the current tool surface against agentgate.lock and exit non-zero on any drift.

Terminal window
agentgate ci [options]

ci is diff with teeth — same comparison, but designed for pipelines: concise output, deterministic exit codes, and an optional scan step.

Flag Default Description
--lockfile <file> agentgate.lock Lockfile path.
--live off Verify the live tool surface (recommended in CI for stdio servers).
--scan off Also run a full scan and apply its --fail-on threshold.
--format <fmt> text text or json (for annotating PRs).
Code Meaning
0 Tool surface matches the lockfile (and scan passed, if --scan).
1 Drift detected, or scan findings above threshold.
2 Execution error (missing lockfile, unreachable server).
- run: npx agentgate ci --live --scan

A dedicated GitHub Action (route C) wraps this command with annotations and PR comments.