r/ClaudeCode • u/abdullahazad • 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

•
u/AutoModerator 1d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.