Command palette
One box to get anywhere: ⌘K (Ctrl+K elsewhere) opens it over any page.
- Actions: every app command that answers right now, with its key. For example "Show or hide the sidebar", "New conversation", "Reply in this conversation" on a conversation, or "Switch to Work".
- Pages: Home, the sections and their pages, every Settings page and setting your role opens (plugin pages included), and Add machine.
- Plugins: each plugin active for you, with its own glyph, under "Settings › Plugins". It opens the plugin's page: its settings, secrets and info. A plugin's own Settings or tool pages ("Keyboard", "Cron jobs") are listed too, by their names.
- Turn off / on for your own installs, the ones switched off included. These show only when you type, e.g. "pets" or "banana off". The app asks first: ↵ confirms, Esc cancels, Open its page goes there.
- Conversations of the profile on screen, from the list the app already has loaded. No query shows the 8 newest, then the actions.
Type to search, with typos allowed. ↑ ↓ (or Ctrl+N / Ctrl+P) move, ↵ goes, and Esc or ⌘K closes it. Everyone gets it: it is a managed plugin, on for every guest, and each person sees only what they can open. This was the ai-agent core's command palette until 2026-11-27.
Opened by the Keyboard shortcuts plugin
This plugin has no key of its own. keyboard-shortcuts lists it as an
optional peer and binds ⌘K to modal:command-palette:palette. That opens
this plugin's app.modal slot, or closes it while it is the one open.
Without the keyboard plugin, nothing opens the palette.
What the core provides
ui.slots[].preload: trueon anapp.modalslot. The app loads the frame hidden once it's idle, about 2.5 s after start, and keeps it. Opening only shows it, so ⌘K is instant. Each opening reaches the frame as an update,aiAgentPlugin.onUpdate→{open: true, seq, init}. The frame then clears its box, reloads the lists and takes the focus.- Frame bridges:
commands()returns the app's commands, each withavailable,keysandcurrent.runCommand(id)closes the palette, then runs the command.places()returns what this person may open.conversations()returns the app's loaded list, scoped to the profile on screen.places()rows withpluginare the plugins' pages. Theiriconis a base64 SVGdata:URI the host fetched (the frame can't: it is an opaque origin). It is drawn as a CSS mask, and anything else is dropped.pluginSwitches()lists what you may turn off or on, andswitchPlugin(id, on)asks. The app closes the palette and draws the confirmation. An app without these bridges shows no switch rows.- Labels come in the app's language, and
init.langis set for the palette's own strings.
- Frames pass the keys they don't use to the app. The palette keeps ↑ ↓ ↵ Esc and Tab for itself and lets ⌘K through, which is how the key closes it.
seed: trueinstalls it at start.
Search
No library (a sandboxed frame has no network). It is close to the Fuse.js setup the core used: label ×3, hint ×1, keywords ×0.5, threshold 0.4, no location weighting, and at most 40 results. A field's score is the fewest edits turning the query into some stretch of it, divided by the query's length. Case and accents don't count.
Develop
python3 ui-src/build.py ui-src ui # after editing ui-src/
python3 -m pytest plugins/command-palette/tests/