Agentiqa Docs
CLI

CLI reference

Every agentiqa command, flag, environment variable, and exit code — generated from the typed CLI schema.

Agentiqa CLI — AI-powered testing for web apps.

Commands

CommandSummary
agentiqa exploreTest a web app with an AI agent
agentiqa runExecute saved test plans
agentiqa projectManage projects, project files, memory, personal credentials, and shared credential pools
agentiqa planList, show, save (create/edit), or delete test plans
agentiqa runsRead run verdicts/history for a saved plan, inspect a specific run, or wait for a run to finish
agentiqa labelsList, create, rename, or delete the project's labels
agentiqa reviewReview a CI batch against the code that changed: propose test updates, flag regressions
agentiqa loginAuthenticate with Agentiqa (opens browser)
agentiqa logoutRemove stored credentials
agentiqa whoamiShow the current authenticated user

explore

Test a web app with an AI agent.

agentiqa explore "<prompt>" [flags]

FlagDescription
--url <url>Web URL to test. Optional when logged in with a single project — the CLI reuses that project's URL.
--feature <text>What was built, from the user's perspective.
--hint <text>A specific thing to test. (repeatable)
--known-issue <text>Something the agent should NOT report. (repeatable)
--credential <name:secret>A login credential to hand the agent. (repeatable)
--dry-runCheck the engine and exit without running the agent.
--no-artifactsDon't save screenshots/video to the temp directory.
--verboseShow raw observations and actions.
--auto-approveAuto-approve scope and plan checkpoints (required for non-interactive runs).
--embeddedForce the in-process embedded engine instead of the env-matched hosted engine an authenticated service-key explore now defaults to. Embedded runs execute locally: Chromium and ffmpeg are provisioned on first use (installing the CLI downloads neither), and a run whose ffmpeg provisioning fails proceeds without video. Use for offline/local execution or BYOK-on-embedded (a self-provided GEMINI_API_KEY / non-Google COORDINATOR_MODEL). Ignored when --engine <url> is given.
--jsonEmit machine-readable JSON on stdout (schemaVersion 1).
--format <text|json>Explicit output format; overrides the AG_OUTPUT env var.

run

Execute saved test plans.

agentiqa run [--project <id\|name>] [flags]

FlagDescription
--url <url>Target URL (required with --plan; deprecated in project mode).
--plan <path>Path to a local test plan JSON. Omit it to run the saved plans of a project instead.
--project <id|name>Project whose saved plans to run — an exact id, or a unique case-insensitive name. Overrides AGENTIQA_PROJECT_ID and the project remembered by agentiqa project use. Ignored (and rejected on conflict) when AGENTIQA_SERVICE_KEY is set, since a service key is already scoped to one project.
--plan-id <id[,id]>Run saved plans by id (project mode): one id, or a comma-separated list. Every id must exist in the project.
--label-ids <a,b,c>Run every plan tagged with any of these labels (csv, project mode).
--label-id <id>Alias for --label-ids. (deprecated)
--mode <sequential|parallel>Execution order for the selected plans (default: sequential).
--artifacts-dir <path>Directory for run artifacts (default: a temp directory).
--no-artifactsDon't save video/frame artifacts.
--shareDEPRECATED no-op, accepted so existing CI invocations keep working. Public share links were retired 2026-07 in favor of org-member team access: the run deep link is always available as runUrl in the JSON envelope and printed in human output. Whoever you send it to needs an Agentiqa login in the run owner's organization.
--embeddedForce the in-process embedded engine instead of the env-matched hosted engine an authenticated run now defaults to. Embedded runs execute locally and do NOT persist to your account (no runUrl, no server-side video). Use for offline/local execution or BYOK-on-embedded (a self-provided GEMINI_API_KEY / non-Google COORDINATOR_MODEL). Ignored when --engine <url> is given.

project

Manage projects, project files, memory, personal credentials, and shared credential pools.

agentiqa project <list \| use <id\|name> \| current \| get <id\|name> \| create --url <url> \| update <id\|name> \| permissions \| files <verb> \| memory <verb> \| credentials <verb> \| pool <verb>> [--project <id\|name>] [--json]

FlagDescription
--text <text>Memory add/update text. Memory verbs: list, add, update <id>, remove <id>, archive <id>, restore <id>, pin <id>, unpin <id>. Writes require the project owner.
--file <path|->Memory add/update: read text from a file, or stdin with -. Mutually exclusive with --text.
--category <category>Memory add/update category. An empty string clears it; omission preserves the stored category.
--include-archivedMemory list: include archived items.
--login <login>Credentials/pool add or update: sign-in login. Credentials verbs: list, add, update <id>, remove <id>. Pool additionally supports release <id>. Personal credentials belong only to the caller; pool writes require a Company project owner or org admin.
--secret-stdinCredentials/pool add or update: read the secret from stdin (one trailing newline is removed). Alternatively set AGENTIQA_CREDENTIAL_SECRET. Secrets are never accepted on argv. Pool updates require a replacement secret.
--revealCredentials list only: include the caller’s personal plaintext secrets. Default output (including JSON) redacts secrets; pool secrets are never revealed.
--yesConfirm memory/credentials/pool/files remove. Also requires explicit --project <exact-project-id> and an exact item id.
--if-existsWith resource remove --yes: succeed with found:false when the item is absent from this project and account.
--rename-on-conflictWith project files add &lt;path&gt;…: when a file of the same name already exists (409), automatically upload under the server’s suggested alternative name.
--clearWith project use: forget the remembered project.
--archivedWith project list: include archived (soft-deleted) projects and show the ARCHIVED column. Requires the server-side archived listing (?includeDeleted=1); a control plane without it exits 3 archived_listing_unsupported rather than reporting a live-only list as complete.
--url <url>Target URL. Required by project create (the project name is derived from its host when --name is omitted); on project update it retargets the project, e.g. after a preview deploy.
--name <name>Project name on create/update, or credential role/name on credentials/pool add/update. Project names are unique per owner, case-insensitively.
--clear-urlWith project update: store an EXPLICIT empty default URL. Mutually exclusive with --url; omitting both preserves the stored URL.
--persist-browser-profile <true|false>Keep the browser profile (cookies, storage) between runs of this project. Omitted on update = preserved.
--org-shared <true|false>Share this project with your organization. Requires an active Company-plan org — without one the server keeps the project private and the CLI exits 2 org_sharing_unavailable rather than reporting a success.
--review-instructions <file>With project update: the review instructions for the nightly QA review, read from a file (- reads stdin; an empty file clears the text). At most 4000 characters, checked before any request. Any member who can open the project may change them; CI keys cannot. With project get it takes no value (put it after the project): print only the current text, so it can be edited and passed back with update --review-instructions -.
--review-cards <kinds|all>With project update: the review card kinds to SHOW, comma-separated from update, possible_bug, add_test, or all. The kinds not listed are turned off. Omitted = preserved.
--review-max-cards <n|none>With project update: at most n review cards a night (1–30); none removes the cap. Omitted = preserved.
--if-not-existsWith project create: a name collision is not an error — the existing project is returned with created: false and exit 0, so a retried CI job never mints a twin.
--expected-updated-at <iso>With project update: opt-in optimistic concurrency. When the stored updatedAt differs, the write is refused with exit 2 stale_write instead of overwriting a concurrent edit.
--project <id|name>Project selector for permissions and resource commands, or the selection to report for current. Overrides AGENTIQA_PROJECT_ID and the remembered project. Resource removal requires an explicit exact project id.
--jsonEmit the standard JSON envelope on stdout. Every project verb adds target: &#123; apiBase, env, projectId, name &#125;. Payloads: projects + selected (list) / project (use) / projectId + name + source + valid (current) / project + access + archived + activeRuns (get) / project + created (create) / project + updated (update; with a review flag also reviewInstructions: &#123; version, unchanged &#125;, and updated is false when only review flags were given). get adds reviewInstructions (the version in force, or null for none); the key is absent when it could not be read. Failures carry a stable error.code, plus existing on a name conflict and candidates on an unmatched selector.

plan

List, show, save (create/edit), or delete test plans.

agentiqa plan <list \| get <id> \| save --file <path> \| delete <id> --yes> [--if-exists] [--json]

FlagDescription
--project <id|name>Project to operate in — an exact id, or a unique case-insensitive name. Overrides AGENTIQA_PROJECT_ID and the project remembered by agentiqa project use. Ignored (and rejected on conflict) when AGENTIQA_SERVICE_KEY is set, since a service key is already scoped to one project.
--file <path>TestPlanV2 JSON to upsert with plan save: creates when it has no id (a tp_&lt;uuid&gt; is minted), edits in place when it does. A non-empty title is always required. On EDIT, top-level fields you omit are preserved from the stored plan (only fields present in your JSON change; send an explicit null or [] to clear one), and steps is always taken from your JSON. Accepts a bare plan object or the &#123; plan &#125; envelope plan get --json emits; use - to read from stdin (so plan get --json | plan save --file - round-trips). Field values are sent as-is — the server owns all save normalization.
--yesConfirm plan delete &lt;id&gt;. Required to delete a saved test plan.
--if-existsWith plan delete &lt;id&gt; --yes: succeed with found: false (exit 0) when the plan is already absent.
--jsonEmit the standard JSON envelope on stdout: plans is a TestPlanV2 array (list) / plan is a TestPlanV2 object (get) / plan + lintWarnings is the saved plan and its lint warnings (save) / id + found + deleted (delete).

runs

Read run verdicts/history for a saved plan, inspect a specific run, or wait for a run to finish.

agentiqa runs <get <plan-id \| run-id \| run-url> \| wait <run-id \| run-url>> [--limit <n>] [--timeout <sec>] [--steps] [--json]

FlagDescription
--project <id|name>Project to operate in — an exact id, or a unique case-insensitive name. Overrides AGENTIQA_PROJECT_ID and the project remembered by agentiqa project use.
--limit <n>Maximum runs to show, newest first by createdAt (default: 5).
--timeout <sec>With runs wait &lt;run-id | run-url&gt;: maximum seconds to wait for the run to reach a terminal status before exiting 3 (default: 600).
--stepsShow detailed step results with criteria (expected/actual) and screenshot URLs (text mode).
--jsonEmit the standard JSON envelope on stdout: runs is a TestPlanV2Run array (newest first, limit applied) and issues is the bugs discovered for this plan; or run for an individual run (runs get / runs wait).

labels

List, create, rename, or delete the project's labels.

agentiqa labels <list \| create <name> \| update <id> \| delete <id>> [--name <name>] [--color <#rrggbb>] [--json]

FlagDescription
--project <id|name>Project to operate in — an exact id, or a unique case-insensitive name. Overrides AGENTIQA_PROJECT_ID and the project remembered by agentiqa project use.
--name <name>New label name for labels update &lt;id&gt;.
--color <#rrggbb>Label color (6-digit hex) for labels create / labels update. Defaults to the first unused palette color on create, and is left unchanged on update.
--jsonEmit the standard JSON envelope on stdout: labels is an array of { id, name, color } (list) / label is the saved { id, name, color } (create, update) / deleted + detachedPlanIds is the removed label and the plans it was detached from (delete).

review

Review a CI batch against the code that changed: propose test updates, flag regressions.

agentiqa review <--head <sha> --batch <id[,id]> \| --head <sha> --dry-run [--since <sha>] [--plans-file <plans.json>] \| --evidence <bundle.json> --dry-run \| collect --head <sha> --batch <id[,id]> --out <file> \| check [--batch <id\|latest>] [--head <sha>] \| list \| show <proposalId> \| issues \| issue <issueId> \| approve <proposalId> --revision <n> [--accept-weakening] \| reject <proposalId> \| trace <trace.json\|-> \| add-tests [--max <n> \| --proposal <id>] [--post] [--allow-project-writes]> [--json]

FlagDescription
--head <sha>The commit the batch tested (full 40-hex sha). It must exist in the repository at --repo-path. review check: optional; the pull-request check then asks GitHub for that commit's pull requests, like the review.
--batch <id[,id]>The batch to review (batchRunId from the run --json envelope or last-batch.json), then optionally the same-job rerun batch that confirms regressions. Without it the review is code-only: the code merged since the last code-only review of this repo and branch (else --since) against every saved plan, with no runs (a dry run in this version). A batch review, saved or dry, sends one copy of the review to the Agentiqa team (what it holds: --dry-run). review check --batch &lt;id|latest&gt;: check that batch (latest: the newest finished batch of the project that holds a run).
--project <id|name>Project of the batch, or the project review list, review issues and review issue read. Overrides AGENTIQA_PROJECT_ID and the project remembered by agentiqa project use; a service key is already scoped to one project.
--repo <owner/name>Repository the review is recorded under, and whose pull requests it reads when GITHUB_TOKEN is set. Default: GITHUB_REPOSITORY, else the origin remote of --repo-path.
--branch <name>Branch the review is recorded under. Required unless GITHUB_REF_NAME is set.
--since <sha>Bootstrap base (full sha) for plans no earlier review covered. Without it such a plan is a usage error (exit 2).
--repo-path <dir>Local checkout to read commits and diffs from (read-only git; default: the current directory). It needs the full history between each base and --head.
--evidence <bundle.json>Review a saved evidence bundle (from review collect) instead of collecting one. Requires --dry-run and GEMINI_API_KEY; makes no Agentiqa request at all.
--out <file>Write the review output JSON (proposals, regressions, every informational bucket). For review collect, the evidence bundle.
--summary <file.md>Write a GitHub-flavored markdown job summary: actionable items first, the rest collapsed.
--trace-out <file>Also write the review's trace to this local file (JSON, for diagnosing a review). It shows how the review reached its cards: changed file paths, commit subjects, pull request titles, how plans were linked to files, the AI model's reasoning, what became of each card, and the tokens used. Secret-looking values are redacted. It holds no whole files, diffs or prompts (the diff hunks each decision rested on go only into the copy for the Agentiqa team, never into this file), and no commit message bodies or pull request descriptions; it does keep the short texts a check compared, such as a label before and after. Batch review (--batch or --evidence) only, live or dry run. A trace that cannot be written is a warning, never a failed review. Print one with review trace.
--trace-hunksAccepted for compatibility; changes nothing. Every review trace carries the diff hunks each of its decisions rested on (a claim about a failed or at-risk step, a decision, a card, a possible bug): the changed lines as the AI model read them, or the one commit's change a check compared. Each hunk is stored once, secret-looking values are redacted, and lines, hunks per decision and the total are capped. They go only into the copy of a batch review for the Agentiqa team, saved or dry (read by the team only, deleted after 30 days): never into what a saved review adds to your project, --json, --out, --summary or the --trace-out file. The trace records whether the flag was passed.
--dry-runReview without adding anything to your Agentiqa project: no review row, suggestions, issues or annotations, and no starting point moves forward. With --batch, one copy of the review goes to the Agentiqa team so they can check the cards with you, as a saved batch review also sends after its writes: the cards and summary a saved review would hold, plus a trace of how the review reached them (changed file paths, commit subjects, pull request titles, how plans were linked to files, the AI model's reasoning, the diff hunks each decision rested on; secret-looking values redacted; hunks capped). It holds no whole files or prompts; like a saved card, it can quote the short text cited as evidence: a changed line, or a sentence from a commit message, pull request description or code comment. Only the Agentiqa team reads it, it does not appear in your project, and it is deleted after 30 days.
--label <name[,name]>Code-only review: only the saved plans with one of these labels (names or ids). Default: every saved plan of the project.
--plans-file <plans.json>Code-only review: read the plans from a JSON file (an array of test plans: id, title, steps) instead of the project. Makes no Agentiqa request; requires --since and GEMINI_API_KEY (or --detector-only).
--manifest <review.json>Code-only review: the surfaces manifest (app / tester / ignored globs) to use instead of .agentiqa/review.json at --head.
--detector-onlyCode-only review: only the model-free literal detector (no model call, no model key needed).
--repo-map <auto|survey|manifest|defaults>Where the review learns what in the repository is product, test code or not worth reading, which hosts it serves and which files each plan exercises: auto (default: a .agentiqa/review.json at --head that lists app, tester, ignored, hosts or routeFiles is used as written, else the survey), survey (the review model works it out from the plans and the repository, two extra model calls), manifest (.agentiqa/review.json at --head when it lists app, tester, ignored, hosts or routeFiles, else the built-in defaults) or defaults. Overrides AGENTIQA_REVIEW_REPO_MAP. If the survey fails, the review runs on the manifest source and says so. Secret files are withheld by file convention and the manifest's deny in every mode.
--status <a,b>review list: only proposals in these statuses (proposed, applied, verified, reopened, reverted, applied_unverifiable, rejected, accepted).
--plan <id>review list: only proposals for this test plan.
--revision <n>review approve (required) / review reject: the proposal revision you reviewed, as review show / review list print it. A proposal a later review revised is refused (REVISION_MISMATCH, exit 2); approve without it prints the change and exits 2 (revision_required).
--accept-weakeningreview approve: confirm a proposal that weakens the test (WEAKENS yes in review list, "Regression or intended?" in review show) — it loosens what the plan checks and is never marked verified. Without it such an approve prints the change and exits 2 (weakening_requires_confirmation).
--reason <text>review reject: why (up to 500 characters), shown on the proposal.
--price <in>/<out>review trace: also print the dollars of each model pass at this price, in USD per million input and output tokens (e.g. 2/10). Without it the trace shows tokens only.
--allow-project-writesreview add-tests: run its sessions even when the engine does not confirm that they keep their writes out of the project (for a mirror or a project of your own). Every session asks the engine to write only its trial run to the project: no issue, journal entry, app map, memory or stored browser profile. Without this flag a session the engine did not confirm is removed before anything is sent to it, and its card ends skipped (project_writes_not_confirmed). Either way a session can change data in the tested app.
--max <n>review add-tests: work on at most this many cards (default 1): the open Add test cards that hold no written plan, newest first.
--proposal <id>review add-tests: work on this one card instead of the newest. It must be an open Add test card that holds no written plan (else exit 2).
--author-minutes <n>review add-tests: the minutes the agent may take to write one test (default 25). A session still writing then is stopped and the card is skipped.
--run-minutes <n>review add-tests: the minutes the one trial run of a written test may take (default 30). A run still going then is stopped and the card is skipped.
--budget-minutes <n>review add-tests: the minutes the whole command may take. A card is not started when writing and running it (--author-minutes + --run-minutes) could not finish within them.
--postreview add-tests: re-post a card whose test was written, passed the plan gate and passed its one run, with the plan and that run. Without it (shadow, the default) nothing is posted: the result goes to stdout, --trace and the job summary only. A card that ends any other way is never posted.
--trace <file>review add-tests: write what became of each card to this local file (JSON): the brief, the authoring outcome, the written plan, the gate result, the run and its step statuses, and the seconds of each stage. It holds no credential or token, no typed value, and no text of a step that signs in. Written after every card.
--jsonEmit the standard JSON envelope on stdout: review + counts + proposals + regressions + writes, plus prIntent (the pull-request lookup counts) with GITHUB_TOKEN (review) / bundle (collect) / setupCheck (check: one line per prerequisite, each ok / missing / unchecked; exit 0 all ok, 2 one missing, 3 one not checked) / proposals (list) / proposal + diff (show) / issues (issues: the open issues a review filed, each with its plan, step, run and suspected commits) / issue + where + run + outcome + suspectedCommits + expected + seen + missing (issue: one of them in full; a plan or run that is gone is null and named in missing) / proposal + plan (approve) / proposal (reject) / source + trace (trace) / mode (shadow or post) + counts (cards, authored, gateOk, passed, posted, shadow, skipped) + cards (add-tests: one per card with proposalId, title, authored { outcome, steps, seconds }, gate { ok, refusals, warnings }, run { outcome, status, seconds, runId, runUrl, notVerified }, end (posted, shadow or skipped), reason, detail, newPlanId and post { result, newPlanRefused }). approve and reject refuse AGENTIQA_SERVICE_KEY with service_key_cannot_approve (exit 2) before any request.

login

Authenticate with Agentiqa (opens browser).

agentiqa login [--api-url <url>] [--no-browser]

FlagDescription
--api-url <url>Control-plane to authenticate against, e.g. https://s.agentiqa.com. Wins over AGENTIQA_API_URL and over the environment your last login recorded. The environment is stored WITH the credential, so every later command targets it too, until the next agentiqa login elsewhere or agentiqa logout. Omit it to re-authenticate against the environment you are already bound to (or, on a fresh machine, the build default).
--no-browserDon't open a browser — print the auth URL to visit instead.

logout

Remove stored credentials.

agentiqa logout

No command-specific flags.

whoami

Show the current authenticated user.

agentiqa whoami

No command-specific flags.

Common flags

Accepted by every command.

FlagDescription
--engine <url>Explicit engine URL; wins over the env-matched default. An authenticated run defaults to the hosted engine for your API host (agentiqa.com → engine.agentiqa.com), which persists the run to your account; pass --embedded to force the local in-process engine instead. When a remote engine is used, Playwright/Chromium and ffmpeg are not required locally — it drives the browser and CLI run artifacts download the engine-rendered video when available (a local ffmpeg render is only a fallback). No separate engine token is needed either way: the short-lived engine credential is minted automatically from AGENTIQA_SERVICE_KEY, or from your agentiqa login session when no service key is set.
--helpShow this help and exit.
--versionPrint the CLI version and exit.

Environment variables

VariableDescription
AGENTIQA_CREDENTIAL_SECRETSecret input for project credentials/pool add or update. --secret-stdin takes precedence. Never printed by default.
AGENTIQA_API_URLOverride the Agentiqa control-plane API for this invocation. When unset, the environment recorded by your last agentiqa login applies (so a staging login keeps every later command on staging), then the build’s default backend: https://agentiqa.com for regular installs, while agentiqa@staging builds are baked to https://s.agentiqa.com. Invocations authenticated with AGENTIQA_SERVICE_KEY ignore the login-recorded environment — a service key resolves to this variable or the build default only.
AGENTIQA_PROJECT_IDProject the project-scoped commands (run, plan, runs, labels, review, project resources) operate in. Sits between --project (which wins) and the project remembered by agentiqa project use. Use it to pin a project for a shell session or a CI job without a service key.
AGENTIQA_PROJECTAlias for AGENTIQA_PROJECT_ID. Setting both AGENTIQA_PROJECT_ID and AGENTIQA_PROJECT to different values is a usage error (exit 2).
AGENTIQA_SERVICE_KEYService key for unattended runs (CI). Replaces interactive login and unlocks hosted engine access — no separate engine token required. It is scoped to ONE project and overrides every other project selection. Only a project owner can mint one; a member of a shared project does not need one — agentiqa login plus agentiqa project use / --project / AGENTIQA_PROJECT_ID runs that project directly.
AGENTIQA_ENGINE_TOKENOptional internal bearer override for hosted engine HTTP + WebSocket calls. Only needed for internal infra; customer-facing CI should rely on AGENTIQA_SERVICE_KEY instead.
AGENTIQA_REVIEW_MODELGemini model id for agentiqa review (default: gemini-4-hydrogen). Review calls think as little as the model allows (budget 0 first).
GITHUB_TOKENOptional for agentiqa review --batch: a read-only GitHub token (pull-requests: read; contents: read on a private repository). With it the review maps each commit of the window to its pull request and reads the title and description as intent evidence (bounded, treated as untrusted text), and each proposed test update cites the pull request. Without it the review reads commits only. GitHub failures are counted and never fail the review. GITHUB_API_URL (set by GitHub Actions, also on GitHub Enterprise) picks the API host.
AGENTIQA_REVIEW_THINKINGThinking setting of agentiqa review calls: auto (default: budget 0, else the lowest level the model accepts), off, default (no setting sent), a thinking budget, or minimal | low | medium | high.
AGENTIQA_REVIEW_REPO_MAPRepo map source of agentiqa review when --repo-map is not given: auto (default), survey, manifest or defaults.
AGENTIQA_REVIEW_TRACE_HUNKSAccepted for compatibility; changes nothing, as review --trace-hunks: every review trace carries the diff hunks each decision rested on. The trace records whether it was set.
AG_OUTPUTSet to "json" to enable JSON output mode globally (equivalent to --json). Use --format text to override.
AG_SHAREDEPRECATED no-op (equivalent to --share), still accepted so existing CI invocations keep working. Public share links were retired 2026-07 in favor of org-member team access; the run deep link is always available as runUrl in the JSON envelope and printed in human output.
AGENTIQA_UPDATE_CHECKSet to "0" to disable the "Update available" check (a cached, fire-and-forget npm dist-tags lookup; sends no user data). Also disabled by { "updateCheck": false } in ~/.agentiqa/config.json.
AGENTIQA_SKIP_FFMPEG_DOWNLOADSet to "1" to never download ffmpeg. Installing the CLI downloads nothing; a run that records video locally provisions ffmpeg on first use unless one is already on PATH. With this set, a run without ffmpeg simply skips the video and keeps screenshots and result.json.
AGENTIQA_FFMPEG_DIRDirectory the CLI provisions its ffmpeg copy into (default: ~/.agentiqa/ffmpeg). Point it at a cached path in CI to keep the one-time download out of every job.

Exit codes

CodeMeaning
0Success — all selected plans passed (or there was nothing to run).
1Plan failure — plans executed, at least one failed.
2Usage / configuration error (bad flags, not authenticated, a selector that matched no plans, or a project with no plans to run), a persistent account-state block (quota / org run-cap exhausted), OR a batch in which one or more plans were skipped because a credential they sign in with is not stored. Something that had to run could not, and retrying cannot help.
3Infra / runtime error (engine unreachable, auth/exchange failure, a no-verdict batch, or an unexpected internal error) — a correct, entitled invocation could not reach a verdict, so it is safe for CI to retry.

JSON output

With --json or AG_OUTPUT=json:

  • Every JSON document includes "schemaVersion": 1 at the top level.
  • Success: { "ok": true, "schemaVersion": 1, ...commandFields }
  • Failure: { "ok": false, "schemaVersion": 1, "error": { "code": "...", "message": "..." } }
  • All log lines go to stderr; stdout contains exactly one JSON document.
  • ANSI color is disabled when --json is active or stdout is not a TTY.

On this page