LLaDAR
Technical reference

Command reference

A reference for every LLaDAR command and option in this checkout. Use the guides for the workflow; use this page when you need the exact argument.

Operation result reports

Every CLI workflow and Skill-template command attempts to save a UTF-8 Markdown report after success, failure, cancellation or a request for human confirmation. Situation modes are included; help, version queries and Python API calls are excluded.

The report follows --lang and records status, exit code, timing, permitted settings, input paths, available counts, artifacts, sanitized problems and next steps. Existing files are distinguished from new or modified files. Resume guidance requires a work-session hint from the failed invocation. Incorrect answers are evaluation findings, while execution or judging errors are operation issues.

An output at artifacts/evaluation.json gets artifacts/evaluation.json.operation.md; a template directory at lladar-skills/eval gets a sibling lladar-skills/eval.operation.md. Existing reports are preserved with .operation-2.md, .operation-3.md, and so on, even with --force. Unresolved or unwritable output locations fall back to .lladar/operation-reports/STAGE.operation.md in the original working directory.

No extra model call is made, and exit codes remain unchanged. The location is printed with --no-verbose and included in an active --log. Raw prompts, answers, URLs, credentials and arbitrary exception messages are omitted. These reports complement logs and generation/evaluation evidence. If neither location can be written, a warning is shown; forced termination cannot guarantee a report.

Dataset token usage (v0.17.0)

create test-dataset records provider-reported input/output usage across its native Akasha model calls, including inventory, reconciliation, generation, audit, coverage review, repairs and retries. Usage is collected from the existing response through LangChain callbacks; no additional generation or token-count request is made. Repeated prompts, conversation history and tool results count again when the provider reports them as input.

With --verbose (the default), [TOKENS] shows cumulative input, output, total and unreported-call counts after each model response. --no-verbose hides the updates but still saves usage; an active --log includes emitted updates. There is no token-by-token update while a response is pending. Token budgets such as --max-input-tokens are limits, not measured usage.

Saved fieldMeaning
input_tokens / output_tokensCumulative provider-reported input and output tokens.
total_tokensInput plus output tokens.
cached_input_tokens / reasoning_output_tokensReported subsets of input/output; do not add them to the total again. Zero may mean that the provider supplied no breakdown.
reported_calls / unreported_calls / failed_callsCalls with valid usage, calls without usable usage, and failed calls. Failed calls can overlap either of the first two categories.
stagesThe same counters grouped by workflow stage.
statusreported: observed calls returned usable usage; partial: some calls or historical work have unknown usage; unavailable: no usable usage was collected.
historical_usage_unknownEarlier work in a resumed session predates token tracking.

The token_usage object is saved in <output>.generation.json and the work-session checkpoint. The operation report includes totals, per-stage counts, limitations and the usage added by this invocation. Resume retains the session total without recounting saved work. A coverage report generated from the sidecar also includes its saved usage.

Missing usage is unknown, not zero. Failed requests, provider-internal retries and work predating tracking may not be reported; custom integrations that do not emit compatible callbacks may provide no usage. These counters cover dataset generation and are not a billing statement or totals for a separately run target Agent, evaluation or report generation.

Language: --lang CODE

Available on every workflow, Skill-template command and help page. New work defaults to en, including generated prose. Use en, zh-TW, ja (aliases jp/Jp), ko, or zh-CN for localized interface text, fixed report headings and offline templates.

Other valid codes, such as fr, are passed to the model; interface text, fixed headings and templates use English with a brief notice. Acceptance does not establish model support. Codes contain letters and optional hyphen-separated alphanumeric subtags.

lladar --lang ja --help
lladar create test-dataset --knowledge knowledge.md --lang zh-TW --output dataset.jsonl
lladar run-agent dataset.jsonl --project ../my-agent --lang zh-TW
lladar eval responses.jsonl --lang zh-TW
lladar report evaluation.json --lang ko
lladar create report-skill --lang zh-CN

Saved questions, target responses, quotes, IDs, schema keys, exact probes and measurements retain their original values. Browser extraction preserves the original answer. Technical diagnostics and third-party traces may retain their original language. Situation free-text generation uses the chosen language. This option does not add a target-language requirement or scoring criterion.

Next-step commands carry the setting. A new stage without it uses en; --resume restores the saved language unless an identical value is supplied. Conflicts are rejected; sessions without language metadata require their original version or new work. Python stage APIs accept lang="ja". Metadata distinguishes lang from ui_lang; templates include language.json with template_lang.

Output paths

All main workflow commands accept an optional --output directory or file path. Omitting it writes into runs/ under the current directory: a timestamped test-dataset-YYYYMMDD-HHMMSS.jsonl, situation.json, responses.jsonl, evaluation.json, or report.md. With --output ./artifacts, the same names and their sidecars go into ./artifacts/. Existing directories, trailing separators, and new paths without a suffix are directories; existing files and new paths with a suffix are filenames. For a new directory containing a dot, use ./results.v1/. Existing outputs still require --force.

After each successful stage, a work summary lists the absolute output directory, each generated file and its purpose, and the next command or reading step. This summary remains visible with --no-verbose and is also saved by --log.

Shared options

lladar --version prints the installed package version. Add --log PATH to any workflow command, or before the command, to save emitted terminal output to a new UTF-8 file while keeping it visible. Logs contain progress, traces, summaries and handled errors without ANSI color codes. --no-verbose suppresses detailed output in both destinations. Parent directories are created automatically; existing log files are preserved even with --force.

lladar create test-dataset --knowledge policy/ --output dataset.jsonl --log logs/create.log

Command map

CommandPurposeMain output
lladar create test-datasetCreate questions and expected answers from knowledge.Dataset JSONL and .generation.json.
lladar create situationCompile a knowledge-optional behavior and stopping rule into a reusable configuration.Situation JSON.
lladar run-agentRun one-question datasets or multi-turn situations.Responses or transcripts JSONL with mode-specific execution sidecars.
lladar evalJudge completed responses.Evaluation JSON.
lladar reportRender an evaluation as Markdown.Markdown report.

plan

Describe what you want to test in natural language. The planner asks for missing information, builds a structured PlanSpec, validates it against the available workflows, and renders the resulting plan and commands. It is a planner, not an executor: it does not call the target Agent, sign in, store credentials, or run later stages.

lladar plan [REQUIREMENT] [OPTIONS]

Omit the requirement to start an interactive session, or provide it as the opening message:

lladar plan "Check whether my support Agent follows the refund documents" --debug
lladar plan --output runs/refund-plan --debug --log runs/refund-plan/plan.log
ArgumentDefaultUse
REQUIREMENTNoneNatural-language testing goal; you can supply more detail during the conversation.
--output DIRECTORYruns/plan-YYYYMMDD-HHMMSSPlan package directory. Existing directories are not overwritten.
--model MODELModel profileModel for the planning agent only; it does not select models for later stages.
--env-file PATH.envEnvironment file for the planning model provider.
--lang CODEenLanguage for the planning conversation, summary, and artifacts.
--debugOffShow live redacted diagnostic events.
--log PATHplan.log inside the plan directorySave structured events to another log path; existing logs are preserved.

A plan package normally contains plan.md, plan.json, plan-events.jsonl, and plan.log. A ready plan also contains commands.ps1; blocked or failed plans contain diagnostics.json.

ready means local inputs, capability combinations, command arguments, and stage dependencies passed static checks. It does not prove that the target is reachable or that the test will succeed. blocked means required input or capability is missing; failed means planning or artifact handling encountered an error. Read the summary and diagnostics before running the commands from a ready plan.

Dataset generation methods

The selected Skill guides direct QA or optional graph generation. Python may produce or repair candidates; every delivery path faces final validation. The JSONL format is unchanged, and .graph.json is optional.

create test-dataset

Generate a dataset from one or more knowledge files or directories.

lladar create test-dataset (--knowledge PATH | --from-github URL) [OPTIONS]
ArgumentDefaultUse
--knowledge PATHRequired unless --from-github; repeatableKnowledge file or directory. Repeat it to combine inputs.
--from-github URLRequired unless --knowledgeDiscover datasets in a public GitHub repository and save a per-question evidence report.
--skill DIRECTORYBundled knowledge-point-qa; GitHub: github-datasetOne local method directory containing SKILL.md.
--output PATH.Directory for a timestamped test-dataset-YYYYMMDD-HHMMSS.jsonl. A path ending in .jsonl names the file directly.
--count N0Maximum number of deduplicated records; 0 keeps all candidates.
--seed SEED0Seed for deterministic candidate shuffling.
--model MODELgemini:gemini-3.7-flashModel for dataset generation.
--env-file PATH.envEnvironment file supplied to the model provider.
--temperature TEMPERATURE0.0Sampling temperature for generation.
--max-input-tokens NSelected model profileOverride that profile's input-token budget.
--max-output-tokens NSelected model profileOverride that profile's output-token budget.
--auto-window-ratio RATIOSelected model profileOverride that profile's automatic context-window ratio.
--forceOffPermit replacement of an existing output file.
--verbose / --no-verboseOnShow or hide progress, the generation trace and cumulative token updates. Usage is saved even when updates are hidden; see token accounting.
lladar create test-dataset --knowledge policy/ --knowledge faq.md --count 30 --seed 7 --output artifacts/dataset.jsonl

create situation

Compile an observation, stopping rule, declared variation axes, and fixed judging method into a situation JSON. Knowledge is optional; this is separate from the three-field QA dataset.

lladar create situation (--instructions TEXT | --instructions-file PATH) (--stop-criteria TEXT | --stop-criteria-file PATH) --max-turns N [--output PATH] [OPTIONS]
ArgumentDefaultUse
--instructions TEXT / --instructions-file PATHOne requiredOverall generation, execution and default evaluation instructions; text/file inputs are mutually exclusive. Legacy --observe / --observe-file aliases remain.
--stop-criteria TEXT / --stop-criteria-file PATHOne requiredSemantic stopping rule, given directly or read as UTF-8 from a file; mutually exclusive.
--max-turns NRequiredPositive maximum number of user/target turns in one scenario.
--knowledge PATHNone; repeatableExisting .md or .txt file. LLaDAR saves path and hash and checks it again at run/eval.
--output PATHsituation.jsonDestination situation JSON. Existing output is rejected unless --force.
--skill DIRECTORYBundled create-situationLocal SKILL.md for authoring the one configuration.
--model MODELgemini:gemini-3.7-flashModel used to compile the situation.
--env-file PATH.envProvider environment file.
--forceOffReplace an existing configuration file.
lladar create situation --instructions "Ask for missing order details without inventing status" --stop-criteria "Stop after a follow-up reply or at the turn limit" --max-turns 3 --output artifacts/situation.json

The result stores the observation, stop text, knowledge hashes, generation and run methods, variation axes, and evaluation rubric. See the full multi-turn workflow.

run-agent

Run an Agent through an inspected project or a calibrated question webpage, verify the route, and fill actual_response in a new responses file.

Choosing the target

--project PATH can be enough on its own: LLaDAR learns the public interface and startup procedure from source and documentation. With the necessary runtime configuration available, it can start a required service in an isolated project copy and stop only what it started. Missing startup, authentication, or API contract details require clarification.

Add --service-url URL only to use an already running test service. It supplies the base address, not a startup command or the HTTP method, route, payload, or response format; those still come from project inspection. LLaDAR does not start or stop that existing service. The option is --service-url, not --service-api.

Use --page-url URL instead when you have a normal question webpage without project source: browser sign-in and calibration record the request for replay, then the model extracts response text. It cannot be combined with --project or --service-url. With neither target option, LLaDAR inspects the current directory. See the three-path selection guide.

lladar run-agent DATASET [OPTIONS]
lladar run-agent --situation-config PATH --num-scenarios N [OPTIONS]
ArgumentDefaultUse
DATASETRequired for QA modeInput JSONL whose actual_response values are null. Omit with --situation-config.
--project PATH.Target Agent project to inspect and copy into an isolated workspace.
--page-url URLNoneNormal question page; always uses guided sign-in, calibration, consent and MATCH. Requires terminal stdin/stderr before browser startup. Do not add interaction flags; mutually exclusive with --project.
--output PATHresponses.jsonlMain JSONL path. QA mode adds PATH.trials.jsonl and PATH.run.json; situation mode adds PATH.scenarios.jsonl, PATH.turns.jsonl, PATH.calibration.json, and PATH.run.json.
--skill DIRECTORYBundled run-agent-stabilityOne local SKILL.md method directory for scheduling.
--situation-config PATHNoneUse a frozen situation JSON instead of DATASET. Cannot combine with --skill.
--num-scenarios NNoneRequired positive count of scenarios when using --situation-config.
--seed SEED0Seed for deterministic record selection in QA mode.
--model MODELgemini:gemini-3.8-flashProject coding model; browser answer extraction defaults to gemini:gemini-3.8-flash (Gemini API only).
--max-input-tokens N / --max-output-tokens NSelected model profileOverride positive token budgets for project auto-adapter discovery, generation and repair only; target Agent and browser extraction budgets are unchanged. Default Gemini 3.8 Flash budgets: 1,048,576 input / 65,536 output tokens.
--env-file PATH.envEnvironment file for both the coding-model provider and target process. Existing environment variables take precedence.
--target-python PATHQA: discover PROJECT/.venv; situation: project venv or current interpreterPython executable used by the target project.
--timeout SECONDS3600 (60 minutes)Limit in seconds for each adapter, tool subprocess, or browser request. Browser startup/navigation separately allow 300 seconds (5 minutes). Does not raise the separate extraction limits.
--max-tool-calls N100Maximum tool calls in one discovery or adapter-repair turn.
--graphify / --no-graphifyOnEnable or disable optional static code-graph exploration before source exploration.
--graphify-python PATHAuto-discover an existing uv tool environmentPython executable that has graphifyy.
--service-url URLNoneBase URL of an already running test service that the generated project adapter may call. It does not discover an arbitrary API URL.
--confirm-browser-runOffPreapprove only the verification and scheduled dataset requests. Does not approve model transfer or skip terminal calibration and MATCH.
--allow-response-model-transferOffApprove real response content to --model for this run: at most N+2 calls for N trials, 8,192 output tokens per call, shared 60 minutes. Not website approval or a verification bypass.
--fresh-browser-profileOffUse a temporary signed-out profile instead of reusing this site's local browser session.
--interactive / --no-interactiveProject mode: on only in a TTYAllow or disable project-interface prompts. Rejected with --page-url; browser mode always uses its guided terminal workflow.
--forceOffReplace an existing responses file and its sidecars.
--verbose / --no-verboseOnShow or hide progress and coding-Agent traces.
lladar run-agent artifacts/dataset.jsonl --project path/to/agent --no-interactive --output artifacts/responses.jsonl
lladar run-agent artifacts/dataset.jsonl --project path/to/agent --service-url http://127.0.0.1:8000 --output artifacts/responses.jsonl
lladar run-agent artifacts/dataset.jsonl --page-url https://example.test/chat --output artifacts/responses.jsonl

Direct model extraction is the only browser answer path, default gemini:gemini-3.8-flash. One YES approves both disclosed website requests and real response content transfer before GEMINI_API_KEY/GOOGLE_API_KEY is loaded. The two approval flags retain separate scopes; both skip approval, not MATCH review. MATCH compares the full verification response and extracted text in the color terminal (stderr), with no HTML tab. NO_COLOR or TERM=dumb selects plain text. Redirected review output is refused; terminal scrollback may retain content. Browser capture remains required. Model input is capped at 120 KiB of UTF-8 JSON including framing, without truncation or retries. Valid extraction does not guarantee fidelity or answer correctness. See the run guide.

Situation execution contract

A project supplies lladar_session.py or LLaDAR generates a candidate in a project copy. Two turns in one session plus a fresh-session isolation probe must pass before scored requests. The selected --service-url is passed as LLADAR_SERVICE_URL; the adapter must use the actual public API. --page-url is unsupported with situation mode. The run JSON records the adapter hash, source and any errors. See adapter calibration.

lladar run-agent --situation-config artifacts/situation.json --project example_project/situation_demo --num-scenarios 2 --output artifacts/transcripts.jsonl

eval

Use an evaluation method to judge completed responses and calculate a summary from the saved judgments.

lladar eval RESPONSES [OPTIONS]
ArgumentDefaultUse
RESPONSESRequiredQA responses JSONL or situation transcripts JSONL created by run-agent.
--output PATHevaluation.jsonEvaluation JSON to create.
--criteria TEXTNoneEvaluation requirements for the built-in method; mutually exclusive with --skill.
--skill DIRECTORYNoneA complete local evaluation method, including its standards. Replaces default typed/probe scoring too.
--situation-config PATHNoneVerify original run/config hashes. Use the frozen rubric by default; --criteria or --skill can replace evaluation without changing that config.
--model MODELgemini:gemini-2.5-flashModel used by the evaluator.
--env-file PATH.envEnvironment file supplied to the evaluator provider.
--strictOffStop the command when a per-record evaluator error occurs. Without it, the record is saved as a judge error and evaluation continues.
--forceOffReplace an existing evaluation file.
--max-input-tokens N / --max-output-tokens NSelected model profilePositive evaluator token limits for plans and judgments in both modes; saved in evaluation JSON.
--verbose / --no-verboseEnabledSettings, trial progress, waiting heartbeats, outcomes and elapsed time; --log saves the same output.
lladar eval artifacts/responses.jsonl --strict --output artifacts/evaluation.json

With neither option, existing default scoring remains. Evaluation results and reports record the effective settings, criteria text/hash or Skill source/evidence. Correctness tables require a correctness dimension.

lladar eval artifacts/responses.jsonl --criteria "Observe target wording; presence alone is not bias" --output artifacts/wording-evaluation.json

Situation judgments

Situation evaluations save validity, behavior, cited turn IDs, and deterministic counts. Failed or indeterminate trials are excluded from the observed rate.

lladar eval artifacts/transcripts.jsonl --situation-config artifacts/situation.json --output artifacts/situation-evaluation.json

report

Render an evidence-bounded Markdown report from an evaluation output.

lladar report EVALUATION [OPTIONS]
ArgumentDefaultUse
EVALUATIONRequiredEvaluation JSON created by eval.
--output PATHreport.mdMarkdown report to create.
--skill DIRECTORYQA: bundled report-evidence-summary; situation: noneOne local SKILL.md report-summary method. In situation mode it only adds narrative; saved judgments and counts stay fixed.
--model MODELgemini:gemini-3.7-flashModel used for a Skill-written summary; situation reports without --skill are rendered without a model call.
--env-file PATH.envEnvironment file supplied to the report provider.
--forceOffReplace an existing report.
lladar report artifacts/evaluation.json --output artifacts/report.md