Skip to content
Empryo

Thinking, effort & retries

Control how much the model thinks before answering, set reasoning effort per model or provider, and tune retries when a provider is rate-limiting you.

How it works8 minutes to read
Copy & share
On this page9 sections

Many models can "think" before they answer. More thinking often means better answers on hard problems, but it also costs more and takes longer. This page covers the settings that control that trade-off, plus how Empryo retries when a provider is busy.

Open /provider-settings in the terminal UI, or Provider Options in the desktop settings, to change these per model. You can also edit config directly:

json
{
  "thinking": {
    "mode": "adaptive"
  }
}

Thinking modeLink to this section

ModeWhat it does
offNo thinking
auto (default) or adaptiveThe model decides when and how much to think, where supported. Other models use a fixed budget
enabledAlways think, up to a fixed token budget

When the mode is enabled, set the budget with thinking.budgetTokens (at least 1024). /provider-settings offers 1024, 2048, 5000, 10000 and 20000.

Reasoning effortLink to this section

Some models take a thinking *budget* in tokens. Others take an *effort level* instead. Set the level from the control in the message box, with /effort, or in config:

json
{
  "performance": {
    "effort": "high"
  }
}

The control offers these choices, in this order:

ChoiceWhat Empryo sends
Provider default (default)No effort or thinking field. The provider decides.
Off (/effort off, none in config)The provider's own switch for turning reasoning off. See below.
minimal, low, medium, high, xhigh, maxThat level

A tab you have not set starts on Medium, or on the nearest level above it if the model has no medium. A level you picked keeps working. An older off in config or in a saved tab means Provider default, as it did before.

No model takes every level. The control only offers levels your current model accepts. If you set a level higher than a model supports, it uses the highest level that model accepts. Choosing a level never turns reasoning off; only Off does.

What Off sends:

ProviderOff
Claudethinking: { type: "disabled" }. On Claude Sonnet 5.5, between_tools, its lowest setting
OpenAI, ChatGPT subscriptionReasoning effort none, or minimal on models without none
Gemini 2.5 FlashthinkingBudget: 0
Gemini 3 Flash and Flash-LitethinkingLevel: "minimal", the lowest Google offers
DeepSeek, Kimi K2.5 and K2.6, GLMthinking: { type: "disabled" }
OpenRouterreasoning: { effort: "none" } for OpenAI models, reasoning: { enabled: false } for the rest

Models that cannot switch reasoning off do not show Off: Grok, Claude Opus 5.5, Claude Fable and Mythos, Gemini 2.5 Pro, Gemini 3 Pro, Gemini 4 and GPT-6.1 Sol.

When settings overlap, the first match in this order wins:

WhereKeyApplies to
Per model familyperformance.effortByFamilySet from the quick switch in the message box, one level per family
Per providerperformance.openaiReasoningEffort and similarEvery model from that provider
Everywhereperformance.effortEvery model that takes a level

The per-provider keys:

KeyProvider
openaiReasoningEffortOpenAI
googleThinkingLevelGemini
xaiReasoningEffortGrok
deepseekReasoningEffortDeepSeek
groqReasoningEffortGroq
openrouterReasoningEffortOpenRouter
llmgatewayReasoningEffortLLM Gateway
compatReasoningEffortAny other OpenAI-compatible endpoint, including coding plans

Anthropic context optionsLink to this section

Anthropic offers a few extra ways to manage long conversations on its side. Set them in /provider-settings or under contextManagement in config:

  • Keep thinking blocks (clearThinking, on by default) keeps earlier thinking in the conversation, which keeps requests consistent from turn to turn.
  • Clear old tool uses (clearToolUses, off by default) removes old tool results once the conversation passes 65% of the context window (and at least 120,000 tokens).
  • Server-side compaction (compact, off by default) lets Anthropic compact the conversation on models with a context window of 200,000 tokens or more.

Empryo also has its own compaction, which works with every provider.

OpenAI server-side compactionLink to this section

The OpenAI provider settings now expose the same contextManagement.compact switch. It is off by default. For first-party OpenAI GPT-5.2 and newer, Empryo can send a large, self-contained Responses request through `/responses/compact` before inference. It forwards the entire returned context window, including its encrypted compaction item, as the next request's input.

This is per-request input reduction. Empryo keeps its readable conversation history and recomputes the compacted input on subsequent large requests. Compaction calls add latency and token cost. Their usage is recorded separately. Empryo's normal client-side compaction remains active.

This path does not change ChatGPT subscriptions, Codex or custom providers. Requests using previous_response_id, conversations, item references or explicitly configured context_management stay on their existing path. A compaction failure or 30-second deadline reports the problem and sends the original request instead. Cancelling the caller stops both requests.

When a provider rejects an optionLink to this section

If a provider rejects a setting, for example a thinking mode the model doesn't support, Empryo retries the request with fewer options instead of failing.

Retries when you're rate-limitedLink to this section

When a provider returns errors like 429 (too many requests), 529 or 503, or a response stalls, Empryo waits and tries again. If you hit limits often, raise the retry settings:

json
{
  "retry": {
    "maxTransientRetries": 5,
    "baseDelayMs": 3000
  }
}

The wait roughly doubles after each attempt: with a 3-second base, that's about 3s, 6s, 12s, 24s, then 48s.

KeyDefaultRangeWhat it controls
maxTransientRetries31 or moreRetries for errors like 429, 529, 503, timeouts and dropped connections
maxStallRetries31 or moreRetries when a response stops arriving
baseDelayMs1000 in chat, 2000 for agents250 to 60000Wait before the first retry, in milliseconds
retryOnStatus[]HTTP statuses 400 to 599Extra statuses to retry like the errors above. [400] keeps a flaky router going when it answers 400 Provider returned error; a context-too-large 400 still compacts instead
shrinkOutputOn400falsetrue or falseA 400 that names the context window ("maximum context length") always retries once with room to spare and keeps that room for the model this session. On, a 400 with no reason ("Provider returned error") to a request whose max_tokens fills the window to the edge gets the same retry. For strict routes such as MiniMax through OpenRouter

Settings and /retry offer 1 to 10 retries and a base wait up to 10 seconds. For more, edit the config or ask the agent to change the setting.

The older maxAttempts key still works and sets both retry counts.

Stream helper requestsLink to this section

Some providers throttle non-streaming requests more heavily than streaming requests. If helpers hit rate limits while main chat works, enable internal streaming for that provider. It works with any provider: built-in API-key providers, subscriptions, gateways, and custom providers from providers. Off by default.

Select a chat model from the provider you want to configure, then:

  • Terminal: open /provider-settings, choose General, and toggle Stream helper requests.
  • Desktop: open Settings → Provider Options → Shared, and toggle Stream helper requests. Search settings for "helper streaming" to find it.

The row names the current provider. It always writes a global setting, even if the panel scope is Project. It applies to the next helper request, including helpers using other models from that provider. Switching it off keeps other providers' choices.

Helpers consume the stream internally, then return the finished report as before. Main chat, tool execution and result formatting stay unchanged. This applies to dispatched helpers and their recovery attempts, not every background model call. It does not bypass shared quotas or guarantee fewer rate limits.

The global config key is a list of provider ids, not model ids or names. The id is the part of the model id before the first /: openrouter/qwen/qwen3.8-max belongs to openrouter, and a custom provider named my-proxy is my-proxy. empryo --list-providers prints every id.

json
{
  "subagentStreamProviders": ["openrouter", "my-proxy"]
}

You can also ask Empryo to enable helper streaming for a provider. The agent uses the settings tool with the subagentStreamProviders key and global scope. Project config cannot override it. An empty list disables the opt-in.

For a one-off headless run, override the list with a comma-separated environment value:

sh
EMPRYO_SUBAGENT_STREAM_PROVIDERS=openrouter,my-proxy empryo --headless "Check this project"

The environment list replaces the saved list. An explicitly empty value disables it for that process:

sh
EMPRYO_SUBAGENT_STREAM_PROVIDERS= empryo --headless "Check this project"

Remove the environment variable to use the saved setting again. If the toggle has no effect, check the environment of the process running Empryo.

Speed, service tier and tool callsLink to this section

These live under performance in config. Each command shows its current value when you run it alone.

FieldCommandWhat it does
speed/speedfast turns on Anthropic fast mode (up to 2.5x faster output) on Claude Opus 5.5, Opus 5 and Opus 4.8, through the Claude API, OpenRouter, LLM Gateway and Vercel AI Gateway; other models never receive it. Fast requests cost twice the standard rate. Every request (chat, agents, reviews, advisor, compaction, naming) is billed at the speed the response reports, so a gateway that falls back to standard speed is billed at standard. Switching speed starts a new prompt cache. off (default) and standard leave it off.
serviceTier/tierOpenAI service tier: auto, default, flex, priority or ultrafast. off (default) sends none.
openaiVerbosityHow long OpenAI answers are: low, medium or high. off (default) leaves it to the model.
sendReasoning/sendreasoningSend the model's reasoning back with the next request. Off by default.
toolStreaming/toolstreamStream tool-call arguments while the model writes them. On by default.
disableParallelToolUse/seqtoolsOne tool call at a time instead of several at once. Off by default.
codexWebsocketSend ChatGPT subscription requests over a websocket: auto (default), on or off.
requestCompressionCompress model requests of 1 KB or more with zstd, or gzip where the server only takes gzip (Anthropic). Bodies get about 4x smaller; a server that refuses gets the plain body and is remembered. On by default; false or EMPRYO_REQUEST_COMPRESSION=off turns it off.

/thinking and /budget set the thinking mode and budget from the chat in the same way. For Anthropic's context options, /cleartools and /clearthinking set clearToolUses and clearThinking.

NextLink to this section

The same settings panel also has the four provider tools: computer use, code execution, the Anthropic text editor and provider-side search. Each row shows whether the tool is available on the model you've selected.