pub fn default_strategy(agent: &str) -> WrapStrategyExpand description
Built-in agent → strategy lookup. The list is small by design — we
only encode strategies for agents we’ve actually verified. Anything
not in the table falls through to --system <msg> because that’s
the most common contract across OpenAI-compatible CLIs.
PR-7 may extend this map; the matrix is intentionally tabular so adding a row is a one-line change.
Substrate note (#1183). This table sits next to
crate::llm’s alias tables (default_base_url_for_alias,
alias_api_key_env_vars) at the crate root so the “per-vendor
behavior” substrate has one home per concern: HTTP wire shape in
llm.rs, CLI ABI in llm_cli_wrap.rs. The agent-name strings here
are CLI binary names on $PATH, NOT the
AI_MEMORY_LLM_BACKEND wire-shape selector — overlap is
coincidental (e.g. ollama is both a CLI binary AND a backend
selector, but the two columns are independent).