Release Notes¶
Unreleased¶
Added¶
- SWE-bench Verified in the release matrix (
bench/swebench/): a 50-instance subset, bash only, one container per (model, instance, trial), graded by the official harness (swebench 5.0.2, run withuv, not a tether dependency). The published Haiku mini-SWE-agent run (66.6% on all 500, 34 of our 50) is the reference. See SWE-bench Verified.
Changed¶
- The release matrix runs SWE-bench Verified and the coding ladder by default. Polyglot-Python, saturated for Haiku and Nemotron, stays selectable with
--suites polyglot.
Fixed¶
bashunder the Landlock jail failed with "exec bash: Permission denied" when Python was installed under the home directory (for example uv-managed); the program is now found before the jail is built (#424).
v0.4.0 (2026-12-04)¶
Added¶
- Release matrix (
bench/matrix.py,bench/matrix_report.py): each cut version is measured withqwen3.5:9b, Claude Haiku and Nemotron on Polyglot-Python and the coding ladder, three runs each, reported as the mean with the range. See Release matrix. - A skill's frontmatter can set the run's posture:
max_steps,context_tokens,fold_afterandparams(#172). An explicit caller value (flag,Harness(...)argument or MCP argument) still wins, then the skill, then the model'sproviders.yamlentry, then the default.tether runwithout--max-stepsuses the skill's step budget (AD-65). - Fold rules per command prefix (#385, opt-in):
fold_rulesin a providers.yaml entry orHarness(fold_rules=...)lets a command's output stay whole (keep_live), fold after its own number of turns (fold_after) or fold first in auto mode (fold_first). The window budget still folds any of them under pressure. With no rules nothing changes (AD-66). - A skill's frontmatter can also set
monitor(the model id of the opt-in monitor) andfold_rules(per command prefix fold rules), with the same precedence: a caller's explicit value wins, then the skill (AD-65, #412, #385). - Opt-in monitor (
tether run --monitor MODEL,Harness(monitor=), MCPmonitor): a second model is asked only when a stall or explore-nudge detector fires and answerscontinue,note(one line, at most 200 characters) orescalate(the session waits for its caller). Off by default, at most six calls per session, fails open tocontinue, and each call has a 90-second deadline (two misses end it for the session). Not measured yet (#412, AD-67, the monitor). - A built-in
sweskill (#172):tether run --skill swe "..."works with no setup. It asks for test-first work withbashandeditand a 30-step budget. Askills/swein your workspace or~/.tether/skillsoverrides it.
Changed¶
- Every deterministic path the harness takes without the model (notes, verify gates,
done, stall guard, final answer, restart, hand-back) has a scripted end-to-end scenario, and Deterministic paths lists each one with its trigger, what the model sees and its test (#414). - Scripted scenarios now run in CI as the integration layer (
integration/,uv run pytest integration -q); e2e keeps only the real-model scenarios. The four test layers are described in CONTRIBUTING. - e2e gains real-model flow scenarios (
e2e/test_flows.py): a bugfix, a verify gate, a headless run withwait, and a run out of steps. Each asserts only what tether guarantees whatever the model does (valid end state, budgets, notices, files outside the workspace).
Fixed¶
- Rewriting a file with exactly the bytes it had now gets the
[NUDGE] <file> unchangednote; only the comments-or-spacing case did before (#414). - A headless run (
tether run --headless,send) now uses the--context-tokensand--fold-afterit was created with; the worker used to fall back to the defaults and lose them.
v0.3.16 (2026-12-02)¶
Changed¶
-
After a change, six read-only steps in a row no longer add a "call
doneif the task is complete" nudge (AD-20). It was followed 2 of 23 times (stored runs plus 27 general, plan and review tasks onqwen3.5:9b); the "tests pass" nudge and the implicit gate still finish a session whose work is done. -
TETHER_OLLAMA_FALLBACK=1substitutes an installed model of the same family as the requested one (qwen3.5:9bmissing ->qwen3.5:4b), else the first installed; it no longer prefers any model by name. The session records the substitute for any provider, not only Ollama.
Fixed¶
-
A repeated command is answered with one short
[LOOP]line that quotes only the command's first line (at most 80 characters). The old notes pasted the whole command back: a repeated whole-file write made a median 1,945-character note (up to 6,645). Cycles and long read runs use the same[LOOP]tag, and the hint and regression notes are now[HINT]and[REGRESSION], so every notice has the same[TAG] what happened. what to doform. -
tether statscounted adonethe model typed as text (act("done", stdin=...)) as not following the notice that asked for it; on stored Polyglot runs the "tests pass" notice read 22% followed instead of 56%.tether stats --jsonnow has thenoticeskey.
v0.3.15 (2026-12-02)¶
Changed¶
-
bashno longer lists each passing test of verbose test output (... ok,PASSED); failures, tracebacks and the summary stay (AD-62). Those lines were 8-13% of whatqwen3.5:9bread in a Polyglot run. -
A file the model wrote whole in a shell heredoc (
cat > a.py << 'EOF') is replayed in full only until it writes that file whole again; older versions keep the first 400 chars (AD-63). On storedqwen3.5:9bPolyglot runs this cut prompt tokens by 10-14% and kept more test output unfolded.
Fixed¶
- After tether puts the best version back (
[RESTORED], or a restart that resets the files), the next[regression]note compares with that version instead of the run before it. 6 of 12 such notes in v0.3.13/14 Polyglot runs blamed the model's next change for a test the restored version already failed.
v0.3.14 (2026-11-30)¶
Changed¶
- On Ollama, the turn after a thought cut at the thinking budget is sent with thinking off, so the model acts instead of deliberating again (AD-61). A cut was followed by another cut 6 times as often as any other turn; on the six exercises with the most cuts, cuts halved and
qwen3.5:9bpassed 3 of 6 instead of 2.
Fixed¶
agent "<goal>"with no verb (a quoted multi-word goal, or spawn flags first) spawns the sub-agent instead of answering "unknown subcommand" (AD-30); a single unknown word is still an error.- A turn whose thinking was cut at the budget keeps the cut thought on its turn record (
turns.thinking), so a runaway can be read afterwards (AD-29). It was stored empty: 22 of 385 turns in a full Polyglot run, 21% of the model time. - The auto-test keeps re-running the whole test suite after the model runs a single test, and one green test no longer asks for
done(AD-60).qwen3.5:9bpicked one test out of rest-api's 9; every later edit was checked against that one test only. - A test run that fails fewer tests than any before it no longer counts toward a restart (AD-59). With the auto-test, "the same tests failed 3 times" meant two rewrites, and
qwen3.5:9bwas reset while it was closing in: 9 of 18 restarts in a full Polyglot run (book-store 19 -> 15 failing, poker 37 -> 27, zipper 14 -> 4). A timeout or an import error before the first full run of the suite no longer counts against it either.
v0.3.13 (2026-11-27)¶
Security¶
- A sub-agent can no longer get a tool its parent does not have:
agent spawn --tools bashunder a parent withoutbashstarts the child without it and says so (AD-57).
Fixed¶
- A lone
echo done(orecho "Done.") now callsdone(AD-58).qwen3.5:9btyped it 5 times after its check passed and ran out of steps. - A sub-agent spawned without
--tools(or with none the parent has, such as--tools t) gets its parent's tools instead of none (AD-57).qwen3.5:9bspent 7 steps of a child that could only calldone. - A session that finished its file and then kept re-reading it gets its
[WRAP UP]turn without tools, so it can only answer or calldone(AD-56).qwen3.5:9bthought "the task is complete" and still repeated its read through every warning and a restart (about 10 wasted steps); with no tools it wrotedone4 of 4 times. "done", stdin="..."typed intocmd(the command quoted as anact()argument) delivers the answer likedone, stdin="...".
v0.3.12 (2026-11-27)¶
Security¶
- A session store inside the workspace outside
.tether/(TETHER_DB,Harness(db_path=)) is protected like.tether/: masked underbwrap, and commands oreditpaths naming it are refused under every jail (AD-55). A model could read, and change, its own session's turns and inbox there.
Added¶
- A missing Python package (
No module named 'X') or a missing pip gets one[hint]line with a no-root install into a workspace venv (uv venv && uv pip install X) (AD-54).qwen3.5:9bspent 13 steps onpip,apt-getandensurepipwithout it.
Fixed¶
- Under Landlock, a read outside the workspace (
ls /usr/bin) is no longer refused by the command-text rules: the kernel keeps writes in the workspace as underbwrap, and the secret-file rules stay on (AD-35). - A shell loop or conditional (
for f in *.py; do ...; done,while,if) runs throughbashinstead of answering "unknown command" forfor. - A repeated command after the session wrote files no longer tells the model to "write the file the task asked for": it names the files written and asks for
doneor a change to them (AD-21).qwen3.5:9bkept re-reading a finished file until a restart threw its work away.
v0.3.11 (2026-11-27)¶
Added¶
web fetchreads a JSON reply by path:web fetch <url>#info/version(a JSON Pointer; the leading/is optional andinfo.versionworks too) (AD-53). A reply too big for one page prints an outline of its keys with their sizes and the command to open one, instead of the first 8,000 chars of one long line. A 6 MB PyPI reply costqwen3.5:9babout 20 steps of--fromguesses.
Changed¶
- With
bashoff, a shell command (curl,grep,python3) answers that the session has no shell and points to the enabled tool that does the job (curl->web fetch), instead of telling the model the flags that enablebash, which only the caller can pass.qwen3.5:9bretried shell commands 8 times in one web task. web:fetch <url>and other<tool>:<verb>forms run as<tool> <verb>when the tool is enabled (AD-30).echo -e 'a\nb' > frun asedit write(nobash) now writes two lines, andecho -nno newline; the flags were written into the file.- When tether undoes a command that left a Python file unparsable, the
[REVERTED]line now quotes the line the parser stopped at, so the model sees the mistake instead of retyping it (AD-24). - The runtime trace of a failing test shows the same
selfobject once instead of on every method call, so more of the calls fit (a 16-line trace that hit the 1,500-char cap became a complete 24-line one of 960 chars) (AD-24).
v0.3.10 (2026-11-26)¶
Fixed¶
- A command that deletes files you had before the session (for example
rm -rf datato test an error path) no longer loses them: tether puts them back right after the command and says so, unless your goal asks to delete, move or clean up files (#350, AD-51).
Changed¶
- An
ImportError(cannot import name) orhas no attributeerror about one of your own modules now comes with one[hint]line saying where the name really is, for example inside a class, so the model fixes the import instead of debugging the import system (AD-52). - When thinking runs past its 2,048-token budget, the retry with thinking off now gets the cut thought back, so it replies with a command instead of writing its reasoning out as text (up to ~10k chars before; 10 of 10 cut turns replied cleanly in a 5-exercise run, about 20 s faster each) (AD-29).
v0.3.9 (2026-11-25)¶
Changed¶
- The Ollama reply ceiling is 5,120 tokens (was 8,192): the 2,048-token thinking cap plus 3,072 for the reply, above every healthy turn measured, so a runaway tool call stops after about 2.5 minutes instead of 4 (AD-29). A tool call cut by the ceiling now counts the 5,120 tokens it used (it counted 2,048).
Fixed¶
- Under the Landlock jail, a command that writes to
/tmpnow gets a one-line hint to use$TMPDIRor the workspace (a model retried such writes 7 times without it).
v0.3.8 (2026-11-25)¶
Changed¶
- A restart after the same tests keep failing now puts your files back to the best version so far, not to how they started, and a test run before any change no longer counts as a failed attempt (AD-21).
Fixed¶
- Every Ollama turn now has the 8,192-token reply ceiling, including turns with thinking off and the retry after a thinking cut, so a reply that repeats itself stops after a few minutes instead of filling the context window.
v0.3.7 (2026-11-24)¶
Added¶
- Coding Ladder: three harder
shelltiers (bisect by hand over version snapshots, dedupe by content, a log report script checked on unseen logs).bench/ladder/run.py --max-tiernow defaults to the highest tier any task has, so tiers 7-9 run by default. qwen3.5:9b passes 7 and 8 and misses 9 (it accepts a fractionalms).
Changed¶
- Ollama thinking is capped on its own (2,048 tokens before the reply starts) instead of thinking + reply together (2,560), so a whole-file write after normal thinking is no longer thrown away and redone (AD-29).
Fixed¶
- Token counts include a thinking turn cut by its budget (Ollama reports none for it), so
tether statsno longer hides the most expensive turns.
v0.3.6 (2026-11-24)¶
Changed¶
- On Ubuntu 24.04 and other kernels that block
bwrap, tether now runsbashin a Landlock jail (Linux 5.13+, no sudo, no opt-out needed) instead of refusing write sessions.tether doctorpasses andtether statusshowssandbox: landlock. Landlock hides no secret files inside the workspace (the command-text rules still refuse them), cannot block the network (--no-networkstill needsbwrap), or unix-socket connects such asdocker.sock; on kernel 6.12+ it also keeps jailed commands from signalling your other processes. See security and sandbox and AD-35.
v0.3.5 (2026-11-24)¶
Added¶
- The Coding Ladder has an opt-in shell kind (
--kinds shell): six tasks of everyday terminal work (count, rename, CSV totals, find a leaked key, fix a backup script, report on logs), graded by checks on the deliverable and on the workspace after the run. See the ladder page.
Changed¶
- The ladder report shows, per model, how many runs were answered (deliverable written, or the session completed) and the tokens spent on the runs that were not.
Fixed¶
- A
python -cprobe that importsunittest.mockis no longer taken for the test command, so the auto-test after an edit runs the real tests. - A
done, stdin="..."typed into the command now delivers the answer, and a repeated unknown command that starts with "done" is caught by the loop guard instead of burning every step. - A file rewritten back and forth between two versions, and a bare
echothat only prints back after the tests went green, no longer reset the stall guard: the session ends "Finished by the harness" or by the stall path instead of at the step cap (AD-50). bash backup.shandbash ./x.shrun the script through bash, so a script without an exec bit no longer fails with "command not found" or "Permission denied" (bash -x x.shandbash -n x.shtoo).
v0.3.4 (2026-11-23)¶
Documentation¶
- The docs site is reorganised into Start here, Guides (basic and advanced), Concepts, Architecture, Benchmarks, Reference and Help. Start here has four short pages with real runs: a first call, a web search and summary, Claude calling tether over MCP to review a draft, and a script written by Nemotron and checked by a
--verifygate. - New guides: find your way around, configure providers and models, review and debug a session, control cost and limits. Every guide now says why the feature works the way it does and what to do when it goes wrong.
- New Concepts pages, one per problem with research behind it: one action, progressive help, context and folding, a prefix that never changes, the deterministic envelope, loops and restarts, the repair loop around tests, thinking and sampling.
- New Architecture section: an overview, the decisions register (
AD-ndecisions,OQ-nopen questions and a list of ideas that were tried and not adopted, each with its evidence), build and test habits, and a page on every model tested with its score on each Coding Ladder task.AGENTS.mdpoints contributors and agents to the register and says it changes only when the product owner asks. - Benchmarks has a page per benchmark: Polyglot-Python with the score of every version from the first measurement to v0.2.18, and the Coding Ladder pages.
- Troubleshooting entries link to their GitHub issues. The Reference section has an index that maps questions to pages.
- Orchestration logs (
.claude/gru/) are no longer committed and are git-ignored; what they held that matters is in the decisions register.
Added¶
tether models [--json]lists every model id tether can use: the models Ollama has pulled,providers.yamlentries, the built-in prefixes with whether their API-key variable is set, and registered providers (#310).
Fixed¶
- The e2e suite skips only the scenarios that call the model when Ollama does not answer; scripted and sandbox-only scenarios run without it (#307).
- Inside the
bwrapjail a virtualenv found onPATH(for example the oneuv runactivates) under/homeis mounted read-only whole, sopytest,ruffand other venv tools start instead of failing with "required file not found" or "No module named" (#76, #307).
Changed¶
bench/run.pyhas aplainrunner next tonaive: the same bare tool loop, but through Ollama's native/api/chatwith the samenum_ctxas the tether run (the/v1route ignores it) and up to three reminders to keep going when the model replies without a tool call. It makes the comparison with a bare model fairer to the local model.bench/ladder/charts.pywrites its charts todocs/benchmarks/ladder/img/.
v0.3.3 (2026-11-20)¶
Security¶
- A shared
tether mcpserver refusesallowandallow_unsandboxedfromtether_runcallers unless it was started withtether mcp --permit-widen. Before, any caller could widen the sandbox for every later session of the workspace. MCP clients that pass either argument must now run against a server started with the flag (#306).
Fixed¶
- Ctrl+C during
tether runprints one line, exits 130 and hands the session back asWAITING_INPUT(resume withtether send); the running bash command is killed. It used to print a 70-line traceback and leave the sessionRUNNINGwith a dead pid (#309). - A
--verifygate runs under its own timeout, 300 s by default,TETHER_GATE_TIMEOUTseconds to change it, instead of the 30 s bash timeout. A gate that runs out says so and names the variable (#304). tether doctorand theSandbox unavailableerror tellbwrapinstalled but refused by the kernel (AppArmor user namespaces on Ubuntu 24.04+) frombwrapmissing, show the kernel's message and give the fix, instead of saying to install what is installed (#311).- With
--limit cpu, only the kernel's cpu signal is reported as a cpu hit. Akill -9is no longer labeled[limit hit: cpu ...]because another command used CPU at the same time (#303). - The command-provider retry test no longer fails on a loaded machine (#308).
v0.3.2 (2026-11-20)¶
Changed¶
- A session that runs out of steps (or is handed back stuck) gets one final answer-only model call (Ollama gets no tools, OpenAI-compatible and Anthropic get
tool_choice: none): a plain-text ordonereply leads the[STUCK ...]summary, and a command in it is not run but answered once. On the probe tasks nemotron and qwen3.5:9b now hand back their review or research answer instead of nothing. The[LAST STEP]notice and the 75%steps leftnotice are removed: models ignored them 4 of 4 times. - The Qwen3 XML tool-call form written as text (
<function=act><parameter=cmd>...) is parsed as a command. tether statsshowsnotices followed:: for each notice that asks the model to act, how often it fired and how often the next step did what it asked.- What a command changed is found by comparing the workspace files before and after it, not by parsing the command text.
tether diffsnapshots, the[REVERTED]check, the unchanged-code note and the[auto-test]trigger all use it, so writes byperl -pi, scripts and any other shell form are tracked, and refused commands, no-op edits and writes outside the workspace are not changes. Workspaces over 50,000 files fall back to the old rule.
Fixed¶
- A failed tool now says what happened and what to do next.
web fetchnames the HTTP status and a next step for 429, 401/403, 404/410 and 5xx, or the unreachable host; a page with no readable text is an error, not an empty reply. A tool that raises shows oneError: <tool> failed:line and the hintInstead: run <tool> --help.web fetchreads only themainorarticleelement (or the role=main element) when the page has one, so site navigation no longer fills the reply. edit replace --lines,edit appendandedit insertapply a stdin made of SEARCH/REPLACE blocks on an existing file, likeedit write, instead of writing the markers into the file. nemotron corrupted a 400-line file this way while writing the model guide (#332).
Removed¶
- The
[BEFORE WRITING]question after the first read of a test file, and the notices that point toedit replaceafter a small whole-file rewrite or a near pass: on the v0.2.18 bench qwen3.5:9b followed them 0 of 68 and 1 of 50 times (#272).
Docs¶
- New guide Choose a model: what to expect: what each model does through tether, where it fails, and the same five tasks run on qwen3.5:9b, nemotron, Haiku, Sonnet and Opus.
v0.3.1 (2026-11-14)¶
Added¶
edit insert <path> --line Nadds the stdin lines before line N and replaces nothing, so a small model no longer loses line N when it adds lines (#320). A bareedit replace <path> --lines a:bwith empty stdin now says it deleted the lines (#321), andedit appendandinsertalways end the file with a newline.
Fixed¶
- A session whose only edits were refused (wrong command shape, sandbox refusal) is no longer ended as
COMPLETED"Finished by the harness ... after its change": a refused command ran nothing, so it does not count as a change and the session is handed back asWAITING_INPUT(#318). edit replace <path>now applies a unified diff or bare@@hunks sent as stdin through the same applier asedit <path>; a, stdin="..."tail typed inside the command is moved into stdin; andedit replace <path> --lines a:bapplies a marked-/+diff of exactly those lines, so a correct edit is no longer refused or mis-applied (#317).- A headless worker no longer imports workspace code through a relative or empty
PYTHONPATHentry: only absolute entries are passed on (#283). - The sandbox no longer fails every
bashcall withbwrap: Can't create file at /run/...when/runholds a symlink to a unix socket (e.g./run/php/php-fpm.sock): the socket the link points to is masked, once. sed -n '45,90p file'(the path typed inside the quotes) now runs assed -n '45,90p' fileinstead of failing (#270).- A
commandprovider that hits a usage or rate limit now fails at once with the provider's own words and a next step (wait for the reset or pass another --model), instead of a raw JSON error after retries (#305). - A
bashcommand that times out after starting a background job (server &) now says why and what to do: run it in the foreground withtimeout N <cmd>, or send its output away with<cmd> >/dev/null 2>&1 &(#319). web searchnow says when the search engine refuses (HTTP 202 or a bot-check page) instead of printingNo search results found., so a model stops retrying.web fetch <url>#anchorstarts the returned text at that element, andweb fetch <url> --from <text>starts it at the first match. A cut page names the--fromwords to continue with.- The harness tells a session that only looks things up to answer, not to edit: the step before the limit gets a
[LAST STEP]notice, the 75% and 12-step nudges ask for an answer when neitherbashnoreditis enabled, and a restart or failedverifygate after a check failed 3 times namesdone --askas the way out of a wrong test. - A
bashcommand that leaves a Python file unparsable is undone: the file goes back to its bytes from before the command, and the observation names it in a[REVERTED]line so the model redoes the change in smaller steps (F5).
Docs¶
- New guide Write tasks a small model can finish: the task-writing rules, a re-runnable example, what each model was seen to do well and badly, and how to tell whose fault a failed task is.
v0.3.0 (2026-11-09)¶
Breaking changes¶
- Without
bwrap, aworkspace-writesession with the kernel sandbox on is now refused before the first model call (exit 1). Migration: pass--allow-unsandboxed(SDKSandboxPolicy(allow_unsandboxed=True)/Harness(allow_unsandboxed=True), MCPallow_unsandboxed), or setTETHER_SANDBOX=containerin Docker. With the opt-out, one[sandbox] bwrap not available, running with command checks onlyline is printed on stderr (#124 item 2).
Changed¶
- Sandbox refusals now name the rule, what to do instead, and the flag that would permit it when one exists (#124 item 3). No change to which commands are allowed or refused.
- Observation folding is automatic by default: above half of
max_context_tokens, old outputs fold oldest-first only until the history is back under that target (no cliff), and each unedited re-read lengthens K by one (cap 8).--fold-after Nkeeps the fixed rule (#205).
Added¶
- Sandbox conformance suite: a table of must-run and must-refuse commands, run against the text layer and real bwrap. It proves items 1 and 9 of #124.
- Escalation: ask the caller once, then remember (#59, #124 item 4). A command whose prefix is in the policy's
escalatelist (defaultgit push|pull|fetch|clone|worktree|config,gh,docker) and not allowlisted pauses the session asWAITING_INPUT(exit 2) with[APPROVAL NEEDED] <command>and the JSON keyapproval.tether send <id> approve(or the newtether allow <id>, MCPtether_send) adds the prefix to.tether/allow.json, runs the command outside the jail and resumes; any other reply refuses it. Never offered for metacharacters, unsafe git options, read-only or--no-networksessions. - Allowlist of command prefixes that run outside the jail (#59, #124 item 4):
tether run --allow(repeatable),allowin.tether/allow.json, and the MCPtether_runargumentallow. Whole-token prefixes, no shell, never in read-only or--no-networksessions. - Sandbox refusals are recorded as
sandbox_violationevents with their rule, andtether statsshows the top rules (#124). - Opt-in resource limits for
bash(#124 item 6):tether run/pipeline --limit KEY=VALUE(cpu, mem, fsize, procs),SandboxPolicy(limits=)and the MCPtether_runargumentlimits; off by default, Linux only, a hit adds a[limit hit: ...]line. - Web domain allowlist (#124):
tether run --web-allow(andSandboxPolicy(web_allow=)) restricts thewebtool to listed domains; sub-agents and stages can only narrow it. tether pipeline --web-allowand the MCPtether_runargumentweb_allowset the same domain allowlist. A malformed value (spaces, a*outside a leading*., a URL) is a usage error or a ToolError, not a silent pass.- Docs: install with the network, work without it (
--setup,--no-network) (#124). tether statusshowssandbox: bwraporsandbox: command checks only.tether export <id>prints a session as a Markdown transcript (--out FILEto save it).- A
--verifygate whose program does not exist (checked for every command in a&&/||/;/|chain) now fails the session before the first model call, as a misconfigured gate (#82). tether doctorchecks your setup (Ollama reachable, model pulled, bwrap, providers.yaml, session DB) and says what to fix; exit 1 when a check fails.tether run --worktreeruns the session in its own git worktree on branchtether/<id>and commits the result there when it stops.--worktree-from <ref>sets the base ref and--setup <cmd>runs a shell command in the worktree before the model starts (outside the sandbox, not offered over MCP). See Run a session on its own branch.tether read <id> --thinkingprints the stored model thinking for each step. Thinking is kept for reading only and is never replayed to the model.tether replay SESSION_IDre-runs a session's goal in the current directory with its saved tools, skill, sandbox, output_schema and params, and prints the original and replay side by side (--model,--max-steps,--json). Verify gates are not stored, so a replay runs without them.tether pipeline --resume <id>re-runs a failed or waiting pipeline from its first unfinished stage and reuses the stages that completed (#35).--max-tokens N(CLI),Harness(max_tokens=)and the MCPtether_runargumentmax_tokensset a token budget (prompt + completion). When the budget is reached the session pauses as WAITING_INPUT (exit 2) andsendadds the same amount again as a grant. Sessions without a budget are unchanged.tether mcp:tether_runacceptsworkspace, an absolute directory inside the server's workspace, so a caller working in a git worktree can root the run there; anything outside is refused (#242).tether diff <session_id>shows what a session changed in its files, against the first bytes the session saw (--statfor line counts). Snapshots are recorded by the harness write-tracking loop in a newfile_snapshotstable; files created by the session show as added from empty.
Fixed¶
- A headless worker that dies before it starts no longer leaves its session PENDING: it is marked FAILED with
Worker died (pid N) before starting, and the result names the worker's log (<db dir>/workers/<id>.log), which now keeps the worker's stdout and stderr (#271). edit writeon an existing file with stdin made only of complete SEARCH/REPLACE blocks now applies them asedit replaceinstead of replacing the whole file (#267).- Replay and list columns no longer collide with long model ids or WAITING_INPUT, and
replayaccepts--worktree,--worktree-fromand--setup(#279). tether waitexits 6 and printstimed out; still RUNNING: ...on stderr when the timeout expires (#269).- Command provider timeouts and empty failures are retried twice before raising
ProviderError(#268). - Headless workers always import the installed tether, never a workspace's own tether/ package (#273).
- An empty model reply is retried. If the retry is empty too, the session stops instead of continuing with no output (#135).
tether run --worktreeno longer commits bytecode and tool caches (__pycache__,*.pyc,.pytest_cache,.ruff_cache,.mypy_cache,.tether/) (#278).tether diffshows writes bysed -i,perl -i,mv,cp,python -c, and names files changed by commands it could not track instead ofno file changes recorded(#280).- Masked secret files and
.git/confignow read as empty instead of "Permission denied", sogit status,git logandgrep -rwork inside the sandbox (#124 item 1).
v0.2.18 (2026-11-08)¶
Small fixes from the v0.2.17 release check and the paasio labs: shell-style file writes work when only edit is enabled, edit append adds to a file instead of replacing it, a foreground run prints its session id at once, and a cd into a container path that does not exist no longer costs a step.
Added¶
edit append <path>addsstdinto the end of a file (created if missing, with a newline added when the file does not end with one). Small models assumededit writeappends: gemma4:e4b wrote a plan module by module and kept only the last one. Theedithelp now sayswrite replaces the fileand stays within 59 tokens; withbashoff,echo t >> fruns asedit append f(#34).- A foreground
tether run(with or without--json) writessession ses_<id>to stderr as soon as the session is created, before the first model call. A caller that kills the run on its own timeout no longer needstether listto find the id forstatus,stoporsend; stdout is unchanged (#90).
Fixed¶
cd /testbed && python3 -m unittest ..., with a directory that does not exist, now runs the command after thecdin the workspace, with one line saying thecdwas skipped. Models assume a container path; qwen3.5:9b lost a step to it in 3 of the last 6 paasio runs. Acdinto a real directory runs as before (#79).tether statsoffenders: a leadingcd <dir> &&no longer makescdthe offending command (the command after it is counted), and a turn without a command shows as(no command)instead ofunknown(#79).- With
editenabled andbashnot, a plain shell file write or read now runs asedit:echo ok > hello.txt,printf 'a\nb' > f,cat > f << 'EOF' ... EOFbecomeedit write, andcat fbecomesedit view f. Any other shell command still answersunknown command, now with a pointer toedit view|write. In the v0.2.17 release check (--tools edit, "Create hello.txt containing ok"), qwen3.5:9b triedecho,printf,catandls10 times before writing the file at step 12 of 15. Pipes are not translated.
v0.2.17 (2026-11-07)¶
When tests fail, tether now works around them on its own time: it re-runs them after each edit, traces the smallest failing test, starts fresh when an approach keeps failing, and keeps a version that nearly passes instead of throwing it away. The north star (74% on Polyglot-Python with qwen3.5:9b) moves to v0.4.0. No full Polyglot run was made for this release; the numbers below are from targeted labs.
Added¶
- A repair loop around failing tests, all from the harness's own time (0 static prompt tokens, no extra model call). Once the model has run the tests, they run again after each edit and the result is appended (
[auto-test]), so no version is typed blind. When the model reads the tests of the file it is about to write, it is asked once to say in plain words what the hardest tests call and expect ([BEFORE WRITING]). When the same tests fail again after a change, or only a few still fail, a runtime trace of the smallest failing test shows the calls into your code with their arguments and results. When at most 3 tests still fail, one note points toedit replaceinstead of a whole-file rewrite. Onpaasiowith qwen3.5:9b (600 s cap) the mean score went from 0.63 over 3 runs to 0.94 over 5 runs, with 1 of 5 passing; the other 4 ended at the time cap with 22 to 24 of 25 tests passing (#173).
Changed¶
- The north star is now 74% (50 of 68) on Polyglot-Python with qwen3.5:9b by v0.4.0, instead of 80% by v0.3.0. 74% is the share of exercises the model has already solved at least once from scratch (25 of 34), so the target is reliability: each of them passing every run. The 9 exercises it never solved are out of scope for this target (#173).
- A restart after the same tests failed 3 times is now a fresh start: the files the model changed go back to how they started, and the restart message names the failing tests instead of quoting the failed code (Olausson et al., ICLR 2024). A version that already passes all but at most 3 tests is kept instead: when later edits do not beat it, its files come back in place with a
[RESTORED]line and the history stays (#173). - The number of failing tests is read from the runner's summary line (
FAILED (failures=1, errors=3)), so a test run cut by| headis no longer taken for a near pass (#173).
Fixed¶
edit write hello.txt ok, with the content typed after the path and nostdin, now writesokinstead of answeringError: `edit write` requires file content in `stdin`. qwen3.5:9b lost two steps this way creating a one-line file in the v0.2.16 smoke run. The text is taken as typed (spacing kept, one pair of surrounding quotes removed, literal\nunescaped);stdin, when given, still wins (#173).- In
tether list, a pipeline's own row now shows the model its stages run on instead of the harness default (ollama/qwen3.5:9beven when every stage setmodel: local/qwen3.5:9b). When stages use different models, the row lists them in stage order, joined with,. A stage with nomodel:still runs on the pipeline's default model. - A test run piped to
head(python3 -m unittest ... 2>&1 | head -100) now keeps its result. The runner prints its summary (Ran 26 tests/FAILED (failures=8)) last, soheadcut it, and the pipe also replaced the tests' exit code withhead's 0: the model could not tell how many tests failed, and tether's own notes on test runs (failing test source, regressions, green-test finish) did not fire. Now tether runs the test command itself, keeps the first N lines and adds[... K lines cut by head; the end of the output:]with the last 6 lines and the real[exit N]. In the v0.2.15 Polyglot run on qwen3.5:9b, 22 of 39 failing runs had at least one test result cut this way, against 7 of 47 passing runs. On 4 of those exercises plus 2 passing controls (32k, one run each), e ... [truncated 48,068 chars by sandbox cap] ... - Multiplexer: small models that send
edit write/edit replacestdin or thedonedeliverable as one line with literal\n(and\t) escapes now get them unescaped deterministically (only when the stdin has no real newline).bashstdin and all other tools are never touched. (#26)
v0.1.1 (2026-10-18)¶
Fixes¶
- Bash: a command with no output now returns
[exit 0: no output] Command succeeded.instead of a bare[exit 0], which 9B models misread as failure and repeated until the loop breaker fired. - Docs: new tutorial page for gates,
done --ask, project memory, pipelines,statsandretro; added the documented-but-missingtether --version.
v0.1.0 (2026-10-17)¶
Milestone v0.1: Deterministic Control Plane¶
- Pre-
doneVerification Gates:Harness(verify=[...]),--verify, or Skillverify:run inside the sessionSandboxPolicybeforedonecan complete a session (0 static prompt tokens until a gate fails). - Interruptible
WAITING_INPUT&done --ask: sessions can pause for human/parent input and resume viatether send. - Hierarchical Project Memory:
mem pin --project/mem search --projectwith cross-session BM25 RAG. - Telemetry & Failure-Mode Inspector (
tether stats): per-model pass rate, token cost, step latency and ACI friction offenders. - Deterministic Multi-Stage Pipelines (
tether pipeline): isolated stage sessions, heterogeneous model routing, monotonic sandbox attenuation, ~50-token stage handoffs. - Post-Mortem Distillation (
tether retro):tether retro <session_id> [--apply]extracts a session's friction trace (inbox corrections, loop stalls, syntax/tool errors, gate failures) and distills at most 2 deduplicated rules (<= 30 tokens each) intoSKILL.mdunder## Learned Rules, or project memory when no skill was used. Runs offline, never mutating a live prompt.
Fixes found during release validation¶
- Sandbox:
bwrapnow really unshares PID/IPC namespaces (docs claimed it); underbwrap,.env*,.tether/,.git/configand.git/hooksare now masked at the kernel level. Previously only a command-string regex guarded them, socat .e*orcat $(echo .en)vread secrets andecho >> .git/con*modified git config.SSH_AUTH_SOCK/GPG_AGENT_INFOare scrubbed and/run/useris hidden. tether stats: pipeline root sessions are excluded; they invented a run for the default model and double-counted stage tokens.- Multiplexer: an unknown first token (e.g. a raw
echo hi > f) now hintsbash <cmd>when thebashtool is enabled; small models previously looped on the bare error. - CLI:
tether pipeline(missing file, invalid YAML, stage withoutgoal) andtether send <unknown id>printError: ...and exit 1 instead of a traceback.
v0.0.3 (2026-10-17)¶
Architectural & Performance Upgrades¶
- Head + Tail L1 Active Observation Elision (
tether/context.py): Oversized active observations (> 2,400 chars) are deterministically elided in L1 working memory to their first 900 chars (headers/command summary) + last 900 chars (stack trace/exit code) with a pointer tomem recall/mem search, preserving full outputs in SQLite FTS5. - Deterministic Loop-Stall Breaker (
tether/harness.py): Consecutive identical(cmd, stdin)calls from small 8B/9B models are intercepted before tool execution and answered with a deterministic[LOOP DETECTED]recovery nudge. - 100% KV-Cache Prefix Immutability Across Pins (
tether/context.py,tether/providers/anthropic.py):[PINNED MEMORY]is attached to the tail message after window trimming so earlier turn messages remain 100% byte-identical when pins change; added Anthropic ephemeralcache_controlbreakpoints. - Persistent Connection Pooling & Thread-Local SQLite WAL (
tether/providers/*,tether/store.py): Reuses persistenthttpx.AsyncClientinstances across turns and caches thread-local SQLite WAL connections withPRAGMA temp_store=MEMORY;and 128 MBmmap_size.
Packaging, Documentation & CI¶
- PyPI Trusted Publishing (
tether-sdk): Published on PyPI astether-sdk(pip install tether-sdk/uv add tether-sdk) with automated OIDC delivery (.github/workflows/delivery.yml). - Flattened Package Layout: Moved
tether/to the repository root (removingsrc/). - MkDocs Documentation Site: Added full documentation, tutorials, literature review, and
mkdocstringsAPI reference athttps://igormcsouza.github.io/tether/(.github/workflows/docs.yml). - Modular Test Suite & 100% Coverage CI Gate: Split unit tests into 20 per-module test files under
tests/and added.github/workflows/ci.ymlenforcingruff,mypy,mkdocs build --strict, andpytest --cov=tether --cov-fail-under=100.
v0.0.2 (2026-10-17)¶
SDK Provider Extensibility & Literature Grounding¶
- Custom SDK Provider Registry (
register_provider): Addedregister_provider(prefix, factory)intether.providersso SDK consumers can route<prefix>/<model>identifiers through custom gateways, local inference engines, or test transports. - Literature Grounding: Documented architectural alignment with Maia et al. (2026), Wang et al. (CodeAct, ICML 2024), Yang et al. (SWE-agent, NeurIPS 2024), and Packer et al. (MemGPT, 2023).
v0.0.1 (2026-10-16)¶
Initial Release¶
- Single
act(cmd, stdin)action multiplexer with< 150tokens of base framing overhead. @toolPython function introspection with JIT--helpdisclosure (<= 60tokens).- SQLite WAL session store + FTS5 BM25 RAG (
chunks_fts) and ephemeral \(K\)-turn observation folding. - Detached headless worker execution (
tether run --headless,wait,send,query,read,list). - Always-async multi-agent orchestration (
agent spawn,wait,query,read,send). - Deterministic
SandboxPolicywith workspace path confinement, secret environment scrubbing, and Linuxbwrapisolation.