What is marginalia?
marginalia is a Claude Code mod by miiraheart that 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. It is listed under Interface and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | miiraheart |
| Repository | miiraheart/marginalia |
| Popularity | 1 GitHub stars |
| Category | Interface |
| Security | Review before installing (60/100) |
| Rank | #3,997 of 9,397 Claude Code mods; #1,702 in Interface |
| License | MIT |
| Last commit | 2026-10-15 |
| Hooks | 14 events |
| Sees | classic hooks, every prompt |
| Draws on | SessionMode, AssistantMessage, UserMessage, AbovePrompt |
Is marginalia safe to install?
marginalia scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.fs.stat | reads files |
$.prismantis.markdown | |
$.process.run | runs processes |
$.prompt.fill | writes the prompt box |
$.prompt.read | |
$.prompt.submit | drives Claude |
$.session.id | |
$.session.root | |
$.skins.markdown | |
$.state.get | |
$.state.set | |
$.ui.copy | draws interface |
$.ui.invalidate | draws interface |
$.ui.resolve | draws interface |
$.ui.scroll | draws interface |
$.ui.selection | draws interface |
$.ui.toast | draws interface |
How do I install marginalia?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/miiraheart/marginalia claude plugin validate ./marginalia/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/miiraheart/marginalia && claude --plugin-dir ./marginalia/.
Or ask Claude to set it up
Paste this into Claude Code and it installs marginalia for you:
Install the "marginalia" Claude Code mod from https://github.com/miiraheart/marginalia. Run claude plugin validate on it first and show me what it can access before you enable it.