Three ways to use Cynative
-p / --print flag is the key to scriptable use. When it is set, Cynative runs exactly one task and exits with a code that carries the verdict (see Exit codes below).
Running built-in agents
Cynative ships with 45 reviewed agents embedded in the binary — one for each common security question across AWS, Azure, GCP, GitHub, and Kubernetes. Pass--agent <name> to run one.
You can also write your own agent in a single markdown file. Copy an existing one as a starting point:
~/.cynative/agents/ wins over a built-in of the same name, so give your copy a distinct name to keep both.
Free-form questions
You don’t need a named agent. Ask any natural-language security question directly:Piping input
Use standard Unix pipes to feed Cynative data from files or other commands. In print mode (-p), Cynative reads stdin when it is not a terminal:
Combining flags
All flags compose freely, so the same agent file works interactively during development and non-interactively once it’s stable:Exit codes
The exit code carries the verdict for scripted callers, so you can branch on outcome without parsing stdout.
Example usage in a shell script:
Resource and cost controls
For unattended, scheduled, or long-horizon runs — wired into cron, CI, or any trigger — bound the work explicitly. These knobs are set in~/.cynative/config.yaml or via environment variable:
Finding verification (
verify_findings tool) makes extra model calls — budget for them on any run that produces findings.
