The 900 s wait was not the defect -- a person reads and thinks. Being hard
coded was: a run with no operator attached (an older protocol client that
does not know SP_EV_ASK, a script) lost the turn for fifteen minutes and
nobody could shorten it. Measured before the change: a client that ignores
the event saw the question and then no turn for 10 s.
sp_ask_wait_s() reads $SPLINTER_ASK_TIMEOUT, then ask_timeout from the
config, then SP_ASK_WAIT_S = 900. No upper bound: how long a turn may wait
is the operator's call. Consumers: engine_ask, tg_ask.
protocol.c also dropped sp_engine_answer's return value, so an answer that
arrived after the question was gone (wait expired, turn cancelled) looked
accepted. It now reports "no question is pending", as steer already did.
Test evidence:
- tests/test_ask_timeout.sh (new, wired into make check): with
SPLINTER_ASK_TIMEOUT=3 the turn returns in 3 s with the "no answer"
observation instead of parking. Proven red against the old code (env
ignored: 5 FAILs, the client got no turn at all) and green on the fix.
- ask_timeout in the config file takes effect too: measured 3.1 s against a
running --serve, so the docs line is not a claim.
- sp_ask_wait_s() edge cases: unset/0/-5/abc -> 900, 1 -> 1, 42 -> 42,
999999999999 -> clamped.
- make check green (336 s), make check-asan and check-tsan clean (46
binaries each).
The `ask` tool asks and the answer -- or "nobody answered" -- becomes the
observation. Read class: it changes nothing on the machine, and the authority
is the operator, not a gate.
Front ends: the chat draws a dialog (options to pick, typed words still count),
the protocol carries it as an `ask` event and an `answer` command, MCP returns
it from splinter_say and resumes with splinter_answer, the Telegram gateway
sends it as a message and takes the next message from an allowed user.
What the review of the WIP found, and what this fixes:
- -p hung for the full 900 s ask wait: sp_engine_prompt installed engine_ask,
but nobody polls events on the synchronous path. cfg.ask now stays NULL
there, so the tool answers at once with "nobody can be asked here".
Measured: 3 s instead of 900 s (was rc=124 after 20 s).
- splinter_say over MCP hung the same way, because tool_say only looked at
st.waiting. It now looks at st.asking and returns the question; the client
timed out at 15 s before, and the turn was lost.
- protocol.c read the question buffer uninitialized when sp_engine_ask
returned 0.
- turn_ask answered nothing when the window could not be opened, which parked
the turn for the full wait.
- pick_run computed the list height without the question's rows, so the
highlighted row scrolled out of the window (reproduced: after nine Downs no
">" row was on the screen). pick_draw and pick_run now share pick_listtop().
- the Telegram gateway was dead for this tool: it runs its turns on a copy of
e->base, where ask was never set, so the model was told "nobody can be
asked" while the operator sat in the chat. New tg_ask, verified against a
running daemon and covered in test_gateway.sh.
- tests/test_ask_ui.sh was untracked and not in make check, so it never ran.
A2A keeps no ask channel on purpose: there an approval pauses the task into
INPUT_REQUIRED, and the ask signature cannot express a pause -- saying
"nobody can be asked" is the honest answer there.
Tests: make check green (327 s), including the new test_ask_mcp.sh and
test_ask_ui.sh, both wired into make check. test_ask_mcp.sh was verified to
fail against the unfixed code (client times out, no result written).
make check-asan: 46 binaries clean. make check-tsan: 46 binaries, no races.
Two things were wrong with .splinter-swarm.sock. Every chat bound it, wanted
or not, so a shared working directory collected a leftover from every session
and the next start that found one sat on "[swarm locked]" because nobody
answered on it. And the master removed the file on its way out even when a
member was still running, which left that member on a path that was gone.
Now the fleet is opt-in. Without --swarm nothing binds or joins the file;
with it, the file lives exactly as long as the fleet does, whatever order the
members leave in.
- main.c: --swarm is a flag; eo.swarm requires it (plus --chat, no --serve,
no --daemon, no A2A/MCP/delegate).
- swarm.c: join_or_bind() is the one place that decides master or slave, used
at startup and again on takeover. A slave whose master says "bye" or whose
connection just ends (SIGKILL) takes the fleet over: bind, or join whoever
was faster. A leftover file with no listener is removed there and rebound,
because a refused connect is proof nobody answers.
- master_close() removes the file only when it is the last member. The peer
check reads the sockets instead of trusting the cached flag: a peer that
exited is only visible as EOF on read.
- swarm_emergency_unlink() (SIGTERM/SIGHUP) keeps the file while a peer is
live. A handler may not walk the peer table, so the master keeps a
sig_atomic_t count of live peers for it.
Tests, all against the real binary and the real signal path:
- test_swarm.c: master leaves first, survivor takes over and the file stays;
hard-killed master (EOF, no bye), survivor cleans the leftover up; the
signal cleanup alone leaves the file for a live member; an unowned file is
still never deleted. Mutation-checked: forcing master_close to always
unlink, and dropping the peer count from swarm_emergency_unlink, each turn
the suite red.
- test_swarm_socket.sh (new, in make check): through tmux, --chat without
--swarm creates no file at all; --chat --swarm creates one that accepts a
member and is gone after Ctrl-D and after SIGTERM; two members share one
file that outlives the master and goes with the last one; a SIGTERM-killed
master does not take the fleet from the survivor. Mutation-checked: making
the fleet unconditional (the old eo.swarm line) turns it red.
make check: all tests passed. check_asan.sh: all 46 test binaries clean.
A package build passes -L=/usr/pkg/lib ahead of anything this Makefile can
append, so -lsplinter found the copy installed by the previous release. A
function added to engine.c the same day was then 'undefined' at link time
(2026-11-23, cross release). The library is named as a file now, and carries
a SONAME, so the installed binary records libsplinter.so and not a build path.
Test: make install with LDFLAGS=-L/tmp/oldlib (the 22.11 library without
sp_engine_sources) links and runs: 0 undefined references.
A pkgsrc build passes -L=/usr/pkg/lib before -L., so `-lsplinter' found
the libsplinter.so that an earlier package had installed and ignored the
one just built. On the cross build this stopped `splinter' with
"undefined reference to sp_engine_sources", a function added to engine.c
that morning: /usr/pkg/lib/libsplinter.so was the file of 22.11 22:26
(build/logs/release-2026-11-23l-cross.log:78). The tree's own build was
never affected, only the package build -- which is the one that ships.
SPLLIB carries -L. and -l together and the binary's link puts it before
$(LDFLAGS). 72 link lines changed; LDFLAGS moved behind the library for
splinter and splinterctl.
Verified: make clean && make -j8 rc=0, ./splinter --version prints the
stamp; with LDFLAGS=-L/tmp (holding a stale libsplinter.so) the build
still links, 0 undefined references.
The pkgsrc recipe passes CURSES_LIB=-lcurses -lterminfo and CURSES_DEP=
to get NetBSD's own curses instead of the vendored tree, whose nbperf and
host_tic have to run while building -- a cross build cannot run them
(it compiled nbperf with the target compiler and got 'nbperf/nbperf:
not found', build/logs/release-2026-11-23k-cross.log:91). The Makefile
ignored both and always built vendor/netbsd-curses.
Verified: default build still builds and links the vendored tree (make
clean && make -j8 rc=0, splinter runs); with CURSES_LIB='-lcurses
-lterminfo' CURSES_DEP='' no GNUmakefile is invoked and
src/frontend/curses.c compiles against NetBSD's curses.h (rc=0).
atoi() took anything on --mcp-listen-port, --a2a-listen-port and
--openai-listen-port: "abc" bound port 0 (a random port the operator was
never told) and "-5" bound 65531. Both started a server on a port nobody
chose and said nothing.
port_arg() parses with strtol, requires the whole string, and refuses
anything outside 1..65535, naming the option and the value.
Test: tests/test_args.sh, new, in make check. Six bad values are refused
with the reason; a valid port still starts the gateway and says which one
it took. With the check reverted the test reports 6 failures, with it
"test_args: ok". make check: all tests passed.
docs/splinter.1: the two documented port options say so.
The picker's two remote calls cleared their counters only when the
answer arrived. A served engine that did not answer within the 5 s
deadline therefore left the last answer in place, and /sessions drew
another folder's - or another source's - rows as the ones that were
asked for. The counters are now cleared before the request is sent.
tests/test_remote_list drives the remote backend against a fake server
that answers the first request of each kind and drops the second one.
Without the fix it prints "the unanswered request still drew 2 row(s):
erste zweite" and fails five checks; with it: ok.
Verified: test_remote_list ok, make check: all tests passed.
Found with ThreadSanitizer over the whole suite, not by reading:
- ack: sp_ack_dir() returned one static buffer. The waiter and the
answerer (the gateway is both) sprintf'd into each other's path, so an
approval request could be looked for in the wrong place. One buffer per
thread now; test_ack asserts the two threads get different addresses.
- mcp: `stopping` was a plain volatile int with no happens-before, so a
server thread could read 0 after shutdown killed its child and keep
using buffers that teardown frees. Acquire/release accessors.
- foreign: fr.ready was set before the paths it guards were filled, so a
second thread returned early and read empty paths; the flag and the host
handle are now an atomic pair (publish) plus a mutex (the init itself).
- embed: catch_up() read c->path, c->offset and c->id outside the lock. A
session switch mid-index published the old file's byte offset into the
new session's index - everything below that offset was never searched
again. A generation counter makes that run drop its batch, and the
search path takes its snapshot under the same lock.
Proof, both directions:
- make check-tsan: 45/45 test binaries free of races (new target; the
tree is rebuilt under TSan and back, like check-asan).
- test_embed's new gated test (a server that holds the batch until the
session has been switched): without the generation check short.emb ends
with 4 records, 1 of them leaked from the other session; with it, 1
and 0. The test is deterministic, so it fails on a plain build too.
- test_ack: reverting to `static char root[]` fails
"the two threads do not share one buffer".
- make check: all tests passed; make check-asan: 45/45 clean.
Konrad saw "agent: model sent malformed tool arguments" on the Telegram
daemon again and again. The retry existed, but it was useless: three
attempts in a single millisecond, each with the identical prompt, so the
model answered with the identical broken call. After the third the turn
died with an error nobody can act on, and the session lost the work.
Now:
- Five tries, five seconds apart (SPLINTER_RETRY_WAIT_MS still shortens
it for the tests). The wait goes through retry_sleep(), so Ctrl-C does
not have to sit it out.
- Every retry carries a correction as a user message: what was wrong,
and what to send instead. A tool result without a call before it is
refused by the endpoint, so it has to be a user turn.
- A call cut off by the token limit is a different fault from a call the
model could not write. sp_reply grew a `finish` field ("length",
"max_tokens"), filled by both the SSE parser and the non-streaming
reply; the correction then asks for a *smaller* call instead of the
same one the limit already truncated.
- After the fifth failed try the turn does not die: the model is asked
for plain words ("say what you wanted to do, step by step"), and
whatever it sends ends the turn as an answer. A call that arrives
anyway does not run and is logged whole.
- The log line keeps the whole argument string, not 240 bytes of it -
"mal gucken" means the operator can read what the model tried.
The tests were only rebuilt when their .c changed, so a new field in
struct sp_reply left them reading a different layout; that failure looks
like a broken test, not a stale object. $(TESTS) now depend on $(HDRS).
Evidence: make check exit 0 (45 binaries + 20 shell tests,
SPLINTER_RETRY_WAIT_MS=0). Counter-checks: with the old single-prompt
retry test_agent fails on bad_args_calls == 6 and on the correction
text; without the finish field cut_off_second carries "not valid JSON"
instead of "cut off by the".
The operator's claude ran into its limit mid-work; the session was too full to
continue there. The foreign plugin could already read and import it, but only
through a tool call inside a turn - there was no way in from the command line.
--claude, --opencode, --hermes and --from=NAME make the newest session that
tool ran in this directory the session of the run: it is imported before the
history is loaded, so the first turn already carries it. -c no longer fails in
a folder that has no splinter session yet; it falls back to "no session" and
lets the import decide. An empty placeholder session is removed again, whether
the import worked or not.
Repeating the call continues the same session instead of importing a second
time: sp_session_foreign() reads the foreign= marker back, so the work done in
splinter is kept. A second foreign_import into the same session replaces the
history rather than appending it twice (path_join built "id/.jsonl", so the
replace branch never fired).
Test: tests/test_foreignopen.c builds a claude fixture under its own HOME and
covers import, idempotency, replace-not-append, the empty placeholder and a
folder with no foreign session. make check exit 0, check_asan.sh clean.
Automatic compaction was keyed only on stats.last_in, the prompt size the
provider reports with usage. A resumed session starts at 0, and a provider
that reports no usage leaves it at 0 - the session outgrows every endpoint's
window, the first request is refused, no usage arrives, and every later
resume fails the same way. Measured on 2026-11-22: a 9,095,724-byte session,
ctx=2,286,261 at junction, 503 no_endpoint_available on every retry.
The conversation bytes are there before anything is sent; the same four bytes
per token the target already uses are the second trigger.
tests/test_compact_resume.sh: a ~300 kB session, one turn after --resume; the
first request must be compacted. Counter-proof with the old agent.c: 302
messages, 321,087 bytes.
`--serve` holds one engine, so one client talks to it at a time - that part is
deliberate. What was not: the second client connected into the listen backlog
and then waited for a greeting that could not come until the first one left.
splinterctl printed nothing and hung; --attach gave up 10 s later with "no
greeting from the backend", which names the wrong cause.
The accept is non-blocking now and a client that arrives while the engine is
taken is answered at once: an error event with the reason, then a shutdown of
the write side. That reads on the other end as "another client is attached:
one conversation runs one turn at a time". Descriptors are drained before the
close, or the RST would eat the message the client has not read yet.
Two smaller ones on the same path:
- --attach reconnects on a broken connection; it now carries the server's error
text through instead of replacing it with "no greeting".
- a client that reads nothing is not waited for forever: a greeting timeout
turns a silent server into a message instead of a hang.
openai_stream passed the request options only when c->have_gen was set,
and only openai_server.c (splinter as a server, relaying a client's
request) ever set it. A normal turn therefore sent no
stream_options.include_usage, a provider that follows the OpenAI
contract returned no usage, reply.tokens_in stayed 0, last_in stayed 0,
and compact_threshold could never fire - a session grew monotonically to
250k tokens with the threshold at 128000.
The transport now always asks, with a local option block; the gateway
path keeps its caller's settings. Verified against a strict endpoint
that sends usage only when asked: before the fix two turns went 82->86
messages with no compaction, after it the second turn is 8 messages and
21 KB.
tests/test_usage_request.sh starts that strict endpoint (its usage is
emitted only when the request opts in) and asserts the request carries
the option and that the second turn is compacted. It fails without the
transport change.
Another harness's conversation is not a session until splinter can resume
it. plugins/foreign reads the three stores that already exist on the
machine - ~/.claude/projects/<slug>/<id>.jsonl, <root>/state.db (and
profiles/*/state.db) and opencode.db's session_v2/session_message - and
offers four tools plus /foreign:
list, search TEXT, read SOURCE ID, import SOURCE ID
The stores are read with sqlite3 -readonly: an import copies, it never
moves. Reasoning blocks are dropped on the way in, because a provider does
not accept another model's thinking as evidence. Tool calls arrive with
their results in place, which is what makes the imported session worth
resuming instead of retyping.
import writes a real splinter session: the conversation as a replayable
jsonl, and a .meta with the source's title, its start time and *its*
working directory. So /open continues it in the chat,
--session-id <id> --resume in a shell, and -c finds it in the directory the
conversation actually ran in. The marker foreign=<source>:<id> survives
every later reopen, which needed the core's .meta sidecar to carry keys it
does not own.
Building this found nine bugs, each one seen red before it was green:
- four use-after-frees: mcp_arg_string returns a pointer *into* the parse
tree, read after mcp_json_free. That garbage in `only`/`src` was why a
list of three stores answered "no sessions" and named AÃ_Â¥U.
- sql_json took "no rows" for a failure (NULL), so every empty answer
looked like a broken database.
- args_split never terminated its buffers: /foreign list became
"unknown subcommand 'list('".
- path_join(dir, id, ".meta") built dir/id/.meta, so the sidecar landed
in a subdirectory.
- claude_slug_dir had the sign inverted and returned -1 for every
non-empty cwd, so the project directory was never found.
- sp_session_open overwrote cwd with getcwd() on *every* open, though the
comment beside it promised the opposite: imports claimed the directory
they were imported from and -c then picked the wrong session.
- hermes_text ran strncmp(p, "\x00json:", 6) on an empty content, a
one-byte allocation - heap-buffer-overflow, found by ASAN. The marker is
stripped in SQL anyway.
- hermes_calls never freed the root node on the object path (5456 bytes
over 42 allocations).
- list_any reported strerror(errno) with errno never set: a real file with
the wrong schema read as "No such file or directory". The SQL reason is
passed through now.
Checked end to end against the stores on this machine: claude 64 sessions,
opencode 25, hermes 0 (both hermes databases here are empty, count(*) = 0).
A real opencode session of 150 messages reads back with its tool output; one
of 75 imports with the right cwd and title, --resume sends its history, and
-c from the source directory opens it.
tests/sh/port.sh comes along: the shell tests guessed a port with
20000 + $$ % 30000 and on 2026-11-21 landed on one dtsession held. The fake
died, curl got an answer from dtsession, and twenty checks blamed the
gateway. They ask the kernel for a free port now.
A session file was written as if it were a chat: role and text, nothing
else. Reading it back kept "user" and "assistant" and dropped everything
else - and nearly every line of an agent transcript is an observation.
Measured on three real sessions: 21 of 1507 messages came back, 8 of 1356,
3 of 317. --resume then sent 1% of the conversation and the model had no
idea what it was continuing.
Three writers had to change with the loader:
- A turn that asked for tools wrote no line at all (agent.c only wrote
when ncalls == 0). It now goes out with its tool_calls, and each result
with the name of its tool and its call id; a provider rejects a tool
message without them.
- {"role":"user","text":""} came from the steer path and showed the model
a blank human turn it answered. sp_session_append_rec writes nothing
when text and calls are both empty.
- A record from the old format has no name and no call id. It is paired
with the next unanswered call of its pending assistant turn, or given a
synthetic one (recovered-N). Dropping it is what emptied every resume;
keeping it unpaired is what a provider answers with 400.
The same pass gives the core its own compactor (compact.c): a thread digest
- one line per dropped message, OPERATOR: 800 chars, assistant: 300, tool
result 160 - so the model keeps the story, not a count. lcm stays a plugin
that runs after it; sp_core_compactor() is the fallback only when no plugin
registered one, because running both eats the conversation before lcm sees
work to do.
Two bugs fell out of the same area:
- The plugin host was only built when a plugin was configured, so a
plugin-less run had no compactor at all: over max_bytes the turn was
refused instead of compacted (90 KB session, budget 8000, "nothing
sent").
- lcm walked *forward* past tool results at the tail boundary, which
silently shrank the tail: a turn with two results kept four messages
where keep_tail says six. Walking back to the assistant that carries
the call keeps six and no orphan.
And the .meta sidecar is shared now: the core rewrote it with only the keys
it knew, so anything a plugin put there was gone on the next open. It
carries unknown lines through (extra[8][160]), which is what lets a plugin
mark a session in the core's own file.
Tests: tests/test_corecompact.c (10 checks, no plugin), the resume cases in
tests/test_session.c, and the tail-size check in tests/test_compactor.c.
Each was seen red on the old code before it was green on the new.
session_search walks the logs of earlier sessions in this folder newest first
(query, limit, days, session) and answers with date, session id, title and a
snippet around the match; session_list shows the sessions themselves. The
running session is left out -- that is context, and lcm's recall covers what
compaction dropped -- unless a call names it with session=.
The system prompt now carries two things. When the working directory has
earlier sessions, a paragraph says how many, the newest, and that
session_search/session_list read them, so the model looks before asking the
user something that was already answered. And the default prompt tells it to
use the mcp_* tools for tasks, memory, skills and knowledge bases actively, not
only when asked.
test_sessiontools drives both tools (hit, no hit, limit, days, explicit id,
list with the current session marked); test_engine checks the prompt paragraph
and the default text. make check: all tests passed.
make check-asan: all 41 test binaries clean.
The user's ~/.splinter/splinter.conf gained "plugin session { }" (backup:
splinter.conf.bak-session).
The markdown renderer, its chunk cursor, the SSE reader and the JSON parser
all consume text from a model or a provider. test_fuzz drives 4000 inputs from
a fixed seed through all four and checks the two properties a plain crash test
would miss: the renderer is deterministic, and the cursor always finishes (a
piece that does not advance would loop forever in the Telegram sender).
Red proof: with sp_tgmd_next() forced to return without advancing, the test
fails on "piece.len > 0"; with the real code it passes.
make check: all tests passed (test_fuzz included).
make check-asan: all 40 test binaries clean.
ASAN over the unit tests found a real leak the normal gate cannot see: a
transport failure that is not retried (the fourth 500, a 4xx, a dead stream)
returned -1 with the last reply's body and calls still allocated. The caller
only reads the reply on success, so it leaked on every terminal failure -- a
long-running daemon with a flapping provider grows by one reply per failure.
test_agent's four-500 case leaked exactly the last "boom"; it is clean now.
The same run showed the tests leaking their own fixtures: test_anthropic and
test_tasks never freed the registry they filled, test_cli forgot host4 and
host5, test_confblock forgot its error buffer, test_mcpclient its registries.
Fixed; all 39 unit binaries are now clean under ASAN+UBSAN with leak detection.
That gate is `make check-asan`: it rebuilds the tree with the sanitizers, runs
the unit binaries with LSAN, and rebuilds normally afterwards. Three MCP-plugin
teardown allocations are suppressed in tests/asan.supp: its server thread is
detached, shutdown kills the child but cannot join the thread, so the line
buffer (bounded at RPC_MAX_LINE) and the tools registered by that thread can
outlive the host. Bounded, teardown-only, tracked separately.
make check: all tests passed. make check-asan: all 39 test binaries clean.
Everything that was uncommitted in the shared tree, in one commit because the
changes are interleaved across the same files (lcm, engine, frontend, locales).
lcm: a continuation prompt is not the task. After /resume the newest user
message is "Continue with the task ...", and pinning it kept the keystroke
while the question it continues was cut away -- measured: a resumed session
woke up with the prompt, one tool call and its error, and no task at all. The
pin now skips the harness's own continuation prompts, so the real question is
pinned again. test_compactor drives it: with the skip disabled the task is
lost (red), with it the task comes back after the summary (green).
engine: /self-check and the exact tool-argument parse are in a1794fb; this
commit carries the tests for them (a failed tool observation must appear in
the self-check prompt; mcp_parse_exact rejects two objects in one string) and
the i18n keys the new code uses: cmd.script.*, main.no_profile, tg.busy,
tg.interview.running, ui.agent_busy in all three catalogues.
The rest is the in-flight work from the shared session: engine/frontend,
plugins, telegram/a2a, and their tests.
make check: all tests passed; check_i18n ok, 204 keys in 3 catalogues.
Prompt box
- The input wraps at the window width and grows from one to five rows;
beyond five it keeps the line with the cursor visible and scrolls inside.
The conversation and sidebar shrink instead of the prompt being cut.
- Shift+Enter inserts a newline. It accepts the CSI-u and xterm modifyOtherKeys
sequences and Alt+Enter; modifyOtherKeys is enabled at start and disabled on
exit/signal. Enter still sends.
- History entries are folded to one line so the line-based history file stays
readable.
- Mouse wheel scrolls the transcript (3 rows) in the prompt and during a turn.
Cache plugin
- New plugins/cache/cache.so: sidebar block and /cache command with the
provider prompt-cache hit rate (last and session), cumulative cached tokens,
and the junction cache from X-Junction-Cache plus its /status cache object
(entries, hits, misses, bytes, ttl, joined).
- sp_meter/agent/engine now carry cached_total; the UI fills it.
- plugin cache { } added to the user config.
Junction judge schedule
- The transport parses X-Junction-Judge-Next/-In/-Next-Step/Every/Target/
Model/Cache from every chat response and publishes the last one on the host.
- The junction widget and /junction show "judge next in N ... via ... cache
..." when the provider sends it; no stale schedule after a plain model.
- X-Junction-Cache is parsed even when no judge headers are present.
Self plugin
- Human labels and units: memory, threads, open files, children, bytes read/
written; "children" instead of "kids".
Errors
- An in-stream error event now reads "provider error: ..." instead of "sse:",
because it is the provider/router talking, not the stream parser.
make check: all tests passed.
`make check` created a session for every splinter invocation that did not set
HOME - the A2A and gateway scripts pass --no-config, which does not change the
session directory. The user's ~/.splinter collected hundreds of "hallo",
"fehler" and "auth ohne token" sessions; the last three in /sessions were test
noise that looked like aborted chats.
- SPLINTER_SESSION_DIR overrides the session directory (o->session_dir still
wins when a caller names one, so test_engine keeps its temp dir).
- make check exports a mktemp session dir and removes it on exit; the scripts
that inspect $D/home/.splinter point the variable there.
- docs/CONFIG documents the variable.
- the existing test sessions were moved to
~/.splinter/test-sessions-2026-11-18 (not deleted) so /sessions shows the
real conversations again.
make check: all tests passed; ~/.splinter kept 211 sessions before and after.
- 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 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.
- 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.
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.
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.
- --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").
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>
- 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>
- 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>
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>
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>
planner: v0.2, state in plan_task_*.json via libmcp, atomic replace, refused states.
tmux: v0.3, in-process capture-pane diff, no watcher helper, tmux_ask/read/capture.
tests: test_tmux added, test_delegate_cli no longer hangs without a tty.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
/model offers the models the configuration names -- the main endpoint,
every delegate with a model, every exit -- as inline buttons and points the
agent's transport at the one that is pressed. /model <name> keeps the
endpoint and takes another model from it. A provider whose key variable is
not exported is marked in the menu. The choice is not written: it lasts for
the session, a restart goes back to the config.
/connect asks for name, endpoint, model and key variable, validates each
answer, and writes the delegate line to <config>.d/20-connect.conf before
anything is used, so the same run has the provider and the next start loads
it. and [?2031h]10;?]11;?[>0q[?25l[s[6nP+q4d73\[?1016$p[?2027$p[?2031$p[?1004$p[?2004$p[?2026$p[?u]99;i=opentui-notifications:p=?;\]1337;Capabilities\]7501;?\[H]66;w=1; \[6n[H]66;s=2; \[6n[u[s[?1049h[?25l[>4;1m[?2004h[?1000h[?1002h[?1003h[?1006h[14t]7501;state=idle:app=opencode\[?2026h[?25l[1;1H[38;2;255;255;255m[48;2;17;28;24m [2;1H[38;2;255;255;255m[48;2;17;28;24m [3;1H[38;2;255;255;255m[48;2;17;28;24m [4;1H[38;2;255;255;255m[48;2;17;28;24m [5;1H[38;2;255;255;255m[48;2;17;28;24m [6;1H[38;2;255;255;255m[48;2;17;28;24m [7;1H[38;2;255;255;255m[48;2;17;28;24m [8;1H[38;2;255;255;255m[48;2;17;28;24m [9;1H[38;2;255;255;255m[48;2;17;28;24m [10;1H[38;2;255;255;255m[48;2;17;28;24m [11;1H[38;2;255;255;255m[48;2;17;28;24m [12;1H[38;2;255;255;255m[48;2;17;28;24m [13;1H[38;2;255;255;255m[48;2;17;28;24m [14;1H[38;2;255;255;255m[48;2;17;28;24m [15;1H[38;2;255;255;255m[48;2;17;28;24m [16;1H[38;2;255;255;255m[48;2;17;28;24m [17;1H[38;2;255;255;255m[48;2;17;28;24m [18;1H[38;2;255;255;255m[48;2;17;28;24m [19;1H[38;2;255;255;255m[48;2;17;28;24m [20;1H[38;2;255;255;255m[48;2;17;28;24m [21;1H[38;2;255;255;255m[48;2;17;28;24m [22;1H[38;2;255;255;255m[48;2;17;28;24m [23;1H[38;2;255;255;255m[48;2;17;28;24m [24;1H[38;2;255;255;255m[48;2;17;28;24m [0m]22;default\[?2026l]0;OpenCode[?2026h[?25l[7;22H[38;2;83;104;91m[48;2;17;28;24m [0m[7;42H[38;2;193;196;151m[48;2;17;28;24m[1m ▄[7;56H [0m[8;22H[38;2;83;104;91m[48;2;17;28;24m█[8;23H▀[8;24H▀[8;25H█[8;26H █[8;28H▀[8;29H▀[8;30H█[8;31H █[8;33H▀[8;34H▀[8;35H█[8;36H █[8;38H▀[8;39H▀[8;40H▄[8;41H[0m[8;42H[38;2;193;196;151m[48;2;17;28;24m[1m█[8;43H▀[8;44H▀[8;45H▀[8;46H █[8;48H▀[8;49H▀[8;50H█[8;51H █[8;53H▀[8;54H▀[8;55H█[8;56H █[8;58H▀[8;59H▀[8;60H█[8;61H[0m[9;22H[38;2;83;104;91m[48;2;17;28;24m█[9;23H[0m[9;23H[38;2;83;104;91m[48;2;34;47;41m [0m[9;25H[38;2;83;104;91m[48;2;17;28;24m█[9;26H █[9;28H[0m[9;28H[38;2;83;104;91m[48;2;34;47;41m [0m[9;30H[38;2;83;104;91m[48;2;17;28;24m█[9;31H █[9;33H[0m[9;33H[38;2;83;104;91m[48;2;34;47;41m▀[9;34H▀[9;35H▀[9;36H[0m[9;36H[38;2;83;104;91m[48;2;17;28;24m █[9;38H[0m[9;38H[38;2;83;104;91m[48;2;34;47;41m [0m[9;40H[38;2;83;104;91m[48;2;17;28;24m█[9;41H[0m[9;42H[38;2;193;196;151m[48;2;17;28;24m[1m█[9;43H[0m[9;43H[38;2;193;196;151m[48;2;61;70;56m[1m [0m[9;46H[38;2;193;196;151m[48;2;17;28;24m[1m █[9;48H[0m[9;48H[38;2;193;196;151m[48;2;61;70;56m[1m [0m[9;50H[38;2;193;196;151m[48;2;17;28;24m[1m█[9;51H █[9;53H[0m[9;53H[38;2;193;196;151m[48;2;61;70;56m[1m [0m[9;55H[38;2;193;196;151m[48;2;17;28;24m[1m█[9;56H █[9;58H[0m[9;58H[38;2;193;196;151m[48;2;61;70;56m[1m▀[9;59H▀[9;60H▀[9;61H[0m[10;22H[38;2;83;104;91m[48;2;17;28;24m▀[10;23H▀[10;24H▀[10;25H▀[10;26H █[10;28H▀[10;29H▀[10;30H▀[10;31H ▀[10;33H▀[10;34H▀[10;35H▀[10;36H ▀[10;38H[0m[10;38H[38;2;34;47;41m[48;2;17;28;24m▀[10;39H▀[10;40H[0m[10;40H[38;2;83;104;91m[48;2;17;28;24m▀[10;41H[0m[10;42H[38;2;193;196;151m[48;2;17;28;24m[1m▀[10;43H▀[10;44H▀[10;45H▀[10;46H ▀[10;48H▀[10;49H▀[10;50H▀[10;51H ▀[10;53H▀[10;54H▀[10;55H▀[10;56H ▀[10;58H▀[10;59H▀[10;60H▀[10;61H[0m[13;4H[38;2;61;74;68m[48;2;17;28;24m┃[0m[13;5H[38;2;255;255;255m[48;2;35;55;43m [0m[14;4H[38;2;61;74;68m[48;2;17;28;24m┃[0m[14;5H[38;2;255;255;255m[48;2;35;55;43m [0m[14;7H[38;2;83;104;91m[48;2;35;55;43mAsk anything…[14;20H "What is the tech stack of this project?"[0m[14;62H[38;2;255;255;255m[48;2;35;55;43m [0m[15;4H[38;2;61;74;68m[48;2;17;28;24m┃[0m[15;5H[38;2;255;255;255m[48;2;35;55;43m [0m[16;4H[38;2;61;74;68m[48;2;17;28;24m┃[0m[16;5H[38;2;255;255;255m[48;2;35;55;43m [0m[17;4H[38;2;61;74;68m[48;2;17;28;24m╹[0m[17;5H[38;2;35;55;43m[48;2;17;28;24m▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀[0m[18;4H[38;2;83;104;91m[48;2;17;28;24m~/src/splinter:main[0m[18;46H[38;2;193;196;151m[48;2;17;28;24mshift+tab [0m[18;56H[38;2;83;104;91m[48;2;17;28;24magents[0m[18;64H[38;2;193;196;151m[48;2;17;28;24mctrl+p [0m[18;71H[38;2;83;104;91m[48;2;17;28;24mcommands[0m[23;74H[38;2;83;104;91m[48;2;17;28;24m2.2.6[0m[0m]12;#c1c497[1 q[14;7H[?25h[?2026l[?2026h[?25l[13;4H[38;2;67;74;68m[48;2;17;28;24m┃[0m[14;4H[38;2;67;74;68m[48;2;17;28;24m┃[0m[15;4H[38;2;67;74;68m[48;2;17;28;24m┃[0m[16;4H[38;2;67;74;68m[48;2;17;28;24m┃[0m[16;7H[38;2;41;56;44m[48;2;35;55;43mBuild[0m[16;13H[38;2;36;56;44m[48;2;35;55;43m·[16;14H[0m[16;15H[38;2;39;59;46m[48;2;35;55;43mDeepSeek V4.1 Flash 1017[0m[16;40H[38;2;36;56;44m[48;2;35;55;43mOllama Cloud[0m[17;4H[38;2;67;74;68m[48;2;17;28;24m╹[0m[0m[14;7H[?25h[?2026l[?2026h[?25l[13;4H[38;2;82;75;68m[48;2;17;28;24m┃[0m[14;4H[38;2;82;75;68m[48;2;17;28;24m┃[0m[15;4H[38;2;82;75;68m[48;2;17;28;24m┃[0m[16;4H[38;2;82;75;68m[48;2;17;28;24m┃[0m[16;7H[38;2;58;58;46m[48;2;35;55;43mBuild[0m[16;13H[38;2;40;60;48m[48;2;35;55;43m·[16;14H[0m[16;15H[38;2;52;70;54m[48;2;35;55;43mDeepSeek V4.1 Flash 1017[0m[16;40H[38;2;40;60;48m[48;2;35;55;43mOllama Cloud[0m[17;4H[38;2;82;75;68m[48;2;17;28;24m╹[0m[0m[14;7H[?25h[?2026l[?2026h[?25l[13;4H[38;2;104;76;68m[48;2;17;28;24m┃[0m[14;4H[38;2;104;76;68m[48;2;17;28;24m┃[0m[15;4H[38;2;104;76;68m[48;2;17;28;24m┃[0m[16;4H[38;2;104;76;68m[48;2;17;28;24m┃[0m[16;7H[38;2;83;61;49m[48;2;35;55;43mBuild[0m[16;13H[38;2;46;66;54m[48;2;35;55;43m·[16;14H[0m[16;15H[38;2;70;86;67m[48;2;35;55;43mDeepSeek V4.1 Flash 1017[0m[16;40H[38;2;46;66;54m[48;2;35;55;43mOllama Cloud[0m[17;4H[38;2;104;76;68m[48;2;17;28;24m╹[0m[0m[14;7H[?25h[?2026l[?2026h[?25l[13;4H[38;2;130;77;68m[48;2;17;28;24m┃[0m[14;4H[38;2;130;77;68m[48;2;17;28;24m┃[0m[15;4H[38;2;130;77;68m[48;2;17;28;24m┃[0m[16;4H[38;2;130;77;68m[48;2;17;28;24m┃[0m[16;7H[38;2;114;65;52m[48;2;35;55;43mBuild[0m[16;13H[38;2;52;72;60m[48;2;35;55;43m·[16;14H[0m[16;15H[38;2;91;105;82m[48;2;35;55;43mDeepSeek V4.1 Flash 1017[0m[16;40H[38;2;52;72;60m[48;2;35;55;43mOllama Cloud[0m[17;4H[38;2;130;77;68m[48;2;17;28;24m╹[0m[0m[14;7H[?25h[?2026l[?2026h[?25l[13;4H[38;2;159;79;69m[48;2;17;28;24m┃[0m[14;4H[38;2;159;79;69m[48;2;17;28;24m┃[0m[15;4H[38;2;159;79;69m[48;2;17;28;24m┃[0m[16;4H[38;2;159;79;69m[48;2;17;28;24m┃[0m[16;7H[38;2;146;69;56m[48;2;35;55;43mBuild[0m[16;13H[38;2;59;80;67m[48;2;35;55;43m·[16;14H[0m[16;15H[38;2;115;126;98m[48;2;35;55;43mDeepSeek V4.1 Flash 1017[0m[16;40H[38;2;59;80;67m[48;2;35;55;43mOllama Cloud[0m[17;4H[38;2;159;79;69m[48;2;17;28;24m╹[0m[0m[14;7H[?25h[?2026l[?2026h[?25l[13;4H[38;2;199;80;69m[48;2;17;28;24m┃[0m[14;4H[38;2;199;80;69m[48;2;17;28;24m┃[0m[15;4H[38;2;199;80;69m[48;2;17;28;24m┃[0m[16;4H[38;2;199;80;69m[48;2;17;28;24m┃[0m[16;7H[38;2;191;75;61m[48;2;35;55;43mBuild[0m[16;13H[38;2;69;90;77m[48;2;35;55;43m·[16;14H[0m[16;15H[38;2;147;155;120m[48;2;35;55;43mDeepSeek V4.1 Flash 1017[0m[16;40H[38;2;69;90;77m[48;2;35;55;43mOllama Cloud[0m[17;4H[38;2;199;80;69m[48;2;17;28;24m╹[0m[0m[14;7H[?25h[?2026l[?2026h[?25l[13;4H[38;2;224;82;69m[48;2;17;28;24m┃[0m[14;4H[38;2;224;82;69m[48;2;17;28;24m┃[0m[15;4H[38;2;224;82;69m[48;2;17;28;24m┃[0m[16;4H[38;2;224;82;69m[48;2;17;28;24m┃[0m[16;7H[38;2;220;78;65m[48;2;35;55;43mBuild[0m[16;13H[38;2;75;96;83m[48;2;35;55;43m·[16;14H[0m[16;15H[38;2;168;173;134m[48;2;35;55;43mDeepSeek V4.1 Flash 1017[0m[16;40H[38;2;75;96;83m[48;2;35;55;43mOllama Cloud[0m[17;4H[38;2;224;82;69m[48;2;17;28;24m╹[0m[0m[14;7H[?25h[?2026l[?2026h[?25l[13;4H[38;2;243;82;69m[48;2;17;28;24m┃[0m[14;4H[38;2;243;82;69m[48;2;17;28;24m┃[0m[15;4H[38;2;243;82;69m[48;2;17;28;24m┃[0m[16;4H[38;2;243;82;69m[48;2;17;28;24m┃[0m[16;7H[38;2;241;81;67m[48;2;35;55;43mBuild[0m[16;13H[38;2;80;101;88m[48;2;35;55;43m·[16;14H[0m[16;15H[38;2;183;187;144m[48;2;35;55;43mDeepSeek V4.1 Flash 1017[0m[16;40H[38;2;80;101;88m[48;2;35;55;43mOllama Cloud[0m[17;4H[38;2;243;82;69m[48;2;17;28;24m╹[0m[0m[14;7H[?25h[?2026l[?2026h[?25l[13;4H[38;2;254;83;69m[48;2;17;28;24m┃[0m[14;4H[38;2;254;83;69m[48;2;17;28;24m┃[0m[15;4H[38;2;254;83;69m[48;2;17;28;24m┃[0m[16;4H[38;2;254;83;69m[48;2;17;28;24m┃[0m[16;7H[38;2;254;83;69m[48;2;35;55;43mBuild[0m[16;13H[38;2;83;104;91m[48;2;35;55;43m·[16;14H[0m[16;15H[38;2;192;195;151m[48;2;35;55;43mDeepSeek V4.1 Flash 1017[0m[16;40H[38;2;83;104;91m[48;2;35;55;43mOllama Cloud[0m[17;4H[38;2;254;83;69m[48;2;17;28;24m╹[0m[0m[14;7H[?25h[?2026l[?2026h[?25l[13;4H[38;2;255;83;69m[48;2;17;28;24m┃[0m[14;4H[38;2;255;83;69m[48;2;17;28;24m┃[0m[15;4H[38;2;255;83;69m[48;2;17;28;24m┃[0m[16;4H[38;2;255;83;69m[48;2;17;28;24m┃[0m[16;7H[38;2;255;83;69m[48;2;35;55;43mBuild[0m[16;15H[38;2;193;196;151m[48;2;35;55;43mDeepSeek V4.1 Flash 1017[0m[17;4H[38;2;255;83;69m[48;2;17;28;24m╹[0m[0m[14;7H[?25h[?2026l]7501;state=clear\[?25h[0m]22;\[>4;0m[?1003l[?1002l[?1000l[?1006l[?2004l[?1049l[?2031l]0;]12;default]112[0 q[?25h[?25h stand for their usual endpoints. The drop-in
goes next to the file that was actually read (sp_config_loaded_path), not
next to a path guessed from the environment, so --config works.
providers.c holds the list, the validation, the transport switch and the
provider identity main.c used to compute inline. test_providers covers the
list, the refusals, replacement of a line and a reload of what was written;
test_gateway presses the model button, proves the next turn goes to the new
endpoint (the test one is dead) and runs /connect to the written file.
A chat that shows **fett**, |---| and <b> lost the answer's shape. tgmd.c
turns bold, italic, strike, inline code, fenced blocks, links, headings,
bullets and quotes into the tags parse_mode=HTML accepts and escapes
everything else, so a '<' stays text and snake_case_name stays a name.
Tables keep the shape the terminal chat gives them: aligned columns in
<pre>.
Telegram's 4096 cap is met by splitting the rendered HTML at tag and
entity boundaries, closing open tags at the end of a piece and reopening
them at the start of the next. A piece the API refuses to parse is resent
stripped, because losing the shape is better than losing the answer.
SPLINTER_TG_MARKDOWN=0 keeps the old plain-text path.
test_tgmd pins the renderer and the chunker; test_gateway asserts the bot
sends parse_mode=HTML with <b>/<code> and a table in <pre>.
sp_agent_run can stop before a mutating tool when an approval callback
returns 2; the assistant call is in the conversation, no observation is.
sp_agent_resume(decision) runs the pending calls, adds the observations
and continues the model loop. Normal callers are unchanged: the ack, UI
and gateway paths still return 0/1.
The A2A server pauses as TASK_STATE_INPUT_REQUIRED, keeps the task and
its context, and resumes on SendMessage with the same taskId and
yes/no. CancelTask cancels a paused task. SendStreamingMessage has no
resume point and denies mutating tools instead.
test_pause covers allow/deny in the agent; test_a2a_input covers the
whole HTTP flow (yes, no, cancel). Full make check green (33 C tests).
The server accepts text, a string in data, and a text/plain raw part
(base64) via the new sp_b64_decode; a url part (not fetched) or a binary
part is refused with ContentTypeNotSupported (-32005). The client reads
text, string data and text/plain raw, ignoring parts it cannot render.
The agent card now says streaming:true and pushNotifications:false.
test_b64 covers the decoder; test_a2a reads raw/data from the fake
agent; test_a2a_server accepts a raw part and refuses a url. test_ui
waits for the turn label to disappear after Ctrl-C before typing again.
Full make check green.
check_usage demanded a transport before the ack/interview paths ran, so
'--no-config --interview' failed with 'no transport' even though neither
path runs a model. Exempt the ack and interview modes.
tests/test_interview.sh pipes six answers through the real binary,
checks the English catalogue prompts, the skipped marker and the written
profile. README notes that the questions follow the locale.
The diagnostic path for a delegate that fails: the observation carries
the child's exit status, its own error text and the job line, with no
model turn and no transport. On 2026-11-10
'--delegate claude0 -p "sage nur: beta"' answers beta, so the old
exit 2 is not reproducible; TODO moves it to done and keeps the command
as the way to check again.
The A2A server also uses the spec's codes for what it refuses now:
CancelTask -32002 (TaskNotCancelable), push configuration -32003,
SubscribeToTask -32004.
test_delegate_cli.sh covers the run, an unknown id and a missing task;
test_a2a_server.sh covers the cancel and push errors. README, man page,
TODO and the site follow.
The server keeps up to 16 conversations, keyed by contextId and evicted
LRU-style. A message with a known id continues it; without one the server
generates an id and returns it in the task, so callers that send no
context at all do not share a history. The session log still records
every turn.
test_a2a_context.sh uses a fake OpenAI endpoint that answers with the
number of user messages it received: fresh=1, same context=2, another
context=1, and continuing with the generated id reaches 2. README,
PLUGINS.md, TODO, ROADMAP and the site follow.
src/a2aserver.c is a minimal HTTP/1.1 + JSON-RPC endpoint:
--a2a-server-listen and --a2a-listen-port. SendMessage runs one turn in
its own conversation (system prompt plus the caller's text) and returns a
completed Task; GetTask returns it from the in-memory store;
GET /.well-known/agent-card.json serves a card with the JSONRPC interface.
Beyond loopback SPLINTER_A2A_SERVER_TOKEN is required and checked as an
Authorization: Bearer header. One request at a time, one connection at a
time, no TLS.
Streaming, CancelTask/SubscribeToTask, file/structured parts, push
notifications and continuation of an interrupted task are refused with a
JSON-RPC error instead of half-answered.
test_a2a_server.sh covers the card, SendMessage, GetTask, the streaming
refusal and the token. README, PLUGINS.md, the man page and the site
follow.
The A2A transport implements send_stream now: SSE events are read as
StreamResponse (task, message, statusUpdate, artifactUpdate), artifact and
message text goes to the screen as it arrives, intermediate status notes
are ignored, and a completed status message is the answer only when no
artifact or direct message text came. Failed/canceled/rejected and
input/auth-required states fail the turn instead of becoming an answer.
One-shot mode already streamed whenever a transport offered it, so the
plain send path was unreachable from the CLI. --no-stream asks for it.
test_a2a.sh covers both SendMessage and SendStreamingMessage; the new
test_a2a_ui.sh drives the UI streaming path through tmux.
README, PLUGINS.md, the man page and the site follow.
plugins/a2a sends one SendMessage over JSON-RPC 2.0 with a text part and
reads either a direct Message or a Task in TASK_STATE_COMPLETED (status
message plus artifact text). Task and context ids are kept for the session;
a terminal task loses its id but keeps the context. Bearer token, timeout
and SPLINTER_A2A_FULL are supported.
Text only. Streaming, file/structured parts, push notifications,
GetTask/CancelTask and agent-card discovery are named as not built, so
nobody assumes otherwise.
tests/fake_a2a.py and tests/test_a2a.sh pin the wire shape, both result
forms, the bearer token and a JSON-RPC error. The site now counts the new
plugin (16) and names the transport; README, PLUGINS.md and ROADMAP follow.
TODO also records the live claude check: both configured accounts are at
their limit, exit 1 with the child's text, claude0 benched and claude1
queued; exit 2 remains unreproduced.
test_jobs drives delegate_submit, jobs, result, due and retry against a fake
ssh, writes a due waiting_poll job and lets sp_delegate_tick retry it, and
loads the scheduler plugin to check its idle widget. The test found a real
bug: tool_delegate_retry parsed id and force into the same sp_buf, and
json_str appends, so force=1 turned job-1 into job-11. force now has its own
buffer.
Markdown tables are drawn as columns now (src/md.c, test_md, and a case in
test_ui.sh that checks the screen). The site counts lines, tools, tests,
plugins and palettes from the tree instead of naming them; the binary-size
figure is gone because it aged with every build.
The delegate panel cycle has a test (host + tasks plugin, widget says
delegate:panel exit 0), and the turn loop is driven with lcm at 8 KiB and
32 KiB budgets, so compaction is measured rather than claimed.
swarm, provstate and planner get smoke tests. TODO.md is rewritten against
the tree: the step limit was the old default (8 -> 150), skills and memory
were already built, and the open points are claude exit 2, a real Telegram
approval, A2A, the npm leftovers and the scheduler/job tests.
env=NAME=VALUE on a delegate line (repeatable) is set in the child right
before exec and beats what the parent exported, so two delegates can run
the same cli with two accounts. Remotely it goes in front as
`env 'NAME=VALUE'`, quoted like the rest. cli_env = NAME=VALUE does the
same for the main cli transport. A bad name is an error with the line.
Also in this commit, the work in progress from the tree: swarm and
provider state, the provider/scheduler/planner/tmux plugins, the ui test,
whose tmux session name is now per run so parallel runs do not collide.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>