Skip to content

Make the repo clear for many agents at once (cleanup) #47

Open

Description

@DhruvaKanna07

Six or more agents work in this repo at once. Each new one starts from CLAUDE.md, the README and the tree, so where these are wrong or unclear, every agent pays for it. This is an audit of main at b794bb3 (2026-11-13, after #39 and #45 merged), made against the open PRs (#35, #36, #38) and the status board (#25). Nothing has been changed yet.

Each item says when it can be done: safe now means no open PR or active agent touches that part. after #N means it waits for that PR to merge. Cleanup PRs don't change behaviour, and each one covers one concern: docs first, then duplicates, then file moves.

Docs that don't match the tree

Duplicates

  • The brand colours exist in four copies: brand/tokens.css, the :root of public/style.css, the :root of panel/panel.css, and the hex values in the Mermaid theme in public/app.js. Some copying is unavoidable, because server.js serves only public/ and the page can't import from brand/. Proposal: scripts/check.mjs fails when a --cue-* value in either stylesheet differs from brand/tokens.css. That catches drift without moving any file. The check is safe now. The Mermaid hex values wait for checkered-marmot's diagram move (Make slides and diagrams look presented, not raw #46).
  • public/logo.svg, logo-light-bg.svg and logo-mark.svg are byte-for-byte copies of brand/logo/svg/transparent/cue-lockup-cream.svg, cue-lockup-ink.svg and cue-mark-lime.svg. They're needed (the page and the panel's /logo/ serve them from public/), and brand/README.md documents them. Proposal: check.mjs asserts they stay identical. Safe now.
  • fetchReadable in server.js: Measure think calls; research in ~5 s at ~$0.90 an hour; write down the budgets #36 moves it to page.js, so it ends up in one place. Nothing to do here.

Dead or half-dead

Structure

  • public/app.js (466 lines) does four jobs: transcript intake (wake word, spoken commands, Recall socket), the think loop, dispatch, and every renderer (slide, diagram, research, video, caption, ping), plus test mode. Views have already started moving out on their own. Show running notes and a comparison table #35 adds public/views/, where each view mounts its own <section> and CSS through mount.js, and checkered-marmot is moving slides and diagrams there for Make slides and diagrams look presented, not raw #46. That leaves two patterns side by side: views hard-coded in index.html and style.css, and views that mount themselves. Proposal, done last: once Show running notes and a comparison table #35, Measure think calls; research in ~5 s at ~$0.90 an hour; write down the budgets #36, Make slides and diagrams look presented, not raw #46 and cuddly-lobster's research work have merged, move research and video into public/views/ the same way, which leaves app.js with intake, the think loop and dispatch. Intake doesn't get split off: at about 200 lines, one file is fine. This needs agreement from cuddly-lobster (rendering), climbing-tuna (maybeThink), precise-jigsaw (views) and checkered-marmot (slides and diagrams).
  • Three launchers: send-bot.mjs does a subset of what npm run cue does, and npm run panel does the same as cue. This is a question for Tyler: does send-bot still earn its place? No change unless he says so.

Conventions to enforce rather than write down

  • check.mjs fails when a top-level path, top-level .js file or scripts/* file has no row in CLAUDE.md's Layout table. That keeps the Layout from going stale again. It works at folder level on purpose, so that adding a file inside public/views/ or evals/transcripts/ never forces a CLAUDE.md edit (and a merge conflict between agents). Safe now, after the Layout fix.
  • check.mjs fails when an npm run script is missing from CLAUDE.md's Commands. Safe now.
  • One line in CLAUDE.md: "new views go in public/views/<name>.js and mount through mount.js". After Show running notes and a comparison table #35.

Order

  1. Docs PR: the CLAUDE.md Layout, Commands and port trap, the README Files section and first line.
  2. Check PR: brand copies, logo copies, Layout and Commands guards.
  3. After Show running notes and a comparison table #35, Measure think calls; research in ~5 s at ~$0.90 an hour; write down the budgets #36, Keep /api/page off internal hosts, tell Cue the date, and gate unasked videos #38 and Make slides and diagrams look presented, not raw #46: VISION.md status, the views line, Mermaid colours.
  4. Last, with the four agents' agreement: research and video into public/views/.

Activity

  1. added
    Task
    priority: soon
    PR needed
    on Nov 13, 2026
  2. DhruvaKanna07 commented on Nov 13, 2026

    @DhruvaKanna07
    CollaboratorAuthor

    Progress, 2026-11-13: the docs items (first five under 'Docs that don't match the tree') are split into #49, fixed by #48, which lands after #36. #37's title is fixed. Held until after the 3:00 PM PST submission, by agreement with eminent-stencil and cuddly-lobster: the check.mjs guards, VISION.md's status, and the research and video move (cuddly-lobster: yes, as a pure move; keep .sheet on the research section). Merged branches: eminent-stencil now deletes branches on merge, so that item is dropped.

  3. DhruvaKanna07 commented on Nov 13, 2026

    @DhruvaKanna07
    CollaboratorAuthor

    2026-11-13: checkered-marmot agrees to the research and video move. #46 already reads the Mermaid theme from the --cue-* variables and removes the slide and diagram blocks from index.html and style.css, so the hex copy in app.js goes away when #46 merges. Agreed so far: cuddly-lobster and checkered-marmot. Still waiting on climbing-tuna and precise-jigsaw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR neededTaskpriority: soon

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions