Most tools live in src/tools/ and are registered in builtin_registry;
the node tool is in src/js/, task is added at startup (not with the
Claude backend, where claude has its own), and peers /
peer_send come with the coordinator. The tools of MCP
servers, and mcp_search / mcp_call that stand in for them when there are
many, are in MCP. Every tool call's result string is fed back to
the model verbatim as the tool result.
| Tool | Approval | Confined to project root |
|---|---|---|
read |
auto; required outside the project (but not for output kept for it) | yes, unless approved |
write |
auto | yes |
edit |
auto | yes |
multiedit |
auto | yes |
apply_patch |
auto | yes |
grep |
auto | yes |
glob |
auto | yes |
ls |
auto | yes |
tree |
auto | yes |
symbols |
auto | yes (a location outside it is named, not read) |
todo |
auto | yes |
ask |
auto (it only talks to you) | n/a |
memory |
auto | to the memory directories (the project's, in its state directory, and the user-global one) |
skill |
auto | to the skill directories (read-only; a skill's files only from inside that skill's directory) |
task |
auto to start; each call the subagent makes is approved like the agent's own | as the tools the subagent uses |
notebook_edit |
auto | yes |
bash |
required — except a foreground command the experimental sandbox runs, when that is on | no (arbitrary shell), unless sandboxed |
bash_output, bash_kill |
auto (act on jobs bash started) |
n/a |
web_fetch |
required | no (network) |
web_search |
required | no (network) |
node |
auto, unless network: true or outside paths in allow_read/allow_write (then required); with tools: true, each tool the script calls is approved as that tool |
fs yes, but for the outside paths an approved call names; network no |
peers |
auto | n/a (lists your atelier instances) |
peer_send |
required | no (reaches other instances) |
peer_ask |
required | no (sets another instance's agent to work) |
peer_answer |
auto (answers a question already admitted) | n/a |
peer_lock |
auto (a notice to your own instances) | n/a |
image_generate, image_edit, ocr, depth |
auto; required when the model would be downloaded (oxinfer) | yes (the images read and written) |
speech, transcribe, isolate_voice, video_generate, semantic_search |
auto; required when the model would be downloaded (oxinfer) | yes (the files read and written; the oxinfer server is a provider) |
video_job |
auto (acts on jobs video_generate started) |
yes |
"Confined" tools resolve every path with ToolCtx::resolve /
tools::confine: a relative path is joined against the project root, ./..
are normalized away, and anything that still doesn't start with the root is
rejected with an error (path ".." escapes the project root) — including
absolute paths outside it. See Permissions for the full
approval model and why confinement is the deciding factor, not "read vs.
write".
When the model asks for several tool calls in one step, the ones that only
look run at the same time (src/agent/batch.rs): a run of consecutive calls
to read, grep, glob, ls, tree, symbols, web_fetch, web_search, skill,
memory (read and list only) and bash_output, up to 8 at once. Any
other call — one that writes, bash, ask, task, todo, an MCP tool —
ends the run and is executed by itself, in its place: [read a, grep x, write b, read c] is read a and grep x together, then write b, then
read c.
What does not change:
- Approval and hooks come first, in order. Each call of a batch gets its
pre_toolhooks and its approval (rules, the mode, a prompt if needed) one after the other before any of them runs. A refused call gets its refusal as its result; the others still run.post_toolhooks run in call order once the batch is done. - The model sees one result per call, in the order of its calls, whichever finished first.
- Read tracking: a file read in a batch counts as read for a later
edit, and a subdirectory's own instruction file still arrives exactly once — with the first call, in call order, that went there.
On screen, the calls of a batch are announced together (⚙ read …,
⚙ grep …) and their results follow in the same order. Stopping the turn
(Ctrl-C) lets the calls that are running finish (a bash command on a
terminal is killed) and skips the ones that have
not started.
[defaults] parallel_tools = false in atelier.toml, or
ATELIER_PARALLEL_TOOLS=0, runs every call one at a time. The Claude backend
is not concerned: claude asks for atelier's tools one call at a time.
Tools whose output can be any size — bash, bash_output, node, MCP tools
and read_resource — don't cut it off at a limit the agent can't see past.
When a result is over the tool's budget (20,000 bytes for bash and
bash_output, 10 KiB for node, 30,000 bytes for MCP), the whole text is
saved under tool-output/ in the project's state
directory — not in the
project — and the result is its
start (about 60% of the budget) and its end (about 25%), cut on line
boundaries, around one line saying what is missing and where it is:
… 1,842 lines omitted (lines 121-1962) — full output: /home/me/.local/state/atelier/projects/-home-me-proj/tool-output/ab12cd.txt (use read with offset/limit, or grep) …
The file is named by its absolute path. It is outside the project, and
read (offset/limit) and grep still reach it without approval: output
atelier kept for this project is the one thing outside the project they
open by themselves — a kept file by that exact path, nothing else in the
state directory, and no other project's. For bash and bash_output the marker also names a
handle (out-ab12cd) that bash_output takes with a tail, head or
grep of its own — see Part of the output, without a
pipe. Output with no line breaks is cut by bytes instead, and the
marker counts bytes.
The directory keeps the 50 most recent files and at most 20 MiB; older ones are deleted when a new one is written (the new one always stays).
Earlier versions kept these files, and the worktrees of isolated
subagents, in the project: under
.atelier/tool-output/ and .atelier/worktrees/. Where a project still has
those directories, searches and listings of it — grep, glob, tree,
fs.glob in node, the layout context — leave them out unless one is
named as the path.
read, grep, glob and web_fetch page or cap by themselves and are not
affected.
Read a file, returned with 1-based cat -n-style line numbers ("{line}\t{text}\n"
per line).
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | yes | File path, relative to the project root (or absolute) |
offset |
integer | no | 1-based line to start from (default 1) |
limit |
integer | no | Max lines to return (default: rest of file) |
pages |
string | no | PDF only: page range, e.g. "3" or "1-5" |
By file type:
- Images (
png,jpg/jpeg,gif,webp, up to ~3.75MB) come back as images the model sees (an MCP image result for claude; for an OpenAI-compatible endpoint, a follow-up user message carrying them). - PDFs come back as their text, page by page (
[page N]), extracted in pure Rust byoxideav-pdf: lines in the order the page draws them, ligatures spelled out. Scanned PDFs without a text layer have nothing to extract. - Notebooks (
.ipynb) come back rendered: each cell as<cell N id="…" type=…>with its source and outputs. - Anything else is read as UTF-8 text.
Outside the project, read asks for approval first (a pasted screenshot
path, a temp file another tool wrote); inside it, it never does.
Errors if the path is a directory or doesn't exist. Every successful text
or notebook read records the file's full content in FileState, which
edit/notebook_edit later check for staleness. Like the other file tools,
read also accepts file_path for path.
Create or overwrite a file with new content, creating parent directories as needed.
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | yes | File path |
content |
string | yes | Full contents to write |
Returns "wrote N bytes to <path>". Also records the written content in
FileState (so a subsequent edit doesn't need a separate read first).
Exact-string replacement in a file that was read earlier in the session.
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | yes | File path |
old_string |
string | yes | Exact text to find |
new_string |
string | yes | Replacement text |
replace_all |
boolean | no | Replace every occurrence instead of requiring exactly one (default false) |
File-state rules (via FileState, tracked by content hash per path):
- The file must have been
read(orwrite) at least once this session, oreditfails with "has not been read in this session yet". - If the file's on-disk content no longer matches what was last observed
(i.e. it changed outside the agent's control since the last read/write),
editfails with "has changed on disk since it was last read" rather than silently clobbering it. old_stringmust match exactly once unlessreplace_all: true; zero matches or (withoutreplace_all) more than one match is an error naming the count found.
A successful edit re-records the new content, so consecutive edits to the same file don't need re-reading in between.
Apply several exact-string edits to one file in a single call — the same
rules as edit, but batched, so a file needing multiple changes doesn't cost
one round-trip per change.
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | yes | File path |
edits |
array | yes | The edits to apply, in order (at least one); each is {old_string, new_string, replace_all?} — same fields as edit's |
Same file-state rules as edit (must have been read this session; rejected
if the file changed on disk since). Edits are applied in order to an
in-memory copy, each seeing the result of the ones before it — so a later
edit's old_string may only exist because an earlier edit in the same call
produced it. The whole call is atomic: if any edit in the sequence fails
(its old_string is missing, or appears more than once without
replace_all), none of the edits are written and the file is left
untouched. Returns "applied N edit(s) to <path>" and re-records the final
content, same as edit.
Run a shell command via sh -c in the project root, capturing combined
stdout/stderr and the exit status.
| Param | Type | Required | Meaning |
|---|---|---|---|
command |
string | yes | The shell command |
timeout_ms |
integer | no | Max run time in ms (default 120000) |
background |
boolean | no | Start as a background job (also run_in_background) |
sandbox |
boolean | no | Only with the sandbox on: false runs this command on the host instead, which needs approval |
interactive |
boolean | no | The user will have to type to the command (a password, a 2FA code): they are given its terminal as it starts. See A command you can type to |
tail |
integer | no | Show only the last N lines of the output |
head |
integer | no | Show only the first N lines |
grep |
string | no | Show only the lines matching this regex (Rust regex syntax) |
context |
integer | no | With grep: this many lines before and after each match |
invert |
boolean | no | With grep: the lines that do not match |
The last five are the output filter.
A result opens with one line saying how the command ended — [exit status: 0], [exit status: 3], [killed by signal: 15 (SIGTERM)], [command timed out after Nms and was killed] — the same wherever it ran, then its output.
The child is polled every 20ms and killed if it exceeds the timeout. Output over
20,000 bytes comes back as its start and its end, with all of it saved to a
file (below). bash is the one built-in tool that is not confined
— it can run anything — so it requires approval (see
Permissions, including the risk-signal warnings shown
alongside the prompt), unless the sandbox will run the
command.
With background: true (or run_in_background: true) the command starts as
a background job instead and the call returns its id (job-N) at once —
for servers, watchers, and long builds. Jobs run in their own process group
and are stopped when atelier exits.
A job that ends says so; the agent does not have to poll it.
-
The model gets a notice at its next step — between two steps of the running turn, the way a message you type mid-turn is delivered — as a marked block, followed by a line saying that it comes from the harness and not from you:
<background-job id="job-3" exit="0" runtime="42s"> command: cargo test last 10 of 214 lines of output: … </background-job>It carries the exit code (or the signal), the runtime, the command (its first line, clipped) and the last 10 lines of output;
bash_outputwith the job's id returns everything not read yet. -
You see one line:
⚙ job 3 finished (exit 0, 42s): cargo test. -
If the session is idle when the job ends, the line appears at the prompt and the notice goes to the model with your next prompt. A finished job never starts a turn by itself.
-
No notice for a job the model stopped with
bash_kill, nor for one whose exit it already saw in abash_outputresult. -
A job started by a subagent is announced to the main conversation: the subagent may be gone by the time it ends.
With the sandbox on ([sandbox] enabled = true, a build with
the sandbox feature), a foreground command runs in a nixvm guest that sees
the project and nothing else of the machine, and is not put to the user. A
result whose failure looks like the sandbox's doing says so, and the model
can ask for the host with "sandbox": false. Background jobs always run on
the host.
A release tool that stops for a 2FA code, ssh asking about a host key,
sudo, npm login, a "continue? [y/N]": on pipes with no stdin such a
command fails or hangs until its timeout, and nobody — least of all the
model — knows beforehand which command will ask. So where somebody is at
an interface that can pass keys on (the terminal interface, or a
serve client that says it has a
terminal), a foreground command on the host runs on a pseudo-terminal of
its own, and can be handed the keyboard at any point of its run:
-
You take it:
Ctrl-Twhile a command runs. Your keys go to the command as the terminal sends them —Ctrl-Cis then the command's interrupt, not the turn's — and what it prints is written straight to the scrollback, raw.Ctrl-]gives the keyboard back to atelier; so does the command's end. No screen is switched and nothing is redrawn: the input line and the strip step aside and come back under what was printed. -
atelier notices a command that is probably waiting for input: it has printed nothing for a second and is blocked reading its terminal (seen in
/procon Linux x86-64 and arm64) or, where that cannot be seen, its output ends in an unfinished line that reads like a prompt (Password:,[y/N],Enter the 6 digit code:). You get a line, a bell and the strip:⌨ the command is waiting for input: Enter the 6 digit code: Ctrl-T to type to it (Ctrl-] gives the keyboard back)The keyboard is never redirected by itself here: what you were typing on the input line stays a message for the model.
-
The model says so:
interactive: true, when it knows the command will ask (the tool's description says when). The keyboard is handed over as the command starts — unless you have something typed on the input line, in which case you get the hint instead — and the command keeps your ownTERM.
Time. While you have the keyboard the command's timeout does not run. A
command seen waiting (or started interactive) has at least five minutes
from that moment for you to come and answer, whatever was left of its
timeout. Left unanswered it is killed, and the model is told that the
command was waiting at that prompt and that nobody answered — not to
answer it itself, but to tell you.
What you type is yours. A code or a password goes to the command and
nowhere else: it is not in the tool's result, so not in the model's
context, the saved session, a trace (ATELIER_TRACE) or the kept output
file. The terminal echoes what you type and a program may print it back, so
of the command's output the model is given everything except the rest of
each line you typed on (where the echo is), and any later occurrence of a
line you typed that is at least four characters long, replaced with
[typed]. The result ends with a line saying that you typed to the
command. A shorter answer (y, 2) is not searched for: it is no secret,
and its echo is withheld all the same.
With a second terminal attached to the session as its remote control, either can take the keyboard (Ctrl-T at the one you are at), and the command's timeout stands still while one of them has it. What is typed at one is not sent to the other as such. A terminal that has taken the keyboard is shown what the command's terminal prints, and that includes the echo of the keys where the program leaves echo on; a password, read without echo, appears at neither, and a terminal that has not taken the keyboard is shown none of it.
Why a terminal for every command, and what it changes. A command
cannot be moved onto a terminal once it runs, and the programs this is for
prompt on the terminal (/dev/tty), often only when they see one. So it is
a terminal from the start, with the cost to ordinary commands kept small:
TERM=dumb, NO_COLOR=1, PAGER=cat and GIT_PAGER=cat are set, the
window is 200 columns wide until you take the keyboard (then it is your
window's size), and what the model receives is cleaned — escape sequences
removed, \r\n back to \n, a line redrawn with \r or backspaces
reduced to what it ended as. What does differ from a run on pipes:
- stdout and stderr are one stream, in the order things were printed,
with no
[stderr]section; - a command that reads stdin gets a terminal instead of an immediate end of
file:
catwith no argument waits (and is reported as waiting) rather than returning at once; - programs that format for a terminal still do where the variables above do
not stop them:
lsprints in columns; - stopping the turn (Ctrl-C at the input line,
turn/interrupt) kills the command instead of waiting for it to finish.
Where nobody can type, a command runs as it always did — pipes, no
stdin, stdout and stderr apart: --print, a serve client
that did not ask for the terminal, ACP (whose terminal/*
methods have the client run a command and offer no way to pass keys to
one), subagents, background jobs, node scripts, the plain REPL, and
systems with no pseudo-terminal support (anything but Linux and macOS). A
command that then fails or times out with its output ending at what reads
like a prompt gets a line in its result saying that it seems to have asked
for input, that nobody could answer and why, and that the model should
tell the user rather than try to answer. interactive: true in such a run
is noted in the result as not honoured.
The sandbox's guest is not wired to this yet: a command that
runs there cannot be typed to, the same report applies, and the way to a
terminal is "sandbox": false (which needs approval, as ever).
interactive changes nothing about permissions: rules
read the command, and a call that needed approval still does.
Agents end commands in | tail -n 20 or | grep error by habit, to keep a
result short. The pipe costs more than it saves:
- the exit status reported is the filter's —
make | tail"succeeds" whatevermakedid; - what the filter dropped is gone, so a failure whose message was above the last twenty lines reads as a short, clean log, and seeing more means running the command again;
- the command no longer writes to what it was started on, which buffers its output and hides a prompt.
So the filter is a parameter. tail, head and grep (with context and
invert) shape what the model is shown and nothing else: the command
runs as written, unpiped, its own exit status is reported, and all of its
output is saved outside the project
(as long output is).
[exit status: 0]
[filtered: 20 of 3,402 lines shown (last 20) — full output: /home/me/.local/state/atelier/projects/-home-me-proj/tool-output/ab12cd.txt (to see another part without rerunning: bash_output with id "out-ab12cd" and tail/head/grep, or read with offset/limit)]
…
grepis applied first, thenheadandtailto what matched (both together: the first N and the last M).contextadds the lines around what is left. A gap between two shown stretches is a--line.- Looking again costs nothing. The result names a handle,
out-ab12cd:bash_outputwith thatidand another filter returns another part of the same output, andreadwithoffset/limiton the file returns a range of lines. Neither runs the command again. The handle is there whenever something was left out — by a filter, or because the output was over the budget; a result that shows everything has nothing more to hand out, and saves no file. Kept output lasts as long as its file: the 50 most recent, 20 MiB. - A filter never hides a failure. The status line always comes first.
When the command failed — a status other than zero, a signal, the timeout
— and the filter left out any of the last 20 lines of its output, they
are appended, unfiltered, under a line saying so: that is where the error
usually is. A pattern that matches nothing says
no line of the 3,402 lines of output matches "…"rather than returning an empty result that reads as "no errors". - A filter that leaves nothing out (
tail: 50on ten lines) changes nothing: the result is the plain one.
A command that still ends in a pipe into a plain tail, head or grep
runs as written — it is not refused, and not rewritten: taking the pipe
off changes the command's exit status and which of stdout and stderr is
filtered, and the model may be relying on either. Its result ends with a
note saying what the pipe cost (that the status is the filter's, unless the
line sets pipefail) and which parameter to pass next time ("tail": 20).
Pipes that transform — | sort | uniq -c, | wc -l, | jq, grep -c — are
the command's business and get no note; nor does anything the permission
rules' shell parsing cannot follow.
Read a background job's output since the last call, and its status — or wait on it. Or look again at the kept output of a command that has ended.
| Param | Type | Required | Meaning |
|---|---|---|---|
id |
string | no | The job (job-N), or a kept output (out-ab12cd, or its file's path). Omitted: with wait_ms/until, the latest job; otherwise list all jobs |
wait_ms |
integer | no | Block up to this long (max 600000) until the job exits… |
until |
string | no | …or its new output matches this regex |
tail, head, grep, context, invert |
no | The output filter, as for bash |
Returns [job-N: running|exit status: … after Ns] then the new output (its
start and its end if over 20,000 bytes, the rest in a
file), or what the filter selects of it — with
the same guarantees as for bash: a job that failed shows its last lines
whatever the filter, and what is not shown is kept under a handle. This is
how to wait for a server to print
"listening", or to block on a build when there is nothing else to do. Just
learning that a job has ended needs no call: it says so.
With the id of a kept output it returns [out-ab12cd: kept output, N lines] and that output — filtered, if a filter is given; its start and its
end otherwise. An id whose file has been rotated out is an error that says
to run the command again.
Stop a background job and everything it spawned (TERM to its process
group, then KILL if it lingers). Param: id.
Regex search over file contents, respecting .gitignore (via the ignore
crate's directory walker).
| Param | Type | Required | Meaning |
|---|---|---|---|
pattern |
string | yes | Regular expression (Rust regex syntax) |
path |
string | no | Directory to search under (default: project root) |
glob |
string | no | Filename glob filter, e.g. *.rs |
Matches are returned as path:line:text, one per line, capped at 100 with a
[truncated at 100 matches] note. Binary/unreadable files are silently
skipped. Returns "no matches found" if nothing hits.
List files matching a glob pattern, respecting .gitignore.
| Param | Type | Required | Meaning |
|---|---|---|---|
pattern |
string | yes | Glob, e.g. src/**/*.rs |
path |
string | no | Directory to search under (default: project root) |
Returns sorted, project-relative paths, one per line, capped at 200 with a
[truncated at 200 results] note, or "no files matched".
List one directory's entries (not recursive).
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | no | Directory to list (default: project root) |
Entries are sorted; directories get a trailing /. Errors if the path
doesn't exist or isn't a directory. Returns "(empty directory)" if empty.
Runs a JavaScript snippet on an embedded interpreter with a mediated,
project-confined fs (synchronous, plus fs.promises), an optional network
capability, and — with approval — access to outside paths the call names in
allow_read/allow_write. With tools: true
the script can also call the other tools (tools.call("read", {path})) and
work on their results, so that only what it prints reaches the model — "code
mode", for many calls whose intermediate results the model need not read.
Each such call goes through the hooks, permission rules and approval of the
tool it names. See Scripting for the full reference — it's
substantial enough to warrant its own page.
Print an indented directory tree, respecting .gitignore.
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | no | Root to print (default: project root) |
depth |
integer | no | Max depth (default 3) |
Directories get a trailing /; capped at 200 entries with a truncation note.
Confined to the project root and auto-approved.
Code navigation: where a name is defined, who uses it, what a file declares,
what a symbol's signature and documentation are. The model is told to prefer
it over grep for those questions.
| Param | Type | Required | Meaning |
|---|---|---|---|
action |
string | yes | definition, references, hover, outline or search |
path |
string | all but search |
The file, relative to the project root |
line |
integer | definition, references, hover |
The line the symbol is on, from 1 |
symbol |
string | no | The symbol's name as written on that line; its first occurrence is used — as a whole word when there is one — and for a::b or self.b the last name. Saves counting columns |
column |
integer | no | Instead of symbol: the column, in characters from 1. With neither, the name the line declares is meant (handy after outline or search) |
query |
string | search |
A name, or part of one |
| Action | Answers |
|---|---|
definition |
Where the symbol at the position is defined |
references |
Where it is used, its declaration aside |
hover |
Its signature and documentation |
outline |
The symbols the file declares, in order |
search |
Symbols anywhere in the project whose name matches query — the way in when you have a name and no position |
Every location is one line — path relative to the project, line and column from 1, the kind and name where known, the source line — and lists are capped (100 locations, 200 for an outline) with a count of the rest:
references to `keep_in_walk` (its declaration aside) — 5 locations (rust-analyzer)
src/tools/grep.rs:84:34 — .filter_entry(spill::keep_in_walk(ctx.project_root))
src/tools/glob.rs:72:34 — .filter_entry(spill::keep_in_walk(ctx.project_root))
…
outline of src/lsp/frame.rs — 20 symbols (rust-analyzer)
src/lsp/frame.rs:29:15 function write — pub(crate) fn write(writer: &mut dyn Write, message: &Value) -> io::Result<()> {
src/lsp/frame.rs:49:19 struct Decoder — pub(crate) struct Decoder {
src/lsp/frame.rs:55:19 method impl Decoder.push — pub(crate) fn push(&mut self, bytes: &[u8]) {
…
With a language server, the answers are the compiler's: definition
follows imports and trait impls, references tells two functions of the same
name apart. The result's first line names the server. One is used when the
project has it:
| Project root has | Server (must be on PATH; nothing is installed) |
Files |
|---|---|---|
Cargo.toml |
rust-analyzer |
.rs |
go.mod |
gopls |
.go |
tsconfig.json or package.json |
typescript-language-server --stdio |
.ts .tsx .mts .cts .js .jsx .mjs .cjs |
pyproject.toml, setup.py, setup.cfg or requirements.txt |
pyright-langserver --stdio, else pylsp |
.py .pyi |
compile_commands.json (also under build/) |
clangd |
.c .h .cc .cpp .cxx .hpp .hh .hxx |
or when [[lsp]] in atelier.toml names one for the
file's extension (which replaces the detected one). search asks every
server the project has, and lists the project's own symbols: what a server
also knows of the standard library and the dependencies is counted on a last
line, not listed (gopls is started with symbolScope set to workspace for
the same reason). A server that has just started is first given one of the
project's files — clangd has indexed nothing, and the TypeScript server has
no project, until it is.
references asks the server for every occurrence and takes out the
definition itself, and the declaration the call was pointed at. Asked to
leave the declaration out, servers do not agree on what that means (see
below); this way the list is the same wherever the call
points. Another declaration of the symbol — a C prototype when the body is
the definition — stays in the list, labelled with its kind as in
definition.
A server is started the first time it is needed and kept for the session —
indexing takes a while, and answers are fast only afterwards. A file is sent
to it when first asked about and again whenever its text changed since, so
edits made between calls are seen. A call waits until the server says it is
done loading (a server that is still indexing answers "nothing found", which
would be passed on as fact), for at most 20 seconds in all (timeout_secs
of a [[lsp]] entry). A server that dies is started again once; it is
stopped, with everything it started, when atelier exits. rust-analyzer is
started with checkOnSave off, so it does not run cargo check beside your
own builds, and with workspace.symbol.search.kind set to all_symbols:
left to itself it answers search with types only.
A language server runs the project's code — rust-analyzer runs build
scripts and proc macros, the TypeScript server loads the typescript in
node_modules — so one is started, configured or detected, only in a
trusted project, like the diagnostics checkers.
Without a server — none for the language, not installed, the project not
trusted, or no answer in time — the tool answers from the text: declarations
are recognised by their shape (fn name, class Name, func (r T) Name, …
for Rust, Go, Python, TypeScript/JavaScript and C/C++), names are matched as
whole words, across the project's files as grep would walk them. hover
is the declaration line under its comment. There are no scopes or types in
this: same-named symbols are all candidates, a name in a comment is a
"reference". Such a result therefore opens with a line saying so and why:
textual approximation (no language server for Rust: rust-analyzer did not answer within 20s (it may still be indexing the project; a later call may get through)) — names and declaration shapes matched as text, not analysed
definition of `keep_in_walk` — 1 candidate
src/tools/spill.rs:106:8 fn keep_in_walk — pub fn keep_in_walk(
A definition in the standard library or a dependency is reported with its
absolute path and line, marked outside the project, not read; reading it is
read's job, with its approval for paths outside the project.
Diagnostics do not come from the language server — they come from the project's own checkers.
The tool was written against rust-analyzer and a fake server. On 2026-11-17
it was run against rust-analyzer again and four more, on Linux, each on a
project of three files in a directory whose name has a space and an accent,
the symbol asked about sitting after "é𝄞日本" on its line, and the first
call a search on a server just started:
| Server | Version | What it showed |
|---|---|---|
| rust-analyzer | 1.97.1 | search found types and no functions: gree matched Greeter and not greet |
| clangd | 22.1.8 | A first search found nothing: clangd indexes when a file is opened. search also listed std::greater_equal |
| gopls | 0.23.0, Go 1.26.5 | search for gree returned 100 symbols, 96 of them the standard library's; a name gopls had qualified was qualified twice. Also run on a 30-file module (BurntSushi/toml 1.6.0): 49 references across its packages, cold, in under a second |
| typescript-language-server | 6.1.0, TypeScript 5.9.3 | A first search failed with "No Project" and twenty lines of stack trace, which went into the note. references asked right after a file was first opened listed that file's only. The declaration was among the references unless asked at it. search placed a symbol at the start of its declaration, not at its name |
| pyright-langserver | 1.1.414 | references "without the declaration" left out the place asked about and kept the declaration |
All of that is fixed, with a test of each against the fake server; positions
(UTF-16 units), escaped URIs, the servers' own requests
(workspace/configuration, window/workDoneProgress/create), waiting for
$/progress to end, a file edited between two calls, and stopping the
server needed nothing. The runs are kept as tests that are ignored unless
asked for, and that skip a server that is not installed:
cargo test --lib symbols::live -- --ignored --nocaptureWorth knowing: clangd writes its index to .cache/clangd/ in the project.
typescript-language-server 6.1 does not work with TypeScript 7 (there is no
tsserver in it) and refuses to start; the tool says so and answers from
the text.
Not tried: pylsp; a project large enough that indexing outlasts the 20
seconds a call waits; macOS and Windows. Of [[lsp]] entries, one naming
gopls by its path was.
Read-only, confined to the project root and auto-approved; available in
plan mode and to the explore agent, and run in parallel with other
read-only calls.
Fetch a URL over HTTP(S) and return the response body as text. Requires approval (network access, unconfined).
| Param | Type | Required | Meaning |
|---|---|---|---|
url |
string | yes | http(s):// URL (redirects followed) |
method |
string | no | HTTP method (default GET) |
| offset | integer | no | Character offset to start from (default 0) |
| max_chars | integer | no | Characters to return (default 30000) |
| raw | boolean | no | Return HTML as-is instead of converting it |
Returns a HTTP <status> <reason> line then the body. HTML is converted to
readable text — scripts, styles and markup dropped, headings as # lines,
list items as - , links as [text](url), entities decoded. A longer result
says [characters A-B of N] and ends with how to fetch the next page.
Search the web and return a numbered list of results. Requires approval (network access, unconfined — the query leaves the machine).
| Param | Type | Required | Meaning |
|---|---|---|---|
query |
string | yes | What to search for |
max_results |
integer | no | How many results (default 8, at most 20) |
domains |
string[] | no | Only return results from these domains, subdomains included (e.g. ["docs.rs"]) |
Each result is its title, its URL and a snippet of at most 300 characters:
1. References and Borrowing - The Rust Programming Language
https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html
The rules of references: at any given time, you can have either one…
Nothing found is no results for "<query>". Read a result with web_fetch.
The search goes to the provider set by ATELIER_SEARCH_PROVIDER or the
[search] table of atelier.toml — searxng, brave, tavily, or
duckduckgo — see Configuration. The default,
with nothing configured, is DuckDuckGo's HTML results page, which needs no
key but may refuse automated clients; when the page it returns isn't a
results page the call fails with an error saying to configure a provider,
rather than returning made-up or empty results. A failure reads
<provider> search failed: <reason> on one line (host unreachable, HTTP
status, unexpected response); the API key is never part of it.
Of the providers, DuckDuckGo and SearXNG have been run for real. SearXNG
was, on 2026-11-17: an instance of that week's source (commit 2d500cb)
on the same machine, asked through the tool by a model. As installed it
answered 403 — the JSON format is off by default — and the tool's error
said which setting turns it on (search.formats); with json added, a
query came back as eight results, and one with domains and
max_results as three, all from that domain. Nothing needed changing.
Brave and Tavily need an account each and have only met the test suite's
local server.
Edit a Jupyter notebook cell. The notebook must have been read this session
and be unchanged on disk since (like edit).
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | yes | The .ipynb file |
cell |
string | for replace/delete | Cell id, or 0-based index (cell_id also accepted) |
new_source |
string | for replace/insert | The cell's new source |
cell_type |
string | no | code or markdown (insert default code) |
edit_mode |
string | no | replace (default), insert (after cell, or at the top), or delete |
Replacing a code cell's source clears its stale outputs and execution count. The file is written as Jupyter writes it (sorted keys, one-space indent).
Apply a unified diff spanning one or more files in a single atomic call — the natural way to express a multi-file change.
| Param | Type | Required | Meaning |
|---|---|---|---|
patch |
string | yes | A unified diff (--- a/… / +++ b/… headers, @@ hunks) |
Supports modify, create (--- /dev/null), and delete (+++ /dev/null).
Hunks are located by the @@ line hint, falling back to a unique content
search, so slightly-off line numbers still apply. Modified files must have
been read this session and not be stale (same FileState rules as edit).
Atomic: if any hunk of any file fails, nothing is written. Confined and
auto-approved.
A durable checklist, for tracking multi-step work across turns (and across
compaction). It is stored as todos.json in the project's state
directory, not in the
project.
| Param | Type | Required | Meaning |
|---|---|---|---|
action |
string | yes | list · add · complete · set · clear |
items |
array | for add/set | task strings |
ids |
array | for complete | 1-based ids to mark done |
Renders as [x] 1. done / [ ] 2. pending with a count summary. Confined and
auto-approved.
Put a question to the user, with a few options to choose from, and wait for the answer — instead of guessing, or ending the turn with a question in prose.
| Param | Type | Required | Meaning |
|---|---|---|---|
question |
string | yes | The question |
options |
array | yes | 2 to 6 choices, each { "label": "…", "description": "…" } (description optional; a bare string is taken as a label). Labels must be distinct |
multi_select |
boolean | no | Several options may be chosen (default false) |
allow_other |
boolean | no | The user may type an answer of their own instead (default true) |
Nothing pops up. The question is printed like any other output and answered on the input line:
? Which database should the cache use?
1. SQLite — one file, no server
2. Postgres — already runs in production
3. Plain files
(answer with a number, or type your own answer)
› 2
While it waits, the status strip reads ? waiting for your answer and the
line you submit is the answer rather than a queued message. What you can
type:
- a number (
2), or for a multi-select question several:1 3,1,3, a range2-4; - a label, or the start of one if no other label starts the same way
(
post, orsqlite, plainfor several) — case doesn't matter; - anything else is your own answer where
allow_otheris on — including a number past the last option. Where it is off, an answer that isn't an option prints the hint again and the question keeps waiting.
Ctrl-C on an empty line dismisses the question: the turn goes on and the model is told you declined to answer.
The result says which it was, with labels and text quoted, so a typed
answer is never taken for an option: The user chose the option "Postgres"., The user chose 2 options: "SQLite", "Plain files"., or The user chose none of the options and answered in their own words: "…".
Where there is no one to ask — --print, except with stream-json both
ways, where the parent process answers
(Questions) — the call fails with cannot ask: this is a non-interactive session… and the model is told to decide for
itself and state its assumption. Auto-approved: it only talks to you.
Notes that persist across sessions, one Markdown file each, in the project's memory directory (in its state directory, outside the project) or the user-global one. The index of saved memories is injected as context every turn; this tool reads the notes and maintains them. See memory for the file format and what the agent is told to save.
| Param | Type | Required | Meaning |
|---|---|---|---|
action |
string | yes | save · read · list · delete |
name |
string | for save/read/delete | kebab-case slug (lower-case letters, digits, single hyphens; max 64 chars) |
description |
string | for save | one line (max 200 chars), shown in the index |
type |
string | for save | user · feedback · project · reference |
content |
string | for save | the note, Markdown, max 8 KiB |
scope |
string | no | project (default for save) · global (type user only). For read/delete the default is whichever has the name, project first |
save overwrites a memory of the same name and regenerates MEMORY.md.
Errors the model can act on: an invalid name, a note over 8 KiB, a full
directory (200 memories), and content that looks like a secret (private-key
blocks, sk-…/ghp_…/AWS-style keys, password=… and the like) — the save
is refused. Confined to the memory directories and auto-approved.
Load a skill: instructions (often with scripts and reference files) for one kind of task. The skills' names and descriptions are injected as context every turn; this tool returns the rest when a task calls for it.
| Param | Type | Required | Meaning |
|---|---|---|---|
name |
string | no | the skill to load, as listed. Omitted: list every skill (- name — description) |
file |
string | no | with name: return this file of the skill instead, by its path relative to the skill's directory |
Loading a skill returns:
skill: release
directory: /path/to/project/.atelier/skills/release
files (read one with {"name": "release", "file": <path>}; run scripts by their path under the directory):
checklist.md
scripts/bump-version.sh
# Releasing
…the body of SKILL.md, without its front matter…
Up to 100 files are listed (hidden files left out, four levels deep). file
returns a text file of at most 256 KiB, and only from inside the skill's own
directory: the path is resolved first, so .., an absolute path, or a
symlink leading out of the skill is an error. That confinement is what lets
the tool be auto-approved even though a user-global skill is outside the
project, where read would ask. An unknown name is an error that lists the
available ones.
Run a subagent on a task and return its final report. The
subagent is a fresh conversation: it sees nothing of the caller's, only
prompt, so the prompt must be complete in itself. The description the
model is given lists the agents available (built-in and file-defined) with
their descriptions.
| Param | Type | Required | Meaning |
|---|---|---|---|
agent |
string | yes | Which agent runs it: explore, general, or one defined in .atelier/agents/ |
prompt |
string | yes | The complete task — goal, known facts and paths, what to report |
description |
string | no | The task in 3–6 words, shown while it runs (default: the prompt's first line) |
background |
boolean | no | Start the agent and return its id at once instead of waiting for its report (default false; run_in_background is accepted too) |
isolation |
string | no | "worktree": the agent works in a fresh git worktree at HEAD instead of the project directory. Uncommitted changes are not carried over. An agent whose definition says isolation: worktree is isolated whatever the call says |
process |
boolean | no | Run the agent as an atelier process of its own, an instance the other instances can message (default false). An agent whose definition says process: true runs so whatever the call says |
The result is the subagent's final message followed by a footer,
[explore: 7 steps · 412 output tokens]. A subagent that reaches its step
cap is made to wrap up without tools, and its report says so. An unknown
agent is an error that lists the available ones; a subagent that fails (the
endpoint errored) is an error result with the cause.
With background: true the result is the agent's id (started background agent agent-1 (explore). …), and the report arrives later as a
<subagent id="agent-1" …> block — between two steps of a running turn, or
in front of your next prompt — exactly as a finished background job's notice
does. A background agent has no user to ask, so a call the permission rules
would ask about is denied to it; see in the
background for that, /agents stop, and the
limit of 4 running at once.
With isolation: "worktree" the agent's project root is its own git
worktree, kept outside the project. If
it changed anything, its report ends with the worktree's path, a git diff --stat against the base commit and the command that brings the changes over
(git -C <worktree> diff --binary <base> | git apply); nothing is merged
automatically. An untouched worktree is removed. Outside a git repository,
or in one without a commit, the call is an error result.
With process: true the agent is a separate atelier
instance, named <instance>.<agent> among the
peers, so that agents running at the same time can peer_send and
peer_ask each other. The result, the limits and who approves its calls
are unchanged. Without a coordinator the agent runs inside the caller
instead, and a line says so; if its process dies mid-task the call is an
error result.
task calls that follow one another in one step run at the same time; their
results come back in call order. Subagents have every limit the caller has —
the same project root, the same permission rules, the same approval prompts
— and never task itself. The tool is run by the agent loop rather than by
Tool::call, and is not offered to the Claude backend, which
has subagents of its own.
Present when the instance is connected to the coordinator.
peers lists the atelier instances running on this machine (name, idle or
working, model, directory, topics), after applying any subscription changes,
and below them the paths any instance has announced it is working on (see
peer_lock).
| Param | Type | Required | Meaning |
|---|---|---|---|
subscribe |
array of string | no | Topics to start receiving |
unsubscribe |
array of string | no | Topics to stop receiving |
peer_send sends a message to other instances and reports how many it
reached. The recipient's agent gets it at its next step; an idle instance
only reads it with its user's next prompt.
| Param | Type | Required | Meaning |
|---|---|---|---|
to |
string | yes | An instance name, * for every other instance, or #topic |
message |
string | yes | The text to deliver |
A question to another instance's agent, and its answer — see Asking another agent.
peer_ask sends the question and blocks until the other agent answers; the
answer is the result. With no answer the result is no answer: <why> (the
other agent's turn ended without one, the timeout ran out, the instance
left), which is not an error. It counts as a modifying tool — the other
agent may act on what it is asked — so plan mode refuses it.
| Param | Type | Required | Meaning |
|---|---|---|---|
to |
string | yes | The instance to ask (a name from peers) |
question |
string | yes | What to ask |
timeout_secs |
integer | no | How long to wait (default 300, at most 1800) |
peer_answer answers a question that reached this agent as
<peer-question id="…" from="…">. It must be called in the turn the
question arrives in: a question still open when that turn ends is closed as
unanswered.
| Param | Type | Required | Meaning |
|---|---|---|---|
id |
string | yes | The question's id |
answer |
string | yes | The answer |
Advisory locks between instances — see Saying what you are working
on. acquire announces a
path with a note, and is answered with the holder's entry instead when
another instance holds the path, a directory containing it, or something
inside it. release gives it back, list shows the table. Nothing is
blocked by a lock; an edit tool that touches a path another instance holds
gets note: <peer> says it is working on this path: <note> appended to its
result.
| Param | Type | Required | Meaning |
|---|---|---|---|
action |
string | yes | acquire, release or list |
path |
string | for acquire |
A file or directory, relative to the project root or absolute. With release, omitted means every lock this instance holds |
note |
string | no | With acquire: what is being done there |
Offered with the audio tools below when an oxinfer server is
among the providers at startup (src/oxinfer/image.rs). Each runs on the
model the call names in model, else [oxinfer]'s for its kind (image,
ocr, depth), else one the server has; each runs without asking unless
that model would be downloaded. Paths are confined to the project. A
picture a tool made comes back as an image as well as a path, so a model
that sees images sees it (up to the 3.75 MB read shows).
| Param | Type | Required | Meaning |
|---|---|---|---|
prompt |
string | yes | What to draw |
path |
string | no | The PNG to write (default images/<words of the prompt>.png, numbered past an existing one); several images are numbered -1, -2, … |
size |
string | no | WIDTHxHEIGHT (default: the model's) |
n |
integer | no | How many (1-8, default 1) |
seed, steps, guidance |
number | no | Sampling (defaults: the model's) |
negative_prompt |
string | no | What to keep out |
model |
string | no | An image model or catalog preset (kromoss-dmd2) |
Returns generated 1 image with lodestones/Kromoss in 113.6 s: and a line
per file (- images/a-lighthouse-at-dusk.png (512x512, 787 kB)), with the
images.
| Param | Type | Required | Meaning |
|---|---|---|---|
image |
string or array | yes | The image to edit, or several for models that combine them |
prompt |
string | yes | The edit |
path |
string | no | Where to write (default <image>-edited.png beside the first) |
mask |
string | no | Inpainting: white where to repaint |
strength |
number | no | Image to image: how far to stray (0-1) |
size, n, seed, steps, guidance, negative_prompt, model |
no | As image_generate |
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | yes | An image (PNG, JPEG, WebP, GIF, BMP) |
format |
string | no | text (default), markdown (needs the model loaded with layoutnet=1), json (lines with boxes and confidences) |
model |
string | no | An OCR model |
Returns the text (cut at 100 000 bytes). Writes nothing.
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | yes | An image, or a video (MP4, MOV, MKV, WebM, AVI) |
out |
string | no | Where to write (default <name>-depth.png, a video's <name>-depth.mp4, beside the input) |
focal_px |
number | no | The focal length in pixels, when known |
model |
string | no | A depth model |
An image returns depth of room.jpg with apple/DepthPro2-S in 0.4 s: focal length 273 px (estimated), field of view 92.8° x 18.7°, depth 1.66 m to 1.73 m (5th to 95th percentile) and the color map (near is warm, far is
cool).
Offered when an oxinfer server is among the providers at
startup (src/oxinfer/). Each runs on the model the call names in
model, else [oxinfer]'s for its kind, else one the server has; each
runs without asking unless that model would be downloaded, and then the
prompt names it and its size. Paths are confined to the project.
| Param | Type | Required | Meaning |
|---|---|---|---|
text |
string | yes, unless list_voices |
What to say |
path |
string | no | The WAV to write (default speech.wav at the root, speech-2.wav past an existing one) |
voice |
string | no | A voice of the model (a wrong one fails with the list) |
list_voices |
boolean | no | List the model's voices instead; nothing is written |
seed, temperature |
number | no | Sampling |
model |
string | no | A speech model |
Returns wrote speech.wav (3.0 s, 143 kB; <model>, voice leo).
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | yes | An audio or video file |
format |
string | no | text (default), segments ([0:00.00 → 0:02.72] text lines), srt, vtt |
translate |
boolean | no | Into English (/v1/audio/translations) |
language |
string | no | The language spoken (default: detected) |
prompt |
string | no | Names, spellings, style for the model to follow |
output |
string | no | Also write the result to this file (then the result is a summary and its start) |
model |
string | no | A transcription model |
| Param | Type | Required | Meaning |
|---|---|---|---|
path |
string | yes | The recording (audio or video) |
keep |
string | no | both (default), voice or background |
voice_path, background_path |
string | no | Where to write each (default <name>.voice.wav, <name>.background.wav beside the input) |
model |
string | no | An isolation model |
Starts a job and returns its id at once; the video takes minutes to hours.
| Param | Type | Required | Meaning |
|---|---|---|---|
prompt |
string | yes | What the video shows and sounds like |
seconds |
number | no | Length |
size |
string | no | WIDTHxHEIGHT, multiples of 32 |
first_frame, last_frame |
string | no | Images of the project to start from, end on |
format |
string | no | mp4 (default), webm, avi |
seed, steps |
integer | no | Noise seed, denoising steps |
model |
string | no | A video model |
| Param | Type | Required | Meaning |
|---|---|---|---|
action |
string | no | status (default), wait, download, cancel, delete, list |
id |
string | yes, but for list |
The job (video_…) |
timeout |
integer | no | wait: seconds at most (default 600, up to 3600); a job still running then is said so |
path |
string | no | download: the file (default <id>.mp4 at the root) |
variant |
string | no | download: video (default), audio (WAV), thumbnail (PNG) |
A status reads video_ab12 (model): in_progress, generating 45% (step 23/50), 1m20s elapsed; 5.2 s, 768x432; a finished one lists what can be
downloaded. download of a job that has not completed is an error with its
status. Only download, cancel and delete count as changes (plan mode).
| Param | Type | Required | Meaning |
|---|---|---|---|
query |
string | yes | What to look for, in plain words |
paths |
string[] | no | Files or directories (default: the project) |
glob |
string | no | Only files whose name matches (*.rs) |
top_k |
integer | no | How many chunks (default 8, at most 30) |
model |
string | no | An embedding model |
3 chunks of 3 files, by sentence-transformers/all-MiniLM-L6-v2 (3 embedded now)
net.rs:1-2 (0.53)
/// Send the request again after a delay when the server fails.
fn backoff_and_resend(req: &Request) {}
Chunks are at most 40 lines; their vectors are cached per model in the project's state directory, so only what changed is embedded again. See oxinfer.