Attribution Banner
Replace the "Claude Code" title line with cx's own name + an
@wormcoffeelink.
ID banner · Default on · Compatible * · Source
What it does
The title line on startup reads Claude Code Extensions (cx) v<version> by x.com/@wormcoffee (the handle is an OSC 8 terminal hyperlink, so modern terminals render it as a clickable link to https://x.com/@wormcoffee). A dim "please star the repo" line shows up below the title on the same startup splash.
Works against both the condensed and the newer boxed startup layouts.
How it works
Claude Code has two startup layouts in the bundle. The patch edits both:
- Condensed layout. Finds every
"Claude Code"literal via the string index, walks up to acreateElementcall whose props object hasbold: true, and swaps the literal for the new title. Then it locates the enclosing columnBox(by looking forflexDirection: "column"in its props) and inserts a dimTextelement as the child right after the title. - Boxed layout. Finds the container by looking for a property object with both
borderColor: "claude"and aborderTextkey, then injects the dim text after the last child of that box. It also handles the separateb7("claude", o)("Claude Code")title call that the newer layout uses by rewriting the"Claude Code"argument there.
The hyperlink is encoded as an OSC 8 escape sequence: ESC ] 8 ; ; URL BEL TEXT ESC ] 8 ; ; BEL. The escape characters are written as \u001B / \u0007 in the injected JavaScript so they survive through acorn's string handling into the actual bytes at runtime.