Multiplayer agent harness for work.
Ground welcome ideas in current company context (#1316)
Regan Bellf3ace71a176a
diff --git a/plugins/web-ui/src/welcome-ideas.ts b/plugins/web-ui/src/welcome-ideas.tsindex 73fcf78ef..eceefa40b 100644--- a/plugins/web-ui/src/welcome-ideas.ts+++ b/plugins/web-ui/src/welcome-ideas.ts@@ -4,4 +4,4 @@ export const welcomeIdeasPrompt = `Help me explore what I can do with QM. Skip o2. Building: Help implement a Stripe integration, check for an applicable YC Deal first, and prepare a pull request for my cofounder to review.3. Fundraising: Build a fundraising dashboard with investor prospects from the YC investor database and the web, matches based on what our company does, outreach drafts for my review, fundraising progress, and investor inbound from my inbox.-Then offer to help come up with more ideas tailored to my goals, our company's current needs, and our progress through the YC batch. Check whether the yc tool is available. If it is, use its authorized context and tool discovery to learn about me, my company, and the current batch. Combine that with available company context and memory; if the tool is unavailable, continue with what you know. Do not assume today's goals or batch stage from old information. If context is missing, ask one or two focused questions. Suggest a few concrete next steps and help me choose one. Only discuss the examples for now; do not set up automations, send outreach, redeem deals, or modify external systems until I choose what to do.`;+Then offer to help come up with more ideas tailored to my goals, our company's current needs, and our progress through the YC batch. Check whether the yc tool is available and use its context and tool discovery to identify my current company. When available and authorized, read company.get for that company's profile and description, and company.goals for dated goals and progress. Also read get_yc_application for historical application answers and founder background when available and authorized; it may return my latest application for another company or a draft, so verify it matches my current company before using it. Prefer my recent statements and dated current goals over old application answers, and do not treat historical answers as current facts or assume the company profile was recently updated. Combine this with available company context and memory; if tools or records are unavailable, continue with what you know. Do not assume today's goals or batch stage from old information. If context is missing, ask one or two focused questions. Suggest a few concrete next steps and help me choose one. Only discuss the examples for now; do not set up automations, send outreach, redeem deals, or modify external systems until I choose what to do.`;diff --git a/plugins/web-ui/test/welcome-ideas.test.ts b/plugins/web-ui/test/welcome-ideas.test.tsindex df576d54b..77371d29f 100644--- a/plugins/web-ui/test/welcome-ideas.test.ts+++ b/plugins/web-ui/test/welcome-ideas.test.ts@@ -90,7 +90,19 @@ test("More ideas opens a fresh personal web chat and sends the examples once", aassert.match(String(turns[0]!.text), /fundraising dashboard/);assert.match(String(turns[0]!.text), /Skip onboarding/);assert.match(String(turns[0]!.text), /yc tool/);- assert.doesNotMatch(String(turns[0]!.text), /YC application|historical context/);+ assert.match(String(turns[0]!.text), /When available and authorized, read company\.get/);+ assert.match(String(turns[0]!.text), /company\.goals for dated goals and progress/);+ assert.match(String(turns[0]!.text), /read get_yc_application.*when available and authorized/);+ assert.match(String(turns[0]!.text), /another company or a draft.*verify it matches my current company/);+ assert.match(+ String(turns[0]!.text),+ /Prefer my recent statements and dated current goals over old application answers/,+ );+ assert.match(+ String(turns[0]!.text),+ /do not treat historical answers as current facts or assume the company profile was recently updated/,+ );+ assert.match(String(turns[0]!.text), /if tools or records are unavailable, continue with what you know/);} finally {releaseRuntime();Date.now = realNow;