From 2581885e6787338fe1552594fae44770a73808d6 Mon Sep 17 00:00:00 2001 From: lotherk Date: Thu, 19 Nov 2026 10:10:29 +0000 Subject: [PATCH] README: command line reference, the repository URL The README listed eight invocations and no option reference; a table now covers every option the parser reads (src/main.c:279-360, usage() at :44-130), and names the three that --help does not print: --ack and --ack-list (approval files under ~/.splinter/ack, src/backend/ack.c) and --live, which is parsed and then never used. --- README.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/README.md b/README.md index 9f26c8d..d3bf6f4 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ 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 install PREFIX=$HOME/.local # binaries, library, plugins @@ -26,6 +28,53 @@ prompt below it. The conversation starts clear at the top and only ever grows. 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 | +| `--session DIR`, `--session-id ID` | session directory (default `~/.splinter`) and id (default `sess-