Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(onboarding): add first-time onboarding banner for new agents

nirholas3dda368ee3c2
diff --git a/prompts/discover-rename/00-README.md b/prompts/discover-rename/00-README.md
new file mode 100644
index 000000000..097fdd20c
--- /dev/null
+++ b/prompts/discover-rename/00-README.md
@@ -0,0 +1,50 @@
+---
+name: Discover → My Agents rename + community Discover
+goal: Resolve the naming conflict where `/discover` shows the user's *own* on-chain agents (a personal view) while a community feed at `/explore` already exists. End state: `/discover` is renamed to `/my-agents` (personal), and `/explore` is rebranded as the community **Discover** page. Nav and links across the app are updated. No lazy redirects without route preservation; no broken nav links.
+---
+
+# Context
+
+Today the app has two overlapping concepts:
+
+- **`/discover`** (file: `public/discover/index.html`, JS: `public/discover/discover.js`)
+ - Heading: "On-chain Agents"
+ - Subtitle: "Agents we found in your linked wallets"
+ - Empty state: "No wallets linked / Link a wallet to discover your on-chain agents"
+ - Data source: `GET /api/erc8004/hydrate` — agents owned by the *current user's* linked wallets only.
+ - Linked from `index.html` via `#discoverLink` (visible only when authed).
+
+- **`/explore`** (file: `public/explore/index.html`, JS: `public/explore/explore.js`)
+ - Heading: "Every agent, every chain."
+ - Chip: "ERC-8004 Agent Directory"
+ - Data source: cross-chain index of ALL ERC-8004 agents, with search/filter.
+ - Linked from the public-facing nav (Features/Widgets header).
+
+**Problem:** "Discover" semantically means *community browse*, not *my own agents*. The current naming is backwards. `/explore` is the real "Discover" feature; `/discover` is really "My Agents".
+
+# Target end state
+
+| URL | Label | Purpose |
+| ---------------- | ------------- | -------------------------------------------- |
+| `/my-agents` | My Agents | Agents owned by the signed-in user's wallets |
+| `/discover` | Discover | Community browse of all ERC-8004 agents (was `/explore`) |
+| `/explore` | (301 → `/discover`) | Back-compat redirect |
+
+Rationale for swapping `/explore` → `/discover` rather than just renaming `/discover` → `/my-agents` and leaving `/explore` alone: "Discover" is the more discoverable, marketing-friendly word for the community feed; "Explore" is fine but inferior. If the team prefers to keep `/explore` as the community URL and only rename `/discover` → `/my-agents`, do **task 01 only** and skip 02.
+
+# Tasks
+
+Run tasks in order. Each task is a standalone prompt file an agent can pick up.
+
+1. [01-rename-discover-to-my-agents.md](01-rename-discover-to-my-agents.md) — Move `/discover` → `/my-agents`, update nav link in `index.html`, update header in the page itself, add a 301 from `/discover` → `/my-agents` so existing bookmarks survive.
+2. [02-rebrand-explore-as-discover.md](02-rebrand-explore-as-discover.md) — Move `/explore` → `/discover` (community feed), update nav across `features.html`, `widgets`, header partials, and SEO/canonical tags. Add `/explore` → `/discover` 301.
+3. [03-cross-link-and-empty-state.md](03-cross-link-and-empty-state.md) — From the new community `/discover`, add a "View my agents" CTA when authed. From `/my-agents` empty state, add a "Browse community agents" link to `/discover`. Tighten copy.
+4. [04-tests-and-qa.md](04-tests-and-qa.md) — Add/adjust route tests, verify redirects, click through every nav surface, check `vercel.json` rewrites, check service-worker cache for stale `/discover` HTML.
+
+# Non-negotiables
+
+- **No broken links.** Grep the entire repo for `/discover` and `/explore` and update every reference, including: HTML anchors, JS `location.href`/`router.push`, `vercel.json`, sitemap, service worker, `og:url`, `canonical`, README, docs, prompt files referencing the old route.
+- **301 redirects** for the old paths so external links and shared URLs keep working. Do not rely on client-side JS redirects alone.
+- **Service worker invalidation.** The repo recently had a bug where the SW served `index.html` for all navigations (commit `05cf460`). After renaming, bump the SW cache version so stale `/discover` HTML doesn't ghost-serve the old page.
+- **No copy-paste duplication.** When moving files, `git mv` so history is preserved. Don't leave both old and new copies of the same JS in the tree.
+- **Auth gating preserved.** `/my-agents` requires a signed-in user (current `/discover` behavior). `/discover` (community) must be public.
diff --git a/prompts/discover-rename/01-rename-discover-to-my-agents.md b/prompts/discover-rename/01-rename-discover-to-my-agents.md
new file mode 100644
index 000000000..86ac9322b
--- /dev/null
+++ b/prompts/discover-rename/01-rename-discover-to-my-agents.md
@@ -0,0 +1,72 @@
+---
+name: Rename /discover → /my-agents
+depends_on: none
+---
+
+# Goal
+
+Move the personal "On-chain Agents in your linked wallets" page from `/discover` to `/my-agents`. The page content/data flow stays identical — only the URL, page title, nav label, and a few copy strings change.
+
+# Success criteria
+
+1. Visiting `/my-agents` renders the page that `/discover` used to render.
+2. Visiting `/discover` returns a **301** to `/my-agents` (server-side redirect via `vercel.json`, not client JS).
+3. The nav link in `index.html` (`#discoverLink`) labels the link **"My Agents"** and points to `/my-agents`.
+4. The page `<title>` is "My Agents · 3D Agent".
+5. Page heading stays "On-chain Agents" (this is accurate — it describes the content), but the **subtitle** becomes "Agents owned by your linked wallets" (drops the word "discover").
+6. Empty-state copy: "No wallets linked / Link a wallet to see your on-chain agents." (replaces "discover your on-chain agents").
+7. Every other reference to `/discover` in the repo is either updated to `/my-agents` OR is the redirect rule itself.
+
+# Steps
+
+1. **Move files** (use `git mv` to preserve history):
+ - `public/discover/index.html` → `public/my-agents/index.html`
+ - `public/discover/discover.js` → `public/my-agents/my-agents.js`
+ - `public/discover/discover.css` → `public/my-agents/my-agents.css`
+ - Update internal `<link>` / `<script>` paths in the HTML accordingly.
+ - **Do NOT rename the CSS class prefix `discover-*`** in this task — that's a separate cleanup. Renaming classes risks breaking the JS selector logic and isn't required to ship the URL change. Note the leftover prefix in a follow-up TODO comment at the top of `my-agents.css`.
+
+2. **Update page chrome** in `public/my-agents/index.html`:
+ - `<title>On-chain Agents · 3D Agent</title>` → `<title>My Agents · 3D Agent</title>`
+ - `<meta name="description">` → "Your ERC-8004 agents across every supported chain."
+ - Update subtitle and (downstream) any empty-state strings emitted by `my-agents.js`.
+
+3. **Update empty-state copy** in `public/my-agents/my-agents.js`:
+ - Find the "Link a wallet to discover your on-chain agents." string and change to "Link a wallet to see your on-chain agents."
+ - Find the "No wallets linked" block — keep heading, update sub-copy.
+
+4. **Update nav link** in `index.html` (look for `#discoverLink`, around lines 243–249):
+ - `href="/discover"` → `href="/my-agents"`
+ - Visible label "Discover" → "My Agents"
+ - Keep the auth-gated visibility logic untouched.
+
+5. **Add 301 redirect** in `vercel.json`:
+ ```json
+ {
+ "source": "/discover",
+ "destination": "/my-agents",
+ "permanent": true
+ }
+ ```
+ Add to the `redirects` array (create the array if missing). Verify the rewrite for the new path works — check existing patterns in `vercel.json` to see if `/my-agents` needs an explicit rewrite rule for the static directory or if Vercel's default behavior covers it.
+
+6. **Grep the repo** for remaining references and update each:
+ ```
+ rg -n '/discover\b' --hidden -g '!node_modules' -g '!dist' -g '!dist-*'
+ ```
+ Likely hits to update: `README.md`, `docs/**`, `sitemap.xml` (if present), service worker file (search for `discover` in `public/sw.js` or similar), other prompt files. **Don't** update `prompts/` historical files — those are records.
+
+7. **Bump service worker cache version** if the SW caches `/discover/index.html`. Find the SW version constant and increment.
+
+# Verification
+
+- `curl -I https://localhost:port/discover` → `301` with `Location: /my-agents`.
+- `/my-agents` renders the same page as before, including empty state for a no-wallet user.
+- Click the nav link from the home page — lands on `/my-agents` with no console errors.
+- Hard-refresh with SW active — old `/discover` HTML is not served.
+
+# Out of scope
+
+- Renaming `discover-*` CSS classes (note as TODO).
+- Any data/API change. `/api/erc8004/hydrate` stays as-is.
+- Adding new content to the page (handled in task 03).
diff --git a/prompts/discover-rename/02-rebrand-explore-as-discover.md b/prompts/discover-rename/02-rebrand-explore-as-discover.md
new file mode 100644
index 000000000..162853d3e
--- /dev/null
+++ b/prompts/discover-rename/02-rebrand-explore-as-discover.md
@@ -0,0 +1,77 @@
+---
+name: Rebrand /explore as community /discover
+depends_on: 01-rename-discover-to-my-agents.md
+---
+
+# Goal
+
+Promote the existing community ERC-8004 directory from `/explore` to `/discover`. After task 01, the `/discover` URL is free (it 301s to `/my-agents`). Replace that redirect with the real community page; redirect `/explore` → `/discover` instead.
+
+# Pre-flight
+
+This task **must** run after 01. Verify before starting:
+- `/discover` 301 redirect to `/my-agents` exists in `vercel.json`.
+- `/my-agents` is live and tested.
+
+If 01 isn't done, stop and run 01 first.
+
+# Success criteria
+
+1. `/discover` renders the community ERC-8004 directory (the page formerly at `/explore`).
+2. `/explore` returns a **301** to `/discover`.
+3. The `/discover` → `/my-agents` redirect from task 01 is **removed** (it would now shadow the community page).
+4. Page `<title>` becomes "Discover · 3D Agent". `<h2>` text "Every agent, every chain." is preserved (good copy).
+5. The "ERC-8004 Agent Directory" chip stays — it's a useful sub-label.
+6. Canonical URL `<link rel="canonical">` is updated to `https://3dagent.vercel.app/discover`.
+7. All nav surfaces show "Discover" pointing to `/discover` — no leftover "Explore" links.
+8. Static asset paths inside the page (CSS, JS, images) all resolve.
+
+# Steps
+
+1. **Move files** (`git mv`):
+ - `public/explore/index.html` → `public/discover/index.html`
+ - `public/explore/explore.js` → `public/discover/discover.js`
+ - (No `explore.css` — confirm with `ls`. The page uses `/style.css`.)
+ - **Conflict alert:** task 01 moved the old `public/discover/` directory contents to `public/my-agents/`. Confirm `public/discover/` is empty before moving the explore files in. If not, stop and reconcile.
+
+2. **Update page chrome** in the new `public/discover/index.html`:
+ - `<title>Explore · 3D Agent</title>` → `<title>Discover · 3D Agent</title>`
+ - `<meta name="description">` — replace "Browse every ERC-8004 agent…" with the same sentence but starting "Discover every ERC-8004 agent registered on-chain across 20+ EVM networks." (keeps SEO weight).
+ - `<link rel="canonical" href="…/explore">` → `…/discover`.
+ - Update `<script src="/explore/explore.js">` → `<script src="/discover/discover.js">`.
+ - Nav inside the header: change `<a href="/explore" class="active">Explore</a>` → `<a href="/discover" class="active">Discover</a>`.
+
+3. **Update internal references in `discover.js`** (formerly `explore.js`):
+ - Search for any `'/explore'` strings, `pushState` calls, analytics event names, log strings. Update URL strings; keep analytics event names stable (see "Out of scope" below) unless they leak into the URL.
+
+4. **Update redirects in `vercel.json`**:
+ - **Remove** the `/discover` → `/my-agents` redirect added in task 01 (the community page now lives at `/discover` and would be unreachable otherwise).
+ - **Add** `/explore` → `/discover` (permanent: true).
+
+5. **Update nav across the app.** Grep:
+ ```
+ rg -n '/explore\b|>Explore<' --hidden -g '!node_modules' -g '!dist' -g '!dist-*'
+ ```
+ Likely files: `features.html`, `home.html`, `widgets/*.html`, `index.html`, any shared header partial, README, docs, sitemap. For each: change href to `/discover` and visible label to "Discover".
+
+6. **Update marketing copy** that mentions "Explore" as a feature name (README headings, docs/marketing pages). Search for the proper noun "Explore" in markdown:
+ ```
+ rg -n '\bExplore\b' README.md docs/
+ ```
+ Use judgment — only change places that refer to the page/feature, not generic English uses.
+
+7. **Service worker** — bump cache version again (yes, even though task 01 did it; this is a separate deploy and a separate SW asset list).
+
+# Verification
+
+- `/discover` renders the community directory, with search/filter chips, agent cards, etc.
+- `/explore` 301s to `/discover`.
+- `/my-agents` still works (task 01 unaffected).
+- Nav across `/`, `/features`, `/widgets`, `/dashboard` shows "Discover" linking to `/discover`. No "Explore" links remain.
+- View source of `/discover` — `<link rel="canonical">` points to `/discover`.
+
+# Out of scope
+
+- Analytics event renames. If existing events are named `explore_search`, `explore_filter_clicked`, etc., leave them — renaming breaks dashboards. Add a TODO instead.
+- Any change to the agent indexing/data layer.
+- Visual redesign of the community page.
diff --git a/prompts/discover-rename/03-cross-link-and-empty-state.md b/prompts/discover-rename/03-cross-link-and-empty-state.md
new file mode 100644
index 000000000..e38d2406c
--- /dev/null
+++ b/prompts/discover-rename/03-cross-link-and-empty-state.md
@@ -0,0 +1,47 @@
+---
+name: Cross-link Discover ↔ My Agents and refine empty states
+depends_on: 02-rebrand-explore-as-discover.md
+---
+
+# Goal
+
+After tasks 01 and 02, the two pages exist with clear separate purposes but don't reference each other. Add the natural cross-links so a user on one page can find the other, and refine empty-state copy so the relationship between the two is obvious.
+
+# Success criteria
+
+1. **From `/discover` (community)**, when the user is signed in, a chip / secondary CTA reads **"View my agents →"** and links to `/my-agents`. When unsigned, the chip is hidden (don't tease an auth-walled page).
+2. **From `/my-agents`**, the empty state ("No wallets linked") gains a secondary link below the primary "Link a wallet" button: **"Or browse community agents →"** linking to `/discover`.
+3. **From `/my-agents`**, when the user *has* linked wallets but the result list is empty (no agents found), surface an inline message: "No agents found in your linked wallets yet. [Browse the community directory →](/discover)".
+4. Auth detection uses the existing client-side mechanism — do not add a new auth check pattern. Find how `index.html` decides to show `#discoverLink` and reuse that.
+
+# Steps
+
+1. **Identify the auth-detection pattern** used in `index.html` for the nav link. Likely a fetch to `/api/auth/me` or a session cookie check. Document the function/module and reuse it.
+
+2. **`/discover` (community page) — add "View my agents" chip:**
+ - Add chip markup in `public/discover/index.html`, near the "ERC-8004 Agent Directory" chip. Hidden by default (`hidden` attribute).
+ - In `public/discover/discover.js`, on page load, run the auth check. If authed, unhide the chip.
+ - Style: reuse the existing `.explore-hero-chip` (now `.discover-hero-chip` if classes were renamed in 02 — they shouldn't have been; if not, leave class name and add a TODO).
+
+3. **`/my-agents` — empty-state secondary link:**
+ - In `public/my-agents/my-agents.js`, locate the no-wallets-linked render block. Below the "Link a wallet" `<a>` button, add a smaller secondary link: `<a class="my-agents-secondary" href="/discover">Or browse community agents →</a>`.
+ - Add a CSS rule for `.my-agents-secondary` in `public/my-agents/my-agents.css`: smaller font, muted color, top margin. Match existing muted-text tokens — don't introduce new colors.
+
+4. **`/my-agents` — empty-results inline message:**
+ - In the render path that fires when `wallets.length > 0 && agents.length === 0`, render: "No agents found in your linked wallets yet." with a follow-up link to `/discover`.
+ - If this branch doesn't currently exist (e.g., the page silently renders an empty grid), add it.
+
+5. **Copy review.** Read every user-visible string on both pages end-to-end. Fix any remaining "Explore"/"discover" verb confusion introduced by tasks 01–02.
+
+# Verification
+
+Manual click-through:
+- Logged out: visit `/discover` → no "View my agents" chip. Visit `/my-agents` → empty state shows "Link a wallet" + "Or browse community agents →" link, both work.
+- Logged in, no wallets: same as above plus "View my agents" chip on `/discover`.
+- Logged in, wallets linked, no agents: `/my-agents` shows the new "no agents found" inline message with the `/discover` link.
+- Logged in, wallets linked, has agents: `/my-agents` renders the agent grid as before; no empty-state text leaks in.
+
+# Out of scope
+
+- Adding a community-search filter for "agents owned by my wallets" on `/discover` (would duplicate `/my-agents`).
+- Persistent header nav redesign — nav stays as updated in tasks 01 and 02.
diff --git a/prompts/discover-rename/04-tests-and-qa.md b/prompts/discover-rename/04-tests-and-qa.md
new file mode 100644
index 000000000..a5bfef515
--- /dev/null
+++ b/prompts/discover-rename/04-tests-and-qa.md
@@ -0,0 +1,70 @@
+---
+name: Tests, redirects, and route QA
+depends_on: 03-cross-link-and-empty-state.md
+---
+
+# Goal
+
+Lock in the rename with automated checks and a manual QA pass so the next deploy doesn't regress redirects, nav, or service-worker caching. The repo has had route bugs before (commits `e50fd20`, `174ea92`, `05cf460`) — this task exists because handwave QA isn't enough.
+
+# Success criteria
+
+1. A test exists that asserts `/discover` (community) returns 200 and contains the "ERC-8004 Agent Directory" chip text.
+2. A test exists that asserts `/my-agents` returns 200 and contains "On-chain Agents".
+3. A test exists that asserts `/explore` returns 301 with `Location: /discover`.
+4. The previous `/discover` content (the "On-chain Agents" page) is **not** served at `/discover` anymore — assertion in test.
+5. `vercel.json` rewrites/redirects are reviewed for ordering bugs (redirects before catch-all rewrites).
+6. The service worker does not serve a stale cached HTML for either `/discover` or `/my-agents`.
+7. Sitemap (if present) lists `/discover` and `/my-agents`, and no longer lists `/explore`.
+
+# Steps
+
+1. **Find the existing test setup.** Check `tests/`, `vitest.config.js`, and `package.json` scripts. Identify whether route tests are HTTP-level (against a running dev server) or static (parsing HTML files).
+
+2. **Add or extend route tests** in the appropriate test file:
+ - Static check (always works): assert `public/discover/index.html` exists and contains `Discover · 3D Agent` and `ERC-8004 Agent Directory`.
+ - Static check: assert `public/my-agents/index.html` exists and contains `My Agents · 3D Agent`.
+ - Static check: assert `public/explore/` directory does not exist (was moved).
+ - `vercel.json` parse test: assert a redirect from `/explore` → `/discover` (permanent) exists, and assert no redirect from `/discover` → `/my-agents` exists (would shadow the page).
+
+3. **Run the test suite** and fix anything that breaks. Don't mute or skip failures.
+
+4. **Manual QA — click every nav surface** with a checklist. For each, confirm "Discover" and "My Agents" links route correctly:
+ - [ ] `/` (home, logged out)
+ - [ ] `/` (home, logged in)
+ - [ ] `/features`
+ - [ ] `/widgets` index
+ - [ ] `/dashboard` and any sub-pages with their own header
+ - [ ] `/app` viewer header
+ - [ ] `/agent/:id` page header
+ - [ ] Footer (if any)
+
+5. **Service worker check.** Open DevTools → Application → Service Workers. Confirm:
+ - SW activated with the bumped version.
+ - Cache Storage no longer contains a `/discover` entry that maps to the old "On-chain Agents" HTML.
+ - Hard-refresh `/discover` → community page renders (not a stale cached personal page).
+
+6. **Redirect verification with curl** against the deployed preview:
+ ```
+ curl -sI https://<preview-url>/explore | head -5
+ curl -sI https://<preview-url>/discover | head -5
+ curl -sI https://<preview-url>/my-agents | head -5
+ ```
+ Expected: `/explore` → 301, `/discover` → 200, `/my-agents` → 200.
+
+7. **Sitemap.** If `public/sitemap.xml` or a generator exists, update entries: drop `/explore`, ensure `/discover` and `/my-agents` are present. `/my-agents` should have `<changefreq>` weekly and likely `noindex` (it's user-specific) — confirm whether the page sets `<meta name="robots" content="noindex">` and add if missing.
+
+8. **Open a single PR** with all four task changes squashed or stacked. Title: `feat: rename Discover→My Agents, promote Explore→Discover`. PR description should list the redirects and link to this prompt directory.
+
+# Verification
+
+- `npm test` (or whatever the project uses) passes.
+- All checklist items in step 4 are checked.
+- Curl results match step 6.
+- Preview deploy looks correct on desktop and mobile widths for both pages.
+
+# Out of scope
+
+- Performance work, SEO audits beyond the canonical/title/description fixes already done.
+- Renaming CSS class prefixes left as TODOs in earlier tasks.
+- Adding analytics for the new cross-links — file a follow-up if desired.