The first coding demo asks Yada to add a multiplication function next to an existing addition function. The interesting part is what happens before anything changes. Yada reads the file, proposes a diff, and waits for approval. It asks again before running the check. You can see both decisions in the recording.

We recorded this in a fresh Linux container. The installer, released binary, and approval prompts are real. A scripted model server supplies the replies so the recording can be reproduced without an API key.
Yada started as an open-source agent harness for TypeScript backends. A server supplied a model and tools. Yada ran the tool loop, handled approvals, and kept enough state to resume interrupted work. A terminal coding agent needed much of the same machinery. The new work was teaching the harness about a working directory, giving it six coding tools, and making its decisions legible in a terminal.
The file you approve is the file Yada checks
Three tools read the project: read_file, list_files, and grep. Three can change it: edit_file, write_file, and bash. They’re also exported through @edgaralochi/yada/coding, so applications can use them without the terminal interface.
For edits, the model quotes existing text and supplies its replacement. Line numbers can go stale after another edit, and patches are easy to misformat. An exact match gives the model something concrete to check. When the same text appears more than once, the tool tells the model how many matches it found and asks for more surrounding context or an explicit request to replace every occurrence.
Approval creates a separate problem. A developer can make an edit while the proposed diff is on screen. Yada hashes the file when it prepares the diff and checks the hash again before writing. If it has changed, the edit stops and the model has to read the file again.
Project boundaries also need to account for symlinks. The tool resolves the real paths of both the project root and the requested file or its nearest existing parent. We found the asymmetry on macOS, where a temporary directory under /var resolves to /private/var. Resolving only the requested path made files in legitimate temporary projects look as though they were outside the project.
A command has a wider reach
The shell runs in the working directory with the current user’s permissions. Yada puts a timeout on each command, can cancel its process group, and caps output at 30,000 characters. It keeps the start and end of the output, where the command and the failure details usually appear. It also strips YADA_* variables from the command’s environment.
The shell is unsandboxed, so the approval mode matters. The default, ask, lets the agent read and asks before edits or commands. auto-edit permits most project edits and still asks before commands and writes under .git or .husky. auto permits edits and commands. read-only permits reads. One-shot runs with yada -p default to read-only so a pipeline can finish without someone at the keyboard.
The extra check on Git-related files is intentional. A change to a hook can run code later, long after the edit that put it there.
An editor you can pause and come back to
/undo restores the files the agent changed in its most recent turn with file edits. Yada also tells the model which files were restored, so its next step starts from the right version. Shell commands fall outside the file snapshots.
Sessions are saved as private JSON files and written by renaming a temporary file into place. A session can be saved while a tool call is still running. On resume, Yada cuts the unfinished exchange back to the last complete tool-call sequence, so the provider receives a consistent conversation. yada -c resumes the latest session in the current directory.
The agent also reads the project’s existing instruction files, including AGENTS.md, CLAUDE.md, and YADA.md, alongside the current Git context. That gives it the same local conventions a developer would consult when joining the project.
Why we kept two interfaces
We built a plain line interface first. Piping prompts into it exposed a bug before we had a full-screen UI: any lines sent before the first prompt appeared were dropped. Queuing those lines made the fallback reliable and gave us a tested event and approval flow for the Ink interface to reuse.
Ink adds live diffs, progress per tool, a session status bar, and an Escape key that stops the current turn. It stays optional for npm users who only need the line interface. The standalone binaries include it, which meant making distribution work just as well as the interface itself.
Start with the terminal guide. Next in the series, how we ship Yada as a standalone CLI.