marginalia

by Miira · ★ 1 · updated 15 Oct 2026

BandsReskinsCommandsPromptvalidates

0

Select text in the conversation, then quote it into your prompt (it stays outlined), ask about it, turn it into a task or keep it. Theme mods can draw its bar in their own style.

install marginalia

Install

git clone https://github.com/miiraheart/marginalia
claude --plugin-dir ./marginalia

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
engine.createmarginalia.viewmarginalia.pressmarginalia.versionmarginalia.placedsession.startclassic.SessionStartclassic.UserPromptSubmitclassic.Stopui.pressui.rendercommand.runprompt.editprompt.submit
API calls
$.clock.after$.clock.every$.clock.now$.command.register$.env.get$.fs.read$.fs.stat$.prismantis.markdown$.process.run$.prompt.fill$.prompt.read$.prompt.submit$.session.id$.session.root$.skins.markdown$.state.get$.state.set$.ui.copy$.ui.invalidate$.ui.resolve$.ui.scroll$.ui.selection$.ui.toast
Draws
SessionModeAssistantMessageUserMessageAbovePrompt
Can see
classic hooksevery prompt
Reach
level 2 of 3 runs processesdrives Claudewrites the prompt boxwrites the clipboardreads filesreads env varsreads the selectionreads the prompt boxreads mod statedrawsother: $.prismantis.markdownother: $.skins.markdown

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/miiraheart/marginalia
Path in repo
repository root
Source commit
acc9d8c the exact code the scan read
Author
Miira @miiraheart
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.