agentcompass run:
ModelSpec. The selected harness decides how to consume the spec.
Model API Protocol List
Model ids vary by provider, but AgentCompass defines three protocol ids. They are also included in the output written byagentcompass list dump.
Protocol support also depends on the selected harness. An endpoint implementing OpenAI Chat does not make it compatible
with a harness that requires Responses or Anthropic Messages behavior.
--model-api-protocol accepts any protocol id in the table. When the option is omitted or set to auto, the selected
harness chooses the protocol; for example, codex defaults to openai-responses, while claude_code uses anthropic.
The option also accepts an ordered JSON array such as '["openai-responses","openai-chat"]'. The harness selects the
first protocol it supports. The array is not a request-failure fallback and cannot contain auto.
Configure the Model Spec
The Run Parameter Reference introduces the model positional argument and--model-* flags. Together they construct these ModelSpec fields:
Configure Connection Details
Oneagentcompass run command contains one ModelSpec. To compare multiple model ids, declare one named request per
model with agentcompass launch; this makes endpoint and inference-setting
differences explicit instead of copying one implicit comparison template.
Export model connection values once and keep credentials out of command history:
Configure the params Field
The --model-params <json> object does not have one AgentCompass-wide generation schema. Its accepted fields are the
intersection of three contracts:
These names are not portable by default. For example, OpenAI Chat commonly uses
max_tokens, OpenAI Responses uses
Responses-specific request fields such as max_output_tokens, and Anthropic Messages has its own required request
shape. The protocol pages document how AgentCompass forwards each request.
The selected harness page is also authoritative. A CLI-based harness may translate ModelSpec into its own config file
instead of forwarding --model-params directly through AgentCompass’s native protocol clients.
--model-params must be valid JSON. CLI values deep-merge over matching keys in model.params from configuration files.
Pass only the fields that differ from the effective endpoint and harness defaults.
Configure Judge and Analysis Models
Some benchmarks and analyzers use an additional model spec for judging or qualitative analysis. These nested specs use the same concepts—model id, base URL, API key, protocol, and params—but belong to their owning component:- Benchmark judge models are normally under
--benchmark-params, for examplejudge_model. - Analyzer models are under
--analysis-params, such asQualitativeAnalyzer. - Tool-specific summarization models may belong to the selected harness.
--model-params object unless the owning benchmark or harness explicitly
documents that schema.
Diagnose Model Configuration
Reduce failures to one task and inspect the harness and endpoint error before changing multiple model parameters at once.
