5 pages for command.register.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Use the mods API
Claude Code CLI · in the page
plugins/mods/api
…the command list, with the description the user sees there await $.command.register({ name: 'standup', description: 'Summarize what changed today', argumentHint: '[days]' }) return next(e) }) //…
Create a mod
Claude Code CLI · in the page
plugins/mods/create
…t', async ($, e, next) => { // Add the /tally command await $.command.register({ name: 'tally', description: 'Show how many tool calls Claude has made', }) // Let the sessi…
Interface gallery for mods
Claude Code CLI · in the page
plugins/mods/gallery
…ister(on) { on('session.start', async ($, e, next) => { await $.command.register({ name: 'gallery', description: 'Open the sample pane' }) return next(e) }) on('command.run', { command:…
Draw in the interface with a mod
Claude Code CLI · in the page
plugins/mods/interface
…er a reload on('session.start', async ($, e, next) => { await $.command.register({ name: 'hello-tabs', description: 'Open the hello-tabs pane' }) // Load the count an earlier session saved,…
Test a mod
Claude Code CLI · in the page
plugins/mods/test
…(e) on('session.start', () => ({ cwd: '/work' })) // Answer the $.command.register call your hook makes on('command.register', () => ({ value: undefined })) // Fire the event, which runs your…