bestmodelfor.ai
Data updated 2026-10-18USD/CNY 6.6862 ECB 2026-10-1639 official prices · 27 plans · 20 tips

Tool tips

Claude Code and Codex tips, version-tagged and verified

Every tip lists the versions it applies to, what it depends on and when we last verified it. We read the official release notes daily and flag a tip as soon as something it relies on changes.

VerifiedNeeds recheckMay be outdatedStatus refreshes daily from the official release notes.

Claude Code · 11

Verified v2.1.296
Work across several repos with --add-dir

By default only the launch directory is accessible. --add-dir grants extra directories, useful for split frontend/backend repos or reading another repo.

Verified Oct 17, 2026 · tested locally
Verified v2.1.296
Run long tasks in the background with --bg

--bg returns a session id immediately while the task keeps running. List with claude agents; manage with claude attach, logs, stop.

Verified Oct 17, 2026 · tested locally
Verified v2.1.296
Use --bare in CI so local config doesn't change results

--bare skips hooks, LSP, plugin sync, auto-memory and CLAUDE.md discovery for reproducible scripted runs. It only accepts ANTHROPIC_API_KEY or an apiKeyHelper via --settings, not subscription OAuth.

Verified Oct 17, 2026 · tested locally
Verified v2.1.296
Tune reasoning per task with --effort

Use low effort for simple edits (faster, cheaper) and high effort for hard problems. Applies to this session only.

Verified Oct 17, 2026 · tested locally
Verified v2.1.296
Avoid hard failures on overload with --fallback-model

Falls back automatically when the main model is overloaded or unavailable; a comma list is tried in order, and the primary is retried at each user turn.

Verified Oct 17, 2026 · tested locally
Verified v2.1.296
Fork a conversation to try another approach without touching the original

--fork-session with --continue or --resume starts a new session ID that keeps the earlier context, leaving the original untouched.

Verified Oct 17, 2026 · tested locally
Verified v2.1.296
Resume the session linked to a PR with --from-pr

Give a PR number or URL to resume the session that created or worked on it, context intact. Without a value it opens a picker.

Verified Oct 17, 2026 · tested locally
Verified v2.1.296
Use -p with JSON output in scripts to get the cost of each run

Non-interactive -p with --output-format json returns total_cost_usd, is_error and num_turns, handy for batch jobs and cost tracking.

Verified Oct 17, 2026 · tested locally
Verified v2.1.296
Force output to match your format with --json-schema

Pass a JSON Schema to a -p call; the validated object appears in the structured_output field, no hand parsing or retries.

Verified Oct 17, 2026 · tested locally
Verified v2.1.296
Cap script spend with --max-budget-usd, but leave headroom

--max-budget-usd only works with -p. In our test a 0.05 USD cap was exceeded on the very first turn (cold prompt cache, ~0.105 USD) and the run ended as an error with no result. Leave headroom for the first-turn cache cost.

Verified Oct 17, 2026 · tested locally
Verified v2.1.296
Start big changes in plan mode

--permission-mode plan makes Claude research read-only and propose a plan before touching files — good for unfamiliar codebases or big refactors.

Verified Oct 17, 2026 · tested locally

Codex · 9

Verified v0.163.0
Use codex exec for CI and scripts

codex exec (alias codex e) runs to completion without interaction; --json emits newline-delimited JSON events for programs to consume.

Verified Oct 17, 2026 · tested locally
Verified v0.163.0
Get a fixed-shape result with --output-schema

Give codex exec a JSON Schema file and the final response is validated against it — easy to pipe into the next step.

Verified Oct 17, 2026 · tested locally
Verified v0.163.0
Continue the last scripted run with codex exec resume --last

codex exec resume --last continues the most recent exec session in this directory, optionally with a follow-up prompt; --all searches every directory.

Verified Oct 17, 2026 · tested locally
Verified v0.163.0
Generate AGENTS.md with /init to record project rules

Type /init in the TUI to scaffold AGENTS.md. Put build commands, style rules and no-go areas there; Codex reads it every session.

Verified Oct 17, 2026 · checked against docs
Verified v0.163.0
Add --search when you need fresh information

Codex web search defaults to cached mode; add --search (same as web_search = "live") for brand-new releases or APIs.

Verified Oct 17, 2026 · tested locally
Verified v0.163.0
Use local open models with --oss

--oss switches to a local open model; --local-provider lmstudio|ollama picks the backend — for offline work, sensitive code or saving money.

Verified Oct 17, 2026 · tested locally
Verified v0.163.0
The recommended permission combo for local work

The docs recommend --sandbox workspace-write --ask-for-approval on-request for low-friction local work: edits inside the workspace, asks before anything beyond.

Verified Oct 17, 2026 · tested locally
Verified v0.163.0
Switch whole configurations with --profile

--profile name layers $CODEX_HOME/name.config.toml over the base config — keep one file per scenario such as cheap mode or strict sandbox.

Verified Oct 17, 2026 · tested locally
Verified v0.163.0
Isolate a task in its own git worktree with --worktree

--worktree starts in a fresh managed git worktree so your current checkout stays clean; works for interactive sessions, codex exec and forks (local only).

Verified Oct 17, 2026 · tested locally