Skip to content

feat(themes): add the themes plugin with the bedroom theme - #17497

Merged
kyle-sexton merged 7 commits into
mainfrom
feat/bedroom-plugin
Nov 19, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
feat/bedroom-plugin

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

No related issue: publishes an owner-built desktop mod as a new plugin, ahead of a demo.

Summary

Adds themes, a home for backdrop themes for the Claude Code desktop app. Its first theme, bedroom, is a dark theme whose backdrop is a teenager's bedroom at dusk, drawn as one SVG with a lighting shader at 30 frames a second. Clicks on the television, VCR, console, computer and lights are answered by the shader without sending the room again, and /bedroom switches, dims, titles and calibrates it. The plugin installs disabled (defaultEnabled: false), because the backdrop takes over the window. More bedrooms, one per decade, are planned as further themes in the same plugin.

This is the owner-accepted build of the mod as it runs today, published with made-up defaults in place of anything personal or real-world.

Fix

  • plugins/themes/hooks/register.tsx: the module hooks.json loads; it registers the bedroom theme. Each theme's own files sit in their own folder, so a second theme adds a folder without moving these.
  • plugins/themes/hooks/bedroom/: the bedroom's module, scene parts, shader and tests, unchanged in behaviour except:
    • Defaults made up: the pennant's team text, the posters (only the plain posters ship; /bedroom posters accepts only plain), and the cat's name in the click toast. The console and tape titles default to FAR MERIDIAN and ROOFTOP and the pennant to LANTERN HILL NIGHTJARS, all made up; /bedroom title console|tape|pennant|pennant-top <text> sets your own, kept in the plugin's local store under bedroom:saved. The pennant's lines are written in capitals and capped at 12 characters (big line) and 16 (top line), what the taper fits at the drawn size; every title is escaped for the SVG.
    • Review fixes: a shader started again after the room changes takes its switches from the saved state, so instant clicks made before it are kept; a click where two hit areas overlap records every switch the shader flips; a $ in a title is written as typed; the module writes no telemetry.json (its render counts stay in memory for /bedroom stats).
    • Silent: the television sound call and its two WAV files are left out.
    • Repository hygiene: lights.ts (built from a GLSL source by a build script outside this repository) and make-colors.js (Anthropic's theme helper, which the built-in plugin-authoring skill says to copy unchanged) carry an @generated marker. The shader is spell-checked with no suppression: six comment words use US spelling and two locals are renamed (thw to thalf, k_ba to k_band); claude plugin validate reports the same compiled shader. The GLSL source needs the same edits before the next regeneration.
  • hooks/hooks.json carries the description the hooks-description check asks for.
  • Manifest at 0.0.0 with a minor fragment in .changes/themes/, header-only CHANGELOG.md, README with the install lines, requirements and the /bedroom commands; marketplace entry, docs/catalog.md line and scripts/fragment-plugins.txt registration.

Verification

  • Room output: for 7 switch states, each at dim 0 and 30, the scene's SVG with no title set is byte-identical to head 547eb216ba. Rendered with headless Chromium, a 12-character pennant line and a 16-character top line both sit inside the taper.
  • claude plugin test plugins/themes: 8 pass, 0 fail (overlapping clicks, pennant set, reset, capitals and cap, escaping of all four titles, $ in a title).
  • claude plugin validate plugins/themes (2.1.328): passed with warnings, the same TypeScript warning kinds as before plus one for the new top-level import, and ICON_MISSING. claude plugin validate --strict on the repository root: passed.
  • Spell check of the plugin with the repository's _typos.toml: clean, with no suppression in the shader.
  • The plugin-authoring secret scan found no key or token format, and a grep of the diff for machine paths, user and host names found none.
  • Not run: the desktop app itself against this exact folder.

Related

None: the first release of this plugin. A user who already runs a local mod that registers /bedroom should turn it off before enabling this one; settings from such a mod do not carry over.

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits November 19, 2026 14:00
A theme mod whose backdrop is a teenager's bedroom at dusk, drawn as
one SVG with a lighting shader at 30 frames a second; clicks on the
television, VCR, console, computer and lights are answered by the
shader, and /bedroom switches, dims, titles and calibrates it.

The published defaults are made up: plain posters, a made-up team on
the pennant, and the titles FAR MERIDIAN and ROOFTOP, which
/bedroom title replaces locally. The TV sound call and its sound
files are left out, so the mod is silent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… generated shader excluded

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 19, 2026 19:24
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T19:26:43.883257Z 547eb21 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 547eb216ba

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread plugins/themes/hooks/bedroom/lights.ts Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44598139781

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 4 inline finding(s) on 547eb216ba7aea627322eef25a877b51a8521385; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

Comment thread .claude-plugin/marketplace.json Resolved
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 2c0fcde6da207bbbd03462decf05d54c7e64fef1: read 1 of 1 changed file(s); 4 finding(s), 0 as inline comments.

Security review: PR #17497, incremental since 89ce492e1b

This push adds no new security issue. The review was blocking only, because this lane already reviewed earlier heads.

Scope: I read the one file listed in .claude-lane/incremental-files.txt, plugins/themes/hooks/bedroom/lights.ts, and both of its hunks in .claude-lane/incremental.diff.

What changed: the push renames two shader locals: thw becomes thalf and k_ba becomes k_band. Each new name replaces the old one everywhere it was used on the four lines. It also removes the four per-line // spellchecker:disable-line comments that the last push had added. The arithmetic is unchanged.

  • This is a rename inside a render function. It touches no trusted path, workflow, trust control, merge hold, token or kill switch, and it deletes or softens no standing instruction.
  • Taking out the suppression comments makes the spell check stricter, not looser.

Settled and prior points: the settled threads on register.tsx, lights.ts, lib.ts and tv.ts are marked lines changed since resolution: no, so I did not raise them again. One of them covers lights.ts at original line 379, which sits next to this push's first hunk. The rename does not touch the point that thread answered.

The four manifest flags below are carried over from the last round, as before. Their threads are marked lines changed since resolution: yes, so they are not settled. They are summary findings with no line anchor, so they are listed again here rather than as already posted lines. The manifest files did not change in this push.

Manifest: the themes marketplace entry still has "defaultEnabled": false (marketplace.json#L1775), so users only get it by opting in. That keeps each flag at IMPORTANT, not CRITICAL. Its source is ./plugins/themes, inside this repository.

Spend: none beyond normal review runs.

critical-findings: 0

Manifest lines (4)
  • manifest marketplace plugins[themes] entry added (name, source, defaultEnabled): flag, a new opt-in entry (L1773-L1775) with the in-repository source ./plugins/themes; once enabled it runs the hook module plugins/themes/hooks/register.tsx. severity: IMPORTANT
  • manifest plugin.json name: flag, the new plugin's name "themes" (plugin.json#L2); nothing runs from it. severity: IMPORTANT
  • manifest plugin.json version: flag, version added as 0.0.0 (plugin.json#L8); it is added rather than changed, so it falls outside the inert set; nothing runs from it. severity: IMPORTANT
  • manifest plugin.json metadata: flag, metadata.category "claude-code" added (plugin.json#L18-L20); nothing runs from it. severity: IMPORTANT

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 4 inline finding(s) on 547eb216ba7aea627322eef25a877b51a8521385; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/bedroom/hooks/scene/parts/tv.ts Resolved
Comment thread plugins/bedroom/hooks/lights.ts Resolved
Comment thread plugins/bedroom/hooks/register.tsx Resolved
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 2c0fcde6da207bbbd03462decf05d54c7e64fef1: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: themes plugin, incremental (89ce492 → 2c0fcde)

This review is blocking only, because this lane already reviewed earlier heads. I read the whole incremental change: one file, plugins/themes/hooks/bedroom/lights.ts, with two hunks. I ran no commands. The author says typos is clean, claude plugin validate reports the same compiled shader and claude plugin test passes 8 tests. I did not check any of that.

The earlier finding is fixed. My last review flagged four // spellchecker:disable-line markers at lines 378-379 and 496-497 as a loosened check. This push removes all four markers and renames the two locals:

  • thw is now thalf.
  • k_ba is now k_band.

A search of plugins/themes/hooks/bedroom/ finds no thw, k_ba or spellchecker left, so the rename missed no use. The new names appear only on the four lines that declare and use them (lights.ts#L378-L379, #L496-L497), so they cannot clash with or shadow another name. The arithmetic is unchanged. The thread is resolved and its lines have not changed since, so I am not raising it again.

Notes (not findings)

  • No closing issue: there were no acceptance criteria to check.
  • Loosened-check verdict: fail (the default: the prompt has no loosened_check_verdict: or loosened_check_patterns: line), with 0 consumer patterns. This push removes a suppression and adds none. The prompt has no loosened_check_decision_record: line, so I did not check the citation requirement.
  • Settled threads: none of them cover a point this push raises again.
  • Spend: none. The change adds no lane runs, schedules or billed resources.

Verifier dropped 0 of 0 candidates.

The plugin becomes `themes`, a home for desktop backdrop themes, with
bedroom as its first theme under hooks/bedroom/ and a thin top-level
module that registers it. The bedroom's store key is now bedroom:saved.

/bedroom title pennant and /bedroom title pennant-top set the pennant's
two lines, in capitals, capped at 12 and 16 characters; with no text
they go back to the made-up default. The room is byte-identical to the
previous head when no pennant title is set.

Review fixes:
- re-seed the shader's switch values from the saved state when it
  starts again after drawing the room alone (Codex)
- a click on overlapping hit areas records every switch the shader
  flips (Codex, claude-review)
- titles are substituted with replacer functions, so a $ is literal
  (claude-review)
- no telemetry.json writes; stats stay in memory (claude-review)
- the shader is spell-checked again, with its two short identifiers
  listed in _typos.toml (claude-review)
- hooks.json carries a description (Check Plugins)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton changed the title feat(bedroom): add the bedroom backdrop mod for the desktop app feat(themes): add the themes plugin with the bedroom theme Nov 19, 2026
_typos.toml is synced from the standards repository, so PR Check
Managed Files refuses an edit to it. The shader's two short
identifiers are instead exempted on the four lines that use them with
spellchecker:disable-line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 89ce492e1b3de334a59c3e1f5d5b0c217de08860; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/themes/hooks/bedroom/lights.ts Resolved
…l check

thw becomes thalf and k_ba becomes k_band, on the four lines that use
them, so the shader needs no spellchecker marker. claude plugin
validate reports the same compiled shader (3402 steps, 7799 bits).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 751ebb2 Nov 19, 2026
60 checks passed
@kyle-sexton
kyle-sexton deleted the feat/bedroom-plugin branch November 19, 2026 20:50
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 19, 2026
kyle-sexton added a commit that referenced this pull request Nov 20, 2026
…evision that reacts to Claude and sound (#17675)

No related issue: the next step for the bedroom theme after #17497 and
#17528.

## Summary

The bedroom theme gains time of day, weather, a hallway outside the
door, a television that reacts to Claude working, and sound (off by
default). The settings card gains controls for them.

Draft on purpose: the owner is hand-testing this build in the desktop
app, and more fixes to the sound and the outdoor art follow on this
branch before it is marked ready.

## Fix

- Time of day: the room follows the local clock (`/bedroom time auto`),
or holds one of eight named hours. The view outside the window keeps the
dusk scene's shapes at every hour, with a moon and stars at night.
- Weather: clear, overcast, rain, downpour and storm in the window, each
a different weight; `auto` changes every three hours and never picks a
storm. `/bedroom weather strike` forces one lightning pulse in a storm.
- Hallway: a passer-by's shadow crosses the door's gap now and then, and
a hall light comes on some evenings. `/bedroom hall pass` and `/bedroom
hall light` trigger them.
- The television dims and flickers slightly while a turn runs (`/bedroom
signal`).
- Sound, off by default (`/bedroom sound on`): cicadas in dry weather
from dusk through night, rain, downpour and storm beds, thunder, and the
television's switch. One looping player per bed that stops at once; a
volume setting; two recordings per kind to choose between. Each
recording's source and licence statement is in
`plugins/themes/sounds/bedroom/SOURCES.md`.
- The wall switch's lever shows the ceiling light's state.
- The shader's dusk reads more of the furniture in shadow, and the desk
lamp lights part of the desk.
- The card: six rows, the time row in order through the day, a `titles`
toggle for the title fields, volume steps, and no shader button.
- The code moves under `hooks/bedroom/core` and `hooks/bedroom/pieces`.
`lights.ts` is generated and excluded from the size check.
- Settings saved by 0.2.1 under `bedroom:saved` load unchanged.

## Verification

- `claude plugin test plugins/themes`: 88 pass, 0 fail.
- `claude plugin validate plugins/themes`: passes with warnings; shader
cost 2.25 ms a frame and 2.49 ms the first frame.
- `scripts/check-affected.sh`: 17 passed, 3 skipped.
- Hand-tested by the owner in the desktop app on this head: time of day,
the hallway triggers, the wall switch, evening and night, and the
default cicadas accepted.
- Known and still open on this branch: the daytime trees read as flat;
the downpour and storm beds sound too close; one-shot sounds play late;
the titles row overflows the card's width; no card buttons yet for the
three triggers; thunder does not yet follow a forced strike.

## Related

- #17497
- #17528
- #17575
- #17509

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant