Skip to content

Make Cue act unprompted, as the intern running the projector - #58

Merged
a-Fig merged 3 commits into
mainfrom
issue-10-initiative
Nov 13, 2026
Merged

a-Fig merged 3 commits into
mainfrom
issue-10-initiative

Conversation

@DhruvaKanna07

@DhruvaKanna07 DhruvaKanna07 commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #10

Why

Tyler's direction on #10 (2026-11-13, comment): Cue mainly acts without being asked, as "a quiet and very helpful intern who is in charge of the meeting projectors". The wake word stays only as a direct line. The prompt still said "doing nothing is usually right", and the only unprompted trigger it named was "can someone check…". #10 is settled when there are replayable transcripts, a way to score a run, and a prompt chosen because of the score. This PR delivers all three, using the real call's transcript.

For Tyler: this changes a line in docs/VISION.md under "What it holds to", and it lets Cue act more often, which can mean more research calls and more spend. Both are things eminent-stencil holds for you.

Change

  • agent.js prompt (text only, no code):
    • The Personality paragraph now describes the projector intern.
    • "Doing nothing is usually right" becomes a list of what to put up unasked: a question asked or wondered aloud, a guessed number, options with prices, a plan or timeline said in words, a factual disagreement. A second list covers what still gets nothing: chatter, reactions, status updates, questions already answered, the team's own history, and asks aimed at a teammate.
    • Three rules come from failures the replay found:
      • Don't caption "already on screen" when something is asked for again.
      • Don't bring back an earlier visual unless someone asks.
      • One idea isn't a list.
    • A caption alone is no longer an answer.
    • Captions are shorter and rarer (Tyler, via cuddly-lobster and Make captions a short note that leaves quickly #57): one short sentence, about 8 words, sometimes two. Most visuals need none, and a playing video doesn't get one.
    • Looked-up facts go on show_research, so the source is on screen. After Present slides in five layouts and fit brand-colored diagrams to the stage #54's "stat" layout, the replay caught researched numbers ending up on stat slides.
  • docs/VISION.md: the "Doing nothing is usually right" principle becomes "It acts unprompted, and holds back on chatter", dated and attributed to Tyler.
  • evals/:
    • real-call-1 is Tyler's first real Meet call (from Recall's post-call transcript, split at each request).
    • unprompted has things the room wants on screen without anyone asking: Europe's population, hosting quotes, a launch timeline, EU VAT.
    • notes-repeat covers Show running notes and a comparison table #35's duplicate notes.
    • Judgment-call ticks are rescored as "quiet or X" (for example, quiet or add_notes).
    • The replay now keeps add_notes and show_comparison state the way the page does, and REPLAY_AGENT=<path> scores another branch's agent.js. That is how Show running notes and a comparison table #35 was scored.

Screenshots

None: nothing visible changes. The change is in when Cue acts and how much it writes, not what a view looks like.

Verified

npm run check passes. Replays on claude-sonnet-5-5 at medium effort, rebased on main at fe0ab1a (#35, #36, #38, #53, #54, #57, #63 merged), 2026-11-13. Both prompts were run with the same transcripts and the same replay. 60 scored ticks, one run each:

main's prompt this PR (4cfc24e)
score (helpful + right-quiet − 2×annoying − missed) 42 / 60 57 / 60
helpful / right-quiet 29 / 25 26 / 33
annoying 6 1
median latency 2.1 s 1.9 s
projected hour $1.05 $1.21
  • main's six annoying ticks:
    • a caption saying "Already on screen: Japan…" in the real call;
    • VAT shown as a slide instead of a source;
    • three notes on chatter ("vote async", a standup status, a memory lapse treated as an open question);
    • one empty add_notes. The page ignores that one since Show running notes and a comparison table #35's fix, but the replay doesn't model that check yet.
  • This PR's one annoying tick: a short caption ("Japan's population is about 122 million, on screen now.") when Tyler repeated a request right after "q, find me…". The direct-address rule arguably allows it.
  • The real call (real-call-1) scores full marks: research for Japan, Europe, New York and Stripe, the video, and stopping it.
  • Spend is a little higher. The projected hour goes from $1.05 to $1.21 because Cue acts more often. That's for Tyler.
  • Jev gate off in these runs (CUE_GATE=off). This machine has no OPENROUTER_API_KEY. On main, Jev decides most unaddressed ticks before Sonnet sees them, so these scores show the prompt alone. Jev may quiet some of the unprompted cases. Rerunning with the key would show how many.
  • Before the rebase, an earlier version scored 51/55 against main's 44/55, on the transcripts as they were then.

Review

🤖 Generated with Claude Code

DhruvaKanna07 and others added 2 commits November 13, 2026 13:54
Tyler's direction on #10 (2026-11-13): Cue mainly acts without being
asked, like the intern in charge of the meeting's projector; "Cue, ..."
stays as a direct line. The prompt said "doing nothing is usually right"
and only named "can someone check..." as a trigger.

The prompt now lists what to put up unasked (questions wondered aloud,
guessed numbers, options with prices, timelines said in words, factual
disagreements) and what still gets nothing (chatter, reactions, status
updates, answered questions, the team's own history, asks aimed at a
teammate). Two failures the replay found get their own rules: captioning
"already on screen" at a repeated request, and bringing back an earlier
research page after a reaction. A lone caption is no longer an answer.

The replay gains Tyler's first real Meet call (split at its requests),
an unprompted transcript, a notes-repeat transcript for #35, add_notes
and show_comparison state, "quiet or X" judgments for ticks where
either is fair, and REPLAY_AGENT to score another branch's agent.js.

Sonnet 5.5 medium, 55 ticks: main's prompt 44, this prompt 51, with no
annoying ticks; the 2 misses need #35's add_notes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tyler (2026-11-13, relayed by cuddly-lobster): Cue is mute and shy, so a
caption is one short sentence, sometimes two, and most visuals need none.
The caption line, the direct-address rule and the video line now say so,
in this PR so only one agent.js change needs review before the deadline.

From eminent-stencil's Opus review of 864d118: "already on screen, no
caption" applies only when nobody addressed Cue, so it no longer clashes
with the direct-address rule; the caption rule names all six visuals and
allows a lone caption to decline or to answer a direct address with
nothing to show (#38's refusal rule); "Escape room sounds fun." is quiet
again, since two ideas aren't a list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
a-Fig pushed a commit that referenced this pull request Nov 13, 2026
- A viewBox comes only from a plain width and height: width="100%"
  gave "0 0 100 100" and zoomed into the drawing's corner.
- An svg beside a <style> or inside a <div> gets the viewBox too, and
  shrinks to fit there instead of clipping.
- The title stays on one line, so the frame stays 470 tall and 22px text
  stays 22px; the schema asks for under 40 characters.
- HTML taller than the frame keeps its top (safe center).
- At most 40 <use> copies and 3000 elements: nested <use> can ask for
  millions of copies in a few kilobytes and stall the 15 fps page.
- data: in a harmless attribute (aria-label="Revenue data: Q3") stays;
  URL attributes still must start with #.
- Prompt: when show_visual wins over a stat slide, a Mermaid timeline or
  two_columns; markup under 4,000 characters (it's the slowest tool to
  write); font fallbacks so text never flashes in serif.

The "one visual per turn" list itself (line 34) is #58's wording, so the
new tool stays a line of its own for now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
After #54 added a "stat" slide layout, the replay showed this prompt putting
researched numbers (Japan's population, Stripe's fee) on a stat slide, which
drops the source the vision says research must show. Looked-up facts now go
on show_research; a stat slide is for a number said in the meeting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@a-Fig
a-Fig merged commit fd17906 into main Nov 13, 2026
1 check passed
@a-Fig
a-Fig deleted the issue-10-initiative branch November 13, 2026 22:04
a-Fig pushed a commit that referenced this pull request Nov 13, 2026
Cue's screen leaned on words (#61). Bars, a big number with an icon, a
timeline read across a Meet tile where bullets don't, and Mermaid can't
draw them. So Claude can now write an SVG (or a small HTML/CSS block).

Model output can be steered by pages it read (#14), so the markup gets two
layers: sanitize.js keeps an allowlist of drawing and text elements and
drops handlers, external URLs, url() other than #id, @import and CSS
escapes; then it renders in an iframe with an empty sandbox (no scripts,
opaque origin) under a CSP that loads only the brand's Google Fonts. The
page never inserts model markup into its own DOM. scripts/sanitize-check.mjs
runs the hostile cases in npm run check under linkedom.

Prompt: one new tool line and two new rule lines (colours, viewBox,
type sizes); no existing rule reworded, since #58 owns that wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
a-Fig pushed a commit that referenced this pull request Nov 13, 2026
- A viewBox comes only from a plain width and height: width="100%"
  gave "0 0 100 100" and zoomed into the drawing's corner.
- An svg beside a <style> or inside a <div> gets the viewBox too, and
  shrinks to fit there instead of clipping.
- The title stays on one line, so the frame stays 470 tall and 22px text
  stays 22px; the schema asks for under 40 characters.
- HTML taller than the frame keeps its top (safe center).
- At most 40 <use> copies and 3000 elements: nested <use> can ask for
  millions of copies in a few kilobytes and stall the 15 fps page.
- data: in a harmless attribute (aria-label="Revenue data: Q3") stays;
  URL attributes still must start with #.
- Prompt: when show_visual wins over a stat slide, a Mermaid timeline or
  two_columns; markup under 4,000 characters (it's the slowest tool to
  write); font fallbacks so text never flashes in serif.

The "one visual per turn" list itself (line 34) is #58's wording, so the
new tool stays a line of its own for now.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When does Cue act unprompted, and when does it stay quiet?

2 participants