Which keys run which command is now a live plugin's (`keyboard-shortcuts`,
ai-agent-plugins): the defaults, each person's own bindings, the on/off
switch, Settings → Keyboard (a nav "settings" page) and the cheat sheet (an
app.modal slot). The core keeps what a sandboxed frame can't do: the one
keydown listener, the commands and their handlers. No plugin, no shortcuts.
- provides `app.keymap` → GET /api/plugins/keymap (plugins/keymap.py):
the provider run as the caller, sanitized, cached; dropped on any plugin
change and after a write of the provider (SSE `keymap` to that user).
- commands: the app's (lib/keyboard/actions.ts, no defaults any more) plus
`composer.shortcut:<chip id>` (a named guideline chip) and
`modal:<pluginId>:<slotId>` (a plugin's modal — the cheat sheet).
- `optionalRequires`: optional peers — no install/enable checks, their
exports and plugin events open while they are on; the info page's
"Works with" row. prompt-shortcuts is the keyboard plugin's.
- frame bridges `commands()` and `keyChord()`; a frame's unused keys go on
to the app's key layer while it has the focus (g h on a plugin page).
- carryover.keyboard: each person's state.keyboard → the plugin's
keymap.json, once.
- the core Keyboard page, CheatSheet and settings.keyboard are gone;
/settings/keyboard redirects to the plugin's page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>