Built-in Tools¶
For: anyone choosing what a session may do. After this page you can enable exactly the tools a task needs and nothing more.
By default, Tether loads only the done command so pure reasoning tasks pay zero tool-schema overhead. You can enable any combination of built-in tools via --tools (CLI), Harness(tools=[...]) (SDK), or tools: [...] (Skill frontmatter).
| Namespace | Summary Line (<= 12 tokens) |
Purpose |
|---|---|---|
done |
done : Finish task and submit final deliverable |
Mandatory explicit termination command |
bash |
bash : Execute sandboxed shell command in workspace |
Kernel-sandboxed (bwrap), env-scrubbed shell execution |
edit |
edit : View, write, or replace lines in workspace files |
Workspace-jailed file viewing and stdin patching |
web |
web : Search the web or fetch URL as markdown |
Zero-config DuckDuckGo Lite search & HTML-to-Markdown reader (fetch blocks private addresses) |
mem |
mem : Pin working facts or search folded observations |
Key-value scratchpad + SQLite FTS5 BM25 search & recall |
skill |
skill : List or load specialized domain skills |
Progressive discovery and JIT loading of Skills |
agent |
agent : Spawn and query async child sub-agents |
Detached multi-agent orchestration + BM25 RAG |
done — Explicit Termination¶
Sessions never terminate simply because a model emitted plain text without calling a tool (small 8B/9B models frequently think out loud before acting). The agent must call done:
bash — Sandboxed Shell Execution¶
Executes commands inside workspace_root with secret environment variables scrubbed and Linux bwrap isolation (when available):
act(cmd="bash pytest -q")
act(cmd="bash grep -n \"return list\" app/main.py | head")
act(cmd="bash", stdin="python3 - << 'EOF'\nimport math\nprint(math.pi)\nEOF")
A test run piped to head (python3 -m unittest 2>&1 | head -50) still shows how it ended: tether keeps the first lines, marks what it cut, and adds the last lines with the summary and the tests' own exit code.
A command that times out after starting a background job (server &) gets one more line saying so, with the two fixes: run it in the foreground with timeout N <cmd>, or send its output away with <cmd> >/dev/null 2>&1 &.
edit — Workspace-Jailed File Operations¶
Provides deterministic line-numbered viewing and stdin-based writing/replacement without sed/awk quoting bugs:
# View a file or a specific line range
act(cmd="edit view tether/harness.py --lines 1:40")
# Create or overwrite a file via stdin
act(cmd="edit write notes/summary.md", stdin="# Summary\n\n- Point 1\n")
# A one-line file can take its text after the path (no stdin)
act(cmd="edit write VERSION 1.4.0")
# Replace lines start:end (1-indexed, inclusive) with stdin content
act(cmd="edit replace notes/summary.md --lines 3:3", stdin="- Updated Point 1")
web — Search and Markdown Reader¶
Zero-config web search via DuckDuckGo Lite (or automatic override via SEARXNG_URL, BRAVE_API_KEY, or TAVILY_API_KEY environment variables), plus clean HTML-to-Markdown extraction:
act(cmd='web search "SQLite WAL concurrency" --max 5')
act(cmd="web fetch https://www.sqlite.org/wal.html")
act(cmd="web fetch https://docs.python.org/3/library/stdtypes.html#str.splitlines")
act(cmd="web fetch https://www.sqlite.org/wal.html --from 'checkpoint'")
#anchor starts the text at that element, --from <text> at the first match; a cut page prints the --from words to continue with.
mem — Pinned Scratchpad & BM25 Observation Recall¶
When raw tool outputs age past \(K=2\) turns and the history fills more than half of the context budget, Tether folds them into 1-line tombstones ([obs_3 folded: ...]). The mem tool lets the agent pin key facts into active context or search/recall folded observations from SQLite FTS5:
# Pin a key-value fact into active working memory
act(cmd="mem pin db_engine sqlite_wal")
# Pin a workspace-wide fact visible to every session, and search across all sessions
act(cmd="mem pin --project test_cmd pytest")
act(cmd="mem search --project test")
# Search across all folded observations in the session using BM25 ranking
act(cmd='mem search "checkpoint starvation" --top 3')
# Recall a specific observation in full by ID
act(cmd="mem recall obs_3")
Example: course builder¶
The course-builder example uses edit and custom tools to turn a plan into a course. Three limits shaped it:
edit writereplaces the whole file. Overwriting an existing file now reportsReplaced N lines with M (X removed, Y added; first removed: ...)and, when the file shrank, points toedit replace --lines a:b(#40). Small models assume it appends and silently lose earlier content. To build a file in parts, useedit append <path>with the next part instdin; it creates the file if needed and adds a newline when the file does not end with one. To add lines in the middle, useedit insert <path> --line Nwith the lines instdin: they go before line N and nothing is replaced (N = lines + 1 appends).web searchcannot reliably find a specific YouTube video. Use a custom tool that returns numbered candidates instead.- Tools are opt-in. The searcher skill lists
tools: [yt-todo, yt-candidates, yt-save]and nothing else;editis only loaded by the stages that write files.
Re-viewing files with edit view also interacts badly with observation folding; see Context and SQLite Store.
Turn tools on¶
Nothing but done is on until you ask. Name what the job needs:
tether run --tools bash,edit "Create hello.py that prints hello and run it"
tether run --tools web "What changed in Python 3.14?"
tether run --tools all "..." # every built-in, for a quick experiment only
A tool you did not enable answers with what is on, so the model can correct itself. This is real output from a session that had bash and edit and tried a bare python:
Why it works this way¶
- Everything is off until you turn it on. Each enabled tool adds a line to the prompt on every step, and each is a way to break something.
donealone is enough for a question; addwebfor research,bash,editfor code (one action for everything). editexists next tobash. Shell redirection is easy for a model to get wrong (quotes, newlines, a lost heredoc).edittakes the content instdin, refuses to wipe a file silently, and says how many lines it replaced or removed.- Long output is kept, not shown.
web fetchandbashstore everything in SQLite and show the model a head and tail, so a long page never fills its memory (context and folding).
When it goes wrong¶
Error: bash is disabled. The message lists the tools that are on; add one with--tools bash,edit.- A write replaced a whole file.
edit writeoverwrites; useedit appendto add, oredit replacefor a range. web searchreturns nothing useful. Some search engines refuse automated clients; tether says so, and you can setSEARXNG_URL,BRAVE_API_KEYorTAVILY_API_KEY.
See also Troubleshooting.