Skip to content

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:

PlatformPath
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):

  1. .config/gest.toml
  2. .gest/config.toml
  3. .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:

  1. $GEST_DATA_DIR environment variable (must be an absolute path)
  2. storage.data_dir in config (must be an absolute path)
  3. A .gest/ or gest/ directory found by walking up from the working directory
  4. 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.

sh
# Initialize with the global store (default)
gest init

Local 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.

sh
# Initialize with a local .gest/ directory
gest init --local

Configuration settings

[storage]

KeyTypeDefaultDescription
data_dirstring (absolute path)(auto-resolved)Override the data directory. Must be an absolute path to an existing directory.

[log]

KeyTypeDefaultDescription
levelstring"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:

toml
[colors]
"log.error" = "#D23434"
"log.warn" = "yellow"

Table form -- control foreground, background, and text modifiers:

toml
[colors.emphasis]
fg = "#9448C7"
bold = true

Available fields in the table form:

FieldTypeDefaultDescription
fgstring(none)Foreground color (named color or #RRGGBB hex).
bgstring(none)Background color (named color or #RRGGBB hex).
boldbooleanfalseEnable bold text.
dimbooleanfalseEnable dim/faint text.
italicbooleanfalseEnable italic text.
underlinebooleanfalseEnable underlined text.

Supported named colors: black, red, green, yellow, blue, magenta, cyan, white, and their bright variants (e.g. bright cyan).

Example config file

toml
[storage]
data_dir = "/home/user/projects/myapp/.gest"

[log]
level = "info"

[colors]
"log.error" = "#D23434"
"log.warn" = "yellow"

[colors.emphasis]
fg = "#9448C7"
bold = true

Environment variables

VariableDescription
GEST_CONFIGOverride the path to the global config file.
GEST_DATA_DIROverride the data storage directory (must be an absolute path).
GEST_LOG_LEVELOverride the log level filter (e.g. debug, trace). Takes precedence over the config file.
VISUALPreferred editor for interactive editing (checked before EDITOR).
EDITORFallback 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:

sh
gest config show

gest config get <KEY>

Retrieve a single value by its dot-delimited key:

sh
gest config get storage.data_dir
gest config get log.level

gest config set <KEY> <VALUE>

Persist a value to the project config file (or use --global for the global config):

sh
# Set in the project config
gest config set log.level debug

# Set in the global config
gest config set --global log.level warn

Released under the MIT License.