AI Coding CLI Comparison and Migration: Configs, Model Switches, and Common Pitfalls
Year-end practice shows mainstream AI coding CLIs are close on code generation; the real gaps are exploration, memory, and ops. This article covers migration of rules and MCP, default-model drift, headless CI trust, and self-hosted API formats.
Year-end view: capability gaps among AI coding CLIs are smaller than they look
When developers debate whether one coding agent has overtaken another, they often focus on raw code-generation quality. A year of practice points to a more common industry feel: for the act of “writing code” itself, the gap among mainstream tools has narrowed to a small band. Models are strong, benchmark scores are close, and remaining differences sit more in engineering details.
Two scenarios actually separate the experience:
- Autonomous exploration. Letting the agent map an unfamiliar repo, infer implicit team conventions, and make reasonable trade-offs under fuzzy requirements. That tests how the tool organizes project context, how it handles ambiguity, and when it asks versus when it acts. Some tools take a “rigor first” path and over-engineer—building an abstraction layer for a three-line fix.
- Long-horizon memory and project residue. Whether the tool can persist project conventions, incident notes, and architecture decisions and reuse them reliably in later sessions.
Year-end evaluations should not use “who generates code faster or better” as the only criterion. Prefer an engineering framework: context construction, decision quality on exploration, portability of config and memory, stability in unattended runs, and flexibility to attach self-hosted services. The sections below cover details that are easy to miss but strongly affect daily use.
Switching cost: a path from tool A to tool B
Historically the mental cost of changing coding CLIs was not new commands but redoing “assets”: project rules, personal config, custom slash commands, MCP, hooks, project memory, even chat history. Many mainstream tools now import from each other, so switching can be close to a single command.
A typical capable importer covers:
- Rules files: mapped to the target’s project-level rules (usually Markdown conventions).
- Global config: format conversion, e.g. JSON key-value to TOML.
- Skills and plugins: reusable capability packs.
- Project memory: previously captured project context.
- MCP and hooks: external tool wiring and hook scripts—often the highest-value pieces; they usually reconnect cleanly after migration.
- Custom slash commands: typically mapped to equivalents in the skills system.
- Subagent definitions: multi-agent collaboration config.
- Chat history: some tools import recent sessions, usually with a cap.
Two caveats:
- Import is copy, not move. The source tool’s config is unchanged, so both tools can run in parallel during a trial—the recommended transition.
- Sessions have a retention window. Local history often defaults to about 30 days (controlled by a cleanup field such as
cleanupPeriodDays). Expired sessions are purged, so migrate old chats promptly, or lengthen retention, for example:
{"cleanupPeriodDays": 180}
Default model changes and the “got lazy” illusion
After CLI upgrades, a frequent complaint is: “it refuses more,” “answers are more conservative,” “it got lazy.” A common cause is the upgrade also changing the default model.
Typical case: a release switches the default model, and users without an explicit model field silently follow the new default. Newer models often tighten safety—stricter filters on some request classes—and behavior drifts. That is policy change, not a bug.
Triage:
- Confirm version and the declared default model.
- Check whether config explicitly sets
model. - If not, you have been following defaults; upgrades change the model.
- To restore prior feel, pin the model name, for example:
# ~/.<tool-name>/config.tomlmodel = "previous-version-model-id"
Best practice: any setting that drives daily feel (model, reasoning effort, approval policy) should be explicit. Depending on defaults invites surprise drift on every upgrade and “same version, different behavior” across a team.
Headless mode and trusted directories: a classic CI pitfall
In scripts, CI, or cron, running the agent non-interactively (headless) after an upgrade may suddenly skip project config or MCP.
Cause is usually tighter security: new versions may not auto-load project-level and MCP config in untrusted directories. Use an explicit trust flag such as --trust.
A correct CI pattern:
# Explicitly trust the working directory so project config and MCP loadagent exec --trust --workdir "$CI_PROJECT_DIR" "run test suite and fix failing cases"
Governance:
- Minimize trust: only the CI workdir, not global trust.
- Pin versions: lock the CLI in the CI image so pipelines do not drift.
- Make config explicit: model, MCP, and approval policy used in CI should be declared; run a smoke check after upgrades.
Interface format when attaching self-hosted or third-party inference
Teams often want the coding CLI on a gateway or OpenAI-compatible service. Compatibility usually fails on wire protocol:
- The tool may support only a specific format (e.g. Responses-style). A Chat Completions-only backend will not attach directly.
base_urlpath joining is easy to get wrong; you often need a fixed prefix (e.g. ending in/v1). One extra or missing segment yields 404.- Generic config example:
model_provider = "my-gateway"[model_providers.my-gateway]base_url = "https://my-gateway.example.internal/v1"wire_api = "responses"
Landing advice:
- Before choosing a backend, match its protocol to what the CLI supports.
- Gateways can adapt downstream styles to the format the tool requires.
- Watch hot-reload and caching; after config changes, verify the actual request path.
Summary: three year-end selection criteria
- Code generation has largely converged; judge engineering details. Context organization and durable memory matter more for long-term feel than a single generation.
- Migration cost is a first-class variable. Portability of config, rules, memory, MCP, hooks, and history determines bargaining power and room to experiment.
- Watch silent changes in upgrades. Default model switches, tighter trust, and protocol limits most often cause “it broke after upgrade.” A smoke checklist keeps the tool stable for the team.
