keyboard-shortcuts

keyboard-shortcuts is a skill for Claude Code, Codex from marcus/sidecar. It costs 59 tokens per session (11,887 once invoked), scanned A, original, MIT.

A reference for keyboard shortcuts used by a group of terminal sidecar tools. It documents where shortcuts are registered, which screen contexts they apply to, and how users can override them.

In plain words
What is it for?
Use it when adding or changing a shortcut, checking key conflicts, handling shortcut commands, or comparing bindings with Vim and other terminal tools.
Why use it?
It helps developers add shortcuts without conflicting with existing keys or leaving commands undiscoverable. It also explains support for key sequences such as "g g" and a command palette opened with ?.

Skill for Claude CodeCodex

About the project

Sidecar is a terminal-based workspace for running AI coding agents alongside file trees, task issues, Git diffs, and Jira or GitHub resources in split panes. Developers use it to monitor agent sessions, inspect files and changes, manage workspaces, and handle tasks without leaving one shell. The catalogue entries extend or guide coding-agent workflows used with Sidecar.

marcus/sidecar · 1,055 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/marcus/sidecar/keyboard-shortcuts
Any agent
npx skills add marcus/sidecar --skill keyboard-shortcuts
Clone the repo
git clone --depth 1 https://github.com/marcus/sidecar

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for keyboard-shortcuts

README.md
[![agentmods](https://agentmods.dev/badge/skills/marcus/sidecar/keyboard-shortcuts.svg)](https://agentmods.dev/skills/marcus/sidecar/keyboard-shortcuts)
Your own site
<a href="https://agentmods.dev/skills/marcus/sidecar/keyboard-shortcuts"><img src="https://agentmods.dev/badge/skills/marcus/sidecar/keyboard-shortcuts.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,887 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.11887
Opus 5 $0.00030 $0.05944
Sonnet 5 $0.00012 $0.02377
Haiku 4.5 $0.00006 $0.01189

Measured today against content hash 40940f6ccc62, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

keyboard-shortcuts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/keyboard-shortcuts/SKILL.md · 841 lines

How it starts

The opening of the file, as written. The whole thing — 841 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Keyboard Shortcuts

Complete shortcut listings and context reference for all sidecar plugins. For implementation patterns, see docs/guides/deprecated/ui-feature-guide.md. For a detailed assessment of inconsistencies, vim alignment, mnemonic quality, and improvement proposals, see references/assessment.md in this skill directory.

Architecture

  • Centralized binding registry: internal/keymap/bindings.go is the single source of truth for key bindings.
  • Context-based dispatch: Each plugin defines contexts; bindings are scoped to contexts.
  • Command palette (?): Auto-discovers bindings for discoverability.
  • User overrides: Supported via ~/.config/sidecar/config.json.
  • Key sequences: Compound commands like g g are supported with 500ms timeout.

Adding a New Shortcut

  1. Add the binding in internal/keymap/bindings.go under the appropriate context.
  2. Add command handling in the plugin's Update() method (usually in a handlers.go file).
  3. Add the command to the plugin's Commands() method for footer hint and command palette.
  4. Keep command names short (1 word preferred) to prevent footer wrapping.

TD Monitor Shortcuts

TD shortcuts are dynamically exported from TD itself via ExportBindings() and ExportCommands() in pkg/monitor/keymap/. TD is the single source of truth. To add TD shortcuts:

  1. Add binding to TD's pkg/monitor/keymap/bindings.go
  2. Add command constant to TD's pkg/monitor/keymap/registry.go
  3. Add metadata to TD's pkg/monitor/keymap/export.go
  4. Handle in TD's pkg/monitor/model.go

Global Shortcuts

Key Command Description
j / down cursor-down Move cursor down
k / up cursor-up Move cursor up
G cursor-bottom Jump to bottom
g g cursor-top Jump to top
ctrl+d page-down Page down
ctrl+u page-up Page up
enter select Select item
esc back Go back / close
` next-plugin Next header entry
~ prev-plugin Previous header entry
] next-plugin Next header entry
[ prev-plugin Previous header entry
1-7 focus-plugin-N Focus the Nth project tab (positional; stops at 7)
8 focus-sessions Sessions (global)
9 focus-activity Activity (global)
0 focus-tasks Tasks (global; no-op when the Tasks host is disabled)
? toggle-palette Command palette
! toggle-diagnostics Diagnostics overlay
@ switch-project Project switcher
W switch-worktree Worktree switcher
# switch-theme Theme switcher
, open-configuration Open Configuration (contexts that bind , win)
i open-issue Open issue
r refresh Refresh
q quit Quit (root contexts only)
ctrl+c quit Force quit

Read the full file on GitHub · 841 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +23 lines 40940f6ccc62
  2. 6d ago First seen · 818 lines · 59 tokens per session scan A da6c96af1a62

Subscribe to this mod's changes

keyboard-shortcuts is a skill published in the GitHub repository marcus/sidecar (1,055 stars, last pushed 2d ago), licensed MIT. It adds 59 tokens to every session and 11,887 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.