Repository navigation
feat(hooks): links band — every Basalt doc of the session, one key away - #16
Merged
Merged
Conversation
Agents publish docs mid-conversation and the URL scrolls away with the chat. A function-hooks module (hooks/register.tsx, beside the shell hooks) scans every row the session appends — CLI output, MCP results, model text, subagents — for app.basalt.cofoundy.ai links and keeps them in a band above the prompt: - o opens the latest doc, c copies it, l (or /basalt-links) opens a side pane with all of them; the pane stays pinned across reloads and sessions until the person closes it. - Long nested names fit the band: the title survives (cut in the middle), then the space, then the nearest folders, collapsed to "…". - Basalt brand tokens: Molten only on the mark, Signal Teal for counts and links, Column Grey chip behind the wordmark. - The mark is the SVG on desktop, a PNG on kitty/Ghostty run directly, and ⬣ in Molten under a multiplexer, where Claude Code draws no pictures. Clients without function hooks keep the three shell hooks unchanged. Bumps the plugin to 0.3.0. Verified: claude plugin validate plugins/basalt (pass), claude plugin test plugins/basalt (4/4), tsc against Claude Code 2.1.288 types, scripts/validate-skills.sh (pass), hooks/tests/run.sh (101/101).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Agents publish Basalt docs mid-conversation and the URL scrolls away with the chat: today the person scrolls up, copies the link and pastes it into the browser, every time.
What
A Claude Code function-hooks module (
plugins/basalt/hooks/register.tsx), declared undermodulesinhooks.jsonbeside the three shell hooks:app.basalt.cofoundy.ailinks.⬣ basalt 5 docs space › … › title [ Abrir ] [ Copiar ] [ Todos ]—oopens,ccopies,l//basalt-linksopens a side pane with every doc of the session.crumb, tested at 100/120/160/200 columns).products/basalt/tokens/colors.css; mark = SVG (desktop) → PNG (kitty/Ghostty direct) →⬣in Molten under tmux/screen/zellij/herdr.Plugin bumped to 0.3.0. Clients without function hooks keep the shell hooks unchanged.
Verification
claude plugin validate plugins/basalt— pass (the 4 warnings are pre-existing, about unquoted${CLAUDE_PLUGIN_ROOT}in the shell hooks)claude plugin test plugins/basalt— 4/4tscagainst Claude Code 2.1.288 plugin types — cleanbash scripts/validate-skills.sh— passbash plugins/basalt/hooks/tests/run.sh— 101/101Not verified
printfplacement renders), so the module picks⬣under a multiplexer.