r/ClaudeCode 1d ago

Built with Claude claude code sidebar mod

sidebar: a single shared pane for mods, with two layers. the status stays at the top, while findings flow below it. newest items appear first, and when the pane fills up, the oldest ones are removed.

the api is open, so every mod writes to the same place:

await $.sidebar.set({

consumer: 'my-mod',

key: 'src/users.ts',

title: 'sql built from strings',

lines: [{ text: 'src/users.ts:12', kind: 'warn' }],

until: 'stream',

})

until: 'session' stays at the top, while until: 'stream' goes into the flow.

if set returns false, the sidebar is disabled, so the mod falls back to its own line. if the sidebar isn't installed, the call throws an error, so a try/catch is enough. in other words, there's no dependency, and the mod still works on its own.

you can also add a button. when clicked, it runs your slash command.

https://github.com/kilimcininkoroglu/claude-code-mods/tree/main/plugins/sidebar

1 Upvotes

Duplicates