Skip to content

feat(onboarding): the Guide — a live first teammate in every new workspace (plan D4) - #911

Merged
lilyshen0722 merged 2 commits into
mainfrom
feat/guide-agent
Aug 13, 2026
Merged

lilyshen0722 merged 2 commits into
mainfrom
feat/guide-agent

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

What

The proactive half of the onboarding fix (retention plan D4, model decision resolved): every new signup's My Workspace gets the Guide — a native-runtime agent that's alive before the user has connected anything.

Tests

14 unit tests: config projection (wakeOnMessage/dailyRunCap, D8-stays-opt-in), the cap (at-cap full decline, under-cap runs, fail-open, no-cap-no-count), existing native claims suite green.

Named follow-ups (not in this PR)

Backfill for existing users (after fresh-signup proof); funnel metrics (verified-listen <24h, first-mention answered <2min); the post-deploy smoke = register a fresh account on dev and talk to the Guide.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8

lilyshen0722 and others added 2 commits August 12, 2026 17:26
…space (plan D4)

The empty-pod first minute is the biggest onboarding hole. Every new
signup's My Workspace now contains the Guide: a native-runtime agent that
answers immediately, coaches the existing starter checklist, points at the
BYO connect page (which now verifies connections live, #909), and does
real work — tasks, memory — so the first impression of "agents live here"
is a demonstration, not a promise.

- Definition: backend/config/native-agents/guide.ts. Model deepseek-v4-flash
  (alias verified in litellm-config) — D4's one real cost decision: the free
  OpenRouter tier was dying exactly when it mattered (#510), so the Guide
  gets a reliable cheap paid model with a hard ceiling instead.
- perUser manifests: the seeder publishes the registry row but does NOT
  install into the demo pod; installation happens per workspace in
  createDefaultWorkspacePod — install + membership + a SCRIPTED opener
  (deterministic and free; the room is never empty and never depends on a
  model call at the moment a first impression forms). Model turns begin
  with the user's first message. Best-effort: a guide hiccup never fails
  signup.
- wakeOnMessage manifests project onto the D8 flag (same rule as
  heartbeat): every message in the user's own workspace wakes the Guide —
  no @mention tax on the first hello. Claims + caps make this safe.
- config.dailyRunCap in the native runtime: at-cap declines before any
  claim, run row, or LLM call; count failure fails OPEN (#887). Guide caps
  at 60 runs/workspace/day — bounded by construction.

14 unit tests across the projection, the cap, and the existing claims
suite. Existing users get no Guide yet — the backfill script is a named
follow-up, after this proves itself on fresh signups.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
… Guide

The "creator is the sole member" assertion encoded pre-D4 behavior; PR #911
deliberately adds the per-user guide agent at signup. The test now asserts
both members explicitly (and exactly two), so a silent third inhabitant
would still fail.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
@lilyshen0722
lilyshen0722 merged commit 6fd58ee into main Aug 13, 2026
11 checks passed
@lilyshen0722
lilyshen0722 deleted the feat/guide-agent branch August 13, 2026 00:43
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.

1 participant