diff --git a/src/www/index.html b/src/www/index.html index 326f340..fb76b26 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -3,17 +3,21 @@ - splinter — a small C99/POSIX agent harness - + splinter — an agent harness with a curses UI + @@ -21,23 +25,36 @@

splinter

-

a small C99/POSIX agent harness — no runtime, no SDK, no database

+

agent harness · C99/POSIX · curses UI · plugins · no runtime, no SDK, no database

-splinter runs one turn of an agent loop against a transport. It sends a prompt, -executes the tools the transport asks for, and prints the final answer. Every -turn is appended to a session log as JSON Lines. +splinter is the program you sit in front of. It talks to a model, runs the +tools the model asks for, and shows you what happened — in a terminal, on three +quarters of the screen, with a sidebar on the rest.

-

Why it exists

+
+---------------------------------+------------+
+| history                         | sidebar    |
+| you: which files changed?       | session    |
+| agent: three, all in src/       | transport  |
+|                                 | theme      |
+|                                 | last turn  |
+|                                 | widgets    |
++---------------------------------+------------+
+| splinter 0.1.0              Delphinium  38ms |
++-----------------------------------------------+
+ +

Run it

+
$ make
+$ make check
+$ ./splinter --chat --plugin plugins/clock/clock.so --script replies.txt

-Because a harness that hides its state cannot be debugged. splinter keeps three -things visible at all times: the request it sent, the tools it ran, and the -records it wrote. It does not own a model, a UI, or a network stack — those are -transports. +Seven test binaries drive the real loop through a mock transport: no network, +no key, no model. The plugin test loads the real clock.so with +dlopen and checks that its worker thread published.

-

Rules it enforces before any tool runs

+

Rules the loop enforces

- -

Build

-
$ make
-$ make check
-

Five test binaries drive the loop through a deterministic mock transport: -no network, no key, no model.

- -

Use

-
$ printf 'tool echo ping\nanswer finished\n' > /tmp/r.txt
-$ splinter -p "test run" --script /tmp/r.txt
-finished
-
-$ splinter -p "list the C files" --endpoint http://127.0.0.1:8080/turn
- -

Protocol

-
request   user <text>
-request   observe <tool> <output>
-reply     answer <text>
-reply     tool <name> <arguments>

-A provider adapter translates an OpenAI-compatible endpoint into this shape and -back. The harness never parses vendor JSON — which is exactly why the loop can -be tested with no network at all. +The model never decides whether a tool may run. The registry and the class do. +A plugin can add tools, but not change that rule.

+

Plugins

+

+A plugin is a shared object against libsplinter.so, exporting one +symbol: +

+
const struct sp_plugin *sp_plugin_describe(void);
+

+It can register tools (with the authorization classes above) and +widgets that appear in the sidebar. A widget's tick() runs on +its own thread and may block; it publishes text with +sp_host_widget_text() and never touches curses. Only the UI thread +draws. +

+ + + + + + +
hookthreadmay block
init()mainno
run()mainyes
tick()its ownyes
draw()UIno
+

+A wrong ABI number is refused with both numbers in the message. A failed +init() is reported and skipped. Nothing is +dlclose()d while a thread might still be inside it. +

+ +

Themes

+

+Colours come from CDE's own palette files — 42 of them, converted by a +generator, not invented. The eight colour sets of a palette become roles by +measurement: darkest is the background, lightest the foreground, the second +darkest the border, the most saturated the accent. Default: Delphinium. +

+
$ ./splinter --list-themes | head -3
+Alpine
+Arizona
+BeigeRose
+

What it is not

-Not a chat UI. Not a model. Not a plugin platform. It is the part in the middle -that decides whether a tool may run, and writes down what happened. +Not a model, not a plugin marketplace, not a sandbox. A plugin runs with your +rights; the authorization classes protect the harness from the model, not from +code you chose to load.

-

Manual page: man ./docs/splinter.1 · Source: src/ · License: BSD-3-Clause

+

Manual: man ./docs/splinter.1 · +Plugin ABI: docs/PLUGINS.md · License: BSD-3-Clause