diff --git a/Makefile b/Makefile index 0082413..fed932f 100644 --- a/Makefile +++ b/Makefile @@ -161,7 +161,7 @@ tests/test_plugin: tests/test_plugin.c $(LIB) $(PLUGIN) $(CC) $(CFLAGS) -o $@ tests/test_plugin.c -L. -lsplinter $(TEST_RPATH) $(LIBS) check: $(LIB) $(BIN) $(PLUGIN) $(TESTS) - @set -e; python3 tools/check_i18n.py; \ + @set -e; python3 tools/check_i18n.py; python3 tools/gen_www.py --check; \ for t in $(TESTS); do echo "== $$t"; ./$$t; done; \ echo "all tests passed" @@ -174,3 +174,8 @@ clean: rm -f $(BIN) $(LIB) $(LIBOBJ) $(BINOBJ) $(PLUGIN) $(TESTS) .PHONY: all check curses install clean + +# The pages are generated: one source, every language, and a missing translation +# is a hard error - the same rule as the program's own catalogues. +www: + python3 tools/gen_www.py diff --git a/src/www/index.en.html b/src/www/index.en.html new file mode 100644 index 0000000..6eae122 --- /dev/null +++ b/src/www/index.en.html @@ -0,0 +1,171 @@ + + +
+ +Deutsch · English
+ +An agent harness you own: chat in the terminal, tools with authorization classes, plugins, any model that speaks OpenAI — built by us so we can change it, instead of getting used to how somebody else's client behaves.
+ + + +The same thing Claude Code or opencode is for you: a program you sit in front of, talking to a model, running the tools it asks for. The difference is the source. If something bothers you — the layout, the keys, the confirmation prompts, the transport — you change it here instead of waiting for someone else to.
+splinter is the layer in between: what gets sent, whether a tool may run, what is written down, and what you see on screen.
+ +you: Aendere in /tmp/x.c die Zeile 'return 0' in 'return 1'. +thinking: I must read the file, then replace exactly one place. + An ambiguous pattern would be a wrong edit. +tool: edit {"path":"/tmp/x.c","old":"return 0","new":"return 1"} +diff: --- a//tmp/x.c + +++ b//tmp/x.c + @@ -11,3 +11,3 @@ + int main(void) { + - return 0; + + return 1; + } +model: Done. Line 12 returns 1 now. + + splinter 0.1.0 session sess-1794... Delphinium 842 ms+
Reasoning, the tool call with its arguments, the diff, the answer. The reasoning block grows where it belongs while the turn runs, and does not jump away when it ends.
+ + +Does the conversation still fit? If not, it is compacted before sending — not after, and not quietly in the middle of a turn.
Does the tool exist? An invented name becomes an observation, not a crash.
The tool declares what it may do — read, mutate, destructive. Not the model, not the prompt. For mutate and destructive the harness asks you — in the prompt line in the chat, as a y/N message on Telegram.
| Tool | Class | What it does |
|---|---|---|
| read | read | numbered lines, offset/limit, refuses binary files |
| search | read | literal search over a tree, at most 100 hits |
| list | read | list a directory |
| skill_search | read | find installed skills — nothing is preloaded |
| skill_load | read | read one skill in full |
| memory_search | read | your own memories, scoped per user |
| write | mutate | write a file, with the diff in the observation |
| edit | mutate | replace exactly one occurrence; ambiguous is an error |
| memory_add | mutate | remember one fact |
| run | destructive | a shell command; the exit status is an observation |
| delegate | destructive | hand a task to another model |
| Name | What it does |
|---|---|
| openai | any OpenAI-compatible endpoint, streaming over SSE |
| cli | any program as the model, e.g. claude -p |
| ring | exit ring: 429 or limit → next exit |
| mcp | an MCP server as a tool source, with its own schemas |
| lcm | compaction of the conversation |
| focus | reminds the model of the goal every N turns (/goal) |
| reminder | puts the ground rules back into the conversation every 10 turns |
| cps, clock | widgets in the sidebar |
# ~/.splinter/splinter.conf.d/20-delegates.conf +delegate = coder | C99, POSIX, Review | tags=code,c99,review | endpoint=... | model=... +delegate = quick | short answers, chat | tags=chat,cheap | endpoint=... | model=... + +$ splinter --choose "pruefe diesen C-Code auf Speicherfehler" +coder 7 task mentions 'code'+
A requested tag counts 5, a tag in the task 3, a word from the description 1. The observation opens with the choice and the reason — a wrong pick is visible instead of mysterious. No profiles: one line per model.
+ + +~/.splinter/splinter.conf, plus every .conf in ~/.splinter/splinter.conf.d/ in name order. An unknown key is an error naming the file and line — a typo must not silently do nothing.
# ~/.splinter/splinter.conf
+endpoint = http://kontron.local:8080/v1/chat/completions
+model = Qwen3.6-35B-A3B-UD-Q8_K_XL.gguf
+locale = de
+theme = Delphinium
+autonomous = 1
+telegram_allow = 8300935
+plugin = plugins/lcm/lcm.so
+plugin = plugins/reminder/reminder.so
+
+
+splinter --daemon long-polls getUpdates, one turn per message, answers with sendMessage. The token lives in ~/.splinter/telegram.token with mode 0600 and is never passed as an argument — arguments end up in ps. While a turn runs, the chat sees "typing" every four seconds.
Slash commands work there too. Programs in ~/.splinter/commands/ become /name: they get the rest of the line as an argument, and their output goes to the model as context — not to you as a reply. That is how the model fetches what it cannot see itself.
~/.splinter/logs/<session>/session.log readable, in order, everything +~/.splinter/logs/<session>/wire.jsonl every request body, every reply, raw+
Your words, the answer, the reasoning, every tool call with its arguments, every observation, failures, token counts. Nothing truncated — a log that keeps only the good parts cannot explain a bad turn.
+ +$ git clone ssh://host/home/git/splinter.git +$ cd splinter && make 248 KB, nothing but libc and curses +$ make check 21 test programs, plus the i18n checker +$ ./splinter chat, the config is read +$ ./splinter --daemon Telegram gateway+
POSIX make, C99, -Wall -Wextra -Werror. NetBSD curses is vendored, so the binary does not depend on a distribution's mood.
splinter — C99/POSIX, BSD-3-Clause. Manual: man ./docs/splinter.1 · Plugin ABI: docs/PLUGINS.md · We take things apart, rebuild them and keep them. Their systems: leave them alone unless asked.
Deutsch · English
+Ein Agent-Harness, das dir gehoert: Chat im Terminal, Werkzeuge -mit Autorisierungsklassen, Plugins, jedes Modell das OpenAI spricht — -von uns gebaut, damit wir es umbauen koennen, statt uns an das Verhalten -eines fremden Clients zu gewoehnen.
+Ein Agent-Harness, das dir gehoert: Chat im Terminal, Werkzeuge mit Autorisierungsklassen, Plugins, jedes Modell das OpenAI spricht — von uns gebaut, damit wir es umbauen koennen, statt uns an das Verhalten eines fremden Clients zu gewoehnen.
Dasselbe, was Claude Code oder opencode fuer dich sind: ein Programm, in dem -du mit einem Modell redest und das die Werkzeuge ausfuehrt, um die es bittet. -Der Unterschied ist der Quelltext. Wenn dich etwas stoert — das Layout, die -Tasten, die Frage nach Bestaetigung, der Transport — aenderst du es hier, -statt darauf zu warten.
- -splinter ist die Schicht dazwischen: was gesendet wird, ob ein Werkzeug laufen -darf, was davon aufgezeichnet wird und was du auf dem Schirm siehst.
+Dasselbe, was Claude Code oder opencode fuer dich sind: ein Programm, in dem du mit einem Modell redest und das die Werkzeuge ausfuehrt, um die es bittet. Der Unterschied ist der Quelltext. Wenn dich etwas stoert — das Layout, die Tasten, die Frage nach Bestaetigung, der Transport — aenderst du es hier, statt darauf zu warten.
+splinter ist die Schicht dazwischen: was gesendet wird, ob ein Werkzeug laufen darf, was davon aufgezeichnet wird und was du auf dem Schirm siehst.
du: Aendere in /tmp/x.c die Zeile 'return 0' in 'return 1'. -denkt: Ich muss die Datei lesen, dann genau eine Stelle ersetzen. - Ein mehrdeutiges Muster waere ein falscher Edit. -werkzeug: edit {"path":"/tmp/x.c","old":"return 0","new":"return 1"} -aenderung: --- a//tmp/x.c ++you: Aendere in /tmp/x.c die Zeile 'return 0' in 'return 1'. +thinking: I must read the file, then replace exactly one place. + An ambiguous pattern would be a wrong edit. +tool: edit {"path":"/tmp/x.c","old":"return 0","new":"return 1"} +diff: --- a//tmp/x.c +++ b//tmp/x.c @@ -11,3 +11,3 @@ int main(void) { - return 0; + return 1; } -modell: Geaendert. Zeile 12 gibt jetzt 1 zurueck. +model: Done. Line 12 returns 1 now. - splinter 0.1.0 Sitzung sess-1794... Delphinium 842 ms+ splinter 0.1.0 session sess-1794... Delphinium 842 ms
Denken, Werkzeugaufruf mit Argumenten, Diff, Antwort. Der Denk-Block waechst waehrend des Laufs dort, wo er hingehoert, und springt am Ende nicht weg.
-Denken, Werkzeugaufruf mit Argumenten, Diff, Antwort. Der Denk-Block waechst -waehrend des Laufs dort, wo er hingehoert, und springt am Ende nicht weg.
Passt die Konversation noch? Wenn nicht, wird vor dem Senden -komprimiert — nicht danach, und nicht heimlich waehrend des Laufs.
-Existiert das Werkzeug? Ein erfundener Name wird zu einer -Beobachtung, nicht zu einem Absturz.
-Das Werkzeug erklaert, was es darf — -read, mutate, destructive. Nicht das Modell, nicht der -Prompt. Bei mutate und destructive fragt dich das Harness — im Chat in der -Eingabezeile, auf Telegram als Nachricht mit y/N.
-Passt die Konversation noch? Wenn nicht, wird vor dem Senden komprimiert — nicht danach, und nicht heimlich waehrend des Laufs.
Existiert das Werkzeug? Ein erfundener Name wird zu einer Beobachtung, nicht zu einem Absturz.
Das Werkzeug erklaert, was es darf — read, mutate, destructive. Nicht das Modell, nicht der Prompt. Bei mutate und destructive fragt dich das Harness — im Chat in der Eingabezeile, auf Telegram als Nachricht mit y/N.
| Werkzeug | Klasse | Was es tut |
|---|---|---|
| read | read | numerierte Zeilen, offset/limit, verweigert Binaerdateien |
| search | read | Literal-Suche im Baum, maximal 100 Treffer |
| list | read | Verzeichnis anzeigen |
| skill_search | read | installierte Skills finden — nichts wird vorgeladen |
| skill_search | read | installierte Skills finden — nichts wird vorgeladen |
| skill_load | read | einen Skill ganz lesen |
| memory_search | read | eigene Erinnerungen, pro Benutzer getrennt |
| write | mutate | Datei schreiben, mit Diff in der Beobachtung |
| delegate | destructive | Aufgabe an ein anderes Modell geben |
| Name | Was es tut |
|---|---|
| openai | jeder OpenAI-kompatible Endpunkt, Streaming ueber SSE |
| cps, clock | Widgets in der Seitenleiste |
# ~/.splinter/splinter.conf.d/20-delegates.conf delegate = coder | C99, POSIX, Review | tags=code,c99,review | endpoint=... | model=... -delegate = quick | kurze Antworten, Chat | tags=chat,cheap | endpoint=... | model=... +delegate = quick | short answers, chat | tags=chat,cheap | endpoint=... | model=... $ splinter --choose "pruefe diesen C-Code auf Speicherfehler" coder 7 task mentions 'code'+
Angefragter Tag zaehlt 5, Tag im Aufgabentext 3, Wort aus der Beschreibung 1. Die Beobachtung beginnt mit der Wahl und dem Grund — eine falsche Wahl ist sichtbar statt mysterioes. Ohne Profile: eine Zeile pro Modell.
-Angefragter Tag zaehlt 5, Tag im Aufgabentext 3, Wort aus der Beschreibung 1. -Die Beobachtung beginnt mit der Wahl und dem Grund — eine falsche Wahl ist -sichtbar statt mysterioes. Ohne Profile: eine Zeile pro Modell.
~/.splinter/splinter.conf, plus jede .conf in
-~/.splinter/splinter.conf.d/ in Namensreihenfolge. Ein unbekannter
-Schluessel ist ein Fehler mit Dateiname und Zeile — ein Tippfehler darf
-nicht still nichts tun.
~/.splinter/splinter.conf, plus jede .conf in ~/.splinter/splinter.conf.d/ in Namensreihenfolge. Ein unbekannter Schluessel ist ein Fehler mit Dateiname und Zeile — ein Tippfehler darf nicht still nichts tun.
# ~/.splinter/splinter.conf
endpoint = http://kontron.local:8080/v1/chat/completions
model = Qwen3.6-35B-A3B-UD-Q8_K_XL.gguf
@@ -172,55 +137,34 @@ telegram_allow = 8300935
plugin = plugins/lcm/lcm.so
plugin = plugins/reminder/reminder.so
+
splinter --daemon pollt getUpdates, ein Turn pro
-Nachricht, Antwort per sendMessage. Der Token liegt in
-~/.splinter/telegram.token mit Modus 0600 und wird nie als Argument
-uebergeben — Argumente stehen in ps. Waehrend eines Turns
-sieht der Chat alle vier Sekunden „typing“.
Slash-Kommandos funktionieren dort genauso. Programme in
-~/.splinter/commands/ werden zu /name: sie bekommen den
-Rest der Zeile als Argument, und ihre Ausgabe geht ans Modell als
-Kontext — nicht an dich als Antwort. Damit holt sich das Modell, was es
-selbst nicht sehen kann.
splinter --daemon pollt getUpdates, ein Turn pro Nachricht, Antwort per sendMessage. Der Token liegt in ~/.splinter/telegram.token mit Modus 0600 und wird nie als Argument uebergeben — Argumente stehen in ps. Waehrend eines Turns sieht der Chat alle vier Sekunden „typing“.
Slash-Kommandos funktionieren dort genauso. Programme in ~/.splinter/commands/ werden zu /name: sie bekommen den Rest der Zeile als Argument, und ihre Ausgabe geht ans Modell als Kontext — nicht an dich als Antwort. Damit holt sich das Modell, was es selbst nicht sehen kann.
~/.splinter/logs/<sitzung>/session.log lesbar, in Reihenfolge, alles ~/.splinter/logs/<sitzung>/wire.jsonl jeder Request-Body, jede Antwort, roh- -
Deine Worte, die Antwort, das Denken, jeder Werkzeugaufruf mit Argumenten, -jede Beobachtung, Fehler, Token-Zahlen. Nichts gekuerzt — ein Log, das nur -das Gute behaelt, kann einen schlechten Turn nicht erklaeren.
+Deine Worte, die Antwort, das Denken, jeder Werkzeugaufruf mit Argumenten, jede Beobachtung, Fehler, Token-Zahlen. Nichts gekuerzt — ein Log, das nur das Gute behaelt, kann einen schlechten Turn nicht erklaeren.
$ git clone ssh://host/home/git/splinter.git -$ cd splinter && make # 248 KB, nichts ausser libc und curses -$ make check # 21 Test-Programme, plus i18n-Pruefer -$ ./splinter # Chat, Konfiguration wird gelesen -$ ./splinter --daemon # Telegram-Gateway+$ cd splinter && make 248 KB, nichts ausser libc und curses +$ make check 21 Test-Programme, plus i18n-Pruefer +$ ./splinter Chat, Konfiguration wird gelesen +$ ./splinter --daemon Telegram-Gateway +
POSIX make, C99, -Wall -Wextra -Werror. Die NetBSD-curses liegt im Baum, damit das Binary nicht von der Laune einer Distribution abhaengt.
POSIX make, C99, -Wall -Wextra -Werror. Die NetBSD-curses liegt
-im Baum, damit das Binary nicht von der Laune einer Distribution abhaengt.
splinter — C99/POSIX, BSD-3-Clause.
-Manual: man ./docs/splinter.1 ·
-Plugin-ABI: docs/PLUGINS.md ·
-Wir nehmen auseinander, bauen nach und behalten. Ihre Systeme: in Ruhe lassen,
-wenn nicht gefragt.
splinter — C99/POSIX, BSD-3-Clause. Manual: man ./docs/splinter.1 · Plugin-ABI: docs/PLUGINS.md · Wir nehmen auseinander, bauen nach und behalten. Ihre Systeme: in Ruhe lassen, wenn nicht gefragt.
{{langbar}}
+ +{{lead}}
+ + + +{{body}} + +{{foot}}
+ +you: Aendere in /tmp/x.c die Zeile 'return 0' in 'return 1'. +thinking: I must read the file, then replace exactly one place. + An ambiguous pattern would be a wrong edit. +tool: edit {{"path":"/tmp/x.c","old":"return 0","new":"return 1"}} +diff: --- a//tmp/x.c + +++ b//tmp/x.c + @@ -11,3 +11,3 @@ + int main(void) {{ + - return 0; + + return 1; + }} +model: Done. Line 12 returns 1 now. + + splinter 0.1.0 session sess-1794... Delphinium 842 ms+
{p}
+""" + +TOOLS = """| {t_tool} | {t_class} | {t_does} |
|---|---|---|
| read | read | {d_read} |
| search | read | {d_search} |
| list | read | {d_list} |
| skill_search | read | {d_ss} |
| skill_load | read | {d_sl} |
| memory_search | read | {d_ms} |
| write | mutate | {d_write} |
| edit | mutate | {d_edit} |
| memory_add | mutate | {d_ma} |
| run | destructive | {d_run} |
| delegate | destructive | {d_del} |
| {t_name} | {t_does} |
|---|---|
| openai | {d_openai} |
| cli | {d_cli} |
| ring | {d_ring} |
| mcp | {d_mcp} |
| lcm | {d_lcm} |
| focus | {d_focus} |
| reminder | {d_rem} |
| cps, clock | {d_widget} |
# ~/.splinter/splinter.conf.d/20-delegates.conf +delegate = coder | C99, POSIX, Review | tags=code,c99,review | endpoint=... | model=... +delegate = quick | short answers, chat | tags=chat,cheap | endpoint=... | model=... + +$ splinter --choose "pruefe diesen C-Code auf Speicherfehler" +coder 7 task mentions 'code'+
{p}
+""" + +CONFIG = """{p}
+# ~/.splinter/splinter.conf
+endpoint = http://kontron.local:8080/v1/chat/completions
+model = Qwen3.6-35B-A3B-UD-Q8_K_XL.gguf
+locale = de
+theme = Delphinium
+autonomous = 1
+telegram_allow = 8300935
+plugin = plugins/lcm/lcm.so
+plugin = plugins/reminder/reminder.so
+"""
+
+BUILD = """$ git clone ssh://host/home/git/splinter.git +$ cd splinter && make {c_make} +$ make check {c_check} +$ ./splinter {c_chat} +$ ./splinter --daemon {c_gw}+
{p}
+""" + +T = { + "de": { + "title": "splinter — ein Agent-Harness, das dir gehoert", + "desc": "splinter ist ein Agent-Harness in C99/POSIX: Chat im Terminal, Werkzeuge mit Autorisierungsklassen, Plugins, jeder OpenAI-kompatible Endpunkt, Telegram-Gateway.", + "langbar": "Deutsch · English", + "lead": "Ein Agent-Harness, das dir gehoert: Chat im Terminal, Werkzeuge mit " + "Autorisierungsklassen, Plugins, jedes Modell das OpenAI spricht — von uns " + "gebaut, damit wir es umbauen koennen, statt uns an das Verhalten eines " + "fremden Clients zu gewoehnen.", + "m_lines": "Zeilen C99/POSIX", "m_binary": "Bytes Binary", + "m_tests": "Test-Programme", "m_plugins": "Plugins", "m_themes": "Farbschemata", + "foot": "splinter — C99/POSIX, BSD-3-Clause. Manual:man ./docs/splinter.1"
+ " · Plugin-ABI: docs/PLUGINS.md · Wir nehmen "
+ "auseinander, bauen nach und behalten. Ihre Systeme: in Ruhe lassen, wenn "
+ "nicht gefragt.",
+ },
+ "en": {
+ "title": "splinter — an agent harness you own",
+ "desc": "splinter is a C99/POSIX agent harness: chat in the terminal, tools with "
+ "authorization classes, plugins, any OpenAI-compatible endpoint, a Telegram gateway.",
+ "langbar": "Deutsch · English",
+ "lead": "An agent harness you own: chat in the terminal, tools with authorization "
+ "classes, plugins, any model that speaks OpenAI — built by us so we can change "
+ "it, instead of getting used to how somebody else's client behaves.",
+ "m_lines": "lines of C99/POSIX", "m_binary": "bytes binary",
+ "m_tests": "test programs", "m_plugins": "plugins", "m_themes": "palettes",
+ "foot": "splinter — C99/POSIX, BSD-3-Clause. Manual: man ./docs/splinter.1"
+ " · Plugin ABI: docs/PLUGINS.md · We take things "
+ "apart, rebuild them and keep them. Their systems: leave them alone unless asked.",
+ },
+}
+
+SECTIONS = {
+ "de": [
+ ("Dasselbe, was Claude Code oder opencode fuer dich sind: ein " + "Programm, in dem du mit einem Modell redest und das die Werkzeuge ausfuehrt, um die " + "es bittet. Der Unterschied ist der Quelltext. Wenn dich etwas stoert — das Layout, " + "die Tasten, die Frage nach Bestaetigung, der Transport — aenderst du es hier, statt " + "darauf zu warten.
\nsplinter ist die Schicht dazwischen: was gesendet wird, ob " + "ein Werkzeug laufen darf, was davon aufgezeichnet wird und was du auf dem Schirm " + "siehst.
"), + (LOOK.format(h="So sieht das aus", + p="Denken, Werkzeugaufruf mit Argumenten, Diff, Antwort. Der Denk-Block waechst " + "waehrend des Laufs dort, wo er hingehoert, und springt am Ende nicht weg.")), + ("Passt die " + "Konversation noch? Wenn nicht, wird vor dem Senden komprimiert — nicht danach, und " + "nicht heimlich waehrend des Laufs.
Existiert das " + "Werkzeug? Ein erfundener Name wird zu einer Beobachtung, nicht zu einem " + "Absturz.
Das " + "Werkzeug erklaert, was es darf — read, mutate, " + "destructive. Nicht das Modell, nicht der Prompt. Bei mutate und destructive " + "fragt dich das Harness — im Chat in der Eingabezeile, auf Telegram als Nachricht mit " + "y/N.
claude -p",
+ d_ring="Exit-Ring: 429 oder Limit → naechster Ausgang",
+ d_mcp="MCP-Server als Werkzeugquelle, mit den Schemata des Servers",
+ d_lcm="Komprimierung der Konversation",
+ d_focus="erinnert alle N Turns an das Ziel (/goal)",
+ d_rem="legt alle 10 Turns die Grundregeln zurueck in die Konversation",
+ d_widget="Widgets in der Seitenleiste")),
+ (DELEGATE.format(h="Delegation: andere Modelle, splinter waehlt",
+ p="Angefragter Tag zaehlt 5, Tag im Aufgabentext 3, Wort aus der Beschreibung 1. Die "
+ "Beobachtung beginnt mit der Wahl und dem Grund — eine falsche Wahl ist sichtbar "
+ "statt mysterioes. Ohne Profile: eine Zeile pro Modell.")),
+ (CONFIG.format(h="Konfiguration",
+ p="~/.splinter/splinter.conf, plus jede .conf in "
+ "~/.splinter/splinter.conf.d/ in Namensreihenfolge. Ein unbekannter "
+ "Schluessel ist ein Fehler mit Dateiname und Zeile — ein Tippfehler darf nicht "
+ "still nichts tun.")),
+ ("splinter --daemon pollt "
+ "getUpdates, ein Turn pro Nachricht, Antwort per "
+ "sendMessage. Der Token liegt in "
+ "~/.splinter/telegram.token mit Modus 0600 und wird nie als Argument "
+ "uebergeben — Argumente stehen in ps. Waehrend eines Turns sieht der "
+ "Chat alle vier Sekunden „typing“.
Slash-Kommandos funktionieren "
+ "dort genauso. Programme in ~/.splinter/commands/ werden zu "
+ "/name: sie bekommen den Rest der Zeile als Argument, und ihre Ausgabe "
+ "geht ans Modell als Kontext — nicht an dich als Antwort. Damit holt sich "
+ "das Modell, was es selbst nicht sehen kann.
~/.splinter/logs/<sitzung>/session.log lesbar, " + "in Reihenfolge, alles\n~/.splinter/logs/<sitzung>/wire.jsonl" + " jeder Request-Body, jede Antwort, roh\n" + "
Deine Worte, die Antwort, das Denken, jeder Werkzeugaufruf mit Argumenten, jede " + "Beobachtung, Fehler, Token-Zahlen. Nichts gekuerzt — ein Log, das nur das Gute " + "behaelt, kann einen schlechten Turn nicht erklaeren.
"), + (BUILD.format(h="Bauen", c_make="248 KB, nichts ausser libc und curses", + c_check="21 Test-Programme, plus i18n-Pruefer", + c_chat="Chat, Konfiguration wird gelesen", c_gw="Telegram-Gateway", + p="POSIX make, C99,-Wall -Wextra -Werror. Die NetBSD-curses liegt im "
+ "Baum, damit das Binary nicht von der Laune einer Distribution abhaengt.")),
+ ("The same thing Claude Code or opencode is for you: a " + "program you sit in front of, talking to a model, running the tools it asks for. The " + "difference is the source. If something bothers you — the layout, the keys, the " + "confirmation prompts, the transport — you change it here instead of waiting for " + "someone else to.
\nsplinter is the layer in between: what gets sent, whether a " + "tool may run, what is written down, and what you see on screen.
"), + (LOOK.format(h="What that looks like", + p="Reasoning, the tool call with its arguments, the diff, the answer. The reasoning " + "block grows where it belongs while the turn runs, and does not jump away when it " + "ends.")), + ("Does the conversation " + "still fit? If not, it is compacted before sending — not after, and not quietly in the " + "middle of a turn.
Does the tool " + "exist? An invented name becomes an observation, not a crash.
The " + "tool declares what it may do — read, mutate, " + "destructive. Not the model, not the prompt. For mutate and destructive the " + "harness asks you — in the prompt line in the chat, as a y/N message on " + "Telegram.
claude -p",
+ d_ring="exit ring: 429 or limit → next exit",
+ d_mcp="an MCP server as a tool source, with its own schemas",
+ d_lcm="compaction of the conversation",
+ d_focus="reminds the model of the goal every N turns (/goal)",
+ d_rem="puts the ground rules back into the conversation every 10 turns",
+ d_widget="widgets in the sidebar")),
+ (DELEGATE.format(h="Delegation: other models, splinter chooses",
+ p="A requested tag counts 5, a tag in the task 3, a word from the description 1. The "
+ "observation opens with the choice and the reason — a wrong pick is visible instead "
+ "of mysterious. No profiles: one line per model.")),
+ (CONFIG.format(h="Configuration",
+ p="~/.splinter/splinter.conf, plus every .conf in "
+ "~/.splinter/splinter.conf.d/ in name order. An unknown key is an "
+ "error naming the file and line — a typo must not silently do nothing.")),
+ ("splinter --daemon long-polls "
+ "getUpdates, one turn per message, answers with "
+ "sendMessage. The token lives in "
+ "~/.splinter/telegram.token with mode 0600 and is never passed as an "
+ "argument — arguments end up in ps. While a turn runs, the chat sees "
+ ""typing" every four seconds.
Slash commands work there too. "
+ "Programs in ~/.splinter/commands/ become /name: they get "
+ "the rest of the line as an argument, and their output goes to the model as "
+ "context — not to you as a reply. That is how the model fetches what it cannot see "
+ "itself.
~/.splinter/logs/<session>/session.log " + "readable, in order, everything\n~/.splinter/logs/<session>" + "/wire.jsonl every request body, every reply, raw\n" + "
Your words, the answer, the reasoning, every tool call with its arguments, every " + "observation, failures, token counts. Nothing truncated — a log that keeps only the " + "good parts cannot explain a bad turn.
"), + (BUILD.format(h="Building", c_make="248 KB, nothing but libc and curses", + c_check="21 test programs, plus the i18n checker", + c_chat="chat, the config is read", c_gw="Telegram gateway", + p="POSIX make, C99,-Wall -Wextra -Werror. NetBSD curses is vendored, so "
+ "the binary does not depend on a distribution's mood.")),
+ ("