Configuration
gest uses hierarchical TOML configuration files that are merged together at runtime. Settings closer to your working directory take precedence over global defaults, giving you fine-grained control per project.
Config file locations
gest searches for configuration in two layers: a global config and project-level configs.
Global config
The global config lives at your platform's config home:
| Platform | Path |
|---|---|
| Linux | ~/.config/gest/config.toml |
| macOS | ~/Library/Application Support/gest/config.toml |
You can override this location with the GEST_CONFIG environment variable.
Project config
Within each directory from the filesystem root down to your working directory, gest checks for project config files in the following order (first match wins):
.config/gest.toml.gest/config.toml.gest.toml
When multiple config files are found at different directory levels, they are deep-merged with files closer to the working directory taking precedence.
Data storage: global vs local
gest stores its data (tasks, artifacts, iterations) in a data directory. The data directory is resolved with this precedence:
$GEST_DATA_DIRenvironment variable (must be an absolute path)storage.data_dirin config (must be an absolute path)- A
.gest/orgest/directory found by walking up from the working directory - The platform's global data home:
~/.local/share/gest/<hash>/
Global store (default)
By default, gest init sets up the global store. Data is kept under ~/.local/share/gest/ in a subdirectory derived from a hash of your project path. This keeps your project directory clean and works well for personal use.
# Initialize with the global store (default)
gest initLocal store
Use gest init --local to create a .gest/ directory inside your project. This is useful when you want to commit gest data alongside your code or share it with collaborators.
# Initialize with a local .gest/ directory
gest init --localConfiguration settings
[storage]
| Key | Type | Default | Description |
|---|---|---|---|
data_dir | string (absolute path) | (auto-resolved) | Override the data directory. Must be an absolute path to an existing directory. |
[log]
| Key | Type | Default | Description |
|---|---|---|---|
level | string | "warn" | Log level filter. Valid values: "error", "warn", "info", "debug", "trace". |
[colors]
The [colors] section lets you override semantic color tokens used in the UI. Each key is a dot-delimited token name (e.g. "log.error"), and the value is either a color string or a table with detailed style options.
Simple form -- set the foreground color with a string:
[colors]
"log.error" = "#D23434"
"log.warn" = "yellow"Table form -- control foreground, background, and text modifiers:
[colors.emphasis]
fg = "#9448C7"
bold = trueAvailable fields in the table form:
| Field | Type | Default | Description |
|---|---|---|---|
fg | string | (none) | Foreground color (named color or #RRGGBB hex). |
bg | string | (none) | Background color (named color or #RRGGBB hex). |
bold | boolean | false | Enable bold text. |
dim | boolean | false | Enable dim/faint text. |
italic | boolean | false | Enable italic text. |
underline | boolean | false | Enable underlined text. |
Supported named colors: black, red, green, yellow, blue, magenta, cyan, white, and their bright variants (e.g. bright cyan).
Example config file
[storage]
data_dir = "/home/user/projects/myapp/.gest"
[log]
level = "info"
[colors]
"log.error" = "#D23434"
"log.warn" = "yellow"
[colors.emphasis]
fg = "#9448C7"
bold = trueEnvironment variables
| Variable | Description |
|---|---|
GEST_CONFIG | Override the path to the global config file. |
GEST_DATA_DIR | Override the data storage directory (must be an absolute path). |
GEST_LOG_LEVEL | Override the log level filter (e.g. debug, trace). Takes precedence over the config file. |
VISUAL | Preferred editor for interactive editing (checked before EDITOR). |
EDITOR | Fallback editor for interactive editing. |
Managing config from the CLI
gest provides subcommands to inspect and modify configuration without editing files by hand.
gest config show
Displays the merged configuration and the config file sources that were discovered:
gest config showgest config get <KEY>
Retrieve a single value by its dot-delimited key:
gest config get storage.data_dir
gest config get log.levelgest config set <KEY> <VALUE>
Persist a value to the project config file (or use --global for the global config):
# Set in the project config
gest config set log.level debug
# Set in the global config
gest config set --global log.level warn