Interactive shell
Streaming transcript, a pinned composer, a one-line status footer.
Layout
A Unix shell, not an IDE. No ncurses, no mouse-required panes.
[transcript: user / assistant / tools / approvals]
[status: backend model perm session cwd]
> composer
The transcript is append-only with scrollback. Markdown-ish: headings, lists, fenced code, diffs as plain text with +/- coloring. The composer supports multiline via Shift-Enter, Alt-Enter, or \ then Enter.
Input
| Input | Action |
|---|---|
| text | user prompt |
/ at start | command palette |
@ | workspace file picker |
$ | skill picker |
| Up / Down | prompt history at the draft edge |
| Esc or Ctrl-C | interrupt; second Ctrl-C exits if idle |
| Ctrl-O | optimise the draft; review it before Enter submits |
| Ctrl-X | subagent manager (native loop) |
Menus are transient overlays. They draw in the bottom block, Escape hides them, and the next submit clears them — they never enter the scrollback. / @ $ popovers disable while an approval is focused so paths like /tmp/x stay literal.
Slash commands
/optimise PROMPT rewrites a typed prompt using relevant project files. The default model is OpenRouter inception/mercury-2.5; --model and --provider override it. Ctrl-O uses the configured defaults. Escape cancels and preserves the draft. /transcript displays the conversation.
Sessions: /help /clear /new /reset /resume /continue /rename /compact /quit
Runtime: /models /model /permissions /sandbox /backend /task /status /usage
Tools: /mcp /skills /workspace /image /ssh /undo /copy /trace
Auth: /login /logout /setup — dispatched to the active backend. Backend-specific commands degrade to "not available" instead of crashing.
Task presets
/task lists runtime-owned presets; /task NAME selects one before the first turn and /task clear removes it. The status row shows the active task. Resuming restores the exact saved task snapshot, while changing a task after a turn requires /new.
SSH task discovery is builtin-only. To prevent local project instructions from crossing into a remote workspace, /ssh refuses to attach while a user, project, or workflow task is selected; clear it first, attach, then select a builtin.
Startup
First paint never waits on a provider. Each native turn connects lazily in its detached session runner; MCP may warm independently.
Browser demo
The terminal on the landing page is the real tny binary compiled to WebAssembly, running inside xterm.js. On a phone it fits the viewport so lines wrap instead of clipping; the on-screen keyboard shrinks the pane via the visual viewport. Pass OPENAI_API_KEY and optionally OPENAI_BASE_URL in the URL hash (#OPENAI_API_KEY=…) or paste them at the pre-launch prompt. Keys are sanitized at intake and stay in this tab. Workspace tools that need a host binary return a clean error; the provider must allow CORS — api.openai.com does not.