# tether

> Tether is a small, headless-first harness that lets small local models and frontier models do real work with a tiny prompt: one `act(cmd, stdin)` tool, commands off by default, SQLite for state and memory, a deterministic sandbox and verification gates. Python 3.12+, `pip install tether-sdk`, command `tether`.

## Start here
- [Introduction and first call](https://igormcsouza.github.io/tether/): what tether is, install, first run with real output.
- [Search the web and write a summary](https://igormcsouza.github.io/tether/start/search-and-summarize/): a local model searches, reads real pages and cites sources.
- [Let Claude call tether to review your writing](https://igormcsouza.github.io/tether/start/review-with-claude/): connect tether over MCP and delegate a draft review.
- [Write and check a script with Nemotron](https://igormcsouza.github.io/tether/start/script-with-nemotron/): a hosted model writes code and a verify gate decides when it is done.

## Guides: basic usage
- [Guides index](https://igormcsouza.github.io/tether/guides/): every guide, by the job you want done.
- [Find your way around](https://igormcsouza.github.io/tether/guides/basic/find-your-way-around/): where tether keeps its files, `tether doctor`, the everyday commands.
- [Run and manage sessions](https://igormcsouza.github.io/tether/guides/basic/run-and-manage-sessions/): run, watch, resume and read back sessions.
- [Built-in tools](https://igormcsouza.github.io/tether/guides/basic/built-in-tools/): done, bash, edit, web, mem, agent.
- [Configure providers and models](https://igormcsouza.github.io/tether/guides/basic/configure-providers/): providers.yaml, Ollama, OpenAI-compatible, Anthropic, command providers, parameters.
- [Choose a model: what to expect](https://igormcsouza.github.io/tether/guides/basic/choose-a-model/): what each model does through tether, where it fails, and the same five tasks on five models.
- [Fix a failing test with a local model](https://igormcsouza.github.io/tether/guides/basic/fix-a-failing-test/): a verification gate decides when the job is done.
- [Write tasks a small model can finish](https://igormcsouza.github.io/tether/guides/basic/write-tasks-small-models/): task-writing rules, a re-runnable example, what each model does well and badly.
- [Review and debug a session](https://igormcsouza.github.io/tether/guides/basic/review-and-debug/): read steps, diff, export, stats, replay and retro.
- [Skills](https://igormcsouza.github.io/tether/guides/basic/skills/): package a repeatable job.

## Guides: advanced
- [Python SDK and custom tools](https://igormcsouza.github.io/tether/guides/advanced/sdk-and-custom-tools/): Harness, @tool, stdin payloads.
- [Give the model a tool of your own](https://igormcsouza.github.io/tether/guides/advanced/add-your-own-tool/): turn a Python function into a command.
- [A pipeline where each stage has its own job](https://igormcsouza.github.io/tether/guides/advanced/pipelines/): stages, per-stage model, tools and gate.
- [Multi-agent orchestration](https://igormcsouza.github.io/tether/guides/advanced/multi-agent/): spawn, wait, query sub-agents.
- [Run a session on its own branch](https://igormcsouza.github.io/tether/guides/advanced/own-branch/): `--worktree`, reading the branch and commit, merging and cleanup.
- [Security and sandbox](https://igormcsouza.github.io/tether/guides/advanced/security-and-sandbox/): what a session can touch.
- [Gates, memory and telemetry](https://igormcsouza.github.io/tether/guides/advanced/gates-memory-telemetry/): verification gates, project memory, tether stats.
- [Control cost and limits](https://igormcsouza.github.io/tether/guides/advanced/control-cost-and-limits/): steps, tokens, time, resource limits, typed answers.
- [Delegate from Claude Code, Codex or Cursor](https://igormcsouza.github.io/tether/guides/advanced/delegate-from-your-agent/): MCP setup, the JSON result, exit codes.
- [Use tether inside your agent (MCP)](https://igormcsouza.github.io/tether/guides/advanced/use-from-your-agent-mcp/): MCP and CLI twins for other agents.
- [Custom providers and transports](https://igormcsouza.github.io/tether/guides/advanced/custom-providers-and-transports/): add model backends.

## Concepts
- [Concepts](https://igormcsouza.github.io/tether/concepts/): the problems tether solves and the research behind each solution.
- [One action for everything](https://igormcsouza.github.io/tether/concepts/one-action-primitive/): why a single `act` tool (CodeAct).
- [Help only when asked](https://igormcsouza.github.io/tether/concepts/progressive-help/): one line per tool, usage on demand (SWE-agent).
- [Context and folding](https://igormcsouza.github.io/tether/concepts/context-and-folding/): bounded working memory and SQLite recall (MemGPT).
- [A prefix that never changes](https://igormcsouza.github.io/tether/concepts/kv-cache-and-static-prefix/): protecting the model's cache.
- [The deterministic envelope](https://igormcsouza.github.io/tether/concepts/deterministic-envelope/): how a task is decided finished (Maia et al.).
- [Loops, stalls and fresh starts](https://igormcsouza.github.io/tether/concepts/stalls-and-restarts/): detecting loops, restarting, handing back.
- [The repair loop around tests](https://igormcsouza.github.io/tether/concepts/repair-loop/): auto-test, failing test source, regressions, traces.
- [Thinking and sampling](https://igormcsouza.github.io/tether/concepts/thinking-and-sampling/): bounded thinking and no forced temperature.

## Architecture
- [Overview](https://igormcsouza.github.io/tether/architecture/overview/): one step through the code, the modules and where a change belongs.
- [Decisions and open questions](https://igormcsouza.github.io/tether/architecture/decisions/): the binding decision register (AD-n), open questions (OQ-n) and rejected ideas.
- [Build and test tether](https://igormcsouza.github.io/tether/architecture/build-and-test/): checks, golden traces, e2e, habits for contributors.
- [Models we have tested](https://igormcsouza.github.io/tether/architecture/models/): what each model does well and badly and its score on every ladder task.

## Benchmarks
- [Benchmarks](https://igormcsouza.github.io/tether/benchmarks/): what is measured and how the numbers are kept honest.
- [Polyglot-Python](https://igormcsouza.github.io/tether/benchmarks/polyglot/): the score per version, what we learned, comparison with a bare model and other harnesses.
- [The Coding Ladder](https://igormcsouza.github.io/tether/benchmarks/ladder/): tether's own coding benchmark, 24 tasks in 6 tiers, and how to run it.
- [Coding Ladder results, local models](https://igormcsouza.github.io/tether/benchmarks/ladder/results/): where qwen3.5:9b, qwen3.5:4b and qwen2.5-coder:7b stop, tether against a bare tool loop, and what to expect.
- [Coding Ladder results, Claude Haiku](https://igormcsouza.github.io/tether/benchmarks/ladder/claude-haiku/): how far Claude Haiku climbs with and without tether, next to qwen3.5:9b, and what limits each.
- [Everyday work ladder](https://igormcsouza.github.io/tether/benchmarks/ladder/general/): the non-coding kinds (content, Q&A over documents, critique, extraction to JSON) and how Claude Haiku does on them through tether.

## Reference
- [Reference index](https://igormcsouza.github.io/tether/reference/): which reference page answers which question.
- [CLI](https://igormcsouza.github.io/tether/reference/cli/): every subcommand, flag and exit code, including `doctor`, `diff`, `export`, `replay`, `--max-tokens`, `--worktree` and `pipeline --resume`.
- [Model providers](https://igormcsouza.github.io/tether/reference/providers/): built-in prefixes, providers.yaml, Python providers.
- [Agent interface](https://igormcsouza.github.io/tether/reference/agent-interface/): JSON shape, exit codes, MCP tools.
- [Harness and CLI (API)](https://igormcsouza.github.io/tether/reference/harness/)
- [Context and SQLite store](https://igormcsouza.github.io/tether/reference/context-and-store/)
- [Multiplexer and decorator](https://igormcsouza.github.io/tether/reference/multiplexer-and-decorator/)
- [Sandbox and skills](https://igormcsouza.github.io/tether/reference/sandbox-and-skills/)
- [Built-in tools (API)](https://igormcsouza.github.io/tether/reference/tools/)

## Help
- [Troubleshooting](https://igormcsouza.github.io/tether/troubleshooting/): by symptom, cause and fix, with issue links.
- [Glossary](https://igormcsouza.github.io/tether/glossary/): the terms used across the docs.
- [Release notes](https://igormcsouza.github.io/tether/release-notes/)

## Optional
- [Source and issues](https://github.com/igormcsouza/tether)
- [Contributing](https://github.com/igormcsouza/tether/blob/main/CONTRIBUTING.md)
