Not gettext: this harness is meant to start in ten years, and gettext needs msgfmt at build time and .mo files at runtime. So catalogues are 'key = text' files in share/locale, read once at startup. - language from the config key LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=, else SPLINTER_LOCALE, LC_ALL, LC_MESSAGES, LANG; regional variants are stripped (de_DE.UTF-8 -> de); - catalogue search: $SPLINTER_LOCALE_DIR, the executable's own directory (so works from any cwd), the source tree, /usr/local/share; - a missing key falls back to English, and a key that exists nowhere is shown as itself - an empty label hides a bug, a visible key does not; - UI labels, roles, sidebar headings, status line, command errors and the shell escape all go through sp_t(); plugins can translate theirs the same way. test_i18n loads both catalogues from share/locale, checks lookups, the fallback chain, printf placeholders, and that de.msg covers every key en.msg has - a translation that silently misses half the UI is worse than none. Seventeen test binaries green.
2.5 KiB
Configuration
Splinter reads one file, so that splinter alone is enough to start working.
$XDG_CONFIG_HOME/splinter/config (or ~/.config/splinter/config)
SPLINTER_CONFIG=/path overrides the location, --config PATH does the same
for one run, --no-config ignores the file entirely, and --init-config
writes a commented example.
Format: one key = value per line, # starts a comment, blank lines are
ignored. Not JSON, on purpose — this file gets edited by hand, and a missing
comma must not be the reason the harness will not start.
Not in the file: the goal
The session goal is set at runtime with /goal <text> — in the TUI, or in a
one-shot run (splinter -p "/goal ship the config"). It belongs to the
conversation in front of you, not to a file that outlives it.
Precedence
Command line, then the file, then the built-in default. An unknown key is an error with its line number: a typo that is silently ignored is a config that lies about what it does.
Keys
| key | meaning |
|---|---|
endpoint |
OpenAI-compatible URL, e.g. http://127.0.0.1:8080/v1/chat/completions |
model |
model name the endpoint expects |
api_key_env |
name of the env var holding the key (default SPLINTER_API_KEY) |
transport |
a transport a plugin provides, e.g. cli |
cli_cmd |
command for the cli transport, e.g. claude -p |
plugin |
a plugin to load, one line each; absolute paths survive a cd |
theme |
CDE palette name (splinter --list-themes) |
locale |
language code (de, en); catalogues live in share/locale |
autonomous |
1 runs mutating/destructive tools without asking |
steps |
tool rounds per turn (default 8) |
max_bytes |
conversation budget in bytes, 0 = no limit |
session_dir |
where session logs go (default ~/.splinter) |
system_prompt |
sent once at the start of a conversation |
Example: local model
endpoint = http://kontron.local:8080/v1/chat/completions
model = /models/unsloth/Qwen3.6-35B-A3B-MTP-GGUF/Qwen3.6-35B-A3B-UD-Q8_K_XL.gguf
theme = Delphinium
autonomous = 1
plugin = /home/lotherk/src/splinter/plugins/lcm/lcm.so
plugin = /home/lotherk/src/splinter/plugins/cps/cps.so
plugin = /home/lotherk/src/splinter/plugins/clock/clock.so
session_dir = /home/lotherk/.splinter
Example: Claude Code as the model
transport = cli
cli_cmd = claude -p
plugin = /home/lotherk/src/splinter/plugins/cli/cli.so
theme = Delphinium
With both endpoint and transport set, transport wins — it is the more
specific instruction.