# splinter Named after Master Splinter: the one who knows which tools exist, who may use them, and what happened — and trains the ones that do the fighting. A C99/POSIX agent harness with a curses interface: the conversation on three quarters, a sidebar on the last one that says which agent, provider, model and allowance you are on and where the tools will act, a status line above the prompt with the context gauge (`ctx used/max`, cache share, tok/s), and the prompt below it. The conversation starts clear at the top and only ever grows. Code: https://git.kropa.tech/hiddenbox/splinter make # libsplinter.so, the binaries, the plugins make check # the tests, no network, no model make check-asan # the same under ASan/UBSan, leaks included make check-tsan # the same under TSan: data races make install PREFIX=$HOME/.local # binaries, library, plugins splinter --init-config # writes ~/.splinter/splinter.conf splinter --doctor # does every provider answer? splinter # the chat; Tab switches build / plan splinter -m claude # a provider, a pool, provider/model splinter --model-list # everything -m takes splinter --serve # the engine on a socket, for a GUI splinter --attach # the same curses UI, as a client of it splinterctl --say "hallo" # the reference client for that socket splinter --openai-listen 127.0.0.1 # /v1 for another harness, gw_ tools The working day with several subscriptions (who analyses, who implements, what happens at a limit) is in `docs/WORKFLOW.md`. ## Command line `splinter --help` prints this list; `docs/splinter.1` is the manual page. Exactly one transport is required (`--endpoint`, `--script` or `--transport`); with none, splinter refuses to start rather than pretend it can talk to a model. | option | what it does | |---|---| | `-p, --prompt TEXT` | run one turn with TEXT and exit | | `--endpoint URL` | transport: an OpenAI-compatible chat endpoint (`--model` is then required) | | `--model NAME` | model name for `--endpoint` | | `-m, --select SEL` | a provider or pool of the config: `ID`, `ID/MODEL`, `POOL`, or a model name it serves | | `--agent NAME` | start as that agent profile (`build`, `plan`, or a file in `~/.splinter/agents`, `.agents/`); Tab switches in the chat | | `--agent-list` | list the agent profiles and exit | | `--doctor` | check every provider — key and reachability through its model list, never spending tokens | | `--model-list` | list what `-m` accepts (`--no-probe` skips asking each endpoint) | | `--api-key-env VAR` | read the API key from VAR (default `SPLINTER_API_KEY`; missing means no auth) | | `--script FILE` | transport: replay replies from FILE, one per line (no network) | | `--transport NAME` | use a transport a plugin provides (`cli`) | | `--kind NAME` | vendor shape of `--endpoint`: `openai` (default) or `anthropic` | | `--config PATH`, `--no-config` | this config file, or ignore the config entirely | | `--init-config` | write a commented example config and exit | | `--plugin PATH` | load a plugin (`.so`) before the first turn | | `--chat` | the interactive curses UI instead of one turn | | `--serve`, `--attach`, `--socket PATH` | serve the line protocol on a Unix socket, or be a client of it (default `~/.splinter/splinter.sock`) | | `--theme NAME`, `--list-themes` | UI theme (`Xresources` or a CDE palette such as `Default`, `Delphinium`, `MakroSlate`), and the names | | `--resume`, `-c, --continue` | load the session's history; continue the last session started in this directory | | `--claude`, `--opencode`, `--hermes`, `--from=NAME` | continue the newest session that tool ran in this directory (imports it on the first start) | | `--session DIR`, `--session-id ID` | session directory (default `~/.splinter`) and id (default `sess-