Repository navigation
feat(onboarding): the Guide — a live first teammate in every new workspace (plan D4) - #911
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
deepseek-v4-flashvia LiteLLM (alias verified inlitellm-config.yaml— Agent fleet has no resilient LLM backend / graceful degradation #510's free-tier failures are why D4 called this the one real cost decision) + a genericconfig.dailyRunCapin the native runtime — at-cap declines before any claim/run-row/LLM call, count failure fails open (4 of 6 user @mentions in 10 days got no reply — two distinct causes, neither is user behaviour #887), Guide capped at 60 runs/workspace/day.perUsermanifests: seeder publishes the registry row, skips the demo-pod install; installation is per-workspace increateDefaultWorkspacePod, best-effort (a guide hiccup never fails signup).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