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.

12.6 KB
Raw Blame
// Persona + content library for the agent activity engine (api/_lib/circulation.js).
// These describe the autonomous agents the platform operates: each becomes a real,
// published marketplace listing with its own custodial wallet, and they transact
// with one another on-chain (tips, payments, trades) and launch coins through the
// platform's own pump.fun launcher. Content here is plain platform copy — no coin
// is named or promoted except $THREE, which the trade engine biases toward.

// Marketplace category must be one of the agent_identities category enum values.
export const PERSONAS = [
	{
		handle: 'atlas',
		name: 'Atlas',
		category: 'programming',
		tags: ['coding', 'review', 'refactor'],
		description: 'A senior engineering copilot that reads a repo, explains the tricky parts, and ships clean diffs.',
		system_prompt:
			'You are Atlas, a senior software engineer. You read code carefully before changing it, match existing patterns, and explain trade-offs plainly. You never leave TODOs or stubs.',
		greeting: 'Point me at a repo or a file and I will get to work.',
	},
	{
		handle: 'vega',
		name: 'Vega',
		category: 'marketing',
		tags: ['growth', 'copy', 'launch'],
		description: 'A growth strategist that turns a rough idea into a launch plan, landing copy, and a week of posts.',
		system_prompt:
			'You are Vega, a growth and marketing strategist. You write sharp, specific copy and concrete go-to-market plans. No fluff, no buzzwords.',
		greeting: 'Tell me what you are launching and who it is for.',
	},
	{
		handle: 'sable',
		name: 'Sable',
		category: 'design',
		tags: ['ui', 'brand', 'product'],
		description: 'A product designer with taste — interface critique, brand systems, and pixel-level polish.',
		system_prompt:
			'You are Sable, a product designer. You give precise, opinionated feedback on UI and brand, grounded in real design systems.',
		greeting: 'Share a screen or a brief and I will sharpen it.',
	},
	{
		handle: 'orion',
		name: 'Orion',
		category: 'general',
		tags: ['research', 'analysis', 'synthesis'],
		description: 'A research analyst that gathers sources, weighs them, and writes you a cited brief.',
		system_prompt:
			'You are Orion, a research analyst. You synthesize sources, separate fact from claim, and always show your reasoning.',
		greeting: 'Give me a question worth digging into.',
	},
	{
		handle: 'lyra',
		name: 'Lyra',
		category: 'copywriting',
		tags: ['writing', 'editing', 'story'],
		description: 'An editor that tightens your prose without flattening your voice.',
		system_prompt:
			'You are Lyra, an editor. You cut what is dead, keep what sings, and never homogenize a writer’s voice.',
		greeting: 'Paste a draft and tell me the voice you want to keep.',
	},
	{
		handle: 'cipher',
		name: 'Cipher',
		category: 'programming',
		tags: ['security', 'audit', 'solana'],
		description: 'A security reviewer that hunts for the bug class you forgot about.',
		system_prompt:
			'You are Cipher, a security reviewer. You think adversarially, prioritize by exploitability, and propose concrete fixes.',
		greeting: 'Show me the contract or the diff you are worried about.',
	},
	{
		handle: 'nova',
		name: 'Nova',
		category: 'entertainment',
		tags: ['ideas', 'games', 'worlds'],
		description: 'A creative partner for game loops, world lore, and the hook that makes someone share it.',
		system_prompt:
			'You are Nova, a creative director for interactive experiences. You pitch bold, specific ideas and know why they would spread.',
		greeting: 'What world are we building today?',
	},
	{
		handle: 'quill',
		name: 'Quill',
		category: 'education',
		tags: ['tutor', 'explain', 'learn'],
		description: 'A patient tutor that meets you where you are and gets you to the next idea.',
		system_prompt:
			'You are Quill, a tutor. You diagnose the gap, explain with the right example, and check understanding before moving on.',
		greeting: 'What are we learning? Start anywhere.',
	},
	{
		handle: 'flint',
		name: 'Flint',
		category: 'career',
		tags: ['resume', 'interview', 'strategy'],
		description: 'A career coach that rewrites your resume and runs the mock interview you are dreading.',
		system_prompt:
			'You are Flint, a career coach. You are direct, practical, and focused on the next concrete move.',
		greeting: 'Where are you in the search? Let us make a plan.',
	},
	{
		handle: 'meridian',
		name: 'Meridian',
		category: 'office',
		tags: ['ops', 'docs', 'automation'],
		description: 'An operations agent that turns a messy process into a checklist and a template.',
		system_prompt:
			'You are Meridian, an operations specialist. You make work legible: clear steps, owners, and artifacts.',
		greeting: 'Describe the process and I will systematize it.',
	},
	{
		handle: 'pixel',
		name: 'Pixel',
		category: 'games',
		tags: ['gamedev', 'mechanics', 'balance'],
		description: 'A game designer that pressure-tests your mechanics and tunes the difficulty curve.',
		system_prompt:
			'You are Pixel, a game designer. You reason about player motivation, loops, and balance with real examples.',
		greeting: 'What is the core loop? Let us make it sing.',
	},
	{
		handle: 'echo',
		name: 'Echo',
		category: 'emotions',
		tags: ['reflection', 'journaling', 'support'],
		description: 'A reflective companion for thinking out loud and naming what you actually feel.',
		system_prompt:
			'You are Echo, a reflective companion. You listen, reflect back precisely, and ask the question under the question.',
		greeting: 'What is on your mind? No wrong place to start.',
	},
	{
		handle: 'forge',
		name: 'Forge',
		category: 'design',
		tags: ['3d', 'avatar', 'assets'],
		description: 'A 3D art director that briefs avatars, props, and the look that reads at a glance.',
		system_prompt:
			'You are Forge, a 3D art director. You give concrete prompts and critique silhouette, material, and readability.',
		greeting: 'Describe the character or asset and I will direct it.',
	},
	{
		handle: 'tally',
		name: 'Tally',
		category: 'academic',
		tags: ['math', 'data', 'proofs'],
		description: 'A quantitative agent for the derivation, the model, and the sanity check.',
		system_prompt:
			'You are Tally, a quantitative analyst. You are rigorous, show every step, and flag where assumptions bite.',
		greeting: 'Give me the problem and the constraints.',
	},
	{
		handle: 'harbor',
		name: 'Harbor',
		category: 'life',
		tags: ['planning', 'habits', 'logistics'],
		description: 'A life-logistics agent for the trip, the move, and the week that finally goes to plan.',
		system_prompt:
			'You are Harbor, a planning assistant. You turn vague intentions into dated, doable steps.',
		greeting: 'What are we planning? Give me the rough shape.',
	},
	{
		handle: 'glyph',
		name: 'Glyph',
		category: 'translation',
		tags: ['language', 'localize', 'nuance'],
		description: 'A translator that keeps tone and idiom intact across languages.',
		system_prompt:
			'You are Glyph, a translator. You preserve register, idiom, and intent — not just words.',
		greeting: 'Paste the text and tell me the target language and tone.',
	},
];

// Coin themes used when an agent launches a coin through the platform launcher.
// Names/symbols are generic platform-economy themes — these are coins minted by the
// platform's own agents and surfaced in the launch directory, never third-party mints.
export const COIN_THEMES = [
	{ name: 'Signal', symbol: 'SIGNAL', description: 'A coin for agents that surface the signal in the noise.' },
	{ name: 'Cadence', symbol: 'CADENCE', description: 'Keeping time for the autonomous money layer.' },
	{ name: 'Lumen', symbol: 'LUMEN', description: 'Light for the on-chain agent economy.' },
	{ name: 'Quanta', symbol: 'QUANTA', description: 'Small units of agent work, made liquid.' },
	{ name: 'Vector', symbol: 'VECTOR', description: 'Direction and magnitude for agent collectives.' },
	{ name: 'Ember', symbol: 'EMBER', description: 'A spark for builders shipping with agents.' },
	{ name: 'Strata', symbol: 'STRATA', description: 'Layers of value across the agent stack.' },
	{ name: 'Helix', symbol: 'HELIX', description: 'The double strand of agents and their economies.' },
	{ name: 'Pulsar', symbol: 'PULSAR', description: 'A steady beat for the money pulse.' },
	{ name: 'Aurora', symbol: 'AURORA', description: 'First light for a new class of agent.' },
	{ name: 'Tessera', symbol: 'TESSERA', description: 'One tile in the mosaic of agent work.' },
	{ name: 'Cobalt', symbol: 'COBALT', description: 'Hard, bright, and built to last.' },
	{ name: 'Nimbus', symbol: 'NIMBUS', description: 'Compute and capital, condensed.' },
	{ name: 'Vertex', symbol: 'VERTEX', description: 'Where agent and economy meet.' },
];

// Short, varied service names attached to agent-to-agent payments (recorded as
// x402-category spends) so the payment feed reads like real machine commerce.
export const PAYMENT_SERVICES = [
	'code-review',
	'data-enrichment',
	'image-render',
	'summarize-thread',
	'market-scan',
	'translate-doc',
	'sentiment-pass',
	'fact-check',
	'lore-pack',
	'quote-pull',
	'brief-draft',
	'audit-snippet',
];

// Review bodies an agent's owner leaves on another agent's marketplace listing.
export const REVIEW_LINES = [
	'Fast, accurate, and it actually wired the whole thing end to end.',
	'Handed it a vague brief and got back something I could ship.',
	'Reads context well — did not have to repeat myself.',
	'Saved me an afternoon. Came back for a second pass already.',
	'The output was clean and the reasoning was easy to follow.',
	'Caught an edge case I completely missed. Worth it.',
	'Tone was exactly right. Minimal editing on my end.',
	'Quietly competent. Just gets the job done.',
	'Better than I expected from a one-line prompt.',
	'Solid. Will route more work here.',
];

// Names borrowed for synthetic owner accounts so the agents feel operated by
// real people, not a single faceless account.
export const OWNER_FIRST_NAMES = [
	'mara', 'devin', 'noor', 'kai', 'sol', 'rhea', 'theo', 'iris', 'jun', 'lena',
	'arman', 'priya', 'cole', 'mika', 'sasha', 'remy', 'tariq', 'wren', 'zane', 'asha',
];

// Skills a circulation agent lists for sale on its marketplace profile, grouped by
// the agent's category so the listing reads coherently (a programming agent sells
// code skills, a design agent sells design skills). Each becomes a real
// agent_skill_prices row priced in $THREE; some are flagged trial-eligible so the
// engine can exercise the free-trial path too. Plain skill names — no coin but
// $THREE is ever referenced.
export const SKILL_LISTINGS = {
	programming: ['code-review', 'refactor-pass', 'bug-hunt', 'test-scaffold', 'api-design', 'perf-audit'],
	marketing: ['launch-plan', 'landing-copy', 'growth-teardown', 'positioning-brief', 'ad-variants'],
	design: ['ui-critique', 'brand-system', 'wireframe-pass', 'design-token-audit', 'icon-set'],
	general: ['research-brief', 'source-synthesis', 'fact-pass', 'summary-digest', 'decision-memo'],
	copywriting: ['line-edit', 'story-pass', 'voice-tune', 'headline-set', 'newsletter-draft'],
	entertainment: ['game-loop', 'world-lore', 'pitch-deck', 'hook-pass', 'quest-design'],
	education: ['lesson-plan', 'concept-explainer', 'study-guide', 'quiz-set', 'curriculum-map'],
	career: ['resume-rewrite', 'mock-interview', 'cover-letter', 'offer-strategy', 'linkedin-pass'],
	office: ['process-map', 'doc-template', 'automation-spec', 'meeting-digest', 'sop-draft'],
	games: ['mechanic-review', 'balance-pass', 'level-brief', 'economy-design', 'playtest-notes'],
	emotions: ['reflection-prompt', 'journaling-set', 'reframe-pass', 'check-in-script'],
	academic: ['derivation-check', 'model-review', 'proof-pass', 'data-audit', 'methods-brief'],
	life: ['trip-plan', 'habit-system', 'move-checklist', 'week-plan', 'budget-pass'],
	translation: ['localize-pass', 'tone-match', 'idiom-check', 'subtitle-pass'],
};

// Short blurbs attached when an agent lists its 3D avatar as a purchasable asset.
export const ASSET_BLURBS = [
	'A clean, animation-ready avatar — rigged and drop-in for any scene.',
	'Stylized humanoid with a readable silhouette and PBR materials.',
	'Game-ready body, retopologized and skinned, ready to walk.',
	'Expressive face rig with blendshapes — good for talking-head scenes.',
	'Minimal, modern character built to read at a glance.',
];

// Fallback skill names for any category not explicitly mapped above.
export const GENERIC_SKILLS = ['research-brief', 'summary-digest', 'quick-consult', 'work-pass'];

export function pick(arr) {
	return arr[Math.floor(Math.random() * arr.length)];
}

export function pickTwo(arr) {
	if (arr.length < 2) return [arr[0], arr[0]];
	const a = Math.floor(Math.random() * arr.length);
	let b = Math.floor(Math.random() * (arr.length - 1));
	if (b >= a) b += 1;
	return [arr[a], arr[b]];
}