code-reference
by Polar · ★ 0 · updated yesterday
Replies that point at code: ask with /code-reference (a question, or a PR to review) and each place the reply names opens in a code pane beside it, the prose linked to it and boxed under each section. Only the command triggers it. Drawn the same in the terminal and the desktop app. PRs are read with gh, a GitHub MCP server or git, and checked out into a review worktree.
Install
/plugin marketplace add hyperbola-bear/claude-mods/plugin install code-reference@polar-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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
session.startsession.endprompt.submitturn.stepturn.completecommand.runui.messageui.closeui.render- API calls
$.browser.open$.clock.after$.command.list$.command.register$.env.get$.fs.read$.fs.stat$.fs.write$.process.run$.prompt.submit$.session.messages$.session.root$.session.surfaces$.state.get$.state.set$.store.get$.store.set$.tool.call$.tool.list$.ui.ask$.ui.copy$.ui.log$.ui.open$.ui.panes$.ui.resolve$.ui.status$.ui.toast- Draws
AssistantMessagePane- Can see
every prompt- Reach
- level 2 of 3 other: $.browser.openother: $.state.getother: $.state.setother: $.tool.listruns processeswrites filesdrives Claudereads filesreads env varsreads the transcriptpersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/hyperbola-bear/claude-mods
- Path in repo
plugins/code-reference- Source commit
217cdcdthe exact code the scan read- Author
- Polar @hyperbola-bear
- License
- No license declared — ask the author before reusing code.
- 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.
More from hyperbola-bear/claude-mods
ask
hyperbola-bear/claude-mods
A side chat in a pane that reads the main chat, scrolls and draws: /ask a question, /draw a diagram. Nothing goes back to the main chat unless you send it. Answers are Mermaid drawn as box art in the terminal and as SVG in the desktop app.
delegator
hyperbola-bear/claude-mods
Every subagent Claude starts waits for your approval: approve, refuse, approve all for the turn, change its model (suggested by the task's complexity) or add a note to its task. A pane lists the agents waiting, the full task and recent decisions, the same in the terminal and the desktop app.
user-hud
hyperbola-bear/claude-mods
A control panel tucked into the corner above the Claude Code prompt: where your tokens go (files, chat, MCP, shell, skills and plugins, subagents and more), model and effort pickers in three styles, prompt-cache countdown with a 2-minute keep-warm alert, quick settings, and handoff buttons.