Slate
A desktop terminal with a second pane that follows your coding agent. Edit a spec and it renders, change code and the diff appears, add files and the tree updates.
- Year
- 2026
- Role
- Solo. Design, build, release
- Stack
- Rust, Tauri 2, React 19, xterm.js

The problem
Once the agent starts typing, you stop seeing what it changes.
Hundreds of lines scroll past and somewhere in there it touched auth. Checking means tabbing between the terminal, an editor, git diff and the spec from an hour ago.
When an agent writes the code, you steer through specs and verify through git. The code buffer stops being the center, so the tool shouldn't be built around one.
What I built
A real shell on the left. A pane on the right that picks its own view.
A Rust core owns the pty, the filesystem watcher, git and a classifier. Each burst of file changes becomes one view intent, and the React pane switches to the spec, the diff or the tree before you look up. It watches the filesystem, not the agent, so it works with any terminal tool.
Six views sit one shortcut away: source control, diff, spec, timeline, search and an activity log that replays what the agent did.
- classifierA pure Rust function from a burst of file changes to one view. No I/O, every rule unit-tested.
- watcherFilesystem events debounced at 400 ms, honouring the repo's real
.gitignore. - agent channelA loopback socket on port 8477. An agent can force a view, post a note, or ask for approval and block on the answer.
- activityEvery reactive event with its trigger files. The newest 20 carry a diff snapshot for replay.
How the pane decides
Every debounced burst runs through these rules in order. The first match wins, and a click or an agent override beats them all.
| Burst | Pane shows |
|---|---|
| A markdown file is created, or markdown files at least match the rest | Spec, the newest markdown file |
| Two or more creates or deletes, outnumbering edits | Tree |
| Any modified files | Diff of exactly those files |
| Nothing else matches | Tree |
Hard decisions
The calls that shaped it.
Rules, not a model
Choosing the view is about sixty lines of deterministic Rust with ten unit tests. No inference means it is instant and predictable, and when it guesses wrong one click corrects it.
Stop following while you work
Background writes kept redirecting the pane and wiping a half-typed commit message. Auto-switch now holds for 8 seconds after any click, scroll or key in the pane, and never fires while an input has focus.
Keep the window responsive
Heavy Tauri commands run async, because a plain command runs on the macOS UI thread and a big
git difffroze the window. Pty output is batched every 3 ms into one IPC event so agent streaming can't flood the webview.Test against real git
The Rust tests drive real
gitin throwaway repos, including a local bare remote for push, pull and fetch, instead of mocking it.
Where it is now
A working app with a marketing site and a launch film.
- Live siteslate.mithunchavan.me
- 60s film"Trust needs a window", built in Remotion, with a hero loop and a vertical cut
- 43 tests28 Rust, 15 Vitest, run together with
npm run check - 69 commitsPublic on GitHub