remuscodes.dk ❯ plato

terminal code editor · single binary

Your editor
keeps running
when you leave.

plato is a small code editor that lives in the terminal: a file tree, tabs you can split, shells, and a panel for your coding agent. It runs as a background server you attach to, so closing the terminal never stops a build, a shell or an agent session.

plato ~/src/app
plato --remote devbox
plato — app
┌ tree ─────────┬ main.go · client.go ─────────────────┬ agent ────────────────────┐
│ ▾ app/        │  12 func main() {                    │ > add a --remote flag     │
│   main.go     │  13   cfg := loadConfig()            │                           │
│   client.go * │  14   if *remote != "" {             │ ✻ Editing client.go…      │
│   server.go   │  15     return runRemote(*remote)    │ ⎿ +12 −3                  │
│               │  16   }                              │                           │
│ workspaces    ├ shell ───────────────────────────────┤                           │
│ ✻ app         │ $ go test ./...                      │                           │
│ ❯ site        │ ok   app      0.41s                  │                           │
│ * notes       │ $ ▌                                  │                           │
└───────────────┴──────────────────────────────────────┴───────────────────────────┘
 EDITOR client.go  14:3  go                           Ctrl+Q detach · Ctrl+P palette

detach, don't quit

The editor is a server.
Your terminal just attaches.

Running plato starts a background server the first time and attaches your terminal to it. The server owns everything: open files, every project, every shell and agent session. Your terminal is only a window onto it, so you can close it, lose it, or swap it for another one.

detach
Ctrl+Q leaves, it doesn't quit. Everything keeps running, even unsaved edits, and the next plato puts you back exactly where you were.
$ plato attached · 3 projects · 2 shells · 1 agent
take over
Attach from a second terminal and it takes over; the first one is detached. Pick up at the desk what you started on the laptop.
$ plato ~/src/site switched to site (added to workspaces)
remote
The same editor on another machine, over plain SSH. Builds run where the code is, and a dropped connection loses nothing.
$ plato --remote devbox '~/src/app'
upgrade
After an upgrade, plato notices the running server is an older version and offers to restart it. Projects, panels and agent conversations come back afterwards.
$ plato server status app ✻ agent ❯ 1 shell * 2 unsaved site ❯ 1 shell notes

workspaces

Every project, still running.

The bottom of the sidebar lists the projects you've opened. Each one keeps its own file tree, tabs, splits, shells and agent panel. Switching projects doesn't stop anything: a build or an agent session carries on while you work elsewhere.

the workspaces list

plato — workspaces
 workspaces
 ✻ app        the agent is working
 ❯ site       a shell is running
 * notes      unsaved files
   rits

enter switch • a add • d remove from list

Status at a glance

Markers show what's going on in each project: ✻ the agent is working, ❯ a shell is running, * there are unsaved files.

Remembered across restarts

Open files, shells and the agent panel come back when you return to a project, even after a restart. The agent continues the project's most recent conversation.

Removing is safe

Taking a project off the list only forgets it. plato never deletes a folder.

coding agent

Your agent beside your code,
not in another window.

Alt+C opens a panel running your coding agent in the project folder, full height on the right or full width at the bottom. Hide it and the agent keeps working in the background; the workspace marker tells you when it's busy.

Edits show up live

When the agent changes a file you have open, it reloads by itself, and Ctrl+Z undoes the reload. New files appear in the tree within two seconds.

Your edits come first

If you have unsaved changes in a file that changed on disk, you get a warning instead of a reload, autosave leaves it alone, and saving asks before overwriting.

Picks up where it left off

After a restart, the panel comes back and continues the project's last conversation. Extra arguments, like a model, go in the config.

editor

Small on purpose.

Splits, tabs, shells, find, go to line, syntax highlighting, undo. Everything is one key away, and the mouse works too: click a tab's × to close it, middle-click to close it faster.

Alt+V Alt+Hsplit side by side, or top and bottom
Alt+T Alt+Shift+Tshell at the bottom, or on the right
Alt+Mmove the shell between bottom and right; it keeps running
Alt+Zmaximize whatever has focus; again to restore
Alt+arrowsmove focus between tree, panes and shells
Ctrl+Pcommand palette
Ctrl+E Alt+Wjump to the file tree, or the workspaces list, and back
Ctrl+Qdetach; plato keeps running

configuration

Five themes, one file,
every key rebindable.

Pick a theme, icon style and autosave mode from the palette and the change shows immediately. Everything else lives in ~/.config/plato/config.toml, which you can open in a tab: saving it applies it.

~/.config/plato/config.toml

plato
[theme]
preset = "catppuccin"
icons  = "nerd"

[editor]
autosave = "on_focus_change"

[terminal]
bottom_height = 0.3

[keys]
maximize = "alt+z"

Five dark themes

tokyonight, catppuccin, rose-pine, kanagawa and gruvbox, each with matching syntax colors. Any single color can be overridden.

Autosave, your way

Off, after a pause in typing, or whenever focus moves: to another tab, a shell, or out of the terminal window.

Defaults in one command

plato --print-config prints every setting with a comment, ready to copy and trim.