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.
This commit is contained in:
lotherk committed 2026-11-19 10:10:29 +00:00
1 parent e0825c04b7
commit 2581885e67
1 file changed
+49
+49
View File
@@ -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-<time>-<pid>`) |
| `--steps N` | tool rounds per turn (default 150) |
| `--max-bytes N` | request budget in bytes, 0 = no limit |
| `--autonomous` | run mutating tools without asking |
| `--no-stream` | wait for the whole reply instead of printing it as it arrives |
| `--no-stdin` | ignore data on standard input |
| `--choose TEXT`, `--delegate ID` | print which delegate fits TEXT; run that delegate with `-p TEXT` and print its observation |
| `--daemon` | answer on Telegram until SIGINT |
| `--interview` | let the model interview you; writes `USER.txt` |
| `--mcp-server-listen IP`, `--mcp-listen-port N` | serve MCP with this registry's tools (port 8098; beyond loopback it needs `SPLINTER_MCP_TOKEN`) |
| `--a2a-server-listen IP`, `--a2a-listen-port N` | serve A2A (JSON-RPC, agent card; port 8099; beyond loopback it needs `SPLINTER_A2A_SERVER_TOKEN`) |
| `--openai-listen IP`, `--openai-listen-port N` | serve `/v1/chat/completions` with the local `gw_` tools (port 8097) |
| `--ack ID yes|no`, `--ack-list` | answer a pending approval request, or list them (the files under `~/.splinter/ack`; see `docs/GATEWAY.md`) |
| `-V, --version`, `-h, --help` | version and this text |
`--ack`, `--ack-list` and `--live` are read by the parser but missing from the
`--help` text (src/main.c:283, :338-352); `--live` is also never used after it is
set — the command line of this table, `--help` and the manual page are the
reference.
## What it does
`splinter -p "list the C files" --endpoint http://127.0.0.1:8080/turn` sends a