Configuration sources

Gizzi Code reads configuration from three sources, in order of precedence:
  1. Command-line flags — highest priority
  2. Environment variables — e.g. ALLTERNIT_API_KEY
  3. config.toml — ~/.config/gizzi-code/config.toml

When a change takes effect

A settings change saved while Gizzi is running (from the app, or PATCH /config/global) reloads each open project with the new settings. A project that is busy reloads when it is next idle. Busy means an agent turn is running, or a question is waiting for your answer. A running agent is not stopped, and a waiting question stays open. A project that stays busy for 2 hours reloads anyway.

config.toml reference

Named profiles

gizzi config profile manages named permission profiles that bundle approval rules. Profiles are merged into the active permission set on startup.

Config folder and gizzi.json

Gizzi keeps its files in ~/.config/gizzi-code/. Provider and model settings are in ~/.config/gizzi-code/gizzi.json. A gizzi.jsonc file also works. Before the rename, files were in ~/.config/gizzi. Gizzi copies gizzi.json, gizzi.jsonc, preferences.json, and theme files from that folder to the new folder once. It never overwrites a file that exists in the new folder. It never deletes the old folder. After the copy, Gizzi reads only the new folder. Edit the files in ~/.config/gizzi-code/.

Local providers

Add a server on this computer to gizzi.json as a provider with a baseURL on localhost or 127.0.0.1. Gizzi asks the server for its models. The picker shows only the models the server lists. If the server does not answer in 1 second, the picker and gizzi models show one “offline” row for it. The row names the config file and tells you what to fix. Start the server, or correct the baseURL, then open the picker again. See Models and providers.

Models for each job

Which providers the /model picker and gizzi models offer, how CLI brains such as claude-cli run in the TUI, and what each failure message means are in Models and providers. How Gizzi chooses the default model, the model, model_auto and small_model keys, and gizzi debug model are in Default model. Pick a model per job in models.jobs (project config.json), or in the Allternit app: open the model pill in a Code session and choose Models for each job… (also in Settings → Gizzi Code). The sheet lists Explorers, Coders, Reviewer, Goal escalation and Summarizer, each with Same as chat to follow the session’s model; Done saves for the active project. A job left out follows the session’s model. Values are provider/model ids, the same as the top-level model setting.

Subagents

gizzi ships 11 built-in subagent types. The full list, and when an agent uses one instead of a skill, is in Subagents. Each type has a model class: A subagent’s model comes from, in order: its own model, the matching models.jobs entry, then its class. A type with no class uses small. If the class has no model on the provider, the parent’s model is used. Agent files (.gizzi/agents/*.md) accept model: small, model: standard, model: deep and model: inherit, plus title and face (a character in the Office Professionals avatar pack). Your custom subagents from Settings → Subagents are written to ~/.gizzi/agents/allternit/ when gizzi starts, and every ten minutes after. They load at the next config reload. A file whose subagent you deleted is removed. The Claude Code brain gets the subagents with --agents (Small runs on Haiku, Standard on Sonnet, Deep on Opus). The Codex brain gets them as ~/.codex/agents/allternit-<id>.toml files.

Goal rounds

While a /goal runs, each round ends with the project’s checks and a review: goal.checks when set (a list of commands), else the typecheck and test scripts in package.json, else cargo check for Rust. Failures and the reviewer’s findings go into the next round. Turn off the review with "goal": { "review": false }, or the checks with "goal": { "checks": [] }. Reviewer tokens are not counted against the goal’s token budget.

Environment variables

Startup header

The TUI opens with a box: the Gizzi mascot, the GIZZI CODE wordmark and version, a /help hint, and the directory, session and model.
  • Image terminals (iTerm2, WezTerm, Kitty, Ghostty) show the real mascot image, 8 rows tall. Inside tmux the image needs set -g allow-passthrough on and an iTerm2 or WezTerm window; otherwise tmux gets the pixel mascot.
  • Other terminals (Apple Terminal, tmux, Linux consoles) show the mascot in pixel blocks. Its beacon pulses and its eyes blink about every 4 seconds until you press a key or a turn starts. It stays still with reduced motion (prefersReducedMotion in ~/.gizzi/settings.json, or GIZZI_REDUCED_MOTION=1), in CI, with NO_COLOR, and when the output is not a terminal.
  • Small terminals (under 60 columns or 20 rows) get a 3-row mascot and a plain “Gizzi Code” title. Under 36 columns the mascot is left out.
To choose the mascot yourself, set headerArt in ~/.gizzi/settings.json or GIZZI_HEADER_ART (the variable wins): auto (default), image, blocks or none. GIZZI_INLINE_IMAGES=iterm, kitty or 0 picks or turns off the image protocol for every inline image, including the pet.

File permissions

The config.toml file is created with 0o600 permissions when auth profiles containing secrets are written.