The config moved to ~/.splinter/splinter.conf - next to the sessions, where the state of this thing already lives - and every *.conf in the directory named after it is read after it, in name order. A later file overrides an earlier one, an unknown key is still fatal, and the error now names the file it came from. plugins/ring is the exit ring: several ways to reach a model, walked in order when one is rate limited. exit = go | OpenCode Go | endpoint=... | model=... exit = groq | Groq free tier | endpoint=... | model=... | key_env=GROQ_KEY exit = local | kontron, lokal | endpoint=... | model=... Only pressure moves the ring - 429, 5xx, 'rate limit', 'quota'. A dead host or a bad key stops the turn, because a ring that treats every failure as 'try the next one' hides real breakage behind a random provider. Two things had to be fixed underneath: sp_openai_transport kept its context in a static variable, so building several transports pointed them all at the last one (now one heap context per transport), and plugins had no way to read the config or the registry (sp_host_config, sp_host_registry). Measured against two fake providers: the first answers 429, the ring moves on and the second answers 'Antwort vom zweiten Ausgang.'; a dead port does not move it and the error stands.
85 lines
2.9 KiB
Markdown
85 lines
2.9 KiB
Markdown
# 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.
|
|
|
|
## Drop-ins
|
|
|
|
Next to the config file, a directory with the same name plus `.d` is read after
|
|
it, every `*.conf` in name order:
|
|
|
|
```
|
|
~/.splinter/splinter.conf
|
|
~/.splinter/splinter.conf.d/10-local.conf
|
|
~/.splinter/splinter.conf.d/20-delegates.conf
|
|
```
|
|
|
|
A later file overrides an earlier one, and an unknown key is still an error -
|
|
now with the file it came from. Proven in `test_config`.
|