Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By trobangav0.1.1Apache-2.0In 1 marketplace
Select an item code (F3), a file reference (src/a.ts:12) or a commit hash in fullscreen mode, and a band above the prompt shows what it refers to. /gloss <token> does the same from the keyboard.
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; reads files.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code mod. In fullscreen mode, select a token in the transcript. A band above the prompt then shows what the token refers to:
| You select | The band shows |
|---|---|
An item code such as F3 | The title and text of its definition in an earlier reply, and the lines indented below it. |
src/a.ts:12 | Lines 7 to 17 of the file, with line numbers, as a code block. |
src/a.ts:12-18 | Lines 12 to 18 of the file, at most 40 lines. |
| A commit hash of 7 to 40 hex characters | The subject, author and date of the commit. |
A new selection that matches nothing closes the band. So does a click that clears the selection.
This is a port of the gloss extension in pi-extensions.
/plugin install gloss@trobanga
| Command | Effect |
|---|---|
/gloss F3 | Shows what F3 refers to, or says that nothing is known about it. |
/gloss | Looks up the current selection. With no selection, closes the band. |
The mod knows these forms of a definition. Each may start a list item.
| Form | Title | Text |
|---|---|---|
F3 Title: text | Title | text |
**F3 Title.** text or **F3 Title:** text | Title | text |
**F3:** text | none | text |
**F3 — Title** | Title | the lines indented below |
F3 — Title, with —, – or - | Title | the lines indented below |
The lines indented below a definition, such as a nested list, are added to its
text in each form. Without bold, the title must start with a capital letter or a
digit, so that a sentence such as F2 is confirmed: … is no definition.
Claude Code has no event for a new selection. So a timer asks for the
selection ($.ui.selection()) every 300 ms. When the selection has changed
and then stayed the same for 500 ms, the mod looks up the text. Without that
wait, a band that opens during a double click moves the transcript under the
pointer. A selection that is empty or holds blanks is no token, and
the mod does no lookup for it.
The resolvers ask, in this order:
$.fs.read. A path is relative to the session's
directory.git show, with a timeout of 2 s.Claude Code empties the selection after each prompt or command. That does not
close a band that /gloss opened.
/gloss
works.#cfe3d3), made for a light theme.
It does not follow a change of theme.prose-width does not wrap the band, because the band is not a reply. But
when prose-width is loaded, the band takes the same column as the replies:
the same width, centered or at the left as /prose-width sets it. Without
prose-width, the band takes the full width.[-] at the right of the band, which collapses it. A mod
cannot remove it.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub trobanga/ai-plugins --plugin gloss