- plugins/tmux, plugins/planner and plugins/sysinfo are gone (plugin list,
Makefile rules, tests, docs). The config no longer loads them; the stale
.so files were removed from the install tree.
- plugins/tasks is plugins/processes: plugin name "processes", widget
"processes", tools process_start/process_list/process_result/process_kill.
The sidebar now lists only running work: a finished task keeps its output
in process_result but stops taking a row forever.
- the dead planner link in the delegate (link_plan_quota -> command "tasks")
is removed with the planner.
- tool call rows are no longer capitalised: "run ls -l", "read src/x.c" as
the model sent them, not "Run "/"Read ".
- tests updated (delegate panel expects no finished row, engine/UI expect the
lowercase call row, secrets/delegate use the processes plugin and tools).
- the user's config gets a Delegate/Scheduler section: the three providers
carry review/plan/docs tags and keep max_parallel=2; plugin scheduler stays
loaded so waiting jobs are retried.
make check: all tests passed.
The six-question form is gone. `splinter --interview` now opens the chat with an
interview system prompt: get to know the person, one question at a time, then
write a compact summary and end with INTERVIEW_COMPLETE.
- the marker is captured in the engine's turn thread and in the synchronous -p
path: the summary before it is written to ~/.splinter/USER.txt (0600), the
marker is stripped from the answer and the conversation, and a "interview
saved to USER.txt" note goes into the transcript. An installation from before
USER.txt keeps working: profile/<user>.md is the fallback until the first new
interview.
- the USER.txt text is appended to the system prompt of every later session
(plain "What you know about the user" block), including after /new and an
agent switch (it rides in base_prompt).
- --interview is a chat mode with the interview prompt and no agent profiles;
it needs a provider like any chat.
- Telegram: /interview swaps the system prompt, starts the conversation and
restores the normal prompt once the summary is captured. The initial turn and
every later reply are checked, so a model that summarizes immediately also
works.
- test_interview.sh now proves capture, marker-free USER.txt and the summary in
the next request; test_gateway drives /interview and the fake model answers
with the marker when the interview prompt is in the request.
- docs (README, PLUGINS) describe the new flow.
make check: all tests passed.
The memory tools talked to a mem0 server (memory_url/memory_key_env), one
bucket per unix user. It is gone: no memory_add, no memory_search, no mem0
client, no config keys, no test_memory.
- delete src/backend/memory.c and memory.h; the engine no longer registers the
tools; config loses memory_url/memory_key_env; SPLINTER_MEM_KEY leaves the
secret list; docs/CONFIG, ROADMAP and GATEWAY stop mentioning it.
- the unix identity helper stays, under its real name: sp_user_name() in
src/backend/user.c (profiles, interview and the Telegram gateway used it).
- tool list is now read/search/list/write/edit/run/skill_*/... plus the MCP
session tools; nothing about memory remains.
- test_mcpsession.sh: the client socket gets a 120 s read timeout, not the
5 s connect timeout (a turn under load answered too late and looked hung).
make check: all tests passed.
- plugins/self: what the session costs the machine - RSS, CPU, threads, fds
and io of the process itself from /proc/self/*, and the same (count, RSS,
CPU) for every process whose parent chain reaches it: run calls, MCP
children, delegates. Widget, /self and the session_usage tool; interval in
the plugin block (default 2 s).
- MCP server: the session tools. splinter_sessions, splinter_state,
splinter_models, splinter_agents, splinter_history, splinter_say,
splinter_open, splinter_model, splinter_agent, splinter_steer,
splinter_cancel, splinter_approve. Say starts a real turn and returns the
answer; a turn parked on an approval returns the question instead of
failing. Mutating tools obey --autonomous. `--daemon --mcp-server-listen`
runs the MCP server on a thread beside the Telegram daemon.
- the MCP server asks the engine for its registry on every call (a session
switch replaces it) and copies the tool name out of the parsed JSON before
freeing it (the first version compared a dangling pointer and answered
every session call with empty text).
- junction: "serving <endpoint>" - streaming answers carry no
X-Junction-Endpoint, so the plugin compares the route targets' ok counters
from /status between samples and names the one that grew, with its
last_ms. The header is still used when present (non-streaming). The
X-Junction-Endpoint of the plugin's own /v1/models probe remains a probe
fact in /junction only.
- transport: X-Junction-Endpoint is parsed from the response headers in both
the streaming and the non-streaming path and published through
sp_host_served_by(); sp_reply carries served_by.
- the curl rate guard (--speed-limit/--speed-time) is gone: it cut slow
router streams with "Less than 1 bytes/sec" even while keepalives arrived.
The overall -m timeout stays.
- focus: the sidebar shows "recap N, every M turns", and an applied recap
writes "recap applied (turn N, every M turns)" into the transcript (host
status messages are now drained during a turn; protocol clients get them
as entry events too). The initial goal announcement says so as well.
- tests: test_self, test_mcpsession.sh (real socket), test_focus status
messages, test_junction serving placeholder.
make check: all tests passed.
Two reasons the sidebar was useless: it named the route of the *configured*
provider model, not of the model the run was switched to (/model
deepseek-v4.1-flash kept showing qwen3.6-35b's kontron/kompute route), and it
repeated server counters (MCP servers, queue, requests, probe headers) that
have nothing to do with the conversation.
- sp_host_model()/sp_host_set_model(): the engine publishes the model it is
actually on; the engine sets it at plugin load, after /model and on every
state read. The junction plugin prefers it over the config.
- the widget is now only the model, the route from the matching rule (one
target per row, "!" when that target's probe fails) and "N/M up":
deepseek-v4.1-flash / route opencode-go0 / opencode-go1 / ... / 4/4 up.
Uptime, MCP servers, queue, requests, endpoint p95 and every response
header stay in /junction.
- widget text may use up to 8 rows (a four-target route plus model and
health is seven).
- test_junction: the widget must be exactly "m\nroute a\nb!\n1/2 up" and
must not repeat mcp/models/probe stats.
make check: all tests passed.
The session showed the last error as "retry 1/3 in 5000ms: openai: stream
ended with no answer" with nothing on screen: the turn looked hung for the
five seconds, then either answered or failed. The retry itself was fine; the
operator could not see it.
- sp_agent_config gains note()/note_ctx: a status line for the operator, ""
clears it. The engine turns it into SP_EV_NOTE, so curses shows it in the
steer line and protocol clients get the note event.
- agent_request() emits "retrying in N s: <reason>" before sleeping and clears
it when the attempt answers or the retries are exhausted.
- i18n ui.retry_note in en/de/pt_BR; README says the wait is visible.
- test_agent: the note callback must have seen "retrying in" on the recovery
case.
make check: all tests passed.
The widget printed "endpoint=opencode-go" because that is the
X-Junction-Endpoint header of the plugin's own /v1/models probe, which
junction routes there by a path rule. It says nothing about where the
conversation goes, and the operator's qwen3.6-35b is routed to kontron and
kompute0..2 - so the line was wrong, not just imprecise.
- read the active model from the config (sp_usage_active -> provider model)
and match /status' rules against it: exact model > glob > catch-all, rules
with a path are another route. The result is the route line:
"route kontron! kompute0 kompute1 kompute2" ("!" = that target's own health
probe is not ok).
- /junction shows model, route and "route health: N/M up, down: ..."; the
/v1/models header block is marked as the probe's route, not the session's.
- the header stats label the probe values (probe-ms=, probe-cache=) and no
longer print the endpoint header as if it were the route.
- side_text(): wrap one line at a time and let a continuation use up to three
rows; passing a multi-line string to one mvwaddnstr() double-counted rows
and cut "route ... kompute1 kompute2" in half.
- test_junction: fake /status gains rules and per-endpoint probe_ok; the test
sets the run's model ("m") and expects "route a b!", "probe-ms=12",
"route health: 1/2 up, down: b" and no "endpoint=" in the stats.
make check: all tests passed.
- /model in the curses chat opens a picker: Up/Down, typing filters by
provider/model, Enter takes the selector, Esc cancels. The list comes from
the backend (sp_engine_models -> sp_provider_choices), not from a text
scrape; the socket has a `models` command, so --attach gets the same picker,
and the switch is still the ordinary "/model <selector>" input.
- steering: Enter during a turn now says so twice - a "steering queued: ..."
row in the transcript and "Ns steering queued (n) steer>" in the input line
until the step boundary picks it up; a rejected steer is an error entry.
- input lag: typing during a turn is echoed immediately (the input line is
redrawn per key, not at the next 100 ms frame), and the history is only
repainted when its generation changed, so a streaming turn no longer
repaints the whole transcript on every clock tick.
- sidebar: the first line of every widget is bold, like its heading, so a
plugin block has a title instead of a wall of small print.
- junction plugin: keeps every response header from /mcp, the status route and
/v1/models; the widget shows the X-Junction-* routing stats, /junction lists
all headers per source. It reads the status aliases (/status, /v1/status,
/queue, /v1/queue) and remembers the one that answered, parses queue,
endpoint p95/exhausted counts, and counts the models (/v1/models, probed on
its own slower interval because it goes upstream).
- SSE: blank lines no longer abort a pretty-printed object, a truncated tail
is dropped instead of failing the turn ("incomplete data line" is gone), and
a [DONE] with a fragment clears it.
- retries: a request that fails before anything streamed (connection, missing
status, 5xx) is tried three more times, 5 s apart; 4xx is not retried, and
after the first chunk the error is reported instead of printing the answer
twice. Ctrl-C ends a wait at once; SPLINTER_RETRY_WAIT_MS overrides the wait.
- tests: test_sse (split object across events, truncated tail), test_agent
(four 500s = four requests; two 500s then an answer), test_engine and
test_protocol (models list), test_junction (headers, aliases, models),
test_ui (/model picker), test_focus (status keys).
make check: all tests passed.
- plugins/junction: evaluates the X-Junction-Mcp header and /status; the
sidebar widget, the "junction" status segment, junction_status and
/junction show uptime, MCP-server health, queue and request counts.
The url/header come from the plugin block, the mcp junction server or
SPLINTER_JUNCTION_URL/TOKEN; the key is never printed.
- theme: two flat themes. light is a white page with black text, dark the
same inverted; chat, sidebar and input share the page, the status line is
the one separate surface. Each CDE palette keeps its own rules.
- curses: the sidebar uses the theme's own text on its own background
(white/black) instead of white on a darkened surface; the one column
between chat and sidebar is painted, so a white theme has no black seam.
- focus: the goal goes into the first prompt (config, resume, planner), and
every goal-carrying text asks the model to end with GOAL_COMPLETE. The
marker is read from the conversation and the session log and recorded as
goal_state=succeeded in the session meta; /goal and the sidebar say
[done], reminders stop, a new goal opens a new one.
- tests: test_junction (fake server, header identity, no colon in widget
continuation lines, no key in the output), test_focus (announcement,
completion in the compactor and from the tick, persisted state),
test_theme (flat themes, list order).
make check: all tests passed.
A command that talks to the network (/connect, /model probe, a plugin
command, a commands/ program) ran on the UI thread: the prompt froze until
it returned. ui_command_run() now runs be->input on its own thread while
the screen keeps reading keys. One next line can be queued and is processed
when the command ends; Ctrl-C clears the edit, Ctrl-D quits. The worker
never touches curses, and the backend is not polled while it runs.
Widget text may now have continuation lines without "name:": they are
rendered under the widget above. sysinfo uses that for one metric per row
instead of wrapping "RAM ... CPU ..." into the same paragraph. A blank row
stays between widgets, not between their rows.
The Ctrl-C UI test looks for the active steer prompt; "working" is replaced
by it on the first 100 ms tick.
make check: all tests passed.
The goal lived only in the focus plugin's memory: a resume lost it and
there was no way to start the next turn from it. It is now stored in the
session's .meta (one line, 1000 bytes) and read back when the plugin sees a
new session id, so /open and a resumed process find their own goal again.
/continue reads the same sidecar and starts a turn with "Continue working
toward this goal: ...". /goal still sets it and starts the recap turn.
The sidebar was a patchwork of pairs and widgets could inherit the wrong
background. It now uses one PAIR_SIDE (white on a darkened theme
background) for every heading, label, usage row and widget; the window
gets that pair as its background, so no line paints its own surface.
New plugins/sysinfo: a widget thread samples /proc/meminfo, /proc/stat and
statvfs("/"), and publishes RAM, CPU, swap and disk with five-cell
[|||| ] gauges every two seconds. It is added to the shipped plugin list
and to the user's config.
agent.c keeps the last prompt/cache counters when a tool-call step reports
no usage. A zero there used to reset the ctx gauge in the status bar after
every tool call.
Tests: session goal survives reopen, /continue returns the prompt,
make check: all tests passed.
An OpenAI-compatible proxy may put non-JSON text behind the data: prefix
(`data: ping`, `data: [PING]`) or pretty-print one JSON event over several
data: lines. The parser called both "unparseable data line" and failed the
turn.
- Empty payloads, `ping`-style text and non-[DONE] brackets are ignored as
keepalives. Only a line that claims to be a JSON object is still an error.
- A data payload starting with '{' that does not parse yet is kept and the
next data: line is appended; the event is parsed when it completes. A
blank line (event end) with an unfinished object is still the error, and
sp_sse_finish() refuses an unfinished tail.
- The Anthropic parser gets the same keepalive tolerance.
test_sse: keepalive lines, multi-line JSON and a broken event.
make check: all tests passed.
Three things the screen and the goal were getting wrong.
Colours. The theme had one accent for the user and grey for everything
else. theme.h now carries agent, think, tool and notice colours. A CDE
palette maps them to sets 7 (answer), 3 (reasoning), 6 (tool) and 8
(status); Xresources uses colour10/11/14/13 on dark and 2/3/6/5 on
light. Role colours keep their hue and are pushed from the surface only
when they would disappear; each role has a slightly different minimum,
so even a monochrome palette yields distinguishable steps. The 256-colour
mapping now takes the nearest cube/ramp entry instead of rounding each
channel down, which turned a dark orange into grey 240.
Usage. sp_usage_get() only counted requests inside a declared window. A
provider without limit= therefore always read "0 calls" in the sidebar,
although every call was in its log. Calls are now counted when no window
is declared; test_usage covers it.
Goal. /goal <text> set a variable and answered "goal set" without starting
a turn. The engine now starts the recap prompt: the model writes a short
recap, the focus plugin remembers that answer and injects it every seventh
turn (SPLINTER_FOCUS_EVERY still overrides). /recap is gone as a command;
its old behaviour is what /goal does now. A palette and a wiki page are
not enough to make that visible: the prompt, the confirmation entry and
the sidebar goal all show up in the chat.
Tests: palette role separation and indexed roles in test_theme, four
unlimited calls in test_usage, recap capture/injection and the missing
/recap in test_focus, and a settle delay so the UI tests type after
ui_read_line() owns the keyboard. make check: all tests passed.
The screen had no room for the numbers that say how a turn is doing, and
two older behaviours still hurt: scrolling to the top made PgDn jump back
to the top, and a catalogue's steer mark without its trailing space glued
the typed text to ">".
- draw_statusbar() in curses.c: one row above the prompt with
ctx used/max + [|||| ] gauge, cache share and tok/s. The history and
sidebar lose one row; the prompt stays the bottom row. The bar is drawn
on every idle tick, during a turn and in --attach.
- ctx: optional field on a provider (and in core) in tokens; the engine
reports it in struct sp_engine_state. SPLINTER_CTX_MAX still overrides it.
- cache: sp_reply gained tokens_cached. OpenAI reads
prompt_tokens_details.cached_tokens / prompt_cache_hit_tokens, Anthropic
reads cache_read_input_tokens and counts cache reads+writes in the prompt
total. sp_agent_stats keeps the last request's prompt and cache share;
the engine keeps the turn's output tokens for a real tok/s.
- scroll: grow scroll by the growth of maxscroll, not by the distance from
the first visible line. At the top that distance was 0, so every frame
re-added the whole scrollback and PgDn could not leave the top.
- steer mark: append the missing space if a catalogue omits it.
- protocol state carries ctx_used/ctx_max/cached/turn_tokens_out, so the
attached UI shows the same bar.
- tests: cache parsing in test_sse/test_openai/test_anthropic, ctx parsing
in test_confblock, and test_ui checks the bar, the cache share and the
PgUp-to-top/PgDn-down path.
make check: all tests passed.
load_config() copied the config's main endpoint into the command-line
options, so apply_selection() saw o->endpoint != NULL and skipped
core { default = ... }. Every config with a main endpoint (and every
/model drop-in, which wrote exactly that) silently ran the main endpoint
instead of the default; a drop-in with model = provider/model even put a
slash-name into the model field.
- The main endpoint is applied only when no -m and no default exist.
-m and a command-line --endpoint still win.
- /model saves a delegate choice as "default = ID[/MODEL]" instead of a
second main endpoint; the provider block supplies kind, endpoint and
key. A model of the main endpoint has no provider block, so that one
keeps the full endpoint/model/api_key_env form.
- docs/CONFIG.md, README and test_providers describe the order and the
new drop-in line.
Verified with a fake endpoint: core default -> mb, -m a -> ma, main-only
config -> mmain, a stale endpoint/model drop-in no longer shadows the
default, a "default = a" drop-in does.
make check: all tests passed.
The release number does not move, so two builds - the tree and the
installed binary - looked identical in --version.
make now generates src/backend/buildinfo.c from the objects it stamps and
links it into libsplinter. The stamp is only rewritten when one of those
objects is newer, so a no-op make keeps the old time instead of pretending
the binary was rebuilt. The git revision is included, with -dirty when the
working tree differs from HEAD.
splinter 0.1.0 (built 2026-11-16 15:39:00 WET, 42c11f9)
buildinfo.c is a build artefact: gitignored and removed by make clean.
make check: all tests passed.
The model-list probe hung on a host that accepted no connection and the
delegate list had a second, worse way to ask: popen(curl) without the key and
a line-by-line "id" scan that saw only the first model in one-line JSON.
- http_get(): --connect-timeout 3, -m 8 for the answer. Every provider
probe (/v1/models, usage/balance) uses it.
- delegate_list probe=1 builds an sp_provider and calls sp_provider_served(),
so it sends the key, reads the JSON and lists every model.
- The route stays <endpoint>/models: /v1/models for opencode, ollama.com,
api.anthropic.com and the junction gateway (verified against all four).
- test_tmux unsets TMUX/TMUX_PANE and points TMUX_TMPDIR at its own temp
dir: no session, window or keystroke on the user's server. The literal "x"
probe text is gone.
make check: all tests passed.
- stream:true uses the provider's send_stream and writes each text delta as a
chat.completion.chunk as it arrives, instead of one chunk at the end. The
SSE headers and the role chunk go out before the upstream call, so a slow
provider still gives the caller a live connection.
- caller tool calls are sent as one tool_calls delta at the end of the step,
when their names and arguments are complete; filtered gw_ calls are
renumbered 0,1,... so strict accumulators see no gap. Local gw_ calls stay
invisible.
- stream_options.include_usage asks the provider for usage and adds the summed
token counts in a final chunk before [DONE]. Usage is now summed over every
upstream round, for the non-stream reply too.
- an error after the first byte becomes an SSE error object plus [DONE]; a
bad request is still an ordinary HTTP 400. SIGPIPE is ignored and
TCP_NODELAY set, so a caller that closes early cannot kill the gateway.
- tests: fake_gateway.py has a slow stream, tests/stream_probe.py measures
that chunks arrive while the upstream streams, usage is checked, and the
mixed reply keeps index 0 after filtering. make check green.
- .meta carries a title: the first user line is stored once, /rename
[ID] TITLE replaces it. Reopening preserves the title and the original
creation time.
- /sessions shows the title, locally and over the link; the protocol's
sessions event carries it. Old sessions without a stored title fall back
to their first user line when listed.
- /rm ID removes a session that is not open: JSONL, meta, saved agent
profile and logs/<id>; the open session is refused, /rm last resolves
the newest.
- tests: test_session (auto title, explicit title survives reopen, old-log
fallback, recursive removal), test_protocol (title, rename, rm, errors),
test_ui (title, rename, rm). make check green.
- sp_engine_switch(): close the old engine and open the chosen session from
the same options; if the new one fails, reopen the session the engine was
on. The protocol's open and the in-process /open both use it. The curses
screen clears the pane and replays the new history, so /open no longer says
it needs --attach.
- gateway: temperature, top_p and max_tokens (max_completion_tokens) are
forwarded to the provider instead of dropped; request bodies may be
Transfer-Encoding: chunked; a mixed reply runs the gw_ calls, returns the
caller's calls in tool_calls and puts the local observations in content
(also in the SSE delta), so the caller can echo them back.
- reconnect: when the remembered session is gone, the screen says which one
and stays on the session the server has instead of silently swapping the
transcript.
- ring: the exits' transports are disposed on plugin shutdown.
- /status goes through the catalogues like the rest of the UI (the English
labels and their alignment are unchanged, so existing parsers still work).
- the man page passes mandoc -Tlint and covers the gateway and /open.
Tests: test_ui.sh covers local /sessions and /open (new, back, history),
test_protocol.sh the shared switch, test_reconnect.sh a vanished session,
test_gateway_openai.sh forwarded parameters, a chunked body and the mixed
reply in JSON and SSE. make check green.
- --openai-listen: an OpenAI-compatible /v1/chat/completions and /v1/models.
The model gets splinter's local tools as gw_* (executed here) and the
caller's tools under their own names (returned as tool_calls to run there).
Local calls loop inside one request; a mixed reply runs the local calls and
asks again. --autonomous gates mutation; beyond loopback a bearer token is
required; stream:true answers with SSE.
- --serve keeps several sessions: sessions/open over the protocol and
/sessions, /open in the attach screen. The server owns the engines, closes
the old one before opening the next (plugins keep globals) and sends
state/history after every switch. Session ids are unique per process, so two
engines in the same second no longer share a file.
- --attach reconnects: when the server goes away the screen keeps running,
retries every second, asks for its session by id and restores the
transcript; a missing session falls back to the server's current one.
- transports own their context now: provider switches and close dispose it
(a switch used to leak one per change). The idle screen repaints entries it
drains, so a reconnect note is not invisible.
- docs/GATEWAY.md; PROTOCOL, FRONTENDS, README and the manual page describe
the three; tests cover the gateway tools, sessions/open and a server
restart under --attach.
The harness was two halves that could not see each other: main.c built the
agent, ui.c ran it -- with the curses thread model, the approval condition
variable, the slash commands and the provider switching inside the drawing
code. A second front end had to copy all of it.
Now:
src/backend/ engine.c owns the session, the turn thread, the event queue
and every command; agent, transports, tools, session, config,
providers, plugins and the protocol servers move here.
src/frontend/ curses.c draws and reads keys through ui_backend.h;
ui_local.c is the engine in this process, ui_remote.c is a
served engine behind a socket. protocol.c serves the engine
as JSON lines (protocol 2: history, approvals, steering);
client.c is splinterctl, the reference client.
splinter --serve / --attach: the same screen runs as a client of a served
engine, so the socket carries everything the front end needs. docs/PROTOCOL.md
and docs/FRONTENDS.md describe the contract; docs/proto-example.py is a
60-line client. tests/test_engine, test_protocol and test_attach cover the
event order, the socket and the attach mode.
Review fixes in the same tree: dynamic line buffers (9 KB prompts and 8 KB
events were truncated), a turn event no longer ends the busy window (steer
leftovers), the screen finalises every turn, /new keeps the profile, reopens
the log and gets unique ids, the profile is remembered in <session>.agent so
--resume comes back in it, agent statistics are a locked snapshot (no data
race), !shell keeps 64 KiB with a marker, the socket probes for a live server,
compares its inode and sets CLOEXEC/SNDTIMEO, exit 2 means configuration,
BSD peer checks use getpeereid, and the i18n checker scans the new
subdirectories again.
Includes the parallel session's SSE fix: the parser reports what a line
produced, so a tool name no longer lands in the answer ("readread").
Three places named the tool call and none of them said what it was.
The prompt line while a turn ran read "12s run {"command": "sleep 4; echo x"}":
the model's own encoding, cut at forty bytes in the middle of an escape, pushed
into the steer prompt. It is now "12s Run sleep 4; echo x", and the call gives
way when the row is narrow - never the steer prompt, which is the one hint the
row exists for.
The approval question read "run run (destructive) {"command": ...}? y/N" - the
verb twice (the catalogue's "run" and the tool's name) and the raw arguments in
it. It is now "Run touch /tmp/x (destructive)? y/N", the same words as the
transcript row, then how far the call reaches.
In the transcript every row was dim and said "Run" again, so a run of shell
calls was a grey column of the same word. The call row is now painted in the
accent colour, its output stays dim, and the row shows the verb and the one
argument that matters - command, path, pattern, query, url - read out of the
argument object with mcp_parse instead of off the front of the pretty text: the
model orders its arguments as it likes, and a write carries the whole file
content next to the path. A call that answered with nothing but
"[exit status 0]" keeps that on its own row instead of a second block.
An observation keeps sixteen rows and 4 KiB, whichever comes first, with the
number of lines left out: a row limit alone let one enormous line through, a
byte limit alone let fifty short lines cover the screen. The log keeps all of
it. In the sidebar the last-turn line clipped to "3 " in a narrow column; it
gets two rows now.
tests/test_ui.sh holds the question to it: shows "Write ", not_shows
'{"path"', and after the run ">> Write ".
The transcript said
[23:12:05] <werkzeug> run command: touch /tmp/.../made
which is the harness talking about itself. Hermes prints one row per call -
emoji, a capitalized verb, a one-line preview of the primary argument
(agent/display.py builds it per tool, 80 chars) and a duration; its long
outputs end in "... (N more lines)". opencode's TUI does the same shape: a
header line for the call, the output indented underneath.
So the row is ">> Run touch /tmp/.../made" (verb capitalized, no
"command:" and no JSON for a shell call), and the observation hangs under it
as "| output", cut at 4 KiB with "... N lines". The log keeps the rest.
Also: the swarm master never sent "unlock", so a second splinter in the same
directory sat on "[swarm locked]" and swallowed every key - one of the
intermittent failures in the suite. Joining unlocks; the master locks a slave
only while it routes work to it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three things were missing or doubled.
The reasoning is no longer cut to ten lines: it is shown as it comes.
A tool's observation was only ever shown when it carried a diff, and then as a
separate "diff" entry - so the output of a `run` was invisible in the chat
while the session log had it. Now every observation is an entry of its own
(role "observation"), capped at 4 KiB with the number of lines left out: a
300 KB JSON dump must not bury the conversation, and the log keeps all of it.
The separate diff queue is gone, which is also what printed a diff twice.
The session log had holes: the user's words were not logged at all, and the
reasoning only for the last step of a turn. Both are written now, and a step
that only called tools no longer leaves an empty "reply" record. The chat and
session.log carry the same records; the log has the full observation where
the screen keeps its head.
The call line keeps one readable line of arguments (200 chars, "..." after
that); the log has the whole argument.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
draw_history rebuilt every entry from scratch on every keystroke and every
100 ms tick: table formatting, markdown stripping, two mallocs and the wrap,
for up to 512 entries. Each entry now keeps its wrapped lines and its width,
and only the entry whose text changed is laid out again. A frame costs the
visible lines, not the log.
Tool calls are queued as events on the turn thread (reasoning, text of the
step, the call, notes) and drained in order into real entries with the role
"tool". Before, they were pasted into the reasoning text as "> name args",
which made them uncountable and kept two copies of the same text; the answer
text of all steps of a turn also ran together in one buffer, so the text
before and after a call was one line. The transcript is now
~ denkt: ... reasoning
<m> teil eins text before the call
<werkzeug> run the call
<m> nach dem ... text after it
Also: the "N more lines" marker goes through the catalogues, the dead
reserve parameter is gone, and the day-change marker lives in the UI state
instead of a static inside add_entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removing it went too far: the conversation area should be plain appended
text, but the sidebar carries what no line of the transcript should repeat -
agent, provider and model, what is left of the allowance, the plugin widget
lines, the session and now the directory the tools act in ("~" for $HOME,
wrapped at the slashes). A narrow terminal drops it and gives the width to
the conversation.
No status bar: the running time and the tool lead the prompt, and /usage,
/status and /widgets print the same numbers on demand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two daemons poll getUpdates and race: one reads the update, the other never
sees it, so a message is answered by nobody or twice. The gateway now holds
flock on <session_dir>/gateway.pid and a second start says who has it.
Removing the sidebar left 12 catalogue keys nobody reads (sidebar.*,
widget.*, status.title, ui.running); they are gone from all three
catalogues and test_i18n checks keys that still exist.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cp truncates the inode a running splinter has mapped, so the pages under a
live gateway change and it jumps into garbage. That is what killed the daemon
while make install ran (SIGSEGV at 0xb176). Link to a temp name and rename;
the old inode stays mapped for whatever is already running.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
They were already invisible (the windows were NULL and every draw returned
early); keeping the code around meant two layouts in one file and four
windows worth of thinking for a screen that has one text field. draw_sidebar,
draw_status, their helpers and usage_line go, together with the ui_side and
ui_status windows; the fleet is polled where the status bar used to poll it.
The file header now shows the layout it has, not the one it used to have.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No sidebar to draw into: /widgets prints the published text, and draw() is
not called at all any more.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test_agents_ui.sh ran on whatever server $TMUX pointed at, so a run inside
somebody's tmux created and typed into sessions there -- keys went into the
session the person was working in. It now drops $TMUX, points TMUX_TMPDIR at
its temp dir and refuses to signal a server it did not start, the way
test_ui.sh already did. test_a2a_ui.sh gets the same guard for its
kill-server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reusing the session name right after kill-session raced: the typed line went
to the dying pane and the test reported a missing answer. One run in four.
The starter config names the default theme, so --init-config does not send
people a palette they did not ask for.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chat is now the whole screen and the input line the row below it: no
sidebar, no status bar. Entries are append only -- a growing answer stays in
its entry while it is the last one and continues in a new entry once a tool
line follows, so nothing that was on screen ever moves. The prompt carries
the agent name ("build> "), /widgets shows what plugins published, and
/status still prints the status segments.
The default theme is Xresources: *foreground, *background and *color0..15
from xrdb -query (or ~/.Xresources), falling back to the terminal's own
colour indices. Every CDE palette is a theme by its own name, painted the
way the desktop paints it (set 5 windows, set 4 text areas, set 6 dialogs,
set 1 active frame, set 2 inactive frame) with CDE's black-or-white rule.
"Default" is therefore the CDE Default palette again, which is what the
config asked for.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
plugin NAME { path = ... enabled = false key = value } loads the plugin
(shipped one for NAME unless path says otherwise) and hands everything else
to that plugin as its configuration, read with sp_host_plugin_config() or
walked with sp_host_plugin_config_at(). Nested blocks give dotted keys,
lists arrive comma-separated.
The mcp plugin's servers are now server ID { url | cmd | header } blocks
inside plugin mcp { }; the old top-level mcp NAME { } and the flat
plugin = path / plugins = [ ... ] forms keep loading.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
- anthropic: two messages of the same role in a row (a failed turn asked
again) put the second one's blocks after the closed message object; the
API answered 400 "messages.1.role: Field required". The message now stays
open until the role changes.
- exit took 20+ s: the mcp plugin's HTTP round trip to a server that is down
had curl -m 60 and nothing killed it; shutdown now kills the curl in
flight, and connects time out after 5 s. Widget threads slept a whole
interval before seeing the stop flag; they sleep in 100 ms steps.
- /quit (/exit, /q) leaves the chat.
- the prompt mark has its space again: the catalogue trims trailing blanks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A kind = cli provider now has a default model and a prefix
(provider = opencode), so -m occli/deepseek-v4.1-flash-free runs
"opencode run --model opencode/deepseek-v4.1-flash-free". {model} in cmd
marks where the model goes, otherwise --model is appended; a model that
already has a '/' is used as it is. sp_cli_command() builds the command for
-m, delegates and the cli plugin's pool fallback. Model names are limited to
letters, digits and ._:/@+- since the command goes through /bin/sh.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- kind = anthropic: the Messages API over curl, OAuth tokens (sk-ant-oat)
as Bearer with the oauth beta, tool_use/tool_result blocks.
- --doctor spends no tokens: it asks /models and the provider's own usage
route (ollama /api/balance, opencode go /v1/usage) instead of a tiny turn;
cli providers are only checked for the program. /usage shows the same
provider figures, cached for a minute.
- endpoint names the API base (https://host/v1); sp_endpoint_url() builds
chat/completions (default), messages, models and usage from it. A full
route is still accepted and cut back to the base.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The MCP client could only start one program and talk to it on a pipe; a server
behind an endpoint (junction at http://host:8090/mcp) had no way in. Now the
config names the servers and the plugin speaks whichever transport each one
offers:
- new `mcp NAME { url | cmd | header | enabled }` block (and the flat
`mcp = NAME | url=...` form), parsed into struct sp_mcpserver; an entry
without a url and without a cmd is refused with its line number
- streamable HTTP in plugins/mcp/mcp.c: one POST per JSON-RPC message, answered
with one JSON object or an SSE stream of `data:` lines - both are read,
Mcp-Session-Id is kept and echoed back, and the Authorization header travels
through curl's stdin config so the token never appears in ps
- several servers register side by side; tools are mcp_<tool> for one server
and mcp_<server>_<tool> for more, so two servers that both offer `search` do
not overwrite each other. A server that fails its handshake is reported and
skipped, the rest still load. SPLINTER_MCP_CMD stays as the one stdio server
- tests: the config and block parsers, and a socket server in test_mcpclient
that refuses the tool list without the configured header and answers the call
as an event stream
- README and docs/CONFIG.md describe both transports and where the token lives
- openai transport sends x-opencode-session (opencode-go refused every request
without it) and a splinter user agent
- the message catalogues are compiled in: an installed binary no longer shows
raw keys (ui.ready ...); LANG=de_DE now selects German (lang was emptied by an
overlapping snprintf), pt_BR is matched
- sidebar rewritten (agent, provider/model, usage, goal/plan, last turn);
idle widgets say nothing; status line shows only what matters
- tool calls shown readable instead of JSON with \u escapes
- providers without their key variable are skipped by pools and refused by -m
with a clear message; --doctor checks every provider
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
build (all tools) and plan (read-only plus delegate/plan_task) are built in; a
markdown file with opencode-style front matter (description, model, tools,
allow, deny, autonomous) adds or replaces one. Tool policy is enforced in the
agent loop, the prompt is added to the system message, /agent and --agent.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Substring matching made 'cli' match 'client' and never matched 'gross' to 'big'.
Words now, with German/English synonyms; a private task only goes to a private
delegate; when no tag fits the config's default takes the task.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Config: { } blocks (core, telegram, provider, pool, exit) translated to the flat
reader with source line numbers; flat form still loads; delegate/plugin limits
raised. Pools: failover/balance, used by delegation (tag-safe), by -m and for
the conversation when its provider hits a limit. -m SEL picks a pool, provider,
provider/model or model name; --model-list lists them with served models.
Usage limits: the agent finds the reset and waits (UI: Ctrl-C stops, /resume
goes on; on_limit=fail turns it off).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The final answer replaced the whole streamed entry, so 'I will read the file'
vanished. The fake Telegram sent the follow-up turn together with the model
button, so the turn could be read first (flaky test).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
limit=N/window and tokens=N/window on delegates and the main provider; calls are
counted in ~/.splinter/usage/<id>.log; /usage and the status line show how full
each allowance is; choose() skips used-up providers and prefers the one with the
most left among equal matches; refused calls bench the active provider.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The prompt wrote into the bottom-right cell of a non-scrolling window (segfault).
It now draws the tail of the line. The history pane computed height and drawing
separately; it now builds visual lines once (word wrap, hanging indent, scroll
in lines, reasoning clipped to its last lines).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>