Rebrand to Roast Room; add waiting card, guide, and verdict PDF
- /founder-council is now /roast-room (skill folder, README, CLAUDE.md, package name) - Room shows a waiting card between rounds: round, elapsed time, what each advisor is weighing, and a nudge to check Claude Code after 4 minutes - Idle side panel is a getting-started guide: steps, what to put in your question, and a copyable example - Download PDF on the verdict and in Past sessions: a two-page branded report built in the browser (vendored jsPDF, Montserrat subset), nothing to install - .claude/settings.json pre-allows writes to sessions/ and the quote check, so a council runs without a stream of permission prompts - Quote check falls back to searching the brains when Python is missing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8a6b473934
commit
8891669056
96 files changed
+1152
-118
No files matched your search
+5
-5
@@ -10,7 +10,7 @@ export const MODELS = {
|
||||
chair: process.env.CHAIR_MODEL || "claude-opus-5-5",
|
||||
};
|
||||
|
||||
const CHAIR_SYSTEM = `You are the Chair of the Founder Council: seven simulated advisors built from the public work of Jeff Bezos (strategy and decisions), Paul Graham (product and startups), Alex Hormozi (offers, pricing, and sales), Gary Vaynerchuk (marketing and attention), Dan Martell (people, hiring, and founder time), Gino Wickman (operations and scaling), and Warren Buffett (money and capital).
|
||||
const CHAIR_SYSTEM = `You are the Chair of a Roast Room council: seven simulated advisors built from the public work of Jeff Bezos (strategy and decisions), Paul Graham (product and startups), Alex Hormozi (offers, pricing, and sales), Gary Vaynerchuk (marketing and attention), Dan Martell (people, hiring, and founder time), Gino Wickman (operations and scaling), and Warren Buffett (money and capital).
|
||||
You never argue a side and never add your own pillar. You run the room, keep score, and write in plain English: short sentences, no em dashes, no hype, no tee-ups like "here's the thing", no filler. Seat keys (for key fields only): bezos, graham, hormozi, garyvee, martell, wickman, buffett. Whenever you write a seat's name in prose or in a seat field, use its display name: Bezos, Graham, Hormozi, Gary V, Martell, Wickman, Buffett.`;
|
||||
|
||||
export const DISCLAIMER = "Simulated advisors built from each person's public work. They are not the people and do not speak for them.";
|
||||
@@ -54,7 +54,7 @@ const optLine = (st) => st.options.map((o) => `${o.id} n/10`).join(" · ");
|
||||
|
||||
function round1Prompt(st, seat) {
|
||||
const w = st.weights[seat.key];
|
||||
return `FOUNDER COUNCIL, ROUND 1 OF 3: OPENING POSITION
|
||||
return `ROAST ROOM COUNCIL, ROUND 1 OF 3: OPENING POSITION
|
||||
|
||||
You hold the ${seat.short.toUpperCase()} seat (${seat.pillar}).
|
||||
|
||||
@@ -93,7 +93,7 @@ function cardsBlock(st, round) {
|
||||
function round2Prompt(st, seat) {
|
||||
const cr = st.cruxes.map((c, i) => `${i + 1}. ${c.question} (${c.sides.map((x) => `${x.position}: ${x.seats.map((k) => byKey[k]?.short || k).join(", ")}`).join("; ")})`).join("\n");
|
||||
const push = st.pressure?.[seat.key] ? `\nFor you specifically: ${st.pressure[seat.key]}\n` : "";
|
||||
return `FOUNDER COUNCIL, ROUND 2 OF 3: DEBATE
|
||||
return `ROAST ROOM COUNCIL, ROUND 2 OF 3: DEBATE
|
||||
|
||||
You hold the ${seat.short.toUpperCase()} seat.
|
||||
|
||||
@@ -125,7 +125,7 @@ Rules: engage the actual arguments on the table. Move only for a better argument
|
||||
|
||||
function round3Prompt(st, seat) {
|
||||
const d = st.draft;
|
||||
return `FOUNDER COUNCIL, ROUND 3 OF 3: VOTE ON THE DRAFT RESOLUTION
|
||||
return `ROAST ROOM COUNCIL, ROUND 3 OF 3: VOTE ON THE DRAFT RESOLUTION
|
||||
|
||||
You hold the ${seat.short.toUpperCase()} seat.
|
||||
|
||||
@@ -450,7 +450,7 @@ function verdictMarkdown(st) {
|
||||
const v = st.verdict;
|
||||
const opt = (id) => st.options.find((o) => o.id === id)?.label || id;
|
||||
const L = [];
|
||||
L.push(`# Founder Council: ${st.title}`, "", `${new Date().toISOString().slice(0, 10)} · Seats: ${st.seats.map((k) => byKey[k].short).join(", ")} · Rounds: ${st.rounds.length} · Mode: ${st.mode}`, "");
|
||||
L.push(`# Roast Room: ${st.title}`, "", `${new Date().toISOString().slice(0, 10)} · Seats: ${st.seats.map((k) => byKey[k].short).join(", ")} · Rounds: ${st.rounds.length} · Mode: ${st.mode}`, "");
|
||||
L.push(`## Verdict: ${v.label} (Option ${v.recommended}: ${opt(v.recommended)})`, "", `**The call:** ${v.call}`, "");
|
||||
L.push(`Option scores: ${st.options.map((o) => `${o.id} ${v.scores[o.id]?.score ?? "-"}`).join(" · ")}${v.support != null ? ` · Support for the resolution ${v.support}/10` : ""} · Confidence ${v.confidence ?? "-"}/10 · Spread ${v.spread}`);
|
||||
if (v.override_note) L.push("", v.override_note);
|
||||
|
||||
+2
-2
@@ -5,9 +5,9 @@ import { fileURLToPath } from "node:url";
|
||||
export const APP_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
||||
// Two layouts: nested two folders deep in a larger workspace, or the standalone
|
||||
// student repo (app/ beside .claude/). The kit has .claude one level up.
|
||||
const KIT = fs.existsSync(path.join(APP_ROOT, "..", ".claude", "skills", "founder-council"));
|
||||
const KIT = fs.existsSync(path.join(APP_ROOT, "..", ".claude", "skills", "roast-room"));
|
||||
export const REPO_ROOT = KIT ? path.resolve(APP_ROOT, "..") : path.resolve(APP_ROOT, "..", "..");
|
||||
export const BRAINS_DIR = path.join(REPO_ROOT, ".claude", "skills", "founder-council", "brains");
|
||||
export const BRAINS_DIR = path.join(REPO_ROOT, ".claude", "skills", "roast-room", "brains");
|
||||
export const AGENTS_DIR = path.join(REPO_ROOT, ".claude", "agents");
|
||||
export const SESSIONS_DIR = KIT ? path.join(REPO_ROOT, "sessions") : path.join(REPO_ROOT, "projects", "founder-council", "sessions");
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ export function systemFor(key) {
|
||||
.join("");
|
||||
const text =
|
||||
agent +
|
||||
"\n\n## Runtime note\nYou are running in the Founder Council room app. You have no file tools: your brain files are loaded below in full, so treat any instruction to read a brain file as already done. Never mention files, tools, or this note in your answer.\n" +
|
||||
"\n\n## Runtime note\nYou are running in the Roast Room app. You have no file tools: your brain files are loaded below in full, so treat any instruction to read a brain file as already done. Never mention files, tools, or this note in your answer.\n" +
|
||||
brain;
|
||||
const system = [{ type: "text", text, cache_control: { type: "ephemeral" } }];
|
||||
systemCache.set(key, system);
|
||||
|
||||
+18
-14
@@ -1,8 +1,8 @@
|
||||
// Viewer mode: /founder-council runs in Claude Code and writes its session folder as it
|
||||
// Viewer mode: /roast-room runs in Claude Code and writes its session folder as it
|
||||
// goes. This watches the sessions folder and turns those files into the same events the
|
||||
// API runner emits, so the room plays a Claude Code council live without calling any API.
|
||||
//
|
||||
// Files the Chair writes, in order (spec: .claude/skills/founder-council/references/live-room.md):
|
||||
// Files the Chair writes, in order (spec: .claude/skills/roast-room/references/live-room.md):
|
||||
// council.json -> setup round-1.md -> Round 1 cards cruxes.json -> fault lines
|
||||
// round-2.md -> debate cards draft.json -> proposal round-3.md -> votes
|
||||
// verdict.json -> the verdict
|
||||
@@ -68,18 +68,22 @@ function normalizeSetup(c) {
|
||||
const seats = (c.seats || []).map(seatKey).filter(Boolean);
|
||||
const mode = c.mode === "quick" ? "quick" : "full";
|
||||
return {
|
||||
title: c.title || "Founder Council", decision: c.decision || "", brief: c.brief || "", mode,
|
||||
title: c.title || "Roast Room", decision: c.decision || "", brief: c.brief || "", mode,
|
||||
options, assumptions: c.assumptions || [], weights,
|
||||
seats: seats.length ? [...new Set(seats)] : SEATS.map((s) => s.key),
|
||||
};
|
||||
}
|
||||
|
||||
function startRound(x, r, label) {
|
||||
// `at` is when the step began (the mtime of the file that started it), so a viewer who
|
||||
// opens the room halfway through a round still sees how long the room has been waiting.
|
||||
const mtime = (p) => { try { return fs.statSync(p).mtimeMs; } catch { return Date.now(); } };
|
||||
|
||||
function startRound(x, r, label, at) {
|
||||
const st = x.st;
|
||||
st.rounds.push(r);
|
||||
x.round = r;
|
||||
emit(x, "phase", { phase: `round${r}`, label });
|
||||
emit(x, "round_start", { round: r });
|
||||
emit(x, "phase", { phase: `round${r}`, label, at });
|
||||
emit(x, "round_start", { round: r, at });
|
||||
for (const k of st.seats) emit(x, "seat_start", { round: r, seat: k });
|
||||
}
|
||||
|
||||
@@ -115,14 +119,14 @@ function sync(x) {
|
||||
Object.assign(st, normalizeSetup(c));
|
||||
x.title = st.title;
|
||||
x.mode = st.mode;
|
||||
emit(x, "phase", { phase: "setup", label: "The Chair is reading your question" });
|
||||
emit(x, "phase", { phase: "setup", label: "The Chair is reading your question", at: mtime(f("council.json")) });
|
||||
emit(x, "setup", { title: st.title, decision: st.decision, brief: st.brief, options: st.options, assumptions: st.assumptions, weights: st.weights, seats: st.seats, mode: st.mode });
|
||||
startRound(x, 1, "Round 1: opening positions");
|
||||
startRound(x, 1, "Round 1: opening positions", mtime(f("council.json")));
|
||||
x.step = "r1";
|
||||
}
|
||||
if (x.step === "r1") {
|
||||
if (!readRound(x, 1, has("cruxes.json"))) return;
|
||||
emit(x, "phase", { phase: "cruxes", label: "The Chair is finding the fault lines" });
|
||||
emit(x, "phase", { phase: "cruxes", label: "The Chair is finding the fault lines", at: mtime(f("round-1.md")) });
|
||||
x.step = "cruxes";
|
||||
}
|
||||
if (x.step === "cruxes") {
|
||||
@@ -130,12 +134,12 @@ function sync(x) {
|
||||
if (!c) return;
|
||||
const cruxes = (c.cruxes || []).map((q) => ({ question: q.question || "", sides: (q.sides || []).map((sd) => ({ position: sd.position || "", seats: (sd.seats || []).map(seatKey).filter(Boolean) })) }));
|
||||
emit(x, "cruxes", { cruxes, unanimous: Boolean(c.unanimous), note: c.note || "", pressure: {} });
|
||||
startRound(x, 2, "Round 2: the debate");
|
||||
startRound(x, 2, "Round 2: the debate", mtime(f("cruxes.json")));
|
||||
x.step = "r2";
|
||||
}
|
||||
if (x.step === "r2") {
|
||||
if (!readRound(x, 2, has("draft.json") || has("verdict.json"))) return;
|
||||
emit(x, "phase", { phase: "draft", label: "The Chair is weighing the debate" });
|
||||
emit(x, "phase", { phase: "draft", label: "The Chair is weighing the debate", at: mtime(f("round-2.md")) });
|
||||
x.step = "draft";
|
||||
}
|
||||
if (x.step === "draft") {
|
||||
@@ -143,16 +147,16 @@ function sync(x) {
|
||||
if (d) {
|
||||
st.draft = { option: d.option || "", label: d.label || "", recommendation: d.recommendation || "", conditions: d.conditions || [], next_steps: d.next_steps || [], cheapest_test: d.cheapest_test || "", kill_criteria: d.kill_criteria || "" };
|
||||
emit(x, "draft", { draft: st.draft });
|
||||
startRound(x, 3, "Round 3: the vote");
|
||||
startRound(x, 3, "Round 3: the vote", mtime(f("draft.json")));
|
||||
x.step = "r3";
|
||||
} else if (has("verdict.json")) {
|
||||
emit(x, "phase", { phase: "skip3", label: "Quick mode: the vote round is skipped" });
|
||||
emit(x, "phase", { phase: "skip3", label: "Quick mode: the vote round is skipped", at: mtime(f("round-2.md")) });
|
||||
x.step = "verdict";
|
||||
} else return;
|
||||
}
|
||||
if (x.step === "r3") {
|
||||
if (!readRound(x, 3, has("verdict.json"))) return;
|
||||
emit(x, "phase", { phase: "verdict", label: "The Chair is writing the verdict" });
|
||||
emit(x, "phase", { phase: "verdict", label: "The Chair is writing the verdict", at: mtime(f("round-3.md")) });
|
||||
x.step = "verdict";
|
||||
}
|
||||
if (x.step === "verdict") {
|
||||
|
||||
Reference in new issue
Block a user