UNCUT is a minimal coding agent framework (harness), positioned as "lossless, headless," designed specifically for shell pipelines, CI jobs, containers, and agent experiments. It deliberately does not provide a TUI, telemetry, a plugin system, background agents, automatic retries, or context compaction, keeping behavior transparent and controllable.
Main capabilities:
- Lossless transport: every model call sends the full conversation; UNCUT does not truncate, summarize, or rewrite valid UTF-8 prompts, stored messages, file contents, or command output. If the provider truncates a response at the output limit, UNCUT exits with an error rather than treating a partial answer as success.
- Headless operation: final text output goes to stdout, and a structured NDJSON event stream is available via --json, containing user, assistant, assistant_meta, tool, and done or error records.
- Small and portable: a single statically linked Go binary, with no runtime or third-party Go dependencies, supporting amd64 and arm64 on Linux, macOS, and Windows.
- Provider-neutral: compatible with OpenAI-style Chat Completions endpoints, including local servers (such as Ollama).
- Resumable sessions: an optional append-only JSONL session file preserves every message and tool result; if the file exists, the full history is restored, and new messages are appended and synced at each step. Model steps rejected by UNCUT (provider truncation, tool calls missing an id or name, empty messages) are not written to the session, avoiding failed runs leaving an unrecoverable session.
- Forkable: approximately 837 lines of Go implementation code, four tools, one provider protocol, one agent loop, MIT license.
Usage: Installation can be done by downloading the binary for the corresponding platform from the releases page and verifying checksums.txt, or by using go install and building from source. Set the model and API key environment variables (such as UNCUT_MODEL, UNCUT_API_KEY); for OpenAI-compatible providers, also set the base URL (such as UNCUT_BASE_URL); local endpoints require no API key by default. Piped input is appended verbatim to the prompt; only valid UTF-8 text is accepted, and invalid input is rejected rather than silently replaced. AGENTS.md in the workspace root is read in full and added to the system prompt;When resuming a session, reuse the originally stored system message. File paths must be within the workspace; paths that escape via symbolic links or Windows junctions are rejected. run_command uses /bin/sh -c on Unix and cmd.exe /D /S /C on Windows.
Use cases and limitations: Suitable for coding agent workflows that require full context transfer, auditability, and scriptability, such as CI integration, in-container automation, and local model experiments. Limitations include: it does not extend the model context window and cannot control provider-side processing; when context or output exceeds limits, the provider may reject or truncate, and UNCUT exposes that failure; it rejects binary files and invalid UTF-8; it uses non-streaming Chat Completions, supports only text and tool calls, and does not support images; it is not a sandbox—the model can execute shell commands with the current OS user's permissions, and the file tools' workspace checks do not constrain the access scope of shell commands, so untrusted tasks should use disposable containers or isolated environments; there are no approval popups, automatic commits, automatic retries, or hidden resume loops. On Windows, some tools may output UTF-16 or code page encoding rather than UTF-8, and UNCUT rejects such output rather than guessing conversion. Session files may contain source code, command output, and secrets, so store them properly and avoid accidental commits.
The project provides a lossless contract verification script that uses Python 3 to drive the real binary to perform transport checks against a deterministic local provider (not a model quality benchmark), covering complete transfer of large files and command output, exact session resumption, editing, explicit truncation failure, step limits, and invalid UTF-8 handling.