.Dd November 7, 2026 .Dt SPLINTER 1 .Os .Sh NAME .Nm splinter .Nd a small C99/POSIX agent harness .Sh SYNOPSIS .Nm .Fl p Ar prompt .Fl -endpoint Ar url .Op Fl -autonomous .Op Fl -steps Ar n .Op Fl -session Ar dir .Op Fl -session-id Ar id .Nm .Fl p Ar prompt .Fl -script Ar file .Op Ar options .Nm .Fl V .Sh DESCRIPTION .Nm 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. .Pp The loop enforces, in this order, before any tool runs: .Bl -enum -compact .It the request fits the configured byte budget; otherwise nothing is sent; .It the tool exists in the registry; otherwise the model is told it does not; .It the tool's authorization class allows the call; a mutating or destructive tool asks the operator unless .Fl -autonomous was given. .El .Pp A denied tool is not skipped silently: the denial is the observation the model receives. .Sh OPTIONS .Bl -tag -width Ds .It Fl p , -prompt Ar TEXT The user message for this turn. Required. .It Fl -endpoint Ar URL Transport: POST the line protocol to .Ar URL using .Xr curl 1 . .It Fl -script Ar FILE Transport: replay one reply per line from .Ar FILE . This needs no network and is how the test suite drives the loop. .It Fl -autonomous Run mutating tools without asking. Read-only tools never ask. .It Fl -steps Ar N Maximum tool rounds per turn (default 8). .It Fl -max-bytes Ar N Request budget in bytes; 0 means no limit. .It Fl -session Ar DIR Session directory (default .Pa ~/.splinter ) . .It Fl -session-id Ar ID Session id (default .Pa sess-