What is code-reference?
code-reference is a Claude Code mod by hyperbola-bear that 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. It is listed under Git & CI and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | hyperbola-bear |
| Repository | hyperbola-bear/claude-mods |
| Popularity | no public popularity data yet |
| Category | Git & CI |
| Security | High risk (44/100) |
| Rank | #3,389 of 5,272 Claude Code mods; #244 in Git & CI |
| Last commit | 2026-10-18 |
| Hooks | 9 events |
| Sees | every prompt |
| Draws on | AssistantMessage, Pane |
Is code-reference safe to install?
code-reference scores 44/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 2 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 files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.browser.open | |
$.clock.after | |
$.command.list | |
$.command.register | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.prompt.submit | drives Claude |
$.session.messages | reads the transcript |
$.session.root | |
$.session.surfaces | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.tool.call | drives Claude |
$.tool.list | |
$.ui.ask | draws interface |
$.ui.copy | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.panes | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install code-reference?
- 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/hyperbola-bear/claude-mods claude plugin validate ./claude-mods/plugins/code-reference
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add hyperbola-bear/claude-mods && claude plugin install code-reference@polar-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs code-reference for you:
Install the "code-reference" Claude Code mod from https://github.com/hyperbola-bear/claude-mods/tree/main/plugins/code-reference. Run claude plugin validate on it first and show me what it can access before you enable it.
More from hyperbola-bear/claude-mods
This repository has 4 Claude Code mods on MCPMods.
- ask: A side chat in a pane that reads the main chat, scrolls and draws: /ask a question, /draw a diagram. Nothing goes back t (High risk)
- delegator: Every subagent Claude starts waits for your approval: approve, refuse, approve all for the turn, change its model (sugge (Review before installing)
- user-hud: A control panel tucked into the corner above the Claude Code prompt, in five modules you turn on or off: where your toke (High risk)