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.

refactor(links): point every remaining /agent/:id link at the canonical route

nirholas4d0a66e633d4
diff --git a/api/_lib/agent-economy.js b/api/_lib/agent-economy.js
index 48fa7a807..333ef3b78 100644
--- a/api/_lib/agent-economy.js
+++ b/api/_lib/agent-economy.js
@@ -32,7 +32,7 @@ function shapeProvider(row) {
return {
id: row.provider_agent_id,
name: row.provider_name || 'Agent',
- url: `/agent/${row.provider_agent_id}`,
+ url: `/agents/${row.provider_agent_id}`,
avatar_thumbnail_url: avatarThumb(row.provider_thumb_key, row.provider_avatar_vis),
solana_address: row.provider_addr || null,
is_public: row.provider_is_public !== false,
@@ -462,7 +462,7 @@ export async function platformEconomyStats({
// Both leaderboards compute `linkable` in SQL for the same reason the
// settled-hire feed below does: a deleted agent leaves no `agent_identities`
// row at all, so its `is_public` reads NULL, and treating NULL as "public"
- // handed every deleted earner a leaderboard link to a hollow /agent/<id>.
+ // handed every deleted earner a leaderboard link to a hollow /agents/<id>.
const providerRows = await sql`
SELECT
h.provider_agent_id AS agent_id,
@@ -544,7 +544,7 @@ export async function platformEconomyStats({
top_providers: providerRows.map((r) => ({
agent_id: r.agent_id,
name: r.name || 'Agent',
- url: r.linkable && r.agent_id ? `/agent/${r.agent_id}` : null,
+ url: r.linkable && r.agent_id ? `/agents/${r.agent_id}` : null,
avatar_thumbnail_url: avatarThumb(r.thumb_key, r.avatar_vis),
earned_usd: Number(r.earned_usd || 0),
hires: Number(r.hires || 0),
@@ -553,7 +553,7 @@ export async function platformEconomyStats({
top_hirers: hirerRows.map((r) => ({
agent_id: r.agent_id,
name: r.name || 'Agent',
- url: r.linkable && r.agent_id ? `/agent/${r.agent_id}` : null,
+ url: r.linkable && r.agent_id ? `/agents/${r.agent_id}` : null,
avatar_thumbnail_url: avatarThumb(r.thumb_key, r.avatar_vis),
spent_usd: Number(r.spent_usd || 0),
hires: Number(r.hires || 0),
@@ -570,12 +570,12 @@ export async function platformEconomyStats({
hirer: {
agent_id: r.hirer_agent_id,
name: r.hirer_name || 'Agent',
- url: r.hirer_linkable && r.hirer_agent_id ? `/agent/${r.hirer_agent_id}` : null,
+ url: r.hirer_linkable && r.hirer_agent_id ? `/agents/${r.hirer_agent_id}` : null,
},
provider: {
agent_id: r.provider_agent_id,
name: r.provider_name || 'Agent',
- url: r.provider_linkable && r.provider_agent_id ? `/agent/${r.provider_agent_id}` : null,
+ url: r.provider_linkable && r.provider_agent_id ? `/agents/${r.provider_agent_id}` : null,
},
})),
window_days: win,
diff --git a/api/_lib/agent-manifest-publish.js b/api/_lib/agent-manifest-publish.js
index 80ffb2db2..2a32a07ba 100644
--- a/api/_lib/agent-manifest-publish.js
+++ b/api/_lib/agent-manifest-publish.js
@@ -100,7 +100,7 @@ export async function buildLiveAgentManifest(agentId) {
row.chain_id && row.erc8004_agent_id
? { chainId: row.chain_id, registry: row.erc8004_registry, agentId: row.erc8004_agent_id }
: null,
- homeUrl: `${appOrigin()}/agent/${row.id}`,
+ homeUrl: `${appOrigin()}/agents/${row.id}`,
createdAt: row.created_at ? new Date(row.created_at).toISOString() : null,
updatedAt: row.persona_updated_at ? new Date(row.persona_updated_at).toISOString() : null,
});
diff --git a/api/_lib/anomaly-events.js b/api/_lib/anomaly-events.js
index d1c7ccb40..a1ff8e653 100644
--- a/api/_lib/anomaly-events.js
+++ b/api/_lib/anomaly-events.js
@@ -277,7 +277,7 @@ function notifyFrozen({ agentId, userId, category, usdValue, summary, score, fac
if (!userId) return;
insertNotification(userId, 'wallet_anomaly_frozen', {
agent_id: agentId,
- link: `/agent/${encodeURIComponent(agentId)}/wallet#guard`,
+ link: `/agents/${encodeURIComponent(agentId)}/wallet#guard`,
category,
usd: usdValue ?? null,
score,
diff --git a/api/_lib/circulation.js b/api/_lib/circulation.js
index 20c78c870..9b75ac57d 100644
--- a/api/_lib/circulation.js
+++ b/api/_lib/circulation.js
@@ -1504,7 +1504,7 @@ async function buildAgentCard(agent, origin) {
name: agent.name,
description: agent.meta?.description || `${agent.name}, an autonomous agent on three.ws`,
image: image || `${origin}/og.png`,
- url: `${origin}/agent/${agent.id}`,
+ url: `${origin}/agents/${agent.id}`,
active: true,
x402Support: true,
services: glb ? [{ name: 'avatar', endpoint: glb, type: 'model/gltf-binary' }] : [],
diff --git a/api/_lib/draft-mint.js b/api/_lib/draft-mint.js
index 7e78c483c..fd0b98d2b 100644
--- a/api/_lib/draft-mint.js
+++ b/api/_lib/draft-mint.js
@@ -158,7 +158,7 @@ function buildDraftAgentCard({ agent, origin, publicUrl, thumbnailUrl }) {
name: agent.name || 'Agent',
description: agent.description || `${agent.name || 'Agent'}, an autonomous agent on three.ws`,
image,
- url: `${origin}/agent/${agent.id}`,
+ url: `${origin}/agents/${agent.id}`,
active: false, // draft identity: registered on-chain, not yet live
x402Support: true,
services: glb ? [{ name: 'avatar', endpoint: glb, type: 'model/gltf-binary' }] : [],
diff --git a/api/_lib/embed-doctor.js b/api/_lib/embed-doctor.js
index f7356b2ce..fcb0027e8 100644
--- a/api/_lib/embed-doctor.js
+++ b/api/_lib/embed-doctor.js
@@ -357,7 +357,7 @@ export function analyze(obs) {
'fail',
'The element has nothing to load',
`<${tag}> stays deliberately inert until it is given a source. Without one of ${SOURCE_ATTRIBUTES.map((a) => `\`${a}\``).join(', ')} it renders nothing rather than guessing.`,
- `Add your agent id:\n<${tag} agent-id="YOUR_AGENT_ID" mode="floating"></${tag}>\n\nYour agent id is the string after /agent/ in its three.ws profile URL.`,
+ `Add your agent id:\n<${tag} agent-id="YOUR_AGENT_ID" mode="floating"></${tag}>\n\nYour agent id is the string after /agents/ in its three.ws profile URL.`,
{ attributes: el.attributes || {} },
),
);
@@ -372,7 +372,7 @@ export function analyze(obs) {
obs.agent.error
? `Looking the agent up returned: ${obs.agent.error}`
: 'The platform has no public agent with that id, so the runtime has no body, personality, or animations to load.',
- 'Copy the id again from the agent\'s profile URL (the part after /agent/). If the agent is private, publish it or embed one that is public — the embed runs in your visitors\' browsers and can only read public agents.',
+ 'Copy the id again from the agent\'s profile URL (the part after /agents/). If the agent is private, publish it or embed one that is public. The embed runs in your visitors\' browsers and can only read public agents.',
{ agentId: obs.agent.id, status: obs.agent.status ?? null },
),
);
diff --git a/api/_lib/embed.js b/api/_lib/embed.js
index 7aa4414de..dea187b22 100644
--- a/api/_lib/embed.js
+++ b/api/_lib/embed.js
@@ -53,9 +53,9 @@ export function buildEmbedIframe({ src, width, height, title, autorotate = true,
export function agentEmbedTarget(origin, id) {
return {
- embedUrl: `${origin}/agent/${id}/embed`,
- shareUrl: `${origin}/agent/${id}`,
- thumbnailUrl: `${origin}/api/agent/${id}/og`,
+ embedUrl: `${origin}/agents/${id}/embed`,
+ shareUrl: `${origin}/agents/${id}`,
+ thumbnailUrl: `${origin}/api/agents/${id}/og`,
};
}
diff --git a/api/_lib/fork-royalties.js b/api/_lib/fork-royalties.js
index 5281b99ee..02d698020 100644
--- a/api/_lib/fork-royalties.js
+++ b/api/_lib/fork-royalties.js
@@ -548,7 +548,7 @@ async function settlePayouts({ forkAgentId, network, claimed, sourceEventId, kin
depth: t.depth,
signature: r.signature,
tx_signature: r.signature,
- link: `/agent/${encodeURIComponent(t.ancestor_agent_id)}`,
+ link: `/agents/${encodeURIComponent(t.ancestor_agent_id)}`,
});
}
}
diff --git a/api/_lib/indexnow.js b/api/_lib/indexnow.js
index f5d35e549..15a4ea3c1 100644
--- a/api/_lib/indexnow.js
+++ b/api/_lib/indexnow.js
@@ -8,7 +8,7 @@
//
// Usage:
// import { pingIndexNow } from '../_lib/indexnow.js';
-// await pingIndexNow([`https://three.ws/agent/${agentId}`]);
+// await pingIndexNow([`https://three.ws/agents/${agentId}`]);
//
// Fire-and-forget — IndexNow is best-effort and must never block the
// user-facing response that triggered it.
diff --git a/api/_lib/notify-prefs.js b/api/_lib/notify-prefs.js
index e84d3c879..128da1795 100644
--- a/api/_lib/notify-prefs.js
+++ b/api/_lib/notify-prefs.js
@@ -282,7 +282,7 @@ export function pushPayloadFor(type, payload, notificationId) {
function pushUrlFor(p) {
const raw = p.link
|| (p.tx_signature ? `https://solscan.io/tx/${encodeURIComponent(p.tx_signature)}` : null)
- || (p.agent_id ? `/agent/${encodeURIComponent(p.agent_id)}` : null)
+ || (p.agent_id ? `/agents/${encodeURIComponent(p.agent_id)}` : null)
|| '/dashboard/';
// Same allowlist as the inbox: same-origin path or absolute http(s).
if (typeof raw !== 'string') return '/dashboard/';
diff --git a/api/_lib/three-brand.js b/api/_lib/three-brand.js
index 4febb8e65..4b29c14e5 100644
--- a/api/_lib/three-brand.js
+++ b/api/_lib/three-brand.js
@@ -69,7 +69,7 @@ export function threeTokenLinks(mint = threeTokenMint()) {
/** Public profile page for a deployed agent. */
export function agentHomeUrl(agentId) {
- return `${env.APP_ORIGIN}/agent/${agentId}`;
+ return `${env.APP_ORIGIN}/agents/${agentId}`;
}
// ── helpers ──────────────────────────────────────────────────────────────────
diff --git a/api/_lib/trust/subject-reputation.js b/api/_lib/trust/subject-reputation.js
index 0a5fc03df..8be5fdb73 100644
--- a/api/_lib/trust/subject-reputation.js
+++ b/api/_lib/trust/subject-reputation.js
@@ -334,7 +334,7 @@ async function scoreThreewsAgent(det, ts) {
const sig = { ...sigFromAgentRep(rep), ageDays };
caveats.push(...missingCaveats(sig, ['holdings']));
- const evidence = [{ kind: 'threews_agent', ref: `/agent/${det.subject}` }];
+ const evidence = [{ kind: 'threews_agent', ref: `/agents/${det.subject}` }];
if (rep.wallet_address) evidence.push({ kind: 'solana_account', ref: `https://solscan.io/account/${rep.wallet_address}` });
const firstMint = rep.mints?.[0]?.mint;
if (firstMint) evidence.push({ kind: 'launched_coin', ref: `https://solscan.io/token/${firstMint}` });
@@ -554,7 +554,7 @@ async function scoreThreewsMint(det, mintRow, ts) {
const evidence = [
{ kind: 'solana_token', ref: `https://solscan.io/token/${det.subject}` },
- { kind: 'threews_agent', ref: `/agent/${mintRow.agent_id}` },
+ { kind: 'threews_agent', ref: `/agents/${mintRow.agent_id}` },
];
if (market) evidence.push({ kind: 'dexscreener', ref: `https://dexscreener.com/solana/${det.subject}` });
@@ -679,7 +679,7 @@ async function scoreSolanaWallet(det, { knownAgentId }, ts) {
caveats.push(...missingCaveats(sig, knownAgentId ? [] : ['counterparties', 'reliability', 'attestations']));
const evidence = [{ kind: 'solana_account', ref: `https://solscan.io/account/${det.subject}` }];
- if (knownAgentId) evidence.push({ kind: 'threews_agent', ref: `/agent/${knownAgentId}` });
+ if (knownAgentId) evidence.push({ kind: 'threews_agent', ref: `/agents/${knownAgentId}` });
return finalize({
subject: det.subject,
diff --git a/api/_lib/trust/wallet-reputation.js b/api/_lib/trust/wallet-reputation.js
index 81320a561..017e55edc 100644
--- a/api/_lib/trust/wallet-reputation.js
+++ b/api/_lib/trust/wallet-reputation.js
@@ -359,7 +359,7 @@ function buildEvidence(agent, { solRep, registry, holdsThree }) {
const ev = {};
if (agent.solana_address) {
ev.wallet = { label: 'Wallet activity', href: `https://solscan.io/account/${agent.solana_address}` };
- ev.ledger = { label: 'Custody ledger', href: `/agent/${agent.id}/wallet` };
+ ev.ledger = { label: 'Custody ledger', href: `/agents/${agent.id}/wallet` };
}
if (holdsThree && agent.solana_address) {
// $THREE conviction is provable on-chain — link to this wallet's token holdings.
@@ -372,12 +372,12 @@ function buildEvidence(agent, { solRep, registry, holdsThree }) {
// The registered identity's public page is the discover detail route
// (/discover/a/:chainId/:agentId). Without a chain the record predates the
// unified deploy, so fall back to the agent profile, which mounts the
- // on-chain card. There is no /agent/:id/onchain route.
+ // on-chain card. There is no /agents/:id/onchain route.
ev.identity = {
label: 'On-chain identity',
href: agent.chain_id
? `/discover/a/${agent.chain_id}/${agent.erc8004_agent_id}`
- : `/agent/${agent.id}`,
+ : `/agents/${agent.id}`,
};
}
if (registry?.count > 0) {
@@ -399,7 +399,7 @@ function buildGuidance(result, inputs, agent) {
action: 'stop_self_dealing',
label: 'Stop tipping yourself between your own agents',
detail: `${inputs.washTipCount} wash-tip${inputs.washTipCount === 1 ? '' : 's'} were ignored. Trust only grows from independent wallets.`,
- href: `/agent/${agent.id}/wallet`,
+ href: `/agents/${agent.id}/wallet`,
});
}
if (inputs.reservesKnown && inputs.obligationsUsd > inputs.reserveUsd) {
@@ -407,7 +407,7 @@ function buildGuidance(result, inputs, agent) {
action: 'top_up_reserves',
label: 'Top up reserves to cover obligations',
detail: `Your reserves ($${round1(inputs.reserveUsd)}) are below your outstanding obligations ($${round1(inputs.obligationsUsd)}).`,
- href: `/agent/${agent.id}/wallet#reserves`,
+ href: `/agents/${agent.id}/wallet#reserves`,
});
}
if (inputs.dumpEvents > 0) {
@@ -415,7 +415,7 @@ function buildGuidance(result, inputs, agent) {
action: 'protect_supporters',
label: 'Stop dumping on your supporters',
detail: 'Large sells right after your launch hurt early buyers and lower your trading conduct.',
- href: `/agent/${agent.id}/wallet`,
+ href: `/agents/${agent.id}/wallet`,
});
}
if (inputs.threeTokens <= 0) {
@@ -423,7 +423,7 @@ function buildGuidance(result, inputs, agent) {
action: 'hold_three',
label: 'Hold $THREE to build conviction',
detail: 'Holding the platform coin over time is a real, on-chain trust signal — and it unlocks holder-only worlds and cosmetics.',
- href: `/agent/${agent.id}/wallet`,
+ href: `/agents/${agent.id}/wallet`,
});
}
if (!inputs.hasOnchainIdentity) {
@@ -443,7 +443,7 @@ function buildGuidance(result, inputs, agent) {
action: 'grow_tips',
label: 'Earn tips from real wallets',
detail: 'Trust grows fastest from many distinct funded wallets choosing to tip you.',
- href: `/agent/${agent.id}/wallet`,
+ href: `/agents/${agent.id}/wallet`,
});
}
if (inputs.tipsGivenUsd <= 0) {
@@ -451,7 +451,7 @@ function buildGuidance(result, inputs, agent) {
action: 'give_back',
label: 'Tip the agents you work with',
detail: 'Reciprocity builds standing — supporting other agents raises your generosity factor.',
- href: `/agent/${agent.id}/wallet`,
+ href: `/agents/${agent.id}/wallet`,
});
}
return tips.slice(0, 3);
diff --git a/api/agent-share.js b/api/agent-share.js
index 9edb1213b..135ba874b 100644
--- a/api/agent-share.js
+++ b/api/agent-share.js
@@ -3,11 +3,11 @@
* -------------------------------------------------
* GET /api/agent-share?id=<agentId>
*
- * Wired via vercel.json: /agent/<agentId>/share → /api/agent-share?id=$1
+ * Wired via vercel.json: /agents/<agentId>/share → /api/agent-share?id=$1
*
* Bakes Open Graph + Twitter Card + Farcaster Frame meta into <head> so social
* crawlers render a rich preview with the agent's name, avatar, and on-chain
- * status. Real browsers are JS-redirected to /agent/<agentId>.
+ * status. Real browsers are JS-redirected to /agents/<agentId>.
*
* OG image: /api/og/agent?id=<agentId> — SVG card with avatar, name, chain badge.
*/
@@ -41,7 +41,7 @@ export default wrap(async (req, res) => {
limit 1
`;
} catch {
- return redirect(res, `${origin}/agent/${encodeURIComponent(id)}`);
+ return redirect(res, `${origin}/agents/${encodeURIComponent(id)}`);
}
if (!row) return redirect(res, `${origin}/agents`);
@@ -81,10 +81,10 @@ export default wrap(async (req, res) => {
const walletShare = url.searchParams.get('wallet') === '1';
const ogImage = `${origin}/api/og/agent?id=${encodeURIComponent(id)}`;
- const pageUrl = `${origin}/agent/${encodeURIComponent(id)}/share${walletShare ? '?wallet=1' : ''}`;
+ const pageUrl = `${origin}/agents/${encodeURIComponent(id)}/share${walletShare ? '?wallet=1' : ''}`;
const deepUrl = walletShare
- ? `${origin}/agent/${encodeURIComponent(id)}/wallet`
- : `${origin}/agent/${encodeURIComponent(id)}`;
+ ? `${origin}/agents/${encodeURIComponent(id)}/wallet`
+ : `${origin}/agents/${encodeURIComponent(id)}`;
const title = walletShare
? `Tip ${name}'s wallet · 3D AI Agent · three.ws`
@@ -99,8 +99,8 @@ export default wrap(async (req, res) => {
// otherwise prefer the richer raw thumbnail when the avatar is public.
const forcedOgImage = walletShare ? ogImage : null;
- // /api/oembed (extractAgentId) only resolves the canonical /agent/:id shape —
- // not the /share or /wallet variants — so discovery is only offered here.
+ // /api/oembed (extractAgentId) only resolves the canonical /agents/:id shape,
+ // not the /share or /wallet variants, so discovery is only offered here.
const oembedJsonUrl = walletShare
? null
: `${origin}/api/oembed?url=${encodeURIComponent(deepUrl)}&format=json`;
diff --git a/api/agent/watch-wanted.js b/api/agent/watch-wanted.js
index cf7557307..16cce5e29 100644
--- a/api/agent/watch-wanted.js
+++ b/api/agent/watch-wanted.js
@@ -121,7 +121,7 @@ export default wrap(async (req, res) => {
return {
agentId: id,
name: a?.name || 'Agent',
- homeUrl: a?.home_url || `/agent/${id}`,
+ homeUrl: a?.home_url || `/agents/${id}`,
};
});
diff --git a/api/agents.js b/api/agents.js
index 3515e48b8..80e77a6c9 100644
--- a/api/agents.js
+++ b/api/agents.js
@@ -381,7 +381,7 @@ async function handleCreate(req, res) {
// Push the new agent's URL to IndexNow so Bing / Yandex discover it within
// minutes instead of waiting for the next crawl. Fire-and-forget — IndexNow
// failures must never block agent creation.
- pingIndexNow(`${env.APP_ORIGIN}/agent/${agent.id}`).catch(() => {});
+ pingIndexNow(`${env.APP_ORIGIN}/agents/${agent.id}`).catch(() => {});
// Announce the new agent on the site-wide live activity ticker — discovery +
// social proof. Fire-and-forget; never block or fail creation on the feed.
diff --git a/api/agents/_id/_sub.js b/api/agents/_id/_sub.js
index a495dc0e5..8c771e44a 100644
--- a/api/agents/_id/_sub.js
+++ b/api/agents/_id/_sub.js
@@ -439,7 +439,7 @@ export const handleManifest = wrap(async (req, res, id) => {
tags: Array.isArray(row.meta?.tags) ? row.meta.tags : [],
body: bodyUri ? { uri: bodyUri, format: row.content_type || 'gltf-binary' } : undefined,
skills: Array.isArray(row.skills) ? row.skills : [],
- homeUrl: `${origin}/agent/${row.id}`,
+ homeUrl: `${origin}/agents/${row.id}`,
registrations:
row.chain_id && row.erc8004_agent_id
? [
@@ -530,7 +530,7 @@ export const handleRegistration = wrap(async (req, res, id) => {
image,
modelUri,
modelFormat: row.content_type || 'gltf-binary',
- agentUrl: `${origin}/agent/${row.id}`,
+ agentUrl: `${origin}/agents/${row.id}`,
origin,
skills: Array.isArray(row.skills) ? row.skills : [],
erc8004:
diff --git a/api/auth/x/[action].js b/api/auth/x/[action].js
index acda3b892..579b6edb0 100644
--- a/api/auth/x/[action].js
+++ b/api/auth/x/[action].js
@@ -203,7 +203,7 @@ async function handleCallback(req, res) {
return `/settings?${q.toString()}`;
}
return stateAgentId
- ? `/agent/${encodeURIComponent(stateAgentId)}/edit?tab=social&x=${outcome}`
+ ? `/agents/${encodeURIComponent(stateAgentId)}/edit?tab=social&x=${outcome}`
: `/settings?tab=connected-accounts&x=${outcome}`;
};
const successRedirect = backTo('connected');
diff --git a/api/irl/interactions.js b/api/irl/interactions.js
index 73090bf73..6aa646b37 100644
--- a/api/irl/interactions.js
+++ b/api/irl/interactions.js
@@ -388,7 +388,7 @@ export default wrap(async (req, res) => {
pin_id: pinId,
agent_id: pin.agent_id ?? null,
message,
- link: pin.agent_id ? `/agent/${pin.agent_id}` : undefined,
+ link: pin.agent_id ? `/agents/${pin.agent_id}` : undefined,
});
notified = true;
}
diff --git a/api/launch/mm.js b/api/launch/mm.js
index 6834b8261..0c7f975df 100644
--- a/api/launch/mm.js
+++ b/api/launch/mm.js
@@ -198,7 +198,7 @@ async function handlePost(req, res, url) {
}
if (action === 'kill') {
const row = await upsertPolicy({ mint, network, agentId, userId: auth.userId, patch: { enabled: false, kill_switch: true } });
- return json(res, 200, { data: { policy: toPublicPolicy(row), withdraw_url: `/agent/${agentId}/wallet#withdraw` } });
+ return json(res, 200, { data: { policy: toPublicPolicy(row), withdraw_url: `/agents/${agentId}/wallet#withdraw` } });
}
if (action === 'withdraw') {
// The MM never holds custody, funds live in the agent wallet. Halt the
@@ -207,7 +207,7 @@ async function handlePost(req, res, url) {
return json(res, 200, {
data: {
policy: toPublicPolicy(row),
- withdraw_url: `/agent/${agentId}/wallet#withdraw`,
+ withdraw_url: `/agents/${agentId}/wallet#withdraw`,
message: 'Market-maker halted. Withdraw the remaining inventory + SOL from the agent wallet.',
},
});
@@ -239,7 +239,7 @@ async function handleDelete(req, res, url) {
if (existing.user_id !== auth.userId) return error(res, 403, 'forbidden', 'only the owner can remove this market-maker');
if (auth.session && !(await requireCsrf(req, res, auth.userId))) return;
await sql`DELETE FROM market_maker_policies WHERE id = ${existing.id}`;
- return json(res, 200, { data: { removed: true, withdraw_url: `/agent/${existing.agent_id}/wallet#withdraw` } });
+ return json(res, 200, { data: { removed: true, withdraw_url: `/agents/${existing.agent_id}/wallet#withdraw` } });
}
// ── SSE live action feed ──────────────────────────────────────────────────────
diff --git a/api/marketplace/reviews.js b/api/marketplace/reviews.js
index 16da7f4e9..79157e1dd 100644
--- a/api/marketplace/reviews.js
+++ b/api/marketplace/reviews.js
@@ -192,7 +192,7 @@ async function handleUpsert(req, res, agentId) {
agent_id: agentId,
agent_name: agent.name || null,
rating: parsed.data.rating,
- link: `/agent/${agentId}`,
+ link: `/agents/${agentId}`,
});
}
diff --git a/api/marketplace/trial-status.js b/api/marketplace/trial-status.js
index 66b2e0897..e04444b35 100644
--- a/api/marketplace/trial-status.js
+++ b/api/marketplace/trial-status.js
@@ -239,7 +239,7 @@ export async function sellerView(userId) {
// The agent editor's monetization panel is where skill prices and trial
// grants are actually set. The old `/dashboard-next/agent` target was a
// 404 on every seller row on the page.
- pricingUrl: `/agent/${r.agent_id}/edit?tab=monetization`,
+ pricingUrl: `/agents/${r.agent_id}/edit?tab=monetization`,
};
});
diff --git a/api/og/agent.js b/api/og/agent.js
index a11d2049a..9ed2bf947 100644
--- a/api/og/agent.js
+++ b/api/og/agent.js
@@ -383,7 +383,7 @@ export function renderCard({
<!-- footer -->
<rect x="0" y="588" width="1200" height="42" fill="#040408"/>
<text x="440" y="615" font-family="Inter,system-ui,sans-serif" font-size="13" font-weight="600" fill="#5b5470">Tip it · Fork it · own its wallet</text>
- <text x="1176" y="615" font-family="Inter,system-ui,sans-serif" font-size="13" fill="#5b5470" text-anchor="end">three.ws/agent/${x(id)}</text>
+ <text x="1176" y="615" font-family="Inter,system-ui,sans-serif" font-size="13" fill="#5b5470" text-anchor="end">three.ws/agents/${x(id)}</text>
</svg>`;
}
diff --git a/api/pulse.js b/api/pulse.js
index 340ac6c12..b0c5b3e59 100644
--- a/api/pulse.js
+++ b/api/pulse.js
@@ -114,7 +114,7 @@ function shapeEvent(r) {
? {
id: r.agent_id,
name: r.agent_name || 'Agent',
- url: `/agent/${r.agent_id}`,
+ url: `/agents/${r.agent_id}`,
avatar_thumbnail_url: r2Url(r.thumb_key, avatarPublic),
solana_address: r.agent_addr || null,
solana_vanity_prefix: r.vanity_prefix || null,
@@ -488,7 +488,7 @@ async function handleGraph(network, windowKey) {
kind: agent ? 'agent' : 'wallet',
agent_id: agent?.id || null,
name: agent?.name || shortAddr(addr),
- url: agent ? `/agent/${agent.id}` : null,
+ url: agent ? `/agents/${agent.id}` : null,
avatar_thumbnail_url: agent
? r2Url(agent.thumb_key, agent.avatar_vis === 'public' || agent.avatar_vis === 'unlisted')
: null,
@@ -744,7 +744,7 @@ async function handleStats(network) {
const shapeAgent = (r) => ({
id: r.agent_id,
name: r.agent_name || 'Agent',
- url: `/agent/${r.agent_id}`,
+ url: `/agents/${r.agent_id}`,
avatar_thumbnail_url: r2Url(r.thumb_key, r.avatar_vis === 'public' || r.avatar_vis === 'unlisted'),
solana_address: r.agent_addr || null,
tip_count: r.tip_count != null ? Number(r.tip_count) : undefined,
@@ -1027,7 +1027,7 @@ async function handleMarketplace(network) {
top_sellers: topSellers.map((r) => ({
id: r.agent_id,
name: r.agent_name || 'Agent',
- url: `/agent/${r.agent_id}`,
+ url: `/agents/${r.agent_id}`,
avatar_thumbnail_url: r2Url(r.thumb_key, r.avatar_vis === 'public' || r.avatar_vis === 'unlisted'),
solana_address: r.agent_addr || null,
sales: Number(r.sales || 0),
@@ -1158,7 +1158,7 @@ async function handleTrading(network) {
top_traders: topTraders.map((r) => ({
id: r.agent_id,
name: r.agent_name || 'Agent',
- url: `/agent/${r.agent_id}`,
+ url: `/agents/${r.agent_id}`,
avatar_thumbnail_url: r2Url(r.thumb_key, r.avatar_vis === 'public' || r.avatar_vis === 'unlisted'),
solana_address: r.agent_addr || null,
trades: Number(r.trades || 0),
diff --git a/api/pump/[action].js b/api/pump/[action].js
index 274e56035..36f8b05c3 100644
--- a/api/pump/[action].js
+++ b/api/pump/[action].js
@@ -1048,7 +1048,7 @@ async function handleBuildMetadata(req, res) {
// ── Build metadata JSON via the canonical three.ws brand builder ─────────
// This stamps createdOn=https://three.ws plus the Platform/Launchpad
// attributes that explorers and launchpad aggregators read for attribution.
- const agentHomeUrl = body.agent_id ? `${env.APP_ORIGIN}/agent/${body.agent_id}` : undefined;
+ const agentHomeUrl = body.agent_id ? `${env.APP_ORIGIN}/agents/${body.agent_id}` : undefined;
const metadata = buildTokenMetadata({
name: body.name,
symbol: body.symbol,
diff --git a/api/reputation/leaderboard.js b/api/reputation/leaderboard.js
index c8910d324..15e680c97 100644
--- a/api/reputation/leaderboard.js
+++ b/api/reputation/leaderboard.js
@@ -112,8 +112,8 @@ export default wrap(async (req, res) => {
tier: rep.tier,
tier_label: rep.tierLabel,
totals: rep.totals,
- agent_url: `https://three.ws/agent/${encodeURIComponent(id)}`,
- breakdown_url: `https://three.ws/agent/${encodeURIComponent(id)}/wallet#reputation`,
+ agent_url: `https://three.ws/agents/${encodeURIComponent(id)}`,
+ breakdown_url: `https://three.ws/agents/${encodeURIComponent(id)}/wallet#reputation`,
};
});
diff --git a/api/skills/review.js b/api/skills/review.js
index ef2e02699..70affb214 100644
--- a/api/skills/review.js
+++ b/api/skills/review.js
@@ -233,7 +233,7 @@ async function handleUpsert(req, res) {
agent_name: agent.name || null,
skill,
rating,
- link: `/agent/${agentId}`,
+ link: `/agents/${agentId}`,
});
}
diff --git a/api/wk.js b/api/wk.js
index 9eb779c15..74f9d9f77 100644
--- a/api/wk.js
+++ b/api/wk.js
@@ -1212,7 +1212,7 @@ const REST_OUTPUT_EXAMPLES = Object.freeze({
},
evidence: [
{ kind: 'solana_token', ref: 'https://solscan.io/token/FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump' },
- { kind: 'threews_agent', ref: '/agent/7b9a4f30-2d11-4e2d-9d12-1cdb1f6a3a55' },
+ { kind: 'threews_agent', ref: '/agents/7b9a4f30-2d11-4e2d-9d12-1cdb1f6a3a55' },
],
caveats: [],
ts: '2026-07-07T00:00:00Z',
diff --git a/api/x402/agent-reputation.js b/api/x402/agent-reputation.js
index 9c9c6e564..ee0cea0c5 100644
--- a/api/x402/agent-reputation.js
+++ b/api/x402/agent-reputation.js
@@ -90,7 +90,7 @@ const OUTPUT_EXAMPLE = {
},
evidence: [
{ kind: 'solana_token', ref: 'https://solscan.io/token/FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump' },
- { kind: 'threews_agent', ref: '/agent/7b9a4f30-2d11-4e2d-9d12-1cdb1f6a3a55' },
+ { kind: 'threews_agent', ref: '/agents/7b9a4f30-2d11-4e2d-9d12-1cdb1f6a3a55' },
],
caveats: [],
ts: '2026-07-07T00:00:00Z',
diff --git a/pages/create-next.html b/pages/create-next.html
index 926f94b1e..c728a1a4e 100644
--- a/pages/create-next.html
+++ b/pages/create-next.html
@@ -504,7 +504,7 @@
if (!agentId) return;
const snippet =
`<iframe\n` +
- ` src="${origin}/agent/${agentId}/embed"\n` +
+ ` src="${origin}/agents/${agentId}/embed"\n` +
` width="420" height="640"\n` +
` title="three.ws agent"\n` +
` style="border:0;border-radius:12px"\n` +
diff --git a/pages/mint-success.html b/pages/mint-success.html
index 512d8bcbd..e6bbe8f27 100644
--- a/pages/mint-success.html
+++ b/pages/mint-success.html
@@ -289,9 +289,9 @@
document.title = `${name} deployed · three.ws`;
// CTA links
- document.getElementById('btnView').href = `/agent/${encodeURIComponent(agentId)}`;
+ document.getElementById('btnView').href = `/agents/${encodeURIComponent(agentId)}`;
document.getElementById('btnShare').addEventListener('click', () => {
- const url = `https://three.ws/agent/${encodeURIComponent(agentId)}`;
+ const url = `https://three.ws/agents/${encodeURIComponent(agentId)}`;
const text = `Just deployed my 3D AI Agent on-chain.\n\n${name} is live on ${chainDisplayName(chain)}.\n\n${url}`;
if (navigator.share) {
navigator.share({ title: `${name} — deployed on three.ws`, text, url }).catch(() => {});
diff --git a/pages/pump-dashboard.html b/pages/pump-dashboard.html
index 787eb951d..44dff0dce 100644
--- a/pages/pump-dashboard.html
+++ b/pages/pump-dashboard.html
@@ -2183,7 +2183,7 @@
descEl.textContent = agent.bio || 'A featured 3D agent on three.ws.';
linkEl.onclick = null;
linkEl.textContent = 'View profile';
- linkEl.href = agent.detail_url || '/agent/' + agent.id;
+ linkEl.href = agent.detail_url || '/agents/' + agent.id;
if (statsEl) {
statsEl.hidden = false;
statsEl.innerHTML = [
@@ -2409,8 +2409,8 @@
<td>${escapeHtml((a.description || '').slice(0, 80))}</td>
<td class="pd-mono">${created}</td>
<td>
- <a class="pd-btn pd-btn-sm" href="/agent/${escapeHtml(a.id)}/edit">Edit</a>
- <a class="pd-btn pd-btn-sm" href="/agent/${escapeHtml(a.id)}">Open</a>
+ <a class="pd-btn pd-btn-sm" href="/agents/${escapeHtml(a.id)}/edit">Edit</a>
+ <a class="pd-btn pd-btn-sm" href="/agents/${escapeHtml(a.id)}">Open</a>
<button class="pd-btn pd-btn-sm is-danger" type="button" data-delete-agent="${escapeHtml(a.id)}" data-agent-name="${escapeHtml(a.name || a.id)}">Delete</button>
</td>
</tr>`;
diff --git a/public/agent-edit/edit.js b/public/agent-edit/edit.js
index 07f660a00..32a7c3b12 100644
--- a/public/agent-edit/edit.js
+++ b/public/agent-edit/edit.js
@@ -1,4 +1,4 @@
-// Agent persona editor — /agent/:id/edit
+// Agent persona editor: /agents/:id/edit
// Native DOM, no framework.
const agentId = location.pathname.split('/').filter(Boolean)[1];
@@ -63,7 +63,7 @@ async function main() {
document.getElementById('layout').style.display = '';
document.getElementById('header-title').textContent = `Edit — ${agent.name}`;
const viewLink = document.getElementById('view-link');
- viewLink.href = `/agent/${agentId}`;
+ viewLink.href = `/agents/${agentId}`;
loadPreview();
renderTemplates();
@@ -84,7 +84,7 @@ function showForbidden() {
function loadPreview() {
const frame = document.getElementById('preview-frame');
const loading = document.getElementById('preview-loading');
- frame.src = `/agent/${agentId}/embed`;
+ frame.src = `/agents/${agentId}/embed`;
frame.addEventListener(
'load',
() => {
@@ -100,7 +100,7 @@ function reloadPreview() {
const loading = document.getElementById('preview-loading');
frame.style.display = 'none';
loading.style.display = 'grid';
- frame.src = `/agent/${agentId}/embed?_t=${Date.now()}`;
+ frame.src = `/agents/${agentId}/embed?_t=${Date.now()}`;
frame.addEventListener(
'load',
() => {
diff --git a/public/avatar-actions.js b/public/avatar-actions.js
index c30b51924..d5906c8b8 100644
--- a/public/avatar-actions.js
+++ b/public/avatar-actions.js
@@ -304,7 +304,7 @@ class AvatarActions extends HTMLElement {
<button class="copy" data-copy="${sol}" title="Copy SOL address">Copy</button>
${solVanity
? `<span title="Custom vanity address" style="${VTAG}">vanity</span>`
- : `<a class="manage" href="/agent/${ag.id}/wallet#vanity" title="Grind a custom vanity address">✦ Vanity</a>`}
+ : `<a class="manage" href="/agents/${ag.id}/wallet#vanity" title="Grind a custom vanity address">✦ Vanity</a>`}
<span class="bal" data-bal="sol"></span></div>`
: '';
return `<div class="wallet">
@@ -477,7 +477,7 @@ class AvatarActions extends HTMLElement {
if (!agentId) return;
const panel = (typeof window !== 'undefined') && window.twsForkRoyalty?.openRoyaltyPanel;
if (panel) panel(agentId, { name: this._avatar?.name || 'this agent' });
- else window.location.href = `/agent/${agentId}#royalties`;
+ else window.location.href = `/agents/${agentId}#royalties`;
}
// Inline royalty-consent dialog (self-contained — no cross-bundle import).
diff --git a/public/cz/cz.js b/public/cz/cz.js
index b203426fb..49a51f581 100644
--- a/public/cz/cz.js
+++ b/public/cz/cz.js
@@ -103,7 +103,7 @@ function showSuccess() {
const origin = location.origin;
snippetScript.textContent = `<script type="module"\n src="${origin}/agent-3d/latest/agent-3d.js">\n<\/script>`;
snippetTag.textContent = `<agent-3d agent-id="${AGENT_ID}" kiosk></agent-3d>`;
- snippetIframe.textContent = `<iframe\n src="${origin}/agent/${AGENT_ID}/embed"\n allow="microphone"\n width="400" height="600">\n</iframe>`;
+ snippetIframe.textContent = `<iframe\n src="${origin}/agents/${AGENT_ID}/embed"\n allow="microphone"\n width="400" height="600">\n</iframe>`;
show(stepSuccess);
}
diff --git a/public/dashboard/embed-policy.html b/public/dashboard/embed-policy.html
index 77832d18d..4c29c24a2 100644
--- a/public/dashboard/embed-policy.html
+++ b/public/dashboard/embed-policy.html
@@ -290,7 +290,7 @@
><input type="checkbox" id="surf-iframe" />
<span
data-i18n-html="dashboard_embed_policy.iframe"><strong>iframe</strong> —
- <code>&lt;iframe src="/agent/:id/embed"&gt;</code></span
+ <code>&lt;iframe src="/agents/:id/embed"&gt;</code></span
></label
>
<label class="check"
@@ -716,7 +716,7 @@
await pickAgent();
return;
}
- urlEl.textContent = `/agent/${agentId}/embed`;
+ urlEl.textContent = `/agents/${agentId}/embed`;
await loadAgent();
await loadPolicy();
})();
diff --git a/public/dashboard/tokens.html b/public/dashboard/tokens.html
index 938568807..0d1c14eb4 100644
--- a/public/dashboard/tokens.html
+++ b/public/dashboard/tokens.html
@@ -77,7 +77,7 @@
Pump.fun studio.
</p>
<div class="dash-row">
- <a class="dash-btn primary" href="/agent/${encodeURIComponent(agentId)}">Open agent</a>
+ <a class="dash-btn primary" href="/agents/${encodeURIComponent(agentId)}">Open agent</a>
<a class="dash-btn" href="/dashboard/agent-pumpfun">Pump.fun studio</a>
</div>
</div>`;
diff --git a/public/embed-example.html b/public/embed-example.html
index e14ff5bd5..7b45bcc74 100644
--- a/public/embed-example.html
+++ b/public/embed-example.html
@@ -40,7 +40,7 @@
<h1 data-i18n="embed_example.3d_agent_embed_example">3D-Agent Embed Example</h1>
<p data-i18n="embed_example.copy_this_html_snippet_to_embed_an">Copy this HTML snippet to embed an agent on your website.</p>
<textarea readonly rows="4"><iframe
- src="https://three.ws/agent/{YOUR_AGENT_ID}/embed"
+ src="https://three.ws/agents/{YOUR_AGENT_ID}/embed"
width="100%"
height="100%"
frameborder="0"
@@ -49,7 +49,7 @@
<h2 data-i18n="embed_example.live_preview">Live Preview</h2>
<div class="container">
<iframe
- src="https://three.ws/agent/d1b244de-9728-4a96-a68f-a212f8666579/embed"
+ src="https://three.ws/agents/d1b244de-9728-4a96-a68f-a212f8666579/embed"
width="100%"
height="100%"
frameborder="0"
diff --git a/public/eth-vanity.html b/public/eth-vanity.html
index 7cd50c594..391c33c8e 100644
--- a/public/eth-vanity.html
+++ b/public/eth-vanity.html
@@ -821,7 +821,7 @@
<div class="card" style="margin-top:1rem;background:rgba(74,222,128,0.06);border-color:rgba(74,222,128,0.2)">
<h2 style="color:var(--ok-fg)">✓ Assigned to ${esc(agentName)}</h2>
<p class="desc" style="margin:0">
- <a href="/agent/${esc(sel.value)}" style="color:#ffffff">Open agent →</a> &nbsp;
+ <a href="/agents/${esc(sel.value)}" style="color:#ffffff">Open agent →</a> &nbsp;
The CREATE2 record is saved. Deploy it from the agent home page when you're ready.
</p>
</div>`;
diff --git a/public/examples.js b/public/examples.js
index b2b8bf9cf..eff52cbac 100644
--- a/public/examples.js
+++ b/public/examples.js
@@ -186,7 +186,7 @@ const EXAMPLES = [
</head>
<body>
<iframe
- src="https://three.ws/agent/demo/embed"
+ src="https://three.ws/agents/demo/embed"
width="400"
height="560"
frameborder="0"
diff --git a/public/first-meet/first-meet.js b/public/first-meet/first-meet.js
index cb43aa990..3c2bef2d9 100644
--- a/public/first-meet/first-meet.js
+++ b/public/first-meet/first-meet.js
@@ -170,7 +170,7 @@ function wireStepButtons() {
return;
}
if (state.agent) {
- window.location.href = `/agent/${state.agent.id}`;
+ window.location.href = `/agents/${state.agent.id}`;
}
});
document.getElementById('done-dashboard').addEventListener('click', () => {
diff --git a/public/my-agents/index.html b/public/my-agents/index.html
index f31e5ab89..5e2f83ca4 100644
--- a/public/my-agents/index.html
+++ b/public/my-agents/index.html
@@ -202,7 +202,7 @@
root.innerHTML = `<div class="ag-list">${agents.map((a) => {
const oc = onchain(a);
- const agentUrl = a.home_url || `/agent/${a.id}`;
+ const agentUrl = a.home_url || `/agents/${a.id}`;
const topSkills = (a.skills || []).slice(0, 4);
return `<div class="ag-row">
<div>
@@ -219,8 +219,8 @@
</div>
<div class="ag-actions">
<a class="ag-action primary" href="${esc(agentUrl)}">View</a>
- <a class="ag-action" href="/agent/${esc(a.id)}/edit">Edit</a>
- ${!oc ? `<a class="ag-action" href="/agent/${esc(a.id)}/edit" style="color:var(--gold);border-color:color-mix(in srgb, var(--gold) 28%, var(--line))">Deploy</a>` : ''}
+ <a class="ag-action" href="/agents/${esc(a.id)}/edit">Edit</a>
+ ${!oc ? `<a class="ag-action" href="/agents/${esc(a.id)}/edit" style="color:var(--gold);border-color:color-mix(in srgb, var(--gold) 28%, var(--line))">Deploy</a>` : ''}
</div>
</div>`;
}).join('')}</div>`;
diff --git a/public/notifications.js b/public/notifications.js
index b4d050d11..a9f1c3590 100644
--- a/public/notifications.js
+++ b/public/notifications.js
@@ -122,7 +122,7 @@
// of strings / <b> nodes built with textContent only (XSS-safe). ─────────────
function describe(n) {
var p = n.payload || {};
- var agentHref = p.agent_id ? '/agent/' + encodeURIComponent(p.agent_id) : '/dashboard';
+ var agentHref = p.agent_id ? '/agents/' + encodeURIComponent(p.agent_id) : '/dashboard';
switch (n.type) {
case 'payment_received': {
diff --git a/public/reputation/market/market.js b/public/reputation/market/market.js
index 2847ccc36..4d0a8b541 100644
--- a/public/reputation/market/market.js
+++ b/public/reputation/market/market.js
@@ -150,7 +150,7 @@ function agentRow(agent, maxWeight) {
const weight = Number(agent.epoch_weight) || 0;
const bar = maxWeight > 0 ? Math.max(2, Math.round((weight / maxWeight) * 100)) : 0;
const label = agent.name
- ? `<a class="rsm-agent-name" href="/agent/${encodeURIComponent(agent.agent_id)}">${esc(agent.name)}</a>`
+ ? `<a class="rsm-agent-name" href="/agents/${encodeURIComponent(agent.agent_id)}">${esc(agent.name)}</a>`
: '<span class="rsm-agent-name">Unnamed agent</span>';
const apr = Number(agent.realized_apr) || 0;
return `
@@ -262,7 +262,7 @@ function positionCard(p) {
const chip = p.status === 'open' ? 'open' : p.status === 'settling' ? 'settling' : 'closed';
const earnings = BigInt(p.earnings_lamports);
const label = p.name
- ? `<a href="/agent/${encodeURIComponent(p.agent_id)}">${esc(p.name)}</a>`
+ ? `<a href="/agents/${encodeURIComponent(p.agent_id)}">${esc(p.name)}</a>`
: esc(short(p.agent_asset));
return `
<article class="rsm-card">
diff --git a/public/vanity-wallet.html b/public/vanity-wallet.html
index b717cb244..86d800dbf 100644
--- a/public/vanity-wallet.html
+++ b/public/vanity-wallet.html
@@ -999,7 +999,7 @@
<div class="assigned-ok">
✦ Assigned to <strong>${esc(agentName)}</strong>.
The agent can now sign Solana transactions with <code style="font-family:ui-monospace,monospace">${esc(prefix || addr.slice(0, 4))}…${esc(suffix || addr.slice(-4))}</code>.
- <a href="/agent/${esc(sel.value)}" style="color:inherit;text-decoration:underline">Open agent →</a>
+ <a href="/agents/${esc(sel.value)}" style="color:inherit;text-decoration:underline">Open agent →</a>
</div>`;
} catch (e) {
status.innerHTML = `<span style="color:var(--bad-fg)">Network error: ${esc(e.message)}</span>`;
diff --git a/src/agent-detail-market.js b/src/agent-detail-market.js
index e07af90c6..2702d9415 100644
--- a/src/agent-detail-market.js
+++ b/src/agent-detail-market.js
@@ -635,7 +635,7 @@ function renderPricing(a) {
let pricingDeepLinkHandled = false;
/**
- * Honour `/agent/:id?skill=<name>#pricing`, the link every conversion surface
+ * Honour `/agents/:id?skill=<name>#pricing`, the link every conversion surface
* (notably the Buy CTA on /conversions) sends a buyer here with. Without it the
* buyer lands at the top of an agent selling a dozen skills and has to find the
* one their trial just ran out on.
@@ -913,7 +913,7 @@ export function renderEmbed(a) {
const agentId = a.id;
const glbUrl = a.avatar_glb_url || '';
const embedPageUrl = `${location.origin}/agents/${agentId}`;
- const iframeSrc = `/agent/${agentId}/embed`;
+ const iframeSrc = `/agents/${agentId}/embed`;
const wcSnippet = glbUrl
? `<script type="module" src="https://three.ws/dist-lib/agent-3d.js"><\/script>\n<agent-3d\n src="${glbUrl}"\n agent-id="${agentId}"\n style="width:480px;height:480px"\n></agent-3d>`
diff --git a/src/agent-embed-modal.js b/src/agent-embed-modal.js
index 6079ca00d..a9b9ab364 100644
--- a/src/agent-embed-modal.js
+++ b/src/agent-embed-modal.js
@@ -4,10 +4,10 @@ import { track, trackError, ANALYTICS_EVENTS } from './analytics.js';
* Embed modal for the agent hub page.
*
* Offers four embed kinds, all generating real, copy-pasteable snippets:
- * • iframe — chat-style embed (/agent/:id/embed)
- * • <agent-3d> — web component wrapper
- * • SDK — iframe + Agent3D bridge for programmatic control
- * • walking — a live, walking 3D avatar of THIS agent
+ * • iframe : chat-style embed (/agents/:id/embed)
+ * • <agent-3d> : web component wrapper
+ * • SDK : iframe + Agent3D bridge for programmatic control
+ * • walking : a live, walking 3D avatar of THIS agent
* (/walk-embed?agent=:id) with joystick/keyboard controls,
* a selectable environment, autoplay, and a background.
*
@@ -190,7 +190,7 @@ export class AgentEmbedModal {
this._onKey = this._onKey.bind(this);
this._w = 420;
this._h = 520;
- // Which snippet kinds we've already reported for this agent — instance-level
+ // Which snippet kinds we've already reported for this agent : instance-level
// so closing and reopening the modal doesn't re-fire EMBED_GENERATED.
this._embeddedKinds = new Set();
// Walking-mode options, mutated live by the option controls.
@@ -235,7 +235,7 @@ export class AgentEmbedModal {
return {
iframe:
`<iframe\n` +
- ` src="${origin}/agent/${id}/embed"\n` +
+ ` src="${origin}/agents/${id}/embed"\n` +
` width="${w}" height="${h}"\n` +
` title="three.ws agent"\n` +
` style="border:0;border-radius:12px"\n` +
@@ -255,7 +255,7 @@ export class AgentEmbedModal {
`<script src="${origin}/embed-sdk.js"><\/script>\n` +
`<iframe\n` +
` id="agent-frame"\n` +
- ` src="${origin}/agent/${id}/embed"\n` +
+ ` src="${origin}/agents/${id}/embed"\n` +
` width="${w}" height="${h}"\n` +
` title="three.ws agent"\n` +
` style="border:0;border-radius:12px"\n` +
@@ -378,7 +378,7 @@ export class AgentEmbedModal {
<pre class="aem-snippet" id="aem-snippet-text"></pre>
<button class="aem-copy" id="aem-copy-btn">copy</button>
</div>
- <p class="aem-note" id="aem-note">Free to embed — no wallet or on-chain deployment required.</p>
+ <p class="aem-note" id="aem-note">Free to embed : no wallet or on-chain deployment required.</p>
</div>
</div>
`;
@@ -427,7 +427,7 @@ export class AgentEmbedModal {
noteEl.textContent =
current === 'walking'
? 'Drops a live, walking 3D avatar of this agent on any site. Free to embed.'
- : 'Free to embed — no wallet or on-chain deployment required.';
+ : 'Free to embed : no wallet or on-chain deployment required.';
};
const setActiveTab = (kind) => {
diff --git a/src/agent-home.js b/src/agent-home.js
index d11ffde35..50b28ca25 100644
--- a/src/agent-home.js
+++ b/src/agent-home.js
@@ -5,7 +5,7 @@
* A *place* — somewhere you can go to see the agent, its history, its skills.
*
* Every agent deserves an address. This renders it.
- * Embeddable anywhere: main page identity card, /agent/:id home page.
+ * Embeddable anywhere: main page identity card, /agents/:id home page.
*/
import { apiFetch } from './api.js';
diff --git a/src/agent-hub-actions.js b/src/agent-hub-actions.js
index 4dae33f68..ae46a5160 100644
--- a/src/agent-hub-actions.js
+++ b/src/agent-hub-actions.js
@@ -1,5 +1,5 @@
/**
- * Hub actions row for the /agent/:id page.
+ * Hub actions row for the /agents/:id page.
* Renders four CTAs (Customize, Embed, Deploy on-chain, Edit avatar)
* into the agent-home-panel, above the timeline.
*
@@ -118,9 +118,9 @@ export function renderHubActions(panel, identity, rawAgent) {
});
}
- // Edit avatar → /agent/:id/edit
+ // Edit avatar → /agents/:id/edit
row.querySelector('#hub-edit').addEventListener('click', () => {
- location.href = `/agent/${agentId}/edit`;
+ location.href = `/agents/${agentId}/edit`;
});
// Insert above the timeline (but below identity card + skills)
diff --git a/src/agent-identity.js b/src/agent-identity.js
index aa88c4797..93620593f 100644
--- a/src/agent-identity.js
+++ b/src/agent-identity.js
@@ -4,7 +4,7 @@
* Every agent deserves a body, a place, a name, and a history.
* This module is that. It persists to localStorage + backend,
* links to an ERC-8004 on-chain presence, and maintains a signed
- * action log — the agent's provenance trail.
+ * action log : the agent's provenance trail.
*
* Think of it as the agent's passport + diary.
*/
@@ -17,7 +17,7 @@ const STORAGE_KEY = 'agent_identity';
// All /api traffic goes through apiFetch (src/api.js): it issues a fresh
// single-use CSRF token for every mutation, carries the session cookie, and
// retries transient 5xx on safe methods. We pass allowAnonymous:true on every
-// call — this module routinely runs for signed-out widget visitors, and a 401
+// call : this module routinely runs for signed-out widget visitors, and a 401
// must surface as "no backend identity", never hijack the page to /login.
const ANON = { allowAnonymous: true };
@@ -26,14 +26,14 @@ const ANON = { allowAnonymous: true };
* @property {string} id
* @property {string} name
* @property {string} [description]
- * @property {string} [avatarId] — R2 avatar UUID
- * @property {string} [homeUrl] — /agent/:id
+ * @property {string} [avatarId] : R2 avatar UUID
+ * @property {string} [homeUrl] : /agents/:id
* @property {string} [walletAddress]
* @property {number} [chainId]
- * @property {string[]} skills — enabled skill names
+ * @property {string[]} skills : enabled skill names
* @property {Object} meta
* @property {number} createdAt
- * @property {boolean} isRegistered — ERC-8004 on-chain
+ * @property {boolean} isRegistered : ERC-8004 on-chain
*/
export class AgentIdentity {
@@ -76,7 +76,7 @@ export class AgentIdentity {
return this._record?.avatarId || null;
}
get homeUrl() {
- return this._record?.homeUrl || (this.id ? `/agent/${this.id}` : null);
+ return this._record?.homeUrl || (this.id ? `/agents/${this.id}` : null);
}
get walletAddress() {
return this._record?.walletAddress || null;
@@ -158,7 +158,7 @@ export class AgentIdentity {
* Studio store, which needs optimistic updates + rollback + updated_at conflict
* reconciliation that `save()` can't express) keep this identity + its
* localStorage cache coherent with what the server stored. Returns the record.
- * @param {Object} apiRecord — a decorated agent record from /api/agents/:id
+ * @param {Object} apiRecord : a decorated agent record from /api/agents/:id
*/
applyServerRecord(apiRecord) {
if (!apiRecord) return this._record;
@@ -196,12 +196,12 @@ export class AgentIdentity {
/**
* Append an action to the agent's signed history.
- * Fire-and-forget — never blocks the caller.
+ * Fire-and-forget : never blocks the caller.
* @param {import('./agent-protocol.js').ActionPayload} action
*/
async recordAction(action) {
- if (!this._backendConfirmed) return; // no session — skip to avoid 401 noise
- if (!this._owned) return; // viewing someone else's agent — backend would 403
+ if (!this._backendConfirmed) return; // no session : skip to avoid 401 noise
+ if (!this._owned) return; // viewing someone else's agent : backend would 403
try {
await apiFetch('/api/agent-actions', {
method: 'POST',
@@ -214,7 +214,7 @@ export class AgentIdentity {
source_skill: action.sourceSkill || null,
}),
});
- } catch {} // non-critical — fire-and-forget
+ } catch {} // non-critical : fire-and-forget
}
/**
@@ -223,7 +223,7 @@ export class AgentIdentity {
* @returns {Promise<Object[]>}
*/
async getActionHistory({ limit = 50, cursor } = {}) {
- if (!this._owned) return []; // action log is owner-only — backend returns 403 otherwise
+ if (!this._owned) return []; // action log is owner-only : backend returns 403 otherwise
try {
const params = new URLSearchParams({ agent_id: this.id, limit: String(limit) });
if (cursor) params.set('cursor', cursor);
@@ -299,14 +299,14 @@ export class AgentIdentity {
if (resp.ok) {
const { agent } = await resp.json();
- // Server returns { agent: null } for anonymous /me — treat as
+ // Server returns { agent: null } for anonymous /me : treat as
// "no server identity" and fall through to local-only.
if (agent) {
this._record = _normalise(agent);
this._agentId = this._record.id;
this._loaded = true;
this._backendConfirmed = true;
- // `/api/agents/:id` is a public read — it confirms the agent
+ // `/api/agents/:id` is a public read : it confirms the agent
// EXISTS, not that we own it. Owner-only fields (is_owner) tell
// us whether the signed-in session may write to its action log.
this._owned = agent.is_owner === true;
@@ -314,7 +314,7 @@ export class AgentIdentity {
if (!this.memory) {
this.memory = new AgentMemory(this._record.id, { backendSync: true, embedFn: _makeEmbedFn(this._record.id) });
} else {
- // Agent confirmed in backend — enable sync and pull latest
+ // Agent confirmed in backend : enable sync and pull latest
this.memory.backendSync = true;
this.memory._syncFromBackend();
}
@@ -333,7 +333,7 @@ export class AgentIdentity {
this.memory = new AgentMemory(this._agentId, { backendSync: false, embedFn: _makeEmbedFn(this._agentId) });
}
} catch {
- // Offline — use local record if we have one
+ // Offline : use local record if we have one
if (!this._record) {
this._record = _makeDefault(this._agentId);
this._agentId = this._record.id;
@@ -394,7 +394,7 @@ function _makeEmbedFn(agentId) {
// The endpoint serves a free-first provider chain, so the model can
// differ between calls (NIM up vs. fallen back to Voyage). Pass the
// model through: AgentMemory only cosine-compares vectors from the
- // same model — different models are different vector spaces.
+ // same model : different models are different vector spaces.
const { embedding, model } = await resp.json();
return { vector: embedding, model: model || null };
};
@@ -431,14 +431,14 @@ function _normalise(apiRecord) {
name: apiRecord.name || 'Agent',
description: apiRecord.description || '',
avatarId: apiRecord.avatar_id || apiRecord.avatarId || null,
- homeUrl: apiRecord.home_url || apiRecord.homeUrl || `/agent/${apiRecord.id}`,
+ homeUrl: apiRecord.home_url || apiRecord.homeUrl || `/agents/${apiRecord.id}`,
walletAddress: apiRecord.wallet_address || apiRecord.walletAddress || null,
chainId: apiRecord.chain_id || apiRecord.chainId || null,
skills: apiRecord.skills || [],
meta: apiRecord.meta || {},
// Carried through for the Agent Studio store (P0): the compiled Brain
// persona and the server's authoritative update timestamp (used for
- // optimistic-write reconciliation). Owner-only on the wire — null for visitors.
+ // optimistic-write reconciliation). Owner-only on the wire : null for visitors.
persona_prompt: apiRecord.persona_prompt ?? null,
updated_at: apiRecord.updated_at || apiRecord.updatedAt || null,
createdAt: apiRecord.created_at
@@ -455,7 +455,7 @@ function _normalise(apiRecord) {
apiRecord.meta?.onchain,
),
// Server decorates owner-only fields (user_id, wallet_address, system_prompt,
- // etc.) only when the requester owns the agent — see api/agents.js decorate().
+ // etc.) only when the requester owns the agent : see api/agents.js decorate().
// Use user_id presence as the canonical owner signal so visitor flows don't
// trigger owner-only requests (e.g. /solana, /eth-vanity) and get 401s.
isOwner: typeof apiRecord.isOwner === 'boolean'
diff --git a/src/agent-picker.js b/src/agent-picker.js
index 43e67f445..35493be2f 100644
--- a/src/agent-picker.js
+++ b/src/agent-picker.js
@@ -502,7 +502,7 @@ export class AgentPicker {
// Profile link
this._els.previewProfile.hidden = false;
- this._els.previewProfile.href = a.home_url || `/agent/${a.id}`;
+ this._els.previewProfile.href = a.home_url || `/agents/${a.id}`;
// CTA
this._els.cta.disabled = false;
diff --git a/src/agent-wallet-hub/index.js b/src/agent-wallet-hub/index.js
index edcada8b6..b46719bc6 100644
--- a/src/agent-wallet-hub/index.js
+++ b/src/agent-wallet-hub/index.js
@@ -13,7 +13,7 @@
* shell never hardcodes a tab list and a surface is a single-file change.
*
* Reachable from the agent profile and the create-agent success screen as
- * `/agent/:id/wallet` (or `?id=`). Owner sees management tabs; a visitor gets a
+ * `/agents/:id/wallet` (or `?id=`). Owner sees management tabs; a visitor gets a
* read-only view (Balance + Deposit only).
*/
@@ -190,7 +190,7 @@ export function mountAgentWalletHub({ mount, agent, initialTab, onNetworkChange
(tabs[0]?.id ?? null);
const ready = !!(agent.walletReady ?? agent.wallet_ready);
- const profileUrl = agent.home_url || `/agent/${agent.id}`;
+ const profileUrl = agent.home_url || `/agents/${agent.id}`;
mount.innerHTML = `
<section class="awh" aria-label="Agent wallet">
diff --git a/src/agent-wallet-hub/tabs/earn.js b/src/agent-wallet-hub/tabs/earn.js
index 72437c185..dd2fbceae 100644
--- a/src/agent-wallet-hub/tabs/earn.js
+++ b/src/agent-wallet-hub/tabs/earn.js
@@ -284,7 +284,7 @@ registerWalletTab({
if (!skills.length) {
h.innerHTML = `<h2 class="awh-card-h">Earning engine</h2>
<div class="awh-earn-empty"><strong>No skills to price yet.</strong>Add skills to this agent, then set a price so other people — and other agents — can pay to use them.</div>
- <div class="awh-earn-save-row"><a class="awh-earn-link" href="/agent/${escapeHtml(ctx.agentId)}/edit#skills">Add skills →</a></div>`;
+ <div class="awh-earn-save-row"><a class="awh-earn-link" href="/agents/${escapeHtml(ctx.agentId)}/edit#skills">Add skills →</a></div>`;
return;
}
if (!state.pricingLoaded) {
@@ -309,7 +309,7 @@ registerWalletTab({
<ul class="awh-sk-list">${rows}</ul>
<div class="awh-earn-save-row">
<button class="awh-btn awh-btn--primary" type="button" data-act="save-prices" ${state.saving ? 'disabled' : ''}>${state.saving ? 'Saving…' : 'Save prices'}</button>
- <a class="awh-earn-link" href="/agent/${escapeHtml(ctx.agentId)}/edit#monetize">Trials, time-passes & pay-what-you-want →</a>
+ <a class="awh-earn-link" href="/agents/${escapeHtml(ctx.agentId)}/edit#monetize">Trials, time-passes & pay-what-you-want →</a>
${state.saveMsg ? `<span class="msg ${state.saveOk ? 'ok' : 'err'}">${escapeHtml(state.saveMsg)}</span>` : ''}
</div>`;
}
@@ -519,7 +519,7 @@ registerWalletTab({
// bare id falls back to a short label.
let cp = '';
if (r.counterparty_agent_id) {
- cp = `<a href="/agent/${escapeHtml(r.counterparty_agent_id)}">${escapeHtml(clampName(r.counterparty || 'Agent'))}</a>`;
+ cp = `<a href="/agents/${escapeHtml(r.counterparty_agent_id)}">${escapeHtml(clampName(r.counterparty || 'Agent'))}</a>`;
} else if (r.counterparty && looksLikeAddress(r.counterparty)) {
cp = `<a href="${escapeHtml(explorerAddressUrl(r.counterparty, net))}" target="_blank" rel="noopener">${escapeHtml(shortAddress(r.counterparty, 4, 4))} ↗</a>`;
} else if (r.counterparty) {
@@ -557,7 +557,7 @@ registerWalletTab({
<p class="awh-cust-h">Top customers</p>
<ul class="awh-cust-list">${customers.slice(0, 5).map((c) => `
<li class="awh-cust-row">
- <a class="awh-cust-name" href="/agent/${escapeHtml(c.agent_id)}" title="${escapeHtml(c.name)}">${escapeHtml(clampName(c.name))}</a>
+ <a class="awh-cust-name" href="/agents/${escapeHtml(c.agent_id)}" title="${escapeHtml(c.name)}">${escapeHtml(clampName(c.name))}</a>
<span class="awh-cust-meta">${c.count} hire${c.count === 1 ? '' : 's'}</span>
<span class="awh-cust-usd">${escapeHtml(money(c.usd))}</span>
</li>`).join('')}</ul>
diff --git a/src/alpha-copilot.js b/src/alpha-copilot.js
index 90b4675b2..48f2fc31c 100644
--- a/src/alpha-copilot.js
+++ b/src/alpha-copilot.js
@@ -218,7 +218,7 @@ async function loadAgent(id) {
try { localStorage.setItem(LS_KEY, agent.id); } catch { /* ignore */ }
dom.agentName.textContent = agent.name || 'Agent';
dom.agentRole.textContent = agent.is_owner ? 'Your alpha co-pilot' : 'Alpha co-pilot · public read';
- dom.agentLink.href = agent.home_url || `/agent/${agent.id}`;
+ dom.agentLink.href = agent.home_url || `/agents/${agent.id}`;
dom.agentLink.hidden = false;
ensureCardFor(agent);
markActiveCard(agent.id);
@@ -660,7 +660,7 @@ function openActDrawer(data) {
<p>Bought into ${sym} for ${fmtSol(spent)}.</p>
${sig2 ? `<a class="ac-btn ac-btn-ghost" href="${esc(res.explorer || explorerTxUrl(sig2))}" target="_blank" rel="noopener">View transaction</a>` : ''}
${res?.new_balance_sol != null ? `<p class="ac-act-fine">Wallet now ${fmtSol(res.new_balance_sol)}.</p>` : ''}
- <a class="ac-act-audit" href="/agent/${esc(state.agent.id)}" target="_blank" rel="noopener">See it in the custody trail →</a>
+ <a class="ac-act-audit" href="/agents/${esc(state.agent.id)}" target="_blank" rel="noopener">See it in the custody trail →</a>
</div>`;
} catch (e) {
const msg = e instanceof TradeError ? e.message : (e?.message || 'Trade failed.');
diff --git a/src/arm.js b/src/arm.js
index 9c32d2d74..b3051b361 100644
--- a/src/arm.js
+++ b/src/arm.js
@@ -204,7 +204,7 @@ async function loadWallet(agentId) {
const bal = $('#walletBal');
pill.hidden = false;
pill.classList.remove('low');
- $('#walletFund').href = `/agent/${encodeURIComponent(agentId)}/wallet#deposit`;
+ $('#walletFund').href = `/agents/${encodeURIComponent(agentId)}/wallet#deposit`;
$('#walletRun').textContent = '';
bal.classList.add('sk'); bal.textContent = '0.00◎';
state.wallet = null;
diff --git a/src/autopilot-mind.js b/src/autopilot-mind.js
index b4376b0d4..7d69b3654 100644
--- a/src/autopilot-mind.js
+++ b/src/autopilot-mind.js
@@ -183,7 +183,7 @@ function sourceChip(agentId, src) {
if (src.forgotten) {
return `<span class="apm-source forgotten" title="This memory was forgotten">🜸 <span class="apm-source-txt">memory ${esc(String(src.id).slice(0, 8))} (forgotten)</span></span>`;
}
- const href = `/agent/${encodeURIComponent(agentId)}/edit?tab=knowledge#mem-${encodeURIComponent(src.id)}`;
+ const href = `/agents/${encodeURIComponent(agentId)}/edit?tab=knowledge#mem-${encodeURIComponent(src.id)}`;
return `<a class="apm-source" href="${href}" title="${esc(src.content || '')}">🧠 <span class="apm-source-txt">${esc((src.content || 'memory').slice(0, 80))}</span></a>`;
}
diff --git a/src/avatar-artifact.js b/src/avatar-artifact.js
index 34c029b35..f5f1fd2b9 100644
--- a/src/avatar-artifact.js
+++ b/src/avatar-artifact.js
@@ -138,7 +138,7 @@ async function resolveArtifact() {
}
const agent = payload?.agent || payload;
- const href = `/agent/${agentParam}`;
+ const href = `/agents/${agentParam}`;
const label = els.error?.dataset.actionProfile || '';
if (!agent?.id) {
fail('msgNotFound', { href: '/agents', label: els.error?.dataset.actionAgents || '' });
diff --git a/src/character.js b/src/character.js
index f387e9948..977d63a17 100644
--- a/src/character.js
+++ b/src/character.js
@@ -144,7 +144,7 @@ function renderHero(agent) {
// Chat button
const chatBtn = $('ch-chat-btn');
- chatBtn.href = `/agent/${agent.id}`;
+ chatBtn.href = `/agents/${agent.id}`;
}
function showPlaceholder(agent, el) {
@@ -345,7 +345,7 @@ function renderMemes(agent) {
const memes = agent.meta?.memes || [];
const createCard = `
- <a class="ch-meme-create" href="/agent/${agent.id}?meme=1" title="Create meme">
+ <a class="ch-meme-create" href="/agents/${agent.id}?meme=1" title="Create meme">
<div class="ch-meme-create-icon">
<img loading="lazy" decoding="async" src="${agent.meta?.profile_image_url || agent.avatar_thumbnail_url || ''}"
data-fallback="hide"
diff --git a/src/create-agent.js b/src/create-agent.js
index aa3c441b8..a9097685b 100644
--- a/src/create-agent.js
+++ b/src/create-agent.js
@@ -2020,17 +2020,17 @@ function succeed(agent) {
$('success-sub').textContent = subParts.join(' ');
const open = $('success-open');
- open.href = agent.home_url || `/agent/${agent.id}`;
- $('success-edit').href = `/agent/${agent.id}/edit`;
+ open.href = agent.home_url || `/agents/${agent.id}`;
+ $('success-edit').href = `/agents/${agent.id}/edit`;
// Lead with "Go live" — the highest-value first step. The activation tab claims
// the one-time on-chain welcome grant that funds the wallet AND lands the agent
// on the Money Pulse in a single transaction.
const activate = $('success-activate');
- if (activate) activate.href = `/agent/${agent.id}/wallet#activate`;
+ if (activate) activate.href = `/agents/${agent.id}/wallet#activate`;
// Funding by hand stays one tap away — the Deposit tab (QR + copy + live
// confirmation) for owners who'd rather send their own SOL.
const fund = $('success-fund');
- if (fund) fund.href = `/agent/${agent.id}/wallet#deposit`;
+ if (fund) fund.href = `/agents/${agent.id}/wallet#deposit`;
// Pipeline handoffs: the agent is the hub, deployment is the next stage.
// Each link opens the next-stage surface; the embed link pre-loads this
diff --git a/src/dashboard-next/pages/agents.js b/src/dashboard-next/pages/agents.js
index e568fd625..62e26f7d7 100644
--- a/src/dashboard-next/pages/agents.js
+++ b/src/dashboard-next/pages/agents.js
@@ -714,7 +714,7 @@ function showReputationPanel(card, rep) {
.join('')}</div>`
: ''
}
- <a href="/agent/${encodeURIComponent(rep.agent_id || '')}/wallet#reputation" style="display:inline-block;margin-top:12px;font-size:12.5px;color:${esc(accent)};text-decoration:none">View full breakdown →</a>`
+ <a href="/agents/${encodeURIComponent(rep.agent_id || '')}/wallet#reputation" style="display:inline-block;margin-top:12px;font-size:12.5px;color:${esc(accent)};text-decoration:none">View full breakdown →</a>`
: `<div style="color:var(--nxt-ink-dim);font-size:13px">Trust score unavailable right now.</div>`
}
`;
diff --git a/src/dashboard-next/pages/api.js b/src/dashboard-next/pages/api.js
index 682c93c01..d8690f8e5 100644
--- a/src/dashboard-next/pages/api.js
+++ b/src/dashboard-next/pages/api.js
@@ -1108,7 +1108,7 @@ function embedIframeSrc(sel, opts) {
const base = sel.kind === 'widget'
? `${o}/widget/${encodeURIComponent(sel.id)}`
: sel.agentId
- ? `${o}/agent/${encodeURIComponent(sel.agentId)}/embed`
+ ? `${o}/agents/${encodeURIComponent(sel.agentId)}/embed`
: `${o}/a/${encodeURIComponent(sel.id)}`;
const params = new URLSearchParams();
if (opts.background) params.set('bg', opts.background);
diff --git a/src/dashboard-next/pages/capabilities.js b/src/dashboard-next/pages/capabilities.js
index ef47e7e48..b16b67cba 100644
--- a/src/dashboard-next/pages/capabilities.js
+++ b/src/dashboard-next/pages/capabilities.js
@@ -405,7 +405,7 @@ function renderLauncher(configs, coins) {
</div>
<div style="display:flex;align-items:center;gap:8px">
<span class="cp-badge ${badgeClass}">${badgeLabel}</span>
- <a class="cp-link" href="/agent/${configs[0]?.agent_id || ''}/edit#section-launcher" style="display:${configs.length ? 'inline-flex' : 'none'}">Configure ↗</a>
+ <a class="cp-link" href="/agents/${configs[0]?.agent_id || ''}/edit#section-launcher" style="display:${configs.length ? 'inline-flex' : 'none'}">Configure ↗</a>
</div>
</div>
<div class="cp-kpi-row">
diff --git a/src/dashboard-next/pages/home.js b/src/dashboard-next/pages/home.js
index 4385724b1..02a5e32ed 100644
--- a/src/dashboard-next/pages/home.js
+++ b/src/dashboard-next/pages/home.js
@@ -132,7 +132,7 @@ const STATE = {
: { id: null, name: 'Your agent' },
onShare() {
if (newestAgent?.id) {
- navigator.clipboard?.writeText(`${location.origin}/agent/${newestAgent.id}`).catch(() => {});
+ navigator.clipboard?.writeText(`${location.origin}/agents/${newestAgent.id}`).catch(() => {});
}
},
onContinue() {},
diff --git a/src/dashboard-next/studio-adapter.js b/src/dashboard-next/studio-adapter.js
index fedd1d605..5be79ed74 100644
--- a/src/dashboard-next/studio-adapter.js
+++ b/src/dashboard-next/studio-adapter.js
@@ -52,7 +52,7 @@ function snapshotFromRecord(rec) {
name: rec.name || 'Agent',
description: rec.description || '',
avatarId: rec.avatar_id || rec.avatarId || null,
- homeUrl: rec.home_url || rec.homeUrl || (rec.id ? `/agent/${rec.id}` : ''),
+ homeUrl: rec.home_url || rec.homeUrl || (rec.id ? `/agents/${rec.id}` : ''),
skills: [...(rec.skills || [])],
meta: structuredClone(rec.meta || {}),
personaPrompt: rec.persona_prompt ?? rec.personaPrompt ?? '',
diff --git a/src/dashboard/dashboard.js b/src/dashboard/dashboard.js
index d154eb1e0..60c8002bb 100644
--- a/src/dashboard/dashboard.js
+++ b/src/dashboard/dashboard.js
@@ -404,8 +404,8 @@ function agentCard(a, onRemoved) {
</details>
<div class="footer">
<div class="actions">
- <a class="btn sec" href="/agent/${agentIdEnc}" title="Open public agent page">Open</a>
- <a class="btn sec" href="/agent/${agentIdEnc}/edit" title="Edit name, persona, avatar, skills">Edit</a>
+ <a class="btn sec" href="/agents/${agentIdEnc}" title="Open public agent page">Open</a>
+ <a class="btn sec" href="/agents/${agentIdEnc}/edit" title="Edit name, persona, avatar, skills">Edit</a>
<button class="btn sec" data-share type="button" title="Copy public agent link">Share</button>
<button class="btn sec" data-embed type="button" ${embedDisabledAttr}>Embed</button>
${
@@ -422,7 +422,7 @@ function agentCard(a, onRemoved) {
mountAgentAvatarPreview(el.querySelector('[data-agent-preview]'), a);
el.querySelector('[data-share]').addEventListener('click', (e) => {
- copyToClipboard(`${location.origin}/agent/${a.id}`, e.currentTarget);
+ copyToClipboard(`${location.origin}/agents/${a.id}`, e.currentTarget);
});
el.querySelector('[data-embed]').addEventListener('click', (e) => {
if (e.currentTarget.disabled) return;
@@ -476,7 +476,7 @@ function agentMoreItems(a, el, onRemoved) {
const items = [
{
label: 'Open public page ↗',
- run: () => window.open(`/agent/${agentIdEnc}`, '_blank', 'noopener'),
+ run: () => window.open(`/agents/${agentIdEnc}`, '_blank', 'noopener'),
},
{
label: 'View manifest JSON ↗',
@@ -484,7 +484,7 @@ function agentMoreItems(a, el, onRemoved) {
},
{
label: 'Show QR code',
- run: () => openQrModal(`${location.origin}/agent/${a.id}`, a.name || 'Agent'),
+ run: () => openQrModal(`${location.origin}/agents/${a.id}`, a.name || 'Agent'),
},
{
label: 'Duplicate',
@@ -872,7 +872,7 @@ async function makeAgentFromAvatar(a, btn) {
// calls makeAgentFromAvatar can't fire again and race a second create.
const link = document.createElement('a');
link.className = 'btn sec';
- link.href = `/agent/${encodeURIComponent(agent.id)}/edit`;
+ link.href = `/agents/${encodeURIComponent(agent.id)}/edit`;
link.textContent = 'Open agent →';
link.title = 'Open the newly-created agent';
btn.replaceWith(link);
@@ -2323,8 +2323,8 @@ async function renderEmbed(root) {
}
const origin = location.origin;
- const embedUrl = `${origin}/agent/${encodeURIComponent(agent.id)}/embed`;
- const homeUrl = `${origin}/agent/${encodeURIComponent(agent.id)}`;
+ const embedUrl = `${origin}/agents/${encodeURIComponent(agent.id)}/embed`;
+ const homeUrl = `${origin}/agents/${encodeURIComponent(agent.id)}`;
const iframeSnippet = `<iframe src="${embedUrl}" allow="camera; microphone" style="width:320px;height:420px;border:0;border-radius:16px;overflow:hidden" title="${esc(agent.name || 'Agent')}"></iframe>`;
const sidecarSnippet = [
'// Drop into a chat host — renders the agent alongside the chat panel',
@@ -2373,7 +2373,7 @@ async function renderEmbed(root) {
].join('\n');
const sdkSnippet = [
'<!-- Drop-in SDK around the postMessage Bridge v1. -->',
- '<!-- See /agent/' + agent.id + '/embed for the wire contract. -->',
+ '<!-- See /agents/' + agent.id + '/embed for the wire contract. -->',
`<iframe id="agent" src="${embedUrl}" allow="camera; microphone"`,
' style="width:320px;height:420px;border:0;border-radius:16px"></iframe>',
`<script src="${origin}/embed-sdk.js"></script>`,
@@ -2644,7 +2644,7 @@ function bindSnippetTabs(root) {
// ── Onchain deploy card ─────────────────────────────────────────────────────
// Mints the agent on ERC-8004 so any host (Lobehub / Claude / etc.) can resolve
-// it from its onchain ID instead of needing the /agent/:id URL. Uses the
+// it from its onchain ID instead of needing the /agents/:id URL. Uses the
// wallet the user already connected for SIWE; pins the avatar GLB + manifest
// to IPFS; calls register() on the Identity Registry; writes the resulting
// agentId back to our DB so the agent row becomes the bridge between our host
@@ -2998,7 +2998,7 @@ function renderAgentRows(list, onchainAgents, dbAgents) {
const name = meta?.name || dbRow?.name || `Agent #${id}`;
const desc = meta?.description || dbRow?.description || '';
const img = uriToHttp(meta?.image || '');
- const homeLink = dbRow ? `/agent/${encodeURIComponent(dbRow.id)}` : '';
+ const homeLink = dbRow ? `/agents/${encodeURIComponent(dbRow.id)}` : '';
const metaLink = uri ? uriToHttp(uri) : '';
const el = document.createElement('div');
@@ -3046,7 +3046,7 @@ function renderAgentRows(list, onchainAgents, dbAgents) {
</div>
${a.description ? `<p class="muted" style="margin:4px 0 0; font-size:12px">${esc(a.description)}</p>` : ''}
<div class="row" style="gap:10px; margin-top:6px; font-size:12px">
- <a href="/agent/${encodeURIComponent(a.id)}" target="_blank" rel="noopener">Open home</a>
+ <a href="/agents/${encodeURIComponent(a.id)}" target="_blank" rel="noopener">Open home</a>
</div>
</div>
`;
diff --git a/src/economy-live.js b/src/economy-live.js
index 9e2c3f929..48561f82a 100644
--- a/src/economy-live.js
+++ b/src/economy-live.js
@@ -234,7 +234,7 @@ function fmtPrice(n) {
function offerCard(offer) {
const prov = offer.provider || {};
- const provHref = prov.id ? `/agent/${encodeURIComponent(prov.id)}` : null;
+ const provHref = prov.id ? `/agents/${encodeURIComponent(prov.id)}` : null;
const provLabel = provHref
? `<a href="${esc(provHref)}">${esc(prov.name || 'Agent')}</a>`
: esc(prov.name || 'Agent');
diff --git a/src/erc8004/register-ui.js b/src/erc8004/register-ui.js
index e0f926597..fe6492eff 100644
--- a/src/erc8004/register-ui.js
+++ b/src/erc8004/register-ui.js
@@ -2442,7 +2442,7 @@ export class RegisterUI {
const agentLink = body.querySelector('[data-role="res-agent"]');
const backendAgentId = result.agent?.id || this._backendAgentId;
if (agentLink && backendAgentId && backendAgentId !== 'wizard') {
- agentLink.href = `/agent/${encodeURIComponent(backendAgentId)}`;
+ agentLink.href = `/agents/${encodeURIComponent(backendAgentId)}`;
agentLink.style.display = '';
}
const launchLink = body.querySelector('[data-role="res-launch"]');
@@ -2998,7 +2998,7 @@ export class RegisterUI {
<div><b>${esc(a.name || 'Agent')}</b> <span class="erc8004-muted erc8004-small">${esc(network)}</span></div>
${a.description ? `<p class="erc8004-p erc8004-small">${esc(a.description)}</p>` : ''}
<div class="erc8004-row">
- <a class="erc8004-link" href="/agent/${encodeURIComponent(a.id)}">Agent page →</a>
+ <a class="erc8004-link" href="/agents/${encodeURIComponent(a.id)}">Agent page →</a>
${mint ? `<a class="erc8004-link" href="${esc(this._solAddrUrl(network, mint))}" target="_blank" rel="noopener">Asset ↗</a>` : ''}
${tx ? `<a class="erc8004-link" href="${esc(solanaTxExplorerUrl(network, tx))}" target="_blank" rel="noopener">Mint tx ↗</a>` : ''}
</div>
diff --git a/src/erc8004/reputation-panel.js b/src/erc8004/reputation-panel.js
index 5cf07ef95..d13957384 100644
--- a/src/erc8004/reputation-panel.js
+++ b/src/erc8004/reputation-panel.js
@@ -150,7 +150,7 @@ export class ReputationPanel {
: this._viewer
? `<span class="agent-reputation__hint">Owners can't vouch for their own agent.</span>`
: `<span class="agent-reputation__hint">
- <a href="/login?next=${encodeURIComponent(`/agent/${this._agent.id}`)}">Sign in</a>
+ <a href="/login?next=${encodeURIComponent(`/agents/${this._agent.id}`)}">Sign in</a>
to vouch for this agent.
</span>`;
diff --git a/src/first-meet.js b/src/first-meet.js
index 50349355a..6d9afa7e8 100644
--- a/src/first-meet.js
+++ b/src/first-meet.js
@@ -254,7 +254,7 @@ async function runTour(agent) {
function showChecklist(agent) {
const agentId = agent?.id;
- const shareUrl = agentId ? `${location.origin}/agent/${agentId}` : null;
+ const shareUrl = agentId ? `${location.origin}/agents/${agentId}` : null;
const ITEMS = [
{
diff --git a/src/galaxy.js b/src/galaxy.js
index aba8882f3..272b117eb 100644
--- a/src/galaxy.js
+++ b/src/galaxy.js
@@ -540,7 +540,7 @@ function selectAgent(index, fly = false) {
wireWalletChips(els.gxCardMeta);
els.gxCardView.href = `/agents/${a.id}`;
- els.gxCardChat.href = `/agent/${a.id}`;
+ els.gxCardChat.href = `/agents/${a.id}`;
els.gxCard.hidden = false;
if (fly) flyToTarget(new THREE.Vector3(...a.coords), 120);
diff --git a/src/genesis.js b/src/genesis.js
index 9884da930..4bbb5578e 100644
--- a/src/genesis.js
+++ b/src/genesis.js
@@ -674,8 +674,8 @@ function renderReveal(name) {
wallets.appendChild(walletRow('Solana', agent.solana_address));
wallets.appendChild(walletRow('EVM · Base', agent.wallet_address));
- $('#gx-cta-fund').href = `/agent/${agent.id}/wallet#deposit`;
- $('#gx-cta-open').href = agent.home_url || `/agent/${agent.id}`;
+ $('#gx-cta-fund').href = `/agents/${agent.id}/wallet#deposit`;
+ $('#gx-cta-open').href = agent.home_url || `/agents/${agent.id}`;
$('#gx-cta-share').href = `/api/agent-share?id=${encodeURIComponent(agent.id)}`;
renderIdentity();
diff --git a/src/guardian.js b/src/guardian.js
index fd93cce81..e850d5e5a 100644
--- a/src/guardian.js
+++ b/src/guardian.js
@@ -167,7 +167,7 @@ function itemHTML(item) {
<div class="gd-row">
${avatarHTML(item)}
<div class="gd-id">
- <div class="gd-name"><a href="/agent/${esc(item.agent_id)}">${esc(item.agent_name || 'Agent')}</a></div>
+ <div class="gd-name"><a href="/agents/${esc(item.agent_id)}">${esc(item.agent_name || 'Agent')}</a></div>
<div class="gd-meta">Owned by ${esc(item.owner?.label || 'someone')} · trusted since ${item.since ? new Date(item.since).toLocaleDateString() : '—'}</div>
</div>
<div class="gd-roles">${roles}</div>
diff --git a/src/ibm-identity.js b/src/ibm-identity.js
index 8837f22c5..51e55995f 100644
--- a/src/ibm-identity.js
+++ b/src/ibm-identity.js
@@ -218,7 +218,7 @@ function render(data) {
const tag = s.owned
? '<span class="ntag">yours</span>'
: s.public ? '' : '<span class="ntag">private</span>';
- return `<a class="neighbor" href="/agent/${esc(s.id)}" target="_blank" rel="noopener">
+ return `<a class="neighbor" href="/agents/${esc(s.id)}" target="_blank" rel="noopener">
<span class="nname">${esc(s.name || 'Agent')}</span>
<span class="nbar"><span style="width:${score}%"></span></span>
<span class="nscore">${score}%</span>${tag}
diff --git a/src/labor-market.js b/src/labor-market.js
index 6bb212efc..3381491ac 100644
--- a/src/labor-market.js
+++ b/src/labor-market.js
@@ -175,9 +175,9 @@ function renderTicker() {
<div class="lm-flow">
<span class="lm-flow-amt">${fmtThree(s.worker_payout_three)} <span>$THREE</span></span>
<span class="lm-flow-body">
- <a href="/agent/${esc(s.poster_agent_id)}">${esc(s.poster_name)}</a>
+ <a href="/agents/${esc(s.poster_agent_id)}">${esc(s.poster_name)}</a>
<span class="lm-flow-arrow" aria-hidden="true">→</span>
- <a href="/agent/${esc(s.worker_agent_id)}">${esc(s.worker_name)}</a>
+ <a href="/agents/${esc(s.worker_agent_id)}">${esc(s.worker_name)}</a>
${s.required_skill ? `<span class="lm-flow-skill">${esc(s.required_skill)}</span>` : ''}
</span>
${s.settlement_explorer ? `<a class="lm-flow-tx" href="${esc(s.settlement_explorer)}" target="_blank" rel="noopener" title="View settlement on Solscan">tx ↗</a>` : ''}
@@ -225,7 +225,7 @@ function bountyCard(b) {
<p class="lm-card-spec">${esc((b.spec || '').slice(0, 150))}${(b.spec || '').length > 150 ? '…' : ''}</p>
<div class="lm-card-foot">
${chip(b.required_skill)}
- <span class="lm-card-meta">by <a href="/agent/${esc(b.poster_agent_id)}" data-stop-propagation>${esc(b.poster_name)}</a></span>
+ <span class="lm-card-meta">by <a href="/agents/${esc(b.poster_agent_id)}" data-stop-propagation>${esc(b.poster_name)}</a></span>
${mine ? '<span class="lm-tag-mine">yours</span>' : ''}
<span class="lm-card-bids ${hot ? 'is-hot' : ''}">${b.bid_count} bid${b.bid_count === 1 ? '' : 's'}</span>
${b.escrow_explorer ? `<span class="lm-card-escrow" title="Reward escrowed on-chain">◆ escrowed</span>` : ''}
@@ -244,7 +244,7 @@ function jobCard(j) {
<h3 class="lm-card-title">${esc(j.title || 'Job')}</h3>
<div class="lm-card-foot">
${chip(j.required_skill)}
- <span class="lm-card-meta"><a href="/agent/${esc(j.poster_agent_id)}" data-stop-propagation>${esc(j.poster_name)}</a> → <a href="/agent/${esc(j.worker_agent_id)}" data-stop-propagation>${esc(j.worker_name)}</a></span>
+ <span class="lm-card-meta"><a href="/agents/${esc(j.poster_agent_id)}" data-stop-propagation>${esc(j.poster_name)}</a> → <a href="/agents/${esc(j.worker_agent_id)}" data-stop-propagation>${esc(j.worker_name)}</a></span>
${mine ? '<span class="lm-tag-mine">yours</span>' : ''}
<span class="lm-card-bids">${ago(j.created_at)}</span>
</div>
@@ -262,7 +262,7 @@ function settledCard(s) {
<h3 class="lm-card-title">${esc(s.title || 'Bounty')}</h3>
<div class="lm-card-foot">
${chip(s.required_skill)}
- <span class="lm-card-meta"><a href="/agent/${esc(s.poster_agent_id)}" data-stop-propagation>${esc(s.poster_name)}</a> → <a href="/agent/${esc(s.worker_agent_id)}" data-stop-propagation>${esc(s.worker_name)}</a></span>
+ <span class="lm-card-meta"><a href="/agents/${esc(s.poster_agent_id)}" data-stop-propagation>${esc(s.poster_name)}</a> → <a href="/agents/${esc(s.worker_agent_id)}" data-stop-propagation>${esc(s.worker_name)}</a></span>
${mine ? '<span class="lm-tag-mine">yours</span>' : ''}
${Number(s.royalty_three) > 0 ? `<span class="lm-card-bids">+${fmtThree(s.royalty_three)} royalty</span>` : ''}
</div>
@@ -429,7 +429,7 @@ function drawerMarkup({ bounty: b, bids, job }) {
return `
<div class="lm-bid ${winner ? 'lm-bid-win' : ''}">
<div class="lm-bid-head">
- <a href="/agent/${esc(bd.worker_agent_id)}" class="lm-bid-name">${esc(bd.worker_name)}</a>
+ <a href="/agents/${esc(bd.worker_agent_id)}" class="lm-bid-name">${esc(bd.worker_name)}</a>
${bd.auto ? '<span class="lm-tag-auto" title="Autonomous bid">auto</span>' : ''}
${winner ? '<span class="lm-tag-win">awarded</span>' : ''}
<span class="lm-bid-price">${fmtThree(bd.price_three)} $THREE</span>
@@ -483,7 +483,7 @@ function drawerMarkup({ bounty: b, bids, job }) {
<p class="lm-drawer-spec">${esc(b.spec)}</p>
<div class="lm-drawer-tags">
${chip(b.required_skill)}
- <span class="lm-card-meta">by <a href="/agent/${esc(b.poster_agent_id)}">${esc(b.poster_name)}</a></span>
+ <span class="lm-card-meta">by <a href="/agents/${esc(b.poster_agent_id)}">${esc(b.poster_name)}</a></span>
${b.escrow_explorer ? `<a class="lm-card-escrow" href="${esc(b.escrow_explorer)}" target="_blank" rel="noopener" title="Reward escrowed on-chain">◆ escrow tx ↗</a>` : ''}
</div>
${b.award_rationale ? `<div class="lm-rationale"><span class="lm-rationale-mark">⚖</span> <span>${esc(b.award_rationale)}</span></div>` : ''}
diff --git a/src/marketplace.js b/src/marketplace.js
index e16605943..a2ef00a6b 100644
--- a/src/marketplace.js
+++ b/src/marketplace.js
@@ -5533,7 +5533,7 @@ function renderEmbedTab(a) {
const agentId = a.id;
const glbUrl = a.avatar_glb_url || '';
const embedPageUrl = `${location.origin}/marketplace/agents/${agentId}`;
- const iframeSrc = `/agent/${agentId}/embed`;
+ const iframeSrc = `/agents/${agentId}/embed`;
const wcSnippet = glbUrl
? `<script type="module" src="https://three.ws/dist-lib/agent-3d.js"><\/script>\n<agent-3d\n src="${glbUrl}"\n agent-id="${agentId}"\n style="width:480px;height:480px"\n></agent-3d>`
diff --git a/src/mind-palace.js b/src/mind-palace.js
index bda4d0f50..91e62a04b 100644
--- a/src/mind-palace.js
+++ b/src/mind-palace.js
@@ -31,7 +31,7 @@
// GPU. Respects the shared WebGL context budget.
//
// Mounted lazily by the Mind tab in src/agent-edit.js, and full-screen by the
-// /agent/:id/mind route (src/agent-mind.js). Both call mountMindPalace().
+// /agents/:id/mind route (src/agent-mind.js). Both call mountMindPalace().
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -1362,7 +1362,7 @@ class MindPalace {
const conv = c.conversationId || c.conversation_id || c.threadId;
const url = c.url || c.href;
const links = [];
- if (conv) links.push(`<a href="/agent/${esc(this.agentId)}?conversation=${esc(conv)}">the conversation that formed it →</a>`);
+ if (conv) links.push(`<a href="/agents/${esc(this.agentId)}?conversation=${esc(conv)}">the conversation that formed it →</a>`);
if (url && /^https?:\/\//.test(url)) links.push(`<a href="${esc(url)}" target="_blank" rel="noopener">source page →</a>`);
if (!src && !links.length) return '';
return `<h4>Provenance</h4><div class="mp-prov">${src ? `Formed via <b>${esc(src)}</b>. ` : ''}${links.join(' · ')}</div>`;
@@ -1452,10 +1452,10 @@ class MindPalace {
if (kind === 'loading') {
o.innerHTML = `<div class="mp-orb"></div><h3>Entering the mind…</h3><p>Reading every memory your agent holds.</p>`;
} else if (kind === 'empty') {
- const chatHref = `/agent/${esc(this.agentId)}`;
+ const chatHref = `/agents/${esc(this.agentId)}`;
const addCta = this.embedded
? `<button class="primary" id="mp-empty-add">Add the first memory</button>`
- : `<a class="primary" href="/agent/${esc(this.agentId)}/edit?tab=knowledge">Add the first memory</a>`;
+ : `<a class="primary" href="/agents/${esc(this.agentId)}/edit?tab=knowledge">Add the first memory</a>`;
o.innerHTML = `<div class="mp-orb" style="opacity:.5"></div>
<h3>This mind is a blank canvas</h3>
<p>Your agent hasn't formed any memories yet. Talk to it and watch its mind grow — every fact, preference, and lesson becomes an object you can see and shape here.</p>
diff --git a/src/mirror.js b/src/mirror.js
index 8d76d06dd..5982708cd 100644
--- a/src/mirror.js
+++ b/src/mirror.js
@@ -32,7 +32,7 @@ function leaderRow(l) {
<div class="mp-rank ${l.rank <= 3 ? 'top' : ''}">#${l.rank}</div>
${l.avatar ? `<img class="mp-av" src="${esc(l.avatar)}" alt="" loading="lazy">` : '<div class="mp-av"></div>'}
<div class="mp-lbody">
- <div class="mp-lname"><a href="/agent/${esc(l.agent_id)}">${esc(l.name || short(l.agent_id))}</a></div>
+ <div class="mp-lname"><a href="/agents/${esc(l.agent_id)}">${esc(l.name || short(l.agent_id))}</a></div>
<div class="mp-lstats">${stats}</div>
</div>
<button class="mp-mirror-btn" data-id="${esc(l.agent_id)}" data-name="${esc(l.name || '')}">Mirror</button>
@@ -132,7 +132,7 @@ async function loadMine() {
// every other surface uses) so the wallet reads identically here and links to
// the HUD; these cards are already filtered to agents that have a wallet.
const chip = walletChipHTML(a, { isOwner: true, showPending: false, link: true, tip: false });
- head.innerHTML = `${a.avatar_url || a.profile_image_url ? `<img loading="lazy" decoding="async" class="mp-av" src="${esc(a.avatar_url || a.profile_image_url)}" alt="">` : '<div class="mp-av"></div>'}<div class="mp-lname"><a href="/agent/${esc(a.id)}">${esc(a.name || short(a.id))}</a>${chip ? `<div class="mp-agent-chip">${chip}</div>` : ''}</div>`;
+ head.innerHTML = `${a.avatar_url || a.profile_image_url ? `<img loading="lazy" decoding="async" class="mp-av" src="${esc(a.avatar_url || a.profile_image_url)}" alt="">` : '<div class="mp-av"></div>'}<div class="mp-lname"><a href="/agents/${esc(a.id)}">${esc(a.name || short(a.id))}</a>${chip ? `<div class="mp-agent-chip">${chip}</div>` : ''}</div>`;
const panelMount = document.createElement('div');
card.appendChild(head);
card.appendChild(panelMount);
diff --git a/src/monitor.js b/src/monitor.js
index b2e27a880..1b198e704 100644
--- a/src/monitor.js
+++ b/src/monitor.js
@@ -108,8 +108,8 @@ function mountSpotlight(agent) {
$('spot-desc').textContent = agent.description || 'No description yet.';
const links = $('spot-links');
links.hidden = false;
- $('spot-profile').href = agent.home_url || `/agent/${agent.id}`;
- $('spot-chat').href = `/agent/${agent.id}`;
+ $('spot-profile').href = agent.home_url || `/agents/${agent.id}`;
+ $('spot-chat').href = `/agents/${agent.id}`;
document.querySelectorAll('.fleet-row').forEach((row) => {
row.setAttribute('aria-selected', row.dataset.agentId === agent.id ? 'true' : 'false');
});
diff --git a/src/notifications.js b/src/notifications.js
index 287210b6a..98feafff0 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -191,7 +191,7 @@ export function notifLink(n) {
const p = n.payload || {};
const raw = p.link
|| (p.tx_signature ? `https://solscan.io/tx/${encodeURIComponent(p.tx_signature)}` : null)
- || (p.agent_id ? `/agent/${encodeURIComponent(p.agent_id)}` : null);
+ || (p.agent_id ? `/agents/${encodeURIComponent(p.agent_id)}` : null);
return safeNavUrl(raw);
}
diff --git a/src/play/arena.js b/src/play/arena.js
index 5573c9c5a..1aa044961 100644
--- a/src/play/arena.js
+++ b/src/play/arena.js
@@ -562,7 +562,7 @@ async function enrichDrawerWithAccess(id) {
block.innerHTML =
`<div class="dw-oracle-h">Reputation &amp; access</div>` +
`<div class="dw-acc-row">` +
- `<a class="dw-acc-tier" href="/agent/${encodeURIComponent(id)}/wallet#reputation" style="--acc:${accent}" title="See the full trust breakdown">` +
+ `<a class="dw-acc-tier" href="/agents/${encodeURIComponent(id)}/wallet#reputation" style="--acc:${accent}" title="See the full trust breakdown">` +
`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>` +
`<b>${esc(tier)}</b><span>trust ${Math.round(data.score || 0)}/100</span></a>` +
(floorLine ? `<div class="dw-acc-floor">${floorLine}</div>` : '') +
diff --git a/src/profile-walk-hero.js b/src/profile-walk-hero.js
index 6d9c0a00f..4a0f40fe6 100644
--- a/src/profile-walk-hero.js
+++ b/src/profile-walk-hero.js
@@ -7,7 +7,7 @@
//
// • "Say hi" → opens the owner's REAL chat surface. We never invent an
// endpoint: the avatar page (/avatars/:id?view=chat) hosts a
-// live LLM chat tab, and the agent detail page (/agent/:id)
+// live LLM chat tab, and the agent detail page (/agents/:id)
// hosts the live "try it" chat preview. We prefer the avatar
// chat (it's the thing rendered in the hero), then fall back
// to the agent chat.
@@ -321,11 +321,11 @@ function resolveEmbodiment({ avatars = [], agents = [] }) {
}
// The REAL chat surface for this owner. Avatars carry a live LLM chat tab at
-// /avatars/:id?view=chat; agents carry the live chat preview at /agent/:id.
+// /avatars/:id?view=chat; agents carry the live chat preview at /agents/:id.
function chatHref(embodiment) {
if (embodiment.kind === 'avatar')
return `/avatars/${encodeURIComponent(embodiment.id)}?view=chat`;
- return `/agent/${encodeURIComponent(embodiment.id)}#chat`;
+ return `/agents/${encodeURIComponent(embodiment.id)}#chat`;
}
// The full walk experience for this same body. /walk/app accepts ?avatar= or
diff --git a/src/pump/launch-token-modal.js b/src/pump/launch-token-modal.js
index 9a6bfe6e1..9a33ccdd6 100644
--- a/src/pump/launch-token-modal.js
+++ b/src/pump/launch-token-modal.js
@@ -502,7 +502,7 @@ export class LaunchTokenModal {
Website <span class="ltm-hint">optional — defaults to your three.ws agent page</span>
</label>
<input class="ltm-input" id="ltm-web" type="url"
- value="${_esc(d.website)}" autocomplete="off" placeholder="https://three.ws/agent/…">
+ value="${_esc(d.website)}" autocomplete="off" placeholder="https://three.ws/agents/…">
</div>
<div class="ltm-field">
<label class="ltm-label" for="ltm-tw">
diff --git a/src/pump/pump-modals.js b/src/pump/pump-modals.js
index 4dee3922e..77540dda8 100644
--- a/src/pump/pump-modals.js
+++ b/src/pump/pump-modals.js
@@ -824,7 +824,7 @@ function openLaunch({ identity, agentId, avatarId, formData }) {
setTimeout(() => {
close();
if (resolvedAgentId) {
- window.location.href = `/agent/${resolvedAgentId}`;
+ window.location.href = `/agents/${resolvedAgentId}`;
} else {
window.location.reload();
}
diff --git a/src/share-panel-builders.js b/src/share-panel-builders.js
index 03a5b7bcf..c4e6cdba8 100644
--- a/src/share-panel-builders.js
+++ b/src/share-panel-builders.js
@@ -29,7 +29,7 @@ export const SIZES = Object.freeze({
*/
export function buildEmbedUrl({ origin, agentId, opts = {} }) {
const merged = { ...DEFAULT_OPTIONS, ...opts };
- const url = new URL(`${origin}/agent/${agentId}/embed`);
+ const url = new URL(`${origin}/agents/${agentId}/embed`);
if (merged.bg !== DEFAULT_OPTIONS.bg) url.searchParams.set('bg', merged.bg);
if (merged.name !== DEFAULT_OPTIONS.name) url.searchParams.set('name', '0');
return url.toString();
diff --git a/src/shared/agent-fork-royalty.js b/src/shared/agent-fork-royalty.js
index e95c893ee..44e1ae2e8 100644
--- a/src/shared/agent-fork-royalty.js
+++ b/src/shared/agent-fork-royalty.js
@@ -159,7 +159,7 @@ function renderPanel(data, { name, network }) {
function incomeRow(p, network) {
const net = p.network || network;
- const who = p.fork_agent_id ? `<a href="/agent/${esc(p.fork_agent_id)}" class="twr-link">a fork</a>` : 'a fork';
+ const who = p.fork_agent_id ? `<a href="/agents/${esc(p.fork_agent_id)}" class="twr-link">a fork</a>` : 'a fork';
return `<div class="twr-row twr-row--in">
<span class="twr-row-amt">+${esc(sol(p.amount_sol))}</span>
<span class="twr-row-mid">from ${who} · ${esc(p.source_kind)} · gen ${p.depth} · ${esc(pct(p.bps))}</span>
@@ -170,7 +170,7 @@ function incomeRow(p, network) {
function paidRow(p, network) {
const net = p.network || network;
const dest = p.rerouted ? 'platform treasury (ancestor unavailable)'
- : (p.recipient_wallet ? `<a href="/agent/${esc(p.ancestor_agent_id)}" class="twr-link">${esc(shortAddr(p.recipient_wallet))}</a>` : 'creator');
+ : (p.recipient_wallet ? `<a href="/agents/${esc(p.ancestor_agent_id)}" class="twr-link">${esc(shortAddr(p.recipient_wallet))}</a>` : 'creator');
const badge = p.status === 'failed' ? `<span class="twr-pending twr-fail">failed</span>`
: p.status === 'pending' ? `<span class="twr-pending">pending</span>`
: (p.signature ? `<a class="twr-tx" href="${esc(explorer(p.signature, net))}" target="_blank" rel="noopener">tx ↗</a>` : '');
diff --git a/src/shared/agent-mirror-panel.js b/src/shared/agent-mirror-panel.js
index e3bed853c..d2be34125 100644
--- a/src/shared/agent-mirror-panel.js
+++ b/src/shared/agent-mirror-panel.js
@@ -348,7 +348,7 @@ export function mountMirrorPanel({ mount, agent, isOwner = false }) {
const overflow = data.count - shown.length;
const pile = shown.map((fl) => {
const inner = fl.avatar ? `<img loading="lazy" decoding="async" src="${esc(fl.avatar)}" alt="">` : '';
- return `<a href="/agent/${esc(fl.agent_id)}" title="${esc(fl.name || shortAddr(fl.agent_id))}${fl.enabled ? '' : ' (paused)'}" style="${fl.enabled ? '' : 'opacity:.5'}">${inner}</a>`;
+ return `<a href="/agents/${esc(fl.agent_id)}" title="${esc(fl.name || shortAddr(fl.agent_id))}${fl.enabled ? '' : ' (paused)'}" style="${fl.enabled ? '' : 'opacity:.5'}">${inner}</a>`;
}).join('');
const more = overflow > 0 ? `<span class="mir-more">+${overflow}</span>` : '';
const names = shown.map((f) => f.name || shortAddr(f.agent_id)).filter(Boolean);
@@ -366,7 +366,7 @@ export function mountMirrorPanel({ mount, agent, isOwner = false }) {
<div class="mir-follow" data-paused="${!f.enabled}" data-leader="${esc(f.leader_agent_id)}">
${f.leader_avatar ? `<img loading="lazy" decoding="async" class="mir-av" src="${esc(f.leader_avatar)}" alt="">` : '<div class="mir-av"></div>'}
<div class="mir-fl-body">
- <div class="mir-fl-name"><a href="/agent/${esc(f.leader_agent_id)}" style="color:inherit;text-decoration:none">${esc(f.leader_name || shortAddr(f.leader_agent_id))}</a></div>
+ <div class="mir-fl-name"><a href="/agents/${esc(f.leader_agent_id)}" style="color:inherit;text-decoration:none">${esc(f.leader_name || shortAddr(f.leader_agent_id))}</a></div>
<div class="mir-fl-sub">${esc(sizingSummary(f))}${leashSummary(f) ? ' · ' + esc(leashSummary(f)) : ''}</div>
</div>
<div class="mir-fl-actions">
diff --git a/src/shared/agent-patronage.js b/src/shared/agent-patronage.js
index 83c061507..52cdf0534 100644
--- a/src/shared/agent-patronage.js
+++ b/src/shared/agent-patronage.js
@@ -509,7 +509,7 @@ export function mountPatronagePanel({ mount, agent, isOwner = false }) {
// Owner reciprocity: a real, shareable shout-out thanking a patron by name.
function thankPatron(wallet, name) {
- const text = `Huge thanks to ${name || shortAddr(wallet)} for being a patron of ${data.agent_name} on @three_ws — support that builds a real relationship. ${location.origin}/agent/${agentId}`;
+ const text = `Huge thanks to ${name || shortAddr(wallet)} for being a patron of ${data.agent_name} on @three_ws. Support that builds a real relationship. ${location.origin}/agents/${agentId}`;
const url = `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}`;
window.open(url, '_blank', 'noopener');
}
diff --git a/src/shared/agent-reputation.js b/src/shared/agent-reputation.js
index e0821ea1e..45f328a5a 100644
--- a/src/shared/agent-reputation.js
+++ b/src/shared/agent-reputation.js
@@ -223,7 +223,7 @@ export function hydrateReputationBadges(root) {
/** Navigate to the agent's wallet hub, reputation tab. */
export function openReputation(agentId) {
if (!agentId || !isBrowser()) return;
- window.location.assign(`/agent/${encodeURIComponent(agentId)}/wallet#reputation`);
+ window.location.assign(`/agents/${encodeURIComponent(agentId)}/wallet#reputation`);
}
// ── full breakdown panel (HUD tab) ───────────────────────────────────────────
diff --git a/src/shared/agent-wallet-chip.js b/src/shared/agent-wallet-chip.js
index 50c250500..aa782a8a6 100644
--- a/src/shared/agent-wallet-chip.js
+++ b/src/shared/agent-wallet-chip.js
@@ -137,7 +137,7 @@ export function getWalletStatus(agent) {
forkedFrom,
explorerUrl: `https://solscan.io/account/${address}`,
evmExplorerUrl: evmAddress ? `https://basescan.org/address/${evmAddress}` : null,
- hubUrl: agentId ? `/agent/${agentId}/wallet` : null,
+ hubUrl: agentId ? `/agents/${agentId}/wallet` : null,
galleryUrl: `/vanity/gallery?address=${encodeURIComponent(String(address))}`,
agentId,
name: name ? String(name) : null,
@@ -1026,7 +1026,7 @@ function wirePopoverActions(el, meta) {
});
const fork = el.querySelector('[data-twc-fork]');
if (fork) fork.addEventListener('click', async () => {
- const dest = `/agent/${meta.agentId}`;
+ const dest = `/agents/${meta.agentId}`;
const loggedIn = await probeLoggedIn();
// Forking mints the caller their own wallet (POST /api/avatars/fork). The
// fork-to-own CTA + its auth/CSRF handling already live on the agent's own
@@ -1036,7 +1036,7 @@ function wirePopoverActions(el, meta) {
});
const share = el.querySelector('[data-twc-share]');
if (share) share.addEventListener('click', async () => {
- const shareUrl = `${location.origin}/agent/${meta.agentId}`;
+ const shareUrl = `${location.origin}/agents/${meta.agentId}`;
try {
const mod = await import('./share.js');
if (mod.showSharePanel) {
diff --git a/src/shared/avatar-inspector.js b/src/shared/avatar-inspector.js
index 11a0f9aa3..35973283b 100644
--- a/src/shared/avatar-inspector.js
+++ b/src/shared/avatar-inspector.js
@@ -511,7 +511,7 @@ async function renderAbout(root, subject, { agentId }) {
body.innerHTML =
(agent?.description ? `<p class="avi-bio">${esc(agent.description)}</p>` : '') +
factRows([
- { label: 'Agent', value: agent?.name || agentId.slice(0, 8), href: `/agent/${encodeURIComponent(agentId)}` },
+ { label: 'Agent', value: agent?.name || agentId.slice(0, 8), href: `/agents/${encodeURIComponent(agentId)}` },
...(agent?.author_name ? [{ label: 'Creator', value: agent.author_name }] : []),
...(agent?.erc8004_agent_id ? [{ label: 'ERC-8004', value: `#${agent.erc8004_agent_id} on-chain` }] : []),
...baseFacts,
@@ -528,7 +528,7 @@ async function renderAbout(root, subject, { agentId }) {
const nameEl = root.querySelector('.avi-name');
// Peer nickname stays primary; the agent name rides underneath.
if (nameEl && agent.name !== nameEl.textContent) {
- nameEl.insertAdjacentHTML('afterend', `<div class="avi-subname">pilots <a href="/agent/${encodeURIComponent(agentId)}">${esc(agent.name)}</a></div>`);
+ nameEl.insertAdjacentHTML('afterend', `<div class="avi-subname">pilots <a href="/agents/${encodeURIComponent(agentId)}">${esc(agent.name)}</a></div>`);
}
}
} catch (err) {
@@ -693,12 +693,12 @@ function renderFooter(root, { agentId, wallet, username, actions }) {
// A verified platform account leads with its real profile page; the agent
// profile (when also present) steps back to a ghost link.
links.push(`<a class="avi-cta${hasActions ? ' avi-cta-ghost' : ''}" href="/u/${encodeURIComponent(username)}">View profile</a>`);
- if (agentId) links.push(`<a class="avi-cta avi-cta-ghost" href="/agent/${encodeURIComponent(agentId)}">Agent profile</a>`);
+ if (agentId) links.push(`<a class="avi-cta avi-cta-ghost" href="/agents/${encodeURIComponent(agentId)}">Agent profile</a>`);
} else if (agentId) {
// When a world action (Talk 1-on-1) leads the footer, the links step back
// to ghost style and the wallet hub folds into the full profile page.
- links.push(`<a class="avi-cta${hasActions ? ' avi-cta-ghost' : ''}" href="/agent/${encodeURIComponent(agentId)}">Full profile</a>`);
- if (!hasActions) links.push(`<a class="avi-cta avi-cta-ghost" href="/agent/${encodeURIComponent(agentId)}/wallet">Wallet hub</a>`);
+ links.push(`<a class="avi-cta${hasActions ? ' avi-cta-ghost' : ''}" href="/agents/${encodeURIComponent(agentId)}">Full profile</a>`);
+ if (!hasActions) links.push(`<a class="avi-cta avi-cta-ghost" href="/agents/${encodeURIComponent(agentId)}/wallet">Wallet hub</a>`);
} else if (wallet) {
links.push(`<a class="avi-cta avi-cta-ghost" href="${esc(explorerAddr(wallet))}" target="_blank" rel="noopener noreferrer">View on explorer</a>`);
}
diff --git a/src/shared/living-avatar.js b/src/shared/living-avatar.js
index bc9e2f774..3391af8fe 100644
--- a/src/shared/living-avatar.js
+++ b/src/shared/living-avatar.js
@@ -90,7 +90,7 @@ export function resolveLivingAvatar(agent, opts = {}) {
return {
agentId: id, address: null, name, avatarUrl: null,
prefix: null, suffix: null, isVanity: false, rarity: null,
- explorerUrl: null, hubUrl: id ? `/agent/${id}/wallet` : null,
+ explorerUrl: null, hubUrl: id ? `/agents/${id}/wallet` : null,
ownerName: null, isOwner: !!opts.isOwner, hasWallet: false,
tier: tier?.key || null, tierLabel: tier?.label || null, level: tier?.level ?? null,
accent: visual?.accent || 'var(--wallet-accent,#c4b5fd)',
diff --git a/src/shared/networth-presence.js b/src/shared/networth-presence.js
index 09479eb67..a9382e3eb 100644
--- a/src/shared/networth-presence.js
+++ b/src/shared/networth-presence.js
@@ -112,7 +112,7 @@ export function createPresencePanel({ agentId, onPrefsSaved } = {}) {
const tier = data.tier || look.tier || { label: '—', index: 0, accent: '#8b8b9a' };
const accent = tier.accent || '#a78bfa';
const usd = data.portfolio?.usd ?? 0;
- const hub = data.hub_url || (agentId ? `/agent/${agentId}/wallet` : null);
+ const hub = data.hub_url || (agentId ? `/agents/${agentId}/wallet` : null);
el.style.setProperty('--nw-accent', accent);
const next = tier.next;
diff --git a/src/shared/portable-wallet.js b/src/shared/portable-wallet.js
index fb023ee56..239fe8075 100644
--- a/src/shared/portable-wallet.js
+++ b/src/shared/portable-wallet.js
@@ -422,7 +422,7 @@ export function mountPortableWallet(host, opts = {}) {
// The growth loop: a wallet worth screenshotting that links back to tip
// or fork. The /share?wallet=1 link previews with the vanity address +
// lifetime tips OG card.
- const shareUrl = `${origin}/agent/${encodeURIComponent(agentId)}/share?wallet=1`;
+ const shareUrl = `${origin}/agents/${encodeURIComponent(agentId)}/share?wallet=1`;
const btn = e.currentTarget;
try {
if (navigator.share) {
@@ -581,7 +581,7 @@ export function mountPortableWallet(host, opts = {}) {
name: seedName,
avatar: seedAvatar,
address: null,
- openUrl: `${origin}/agent/${agentId || ''}`,
+ openUrl: `${origin}/agents/${agentId || ''}`,
};
}
render();
diff --git a/src/shared/wallet-card.js b/src/shared/wallet-card.js
index 45e6971f9..bfd290749 100644
--- a/src/shared/wallet-card.js
+++ b/src/shared/wallet-card.js
@@ -198,7 +198,7 @@ export function mountWalletCard(host, agent, opts = {}) {
id: agentId,
title: identity.name || agent?.name || 'Agent',
description: `${identity.name || 'This agent'} on three.ws — its avatar, its wallet, its reputation.`,
- shareUrl: `${origin}/agent/${agentId}/share`,
+ shareUrl: `${origin}/agents/${agentId}/share`,
remixUrl: `${origin}/agents/${agentId}`,
previewImage: `${origin}/api/og/agent?id=${encodeURIComponent(agentId)}`,
};
@@ -338,10 +338,10 @@ export function mountWalletCard(host, agent, opts = {}) {
// CTA row by viewer role. Owner → manage/customize; visitor/logged-out →
// tip + fork. Share is universal. No owner-only datum is ever rendered above.
const primaryCta = isOwner
- ? `<a class="twc2-btn twc2-btn-primary" href="${esc(identity.hubUrl || `/agent/${agentId}/wallet`)}">Manage wallet</a>`
+ ? `<a class="twc2-btn twc2-btn-primary" href="${esc(identity.hubUrl || `/agents/${agentId}/wallet`)}">Manage wallet</a>`
: `<button type="button" class="twc2-btn twc2-btn-primary" data-twc2-tip>Tip</button>`;
const secondaryCta = isOwner
- ? `<a class="twc2-btn twc2-btn-ghost" href="${esc(identity.hubUrl || `/agent/${agentId}/wallet`)}#customize">Customize</a>`
+ ? `<a class="twc2-btn twc2-btn-ghost" href="${esc(identity.hubUrl || `/agents/${agentId}/wallet`)}#customize">Customize</a>`
: `<button type="button" class="twc2-btn twc2-btn-ghost" data-twc2-fork>Fork to own</button>`;
setHTML(`
diff --git a/src/shared/wealth-levelup.js b/src/shared/wealth-levelup.js
index a1dcab40a..1c2d73f75 100644
--- a/src/shared/wealth-levelup.js
+++ b/src/shared/wealth-levelup.js
@@ -286,7 +286,7 @@ function render(detail) {
</div>
<div class="wlu-actions">
<button class="wlu-btn primary" type="button" data-share>Share</button>
- <a class="wlu-btn ghost" data-wallet href="/agent/${encodeURIComponent(agentId)}/wallet">View wallet</a>
+ <a class="wlu-btn ghost" data-wallet href="/agents/${encodeURIComponent(agentId)}/wallet">View wallet</a>
</div>
</div>`;
@@ -362,7 +362,7 @@ function render(detail) {
}
async function shareLevelUp(agentId, toTier, brief, btn) {
- const url = `${location.origin}/agent/${encodeURIComponent(agentId)}`;
+ const url = `${location.origin}/agents/${encodeURIComponent(agentId)}`;
const who = brief?.name || 'My agent';
const text = `${who} just reached ${toTier.label} on @three_ws — its wallet glows brighter the more it earns.`;
try {
diff --git a/src/start.js b/src/start.js
index ac34a1260..cb02a9763 100644
--- a/src/start.js
+++ b/src/start.js
@@ -480,7 +480,7 @@ async function startDeploy() {
// 3. Build embed code
const origin = location.origin;
const embedCode = `<script src="${origin}/widget.js" data-widget="${widgetId}" async><\/script>`;
- const liveUrl = `${origin}/agent/${agentId}`;
+ const liveUrl = `${origin}/agents/${agentId}`;
state.liveUrl = liveUrl;
state.embedCode = embedCode;
diff --git a/src/studio/money/money-studio.js b/src/studio/money/money-studio.js
index d666ccfcb..6f58234ef 100644
--- a/src/studio/money/money-studio.js
+++ b/src/studio/money/money-studio.js
@@ -231,7 +231,7 @@ class MoneyStudio {
<a class="mny-icon-btn" href="https://solscan.io/account/${esc(addr)}" target="_blank" rel="noopener" title="View on Solscan" aria-label="View on explorer">↗</a>
</div>
<div class="mny-wallet-tools">
- <a class="studio-btn studio-btn-primary studio-action" href="/agent/${encodeURIComponent(this.agentId)}/wallet#deposit">Add funds</a>
+ <a class="studio-btn studio-btn-primary studio-action" href="/agents/${encodeURIComponent(this.agentId)}/wallet#deposit">Add funds</a>
<button class="studio-btn studio-btn-ghost studio-action" data-action="refresh">Refresh balance</button>
<button class="studio-btn studio-btn-ghost studio-action" data-action="toggle-withdraw">Withdraw</button>
</div>
diff --git a/src/studio/studio-shell.js b/src/studio/studio-shell.js
index b687be667..2f172a519 100644
--- a/src/studio/studio-shell.js
+++ b/src/studio/studio-shell.js
@@ -203,7 +203,7 @@ class StudioShell {
<button type="button" class="studio-btn studio-btn-ghost studio-action" id="studio-save-draft"
title="Save your progress now — your agent stays a private draft you can keep editing">Save draft</button>
<a class="studio-btn studio-btn-ghost studio-action" id="studio-exit"
- href="${agent.id ? `/agent/${encodeURIComponent(agent.id)}` : '/'}"
+ href="${agent.id ? `/agents/${encodeURIComponent(agent.id)}` : '/'}"
title="Save and view your live agent page">View agent ↗</a>
</div>
</header>
diff --git a/src/theater-feed.js b/src/theater-feed.js
index e546362dd..d4cd48956 100644
--- a/src/theater-feed.js
+++ b/src/theater-feed.js
@@ -57,9 +57,9 @@ export function normalizeEvent(e) {
case 'coin-buy':
return { ...base, kind: 'buy', mint: e.mint || null, title: 'Buy filled', sub: fmtSol(e.sol) || shortMint(e.mint), href: e.mint ? solscanToken(e.mint, e.network) : null };
case 'agent-deploy':
- return { ...base, kind: 'launch', agentId: e.agentId || null, title: 'New agent', sub: e.name || base.actor, href: e.agentId ? `/agent/${e.agentId}` : null };
+ return { ...base, kind: 'launch', agentId: e.agentId || null, title: 'New agent', sub: e.name || base.actor, href: e.agentId ? `/agents/${e.agentId}` : null };
case 'agent-onchain':
- return { ...base, kind: 'verify', agentId: e.agentId || null, title: 'Verified on-chain', sub: e.name || base.actor, href: e.agentId ? `/agent/${e.agentId}` : null };
+ return { ...base, kind: 'verify', agentId: e.agentId || null, title: 'Verified on-chain', sub: e.name || base.actor, href: e.agentId ? `/agents/${e.agentId}` : null };
case 'payment':
return { ...base, kind: 'pay', title: 'Payment', usd: Number.isFinite(Number(e.usdcAtomic)) ? Number(e.usdcAtomic) / 1e6 : null, sub: fmtUsdc(e.usdcAtomic) || e.recipientLabel || base.actor, href: e.explorerUrl || null };
case 'jackpot':
@@ -67,7 +67,7 @@ export function normalizeEvent(e) {
case 'agent-guard':
// A safety refusal — an agent declined a bad buy. Shown in the tape (not
// as a performance) so watchers see the platform's guardrails working.
- return { ...base, kind: 'guard', agentId: e.agentId || null, title: `${base.actor || 'Agent'} ${e.label || 'skipped an unsafe buy'}`, sub: e.mint ? shortMint(e.mint) : (e.reason || 'safety'), href: e.agentId ? `/agent/${e.agentId}` : (e.mint ? solscanToken(e.mint, e.network) : null) };
+ return { ...base, kind: 'guard', agentId: e.agentId || null, title: `${base.actor || 'Agent'} ${e.label || 'skipped an unsafe buy'}`, sub: e.mint ? shortMint(e.mint) : (e.reason || 'safety'), href: e.agentId ? `/agents/${e.agentId}` : (e.mint ? solscanToken(e.mint, e.network) : null) };
case 'agora-registered':
return { ...base, kind: 'launch', title: 'Agora citizen joined', sub: base.actor, href: e.citizenId ? `/agora?citizen=${e.citizenId}` : '/agora' };
case 'agora-task-claimed':
diff --git a/src/vaults.js b/src/vaults.js
index 6ebc843c4..6ff8e9fb0 100644
--- a/src/vaults.js
+++ b/src/vaults.js
@@ -517,8 +517,8 @@ function renderDetail(v, ledger) {
<h1 class="vx-d-name">${esc(v.agent?.name || 'Agent')}'s Vault</h1>
<div class="vx-d-rep">${repLine}</div>
<div class="vx-d-links">
- <a class="vx-link" href="/agent/${esc(v.agent_id)}">Agent profile →</a>
- <a class="vx-link" href="/agent/${esc(v.agent_id)}#trades">Watch it trade →</a>
+ <a class="vx-link" href="/agents/${esc(v.agent_id)}">Agent profile →</a>
+ <a class="vx-link" href="/agents/${esc(v.agent_id)}#trades">Watch it trade →</a>
</div>
</div>
<div class="vx-d-cta">
diff --git a/src/walk-companion-identity.js b/src/walk-companion-identity.js
index 9dadc5585..65a434afc 100644
--- a/src/walk-companion-identity.js
+++ b/src/walk-companion-identity.js
@@ -61,7 +61,7 @@ async function resolveIdentity() {
const mod = await import('./agents/active-agent.js');
const agent = await mod.getActiveAgent();
if (agent && agent.name) {
- return { name: agent.name, guest: false, href: agent.id ? `/agent/${agent.id}` : '/dashboard' };
+ return { name: agent.name, guest: false, href: agent.id ? `/agents/${agent.id}` : '/dashboard' };
}
} catch {
/* fall through to the hint-name below */