Pilot PanelPro
Agent apps / Pilot Panel: an editor's agent panel as a desktop app. Task history with each task's cost; the task as steps (files it read, its notes, edits, a command) with a checkpoint after every change to Compare or Restore; Plan and Act (Plan only reads and proposes); tool calls that wait on Approve or Reject unless auto-approve covers them; a context meter with tokens and cost; an Editor pane with the diff and the checkpoints.
oxyn add pilot-panelGET /orders returns every order at once. Add cursor pagination with a limit of 50 and update the test.
- Readsrc/routes/orders.ts64 lines
The handler loads all orders. I'll add a cursor on id and a limit capped at 50.
- Editedsrc/routes/orders.ts+14 −3Checkpoint
- Editedtest/orders.test.ts+21 −2Checkpoint
- Rannpm test -- orders9 passed · 2.8 sCheckpoint
Done. /orders now takes a cursor and a limit (at most 50) and returns next_cursor. The test covers two pages and the cap.
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Give an agent a coding task, let it plan first or act, approve the tool calls auto-approve does not cover, and step back to any checkpoint if a change goes wrong, while watching context and cost.
When not to use
- Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
- The app frame: use App shell instead.
- An assistant docked beside a page: use AI side panel instead.
Installation
Pilot Panel is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add pilot-panelUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Sample
Sample data, the main area as an inset card.
GET /orders returns every order at once. Add cursor pagination with a limit of 50 and update the test.
- Readsrc/routes/orders.ts64 lines
The handler loads all orders. I'll add a cursor on id and a limit capped at 50.
- Editedsrc/routes/orders.ts+14 −3Checkpoint
- Editedtest/orders.test.ts+21 −2Checkpoint
- Rannpm test -- orders9 passed · 2.8 sCheckpoint
Done. /orders now takes a cursor and a limit (at most 50) and returns next_cursor. The test covers two pages and the cap.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Flat
The same view with the main area edge to edge.
GET /orders returns every order at once. Add cursor pagination with a limit of 50 and update the test.
- Readsrc/routes/orders.ts64 lines
The handler loads all orders. I'll add a cursor on id and a limit capped at 50.
- Editedsrc/routes/orders.ts+14 −3Checkpoint
- Editedtest/orders.test.ts+21 −2Checkpoint
- Rannpm test -- orders9 passed · 2.8 sCheckpoint
Done. /orders now takes a cursor and a limit (at most 50) and returns next_cursor. The test covers two pages and the cap.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Loading
Skeletons in the sidebar, the conversation and the pane.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Empty
A first run: nothing yet, the composer front and centre.
What can I do for you?
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Plan
Plan mode: the agent read the route and proposes four steps; Switch to Act lets it change files.
GET /orders returns every order at once. Add cursor pagination with a limit of 50 and update the test.
- Readsrc/routes/orders.ts64 lines
- Read the orders route and its test
- Add a cursor (last id) and limit (max 50) to the query
- Return next_cursor when more orders remain
- Update the test for two pages and the limit cap
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
X1
Oxyn: the sidebar as a 56 px icon rail; the top bar expands it.
GET /orders returns every order at once. Add cursor pagination with a limit of 50 and update the test.
- Readsrc/routes/orders.ts64 lines
The handler loads all orders. I'll add a cursor on id and a limit capped at 50.
- Editedsrc/routes/orders.ts+14 −3Checkpoint
- Editedtest/orders.test.ts+21 −2Checkpoint
- Rannpm test -- orders9 passed · 2.8 sCheckpoint
Done. /orders now takes a cursor and a limit (at most 50) and returns next_cursor. The test covers two pages and the cap.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
X2
Oxyn: the sidebar hidden for focus; the top bar brings it back.
GET /orders returns every order at once. Add cursor pagination with a limit of 50 and update the test.
- Readsrc/routes/orders.ts64 lines
The handler loads all orders. I'll add a cursor on id and a limit capped at 50.
- Editedsrc/routes/orders.ts+14 −3Checkpoint
- Editedtest/orders.test.ts+21 −2Checkpoint
- Rannpm test -- orders9 passed · 2.8 sCheckpoint
Done. /orders now takes a cursor and a limit (at most 50) and returns next_cursor. The test covers two pages and the cap.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Approval
A command waits on Approve or Reject because Run commands is not on auto-approve.
GET /orders returns every order at once. Add cursor pagination with a limit of 50 and update the test.
- Readsrc/routes/orders.ts64 lines
The handler loads all orders. I'll add a cursor on id and a limit capped at 50.
- Editedsrc/routes/orders.ts+14 −3Checkpoint
- Editedtest/orders.test.ts+21 −2Checkpoint
- Rannpm test -- orders9 passed · 2.8 sCheckpoint
Pilot Panel wants to run a command
$ npm run migrate -- --env staging
Changes the staging database. Run commands is not on auto-approve.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
PilotPanelScreen
| Prop | Type | Default | Description |
|---|---|---|---|
layout | String | "inset" | `inset` or `flat`: the main area as a rounded card on the sidebar's grey, or edge to edge. |
state | String | "sample" | A state key (`sample`, `loading`, `empty`, `plan` or `approval`). |
height | u32 | 900 | Height px (outside a stage). |
rail | bool | Default::default() | Oxyn: open with the sidebar as a 56 px icon rail. |
sidebar_hidden | bool | Default::default() | Oxyn: open with the sidebar hidden (the top bar brings it back). |
data | Option<PilotPanelData> | Default::default() | Your data. `None` shows the sample for `state`; start from `PilotPanelData::default()`. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Enter | Send (Shift + Enter for a new line) |
| ← → | Move between Editor and Checkpoints |
| Escape | Close the model or account menu |
Accessibility
- The sidebar is a nav landmark; each task names its date and cost in text.
- Plan and Act sit in a labelled group as toggles (aria-pressed); auto-approve is a group of labelled checkboxes.
- A command waiting on you is an alertdialog with the command in full and Approve and Reject.
- Checkpoints are labelled groups with Compare and Restore; every action reports in a polite live region.
Responsive behaviour
- Authored on the 1440 × 900 canvas: a 272 px sidebar, the conversation and a 440 px pane (380 px under 1180).
- Under 960 px the sidebar becomes a drawer from the top bar and the pane opens over the conversation from its top-bar button.
- Under 620 px the chips shorten and the composer and pane keep their actions; labels ellipsise.
Edge cases (spec)
1440 × 900 stage; /full at the real viewport. Under 960 px the sidebar is a drawer and the pane opens over the conversation from the top bar. Under 620 px chip labels shorten and dates hide in rows. scripts/ovl.py finds no text overlap at 1440, 768 and 390 in light and dark.
Notes for AI
- Import
PilotPanelScreenfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
PilotPanelElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.