GaleDocs

Tools

Models and routing

Role defaults, Auto ladder, MODELS.md task routing, generate_image, generate_diagram, specialty profiles, and hidden models.

Project models

A MODELS.md file at the open folder’s root, and an optional ~/.gale/MODELS.md, let Auto pick a model for named tasks. Gale does not add this file to the system prompt.

Precedence is the composer or role pin, then the workspace file, then the user file, then the Auto ladder (including the routing preference and history bump). A MODELS.md match is not taught back into the ladder.

  • Only lines like “- typo, rename, format → glm-5-3” are tasks. -> and : work as separators. The model id is the first token after the separator. If a line has both a colon and an arrow, the arrow is the separator.
  • Triggers are comma-separated. Matching is case-insensitive. A single word matches on a word boundary. A phrase matches as a phrase. The first matching line wins.
  • Each file is capped at 12,000 characters and 40 task lines. Workspace lines are checked before ~/.gale/MODELS.md.
  • A model id that is not in the catalog is skipped. Image turns skip a match whose model cannot see images, then use the vision ladder.
  • Settings → Models → Auto routing → Project models creates the workspace file when it is missing, or opens it in Gale’s editor. Create does not overwrite.

Project models

actionGale
Default
no file
Location
Settings → Workspaces → Models
Storage
workspace MODELS.md and ~/.gale/MODELS.md

When Auto is selected, Gale matches the prompt against task lines in the open folder’s MODELS.md, then ~/.gale/MODELS.md. The first match picks that model. A composer or role pin wins. Unmatched prompts use the Auto ladder. A MODELS.md match is not used to bump the ladder later. Create MODELS.md writes a template at the folder root and does not overwrite an existing file. Create and Open pin the file in Gale’s editor. Task lines look like “- typo, rename, format → glm-5-3”. -> and : are also separators. The model id is the first token after the separator. Headings and prose are ignored. Triggers are comma-separated and case-insensitive. A single word matches on a word boundary. A phrase matches as a phrase. Each file is capped at 12,000 characters and 40 task lines. An unknown model id is skipped. Image turns skip a match that cannot see images.

Cheaper model nudge

One central check compares published model recommendations against the defaults on this Mac. When a recommended model is meaningfully cheaper than a current default and at least as capable, Gale shows a single offer above the chat with the savings and what is kept.

Swap applies the recommendation to every listed slot at once. Pick slots opens Settings → Models, where each Small model and role row carries its own Swap button. Later snoozes that model for 7 days. Don’t ask again dismisses that model. Nothing swaps without a click, and per-chat composer pins are never rewritten.

Cheaper model nudge

actionGale
Default
on
Location
Settings → Models
Storage
published model recommendations; preferences.modelSwapDismissedIds, preferences.modelSwapSnoozedUntilMs, preferences.modelSwapLastSeenHash

When a published recommendation finds a model that is cheaper than a current default and at least as capable (same tier or better, no lost reasoning or vision, still in the catalog), Gale shows one offer with Swap, Pick slots, Later, and Don’t ask again. Swap updates the confirmed slots only. Later snoozes that model for 7 days. Don’t ask again dismisses that model. Per-slot Swap buttons also sit on the Small model and role rows.

Catalog

Planning / Building / Reviewing pickers set role defaults. Auto uses the Build model. Review is also the model for a Then review chat after Build. Default agent mode chooses Auto, Build, Plan, or Review for new chats. Unset means Auto. generate_image uses the image model (default gemini-3.1-flash-image-preview); a call with modelScope diagram uses the Diagram image model instead, falling back to the image default. generate_diagram follows Diagram format: PNG renders designed HTML cards locally, Mermaid stays in the reply, and Excalidraw writes an .excalidraw file. PNG is the default. Specialty profiles live here. Context caps, MCP tool schemas, and tool rounds live under Settings → Cost.

Recently added sits above the catalog search. It lists up to eight models this Mac first saw after that payer’s catalog loaded, newest first, for 30 days. The first successful load is a baseline and shows none. Favoriting a row puts it in the composer picker.

Default model

stringGateway
Default
glm-5-3
Location
Settings → Models
Storage
preferences.modelId

Model new chats start on. Used when a role preset is empty; a Plan, Build, or Review role model still wins when set. Routed through bring-your-own keys or a private gateway when this Mac can reach one.

Default reasoning effort

enumGale
Default
Medium (default)
Location
Settings → Models → Defaults
Storage
preferences.defaultReasoningEffort
Values
· auto · off · low · medium · high · max

Reasoning effort for new chats, filtered to the selected default model's supported levels. Medium (default) starts new chats at Medium and follows your last pre-chat composer pick; Auto picks a level per prompt; a fixed level applies to every new chat. Switching models clamps unsupported levels to the nearest supported level, and a Plan, Build, or Review role effort still wins when set. Existing chats keep the level they last used.

Default agent mode

enumGale
Default
auto
Location
Settings → Models
Storage
preferences.defaultAgent
Values
auto · build · plan · ask · review

Mode for new chats. Auto is the default, including when this is unset. Auto edits immediately, asks when one decision is open, and writes a short plan only when a later prompt needs a contract. Build always edits. Plan, Ask, and Review stay explicit pins.

Small model

stringGateway
Default
Default
Location
Settings → Models
Storage
preferences.smallModelId

Provider/model used for titles and lightweight tasks.

Stall fallback model

stringGateway
Default
None
Location
Settings → Models
Storage
preferences.stallFallbackModelId

When a gateway model stalls (accepts the request, then streams no data), retry the stalled round once on this model. None keeps recovery manual: the error card offers a one-click switch to a suggested model.

Image model

stringGateway
Default
gemini-3.1-flash-image-preview
Location
Settings → Models → Images & Diagrams
Storage
preferences.imageModelId

Default model for generate_image. The dropdown discovers image models from the models.dev feed, the private gateway, and a personal OpenAI key. Gemini-class models use the private gateway when reachable; GPT Image and chatgpt-image models use a personal OpenAI key. generate_diagram renders locally and does not use this model.

Diagram image model

stringGateway
Default
empty
Location
Settings → Models → Images & Diagrams
Storage
preferences.diagramImageModelId

Model for doc-hero infographics when a generate_image call passes modelScope diagram. Empty follows the Image generation default. The dropdown lists the discovered image catalog. generate_diagram renders locally and does not use this model.

Image style

stringGale
Default
None
Location
Settings → Models → Images & Diagrams
Storage
preferences.imageStyleId

Default poster style for generate_image, inspired by Poster Prompts (john.hartnup.uk). Also pickable with thumbnails in Settings → Tools → Styling. A message that names another style wins for that turn.

Custom image style

stringGale
Default
empty
Location
Settings → Models → Images & Diagrams
Storage
preferences.imageStyleCustom

Free-text style direction appended to generate_image prompts. Wins over the image style picker when set.

Diagram style

stringGale
Default
Automatic
Location
Settings → Models → Images & Diagrams
Storage
preferences.diagramStyleId

Default styling for generate_diagram. Base themes work for every diagram kind; poster crossovers only affect HTML figures. Also pickable with thumbnails in Settings → Tools → Styling. A message that names another style wins for that turn.

Diagram format

enumGale
Default
PNG
Location
Settings → Models → Images & Diagrams
Storage
preferences.diagramFormat
Values
png · mermaid · excalidraw

Default format for architecture and flow diagrams. PNG is a designed figure. Mermaid is a fenced diagram in the reply. Excalidraw writes an .excalidraw file. A message that names another format wins for that turn.

Save generated images to

stringGale
Default
~/Pictures/clarved
Location
Settings → Models → Images & Diagrams
Storage
preferences.imageOutputDir

generate_image and generate_diagram write here unless output_path is in the open folder. Leave empty to use ~/Pictures/clarved.

Planning

jsonGateway
Default
empty role
Location
Settings → Models → Per-mode overrides
Storage
preferences.plan

Provider, model, and effort used when the composer is in Plan.

Building

jsonGateway
Default
empty role
Location
Settings → Models → Per-mode overrides
Storage
preferences.build

Provider, model, and effort used when the composer is in Build.

Reviewing

jsonGateway
Default
empty role
Location
Settings → Models → Per-mode overrides
Storage
preferences.review

Provider, model, and effort used when the composer is in Review, and for a Then review chat after Build. Leave blank to use the default model.

Doc

jsonGateway
Default
empty role
Location
Settings → Models → Per-mode overrides
Storage
preferences.doc

Provider, model, and effort used when the composer is in Doc mode — documentation and prose turns. Leave blank to use the default model.

Slides

jsonGateway
Default
empty role
Location
Settings → Models → Per-mode overrides
Storage
preferences.slides

Provider, model, and effort used when the composer is in Slides mode — slide decks and presentation turns. Leave blank to use the default model.

Review by default

booleanGale
Default
false
Location
Settings → Models → Per-mode overrides
Storage
preferences.autoReviewFinishedBuild

Then review starts on for Build chats and the Plan popup. Turning the switch off for one build does not change this. Off by default because a review is an extra model call.

Build after plan by default

booleanGale
Default
false
Location
Settings → Models → Auto
Storage
preferences.autoBuildAfterPlan

Then build starts on under the Plan and Auto composers, spawning a Build child chat automatically once a plan finishes without open questions. Turning the switch off for one chat does not change this.

Fast Auto

jsonGateway
Default
empty role
Location
Settings → Models → Auto
Storage
preferences.efficient

Fast slot in 2-slot Auto routing: quick git/shell ops, lookups, Plan→Build execution children, and strictly read-only recon subagents.

Strong Auto

jsonGateway
Default
empty role
Location
Settings → Models → Auto
Storage
preferences.standard

Strong slot in 2-slot Auto routing: planning, review, complex or ambiguous first prompts, and mid-turn Fast→Strong spin escalations.

Frontier / Escalation override

jsonGateway
Default
empty role
Location
Settings → Models → Auto → Advanced
Storage
preferences.frontier

Optional override inside Advanced for pasted errors and spin escalations. Blank by default (falls back to Strong).

Auto Plan effort

enumGateway
Default
Composer
Location
Settings → Models → Auto → Advanced
Storage
preferences.autoPlanEffort
Values
Composer · Auto · Off · Low · Medium · High · Max

Reasoning level for Auto agent mode while a chat is still planning — before a plan is created and before any file changes. Composer follows the chat's thinking picker (including adaptive Auto reasoning). Empty levels keep the previous behavior (Build role effort, then the default effort, then Medium). A manual effort pick in the chat's composer wins over this setting.

Auto Build effort

enumGateway
Default
Composer
Location
Settings → Models → Auto → Advanced
Storage
preferences.autoBuildEffort
Values
Composer · Auto · Off · Low · Medium · High · Max

Reasoning level for Auto agent mode once building starts: the moment a plan is created mid-turn, and for every turn after a plan artifact or file change exists. Build children spawned from an Auto chat (Then build, plan-build jobs) use this level too. Empty levels keep the previous behavior.

Docs model

stringGateway
Default
Location
Settings → Models → Auto → Advanced
Storage
preferences.docsModelId

Model Auto uses for doc-writing turns — prompts about docs pages, README, changelogs, or publishing to Confluence and Google Docs. Checked after MODELS.md task rules and before Fast/Strong routing. Empty follows Auto.

Slides model

stringGateway
Default
Location
Settings → Models → Auto → Advanced
Storage
preferences.slidesModelId

Model Auto uses for slide-writing turns — prompts about slide decks, presentations, or .pptx files. Checked after MODELS.md task rules and before Fast/Strong routing. Empty follows Auto.

Routing bias

integerGateway
Default
3
Location
Settings → Models → Auto
Storage
preferences.autoRoutingPreference
Values
1 (Prefer Fast) · 3 (Balanced) · 5 (Prefer Strong)

3-stop bias control for 2-slot Auto routing (persisted as 1, 3, or 5; legacy 2/4 map cleanly). Prefer Fast (1) sends quick tasks, Plan→Build children, and borderline turns to Fast while keeping planning, review, and errors on Strong. Balanced (3) uses a hybrid starting-prompt classifier (instant rules plus a 600 ms small-model tiebreaker on ambiguous first turns) and cache-aware follow-up hysteresis. Prefer Strong (5) uses Fast only for clear quick operations and keeps planning, Build children, review, and complex turns on Strong.

Show routed model

booleanGale
Default
true
Location
Settings → Models → Auto routing
Storage
preferences.autoShowRoutedModel

Shows which model Auto picked for the turn.

Recently added

jsonGale
Default
{}
Location
Settings → Models → Catalog
Storage
preferences.catalogSightings

Local first-seen times for catalog ids on this Mac. Settings → Models → Catalog lists up to 8 models that appeared after the first successful load for that payer, newest first, for 30 days. The first load is a baseline and lists nothing. The gateway, Sail, and each personal provider keep separate baselines. Favorite and hide on a row use the same controls as the rest of the catalog.

Cheaper model nudge

actionGale
Default
on
Location
Settings → Models
Storage
published model recommendations; preferences.modelSwapDismissedIds, preferences.modelSwapSnoozedUntilMs, preferences.modelSwapLastSeenHash

When a published recommendation finds a model that is cheaper than a current default and at least as capable (same tier or better, no lost reasoning or vision, still in the catalog), Gale shows one offer with Swap, Pick slots, Later, and Don’t ask again. Swap updates the confirmed slots only. Later snoozes that model for 7 days. Don’t ask again dismisses that model. Per-slot Swap buttons also sit on the Small model and role rows.

Hidden models

jsonGale
Default
[]
Location
Settings → Models
Storage
preferences.hiddenModelKeys

Per-model visibility toggles. Hidden models stay out of pickers.

Specialty

enumGale
Default
general
Location
Composer / session
Storage
session specialty (general / ui / infra / perf / bug)
Values
general · ui · infra · perf · bug

Specialty profiles bias tools and the system prompt. While a chat is still General, Auto-detect specialty can switch it from a user message, and later turns keep that specialty. A pick in the composer More menu locks the chat.