feat(panel,settings): offer starter tasks on Home behind the Starter tasks experiment

Merged
DA
10d ago
+407-30

Why

Most sign-ups who reach Home face a blank prompt box. As Dan Barrett (OpenProse) put it: "If you put an input box in front of someone that asks them to think of something, they will not be able to think of something … tell them the thing you're gonna do and just make it a button." Dean picked "Starters on Home only" for the Show value quickly after signing up task, chose all six starters below, and asked for them behind an experiment.

What

Gated behind a new account experiment, Starter tasks (EXPERIMENT.STARTER_TASKS, listed in Settings › Experimental). It is registered in counted.ts, settings-anchors.ts, and PRODUCT_EXPERIMENT. The service deploys before any client sends the new value, so no wire step is needed.

While the experiment is on and the listed workspace holds fewer than 3 tasks, Home shows starter cards under its composer. Each one shows off something the app does well, and each ends in something to open (Inbox items, a PR, a live link, a video) rather than a chat:

StarterNeedsShows off
Clean up your Codex and Claude Code threadsA Mac among the member's devicesBring your own machine and the Inbox
Try 3 fixes at onceA repositoryParallel workers, ending in a PR
Fix one small thingA repositoryOne PR
Put a daily briefing in my InboxA repositoryAutomations and Inbox asks
Build a tiny app and send me a linkNothingThe cloud sandbox and share_port
Record a walkthrough of my siteNothingThe cloud browser and its recordings

The tiny app card uses the website glyph. The walkthrough card uses a new GLYPH.RECORDING (a video camera), meaning a video an agent recorded.

  • Starters the workspace can run come first. A press writes the prompt into New task's draft, which the composer draws at once (composer-field.tsx lays an outside draft in with the caret at the end), and hands the box the caret. The member reads what the agent will do and starts it with Return. The Mac starter also picks that Mac in Runs on.
  • Starters that need a repository the workspace lacks are still offered, after those. Their foot asks for GitHub, the way the Sentry automation's card asks for Sentry, and a press opens Settings there. The press comes from the no-repositories card's existing logic, now shared through useRepositoryMend (no-repositories-banner.tsx): Connect GitHub, Reconnect GitHub, Choose repositories, or a member's Add with your token.
  • The Mac starter is offered only to a member with a Mac.
  • packages/panel/src/tasks/starter-tasks.ts: the declared starters and startersFor.
  • packages/panel/src/desktop/home-starters.tsx: the row, drawn with @repo/ui's existing SuggestionCards / SuggestionCard, so it adds no new control.

Nothing behind another experiment is used. Task descriptions, Memory, computer use, and Goals are all still experiments.

Testing

  • pnpm exec vitest run packages/panel/src/tasks/starter-tasks.test.ts (new) covers one regression: a starter offered where it can't run, or a GitHub card offered where GitHub can't be connected.
  • Also ran experimental-page.test.ts (with a row added for the new switch), desktop-home.test.ts, the packages/settings suites, and the packages/features analytics suites. All pass.
  • tsc -b for packages/panel, biome, oxlint, the press and style guards, and scripts/repository-checks.sh all pass. The rest is left to CI.
  • Run in the web app (apps/web dev server, /app?fixture=idle), with a local, uncommitted patch that forced the experiment on, since no fixture turns it on. Home drew the five starters a workspace with a repository and no Mac gets, and pressing Fix one small thing filled the box with its prompt, enabled Start, and focused the box. The Mac pick and the Connect GitHub press were not tried, because the fixture has a repository and no Mac.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added suggested starter tasks to the Home screen for workspaces with few tasks. Suggestions reflect available workspace resources.
    • Selecting a runnable suggestion fills the new-task composer with a prompt and focuses the editor. Suggestions that require a Mac also select an available Mac.
    • Suggestions that need a repository provide a route to the relevant settings to connect one.