# Trillion Prompt Library

Battle-tested prompts for AI coding agents (Claude Code, Cursor, Aider). Paste one into your agent and let it build. Free and forkable. Each prompt came out of building Trillion, a voice-first AI co-founder.

- Library: https://hellotrillion.ai/prompts
- Total prompts: 20
- Site overview: https://hellotrillion.ai/llms.txt

---

## Give Your AI Agent a Revenue Celebration — Turn Stripe Payments into a Live Animation, Sound, and Voice Moment in One Session

Paste this into Claude Code, Cursor, or Aider and it'll walk your agent codebase through building a revenue-celebration feature for a sub-agent connected to Stripe: reliably detecting successful payments, pushing them to your interface the instant they land, and firing a celebration scaled to the amount — an animation, a custom sound, and an avatar or visualizer that reacts as if your assistant is celebrating the win with you. It also solves the part everyone forgets: payments that arrive while nobody is watching, replayed on reconnect so a sale is never silently missed. Interview first, then build tier by tier. Each tier ships independently with verification.

- Category: Celebration
- Published: 2026-06-23
- Tags: agent, stripe, revenue, celebration, realtime, tutorial
- Page: https://hellotrillion.ai/p/money-celebration
- Full prompt (Markdown): https://hellotrillion.ai/p/money-celebration/raw

## Give Your AI Agent a Living Cosmic Interface — A Voice-Reactive 3D Orb and a Constellation of Floating Sub-Agents in One Session

Paste this into Claude Code, Cursor, or Aider and it'll walk your agent's web frontend through building the same interface used by a production voice assistant: a full-screen scene with a procedural deep-space nebula, a wireframe orb that breathes and deforms in real time with the user's voice and shifts color by conversational state, and a constellation of sub-agent avatars that orbit the orb, light up when dispatched, trail beams and pulse rings, and dock near their panels while they work. Interview first, then build tier by tier. Each tier renders something on screen and is verified before the next begins.

- Category: Cosmos
- Published: 2026-06-19
- Tags: agent, ui, threejs, webgl, voice-ui, design, tutorial
- Page: https://hellotrillion.ai/p/cosmic-orb-ui
- Full prompt (Markdown): https://hellotrillion.ai/p/cosmic-orb-ui/raw

## Give Your Sub-Agent Team Prompt Caching — From Re-Paying for Every System Prompt to a High Cache-Hit Rate in One Session

Paste this into Claude Code, Cursor, or Aider and it'll audit every place your agent team calls the Anthropic API, find where you're re-sending large system prompts and tool schemas at full price on every sub-agent call, and add cache_control in the right places — the shared tool loop, the main conversation history, and the per-agent one-shots — while catching the silent invalidators (a timestamp in the system prompt, an unstable tool order) that quietly keep your hit rate near zero. Audit first, then fix tier by tier. Each fix ships independently with before/after verification from the usage numbers you already get back.

- Category: Cache
- Published: 2026-06-15
- Tags: agent, prompt-caching, claude-api, anthropic-sdk, cost-optimization, tutorial
- Page: https://hellotrillion.ai/p/sub-agent-caching
- Full prompt (Markdown): https://hellotrillion.ai/p/sub-agent-caching/raw

## Run Your Laptop-Only Sub-Agents From the Cloud — Talk to a Remote Brain, Let It Drive Work on Your Local Machine in One Session

Paste this into Claude Code, Cursor, or Aider and it'll walk your agent codebase through letting an always-on cloud agent delegate laptop-only sub-agents (the ones that touch your filesystem, a local CLI, or local credentials and can't run in the cloud) down to your local machine: a durable cross-machine task queue that survives the laptop being asleep, a generic remote-dispatch task kind that runs the real local agent to completion, a cloud proxy tool that looks identical to the local one but enqueues instead of executing, a presence heartbeat so the cloud words its reply honestly, native local UI visibility while the agent runs, and a completion ping back to your phone. Interview first, then build tier by tier. Each tier ships independently with verification.

- Category: Bridge
- Published: 2026-06-08
- Tags: agent, multi-agent, cloud, laptop, task-queue, routing, claude-api, anthropic-sdk, tutorial
- Page: https://hellotrillion.ai/p/cloud-to-local
- Full prompt (Markdown): https://hellotrillion.ai/p/cloud-to-local/raw

## Give Your AI Agents an Orchestration Layer — From a Pile of Sub-Agents to a Safe, Self-Conducting System in One Session

Paste this into Claude Code, Cursor, or Aider and it'll walk your agent codebase through building the conductor that sits above your sub-agents: smart routing that picks the right agent and decomposes multi-step work, least-privilege tool scoping and bounded execution so no agent runs away, failure isolation at every boundary so one agent's error never crashes the system, human-in-the-loop confirmation gates, a structured handoff system where agents propose and the human approves (no silent agent-to-agent chaining), and a hot-reloading config-driven runtime that registers new agents without a restart. Interview first, then build tier by tier. Each tier ships independently with verification.

- Category: Orchestrator
- Published: 2026-06-02
- Tags: agent, orchestration, multi-agent, handoffs, claude-code, tutorial
- Page: https://hellotrillion.ai/p/orchestration
- Full prompt (Markdown): https://hellotrillion.ai/p/orchestration/raw

## Give Your AI Agent a Sub-Agent Spawner — From Hand-Coded Specialists to a Self-Extending Agent Factory in One Session

Paste this into Claude Code, Cursor, or Aider and it'll walk your agent codebase through building a sub-agent whose only job is to design, prompt-write, and register new specialist sub-agents on demand: a research helper that produces a structured skills report with citations, a meta-prompt that drafts the new agent's system prompt, a staged human-approval gate, a hot-reloading config-driven runtime that picks up freshly-approved agents without a restart, and a tool-wishlist mechanism that captures what the new agent wants but you don't have yet. Interview first, then build tier by tier. Each tier ships independently with verification.

- Category: Factory
- Published: 2026-05-27
- Tags: agent, agent-factory, spawning, claude-api, anthropic-sdk, tutorial
- Page: https://hellotrillion.ai/p/agent-factory
- Full prompt (Markdown): https://hellotrillion.ai/p/agent-factory/raw

## Give Your AI Agent a Cost Dashboard — From Blind Spend to Live Token Tracking in One Session

Paste this into Claude Code, Cursor, or Aider and it'll walk your agent codebase through capturing the token-usage data your LLM responses already return — and that you're almost certainly throwing away — pricing it from a local rate table, persisting one row per call, and surfacing a live month-to-date cost indicator with a click-to-expand breakdown: per model, cache savings, and day by day. Interview first, then build tier by tier. Each tier ships independently with verification.

- Category: Cost
- Published: 2026-05-22
- Tags: agent, observability, cost-tracking, tokens, claude-code, tutorial
- Page: https://hellotrillion.ai/p/token-usage
- Full prompt (Markdown): https://hellotrillion.ai/p/token-usage/raw

## Give Your AI Agent Real Self-Knowledge — From Black Box to Self-Aware in One Session

Paste this into Claude Code, Cursor, or Aider and it'll walk your agent codebase through building a living self-knowledge document that auto-refreshes on every commit. Block parser with auto-generated sections, introspecting generators for tools / sub-agents / integrations, a drift checker that catches stale references, a pre-commit hook that keeps it fresh, and the wiring to surface it to the agent at runtime. Interview first, then build piece by piece. Each piece ships independently with verification.

- Category: Self-Knowledge
- Published: 2026-05-18
- Tags: agent, self-awareness, introspection, neuromap, claude-code, tutorial
- Page: https://hellotrillion.ai/p/self-knowledge
- Full prompt (Markdown): https://hellotrillion.ai/p/self-knowledge/raw

## Build a Head-of-Design Sub-Agent — From Vanilla HTML to a Composing Designer in One Session

Paste this into Claude Code, Cursor, or Aider and it'll walk your agent codebase through building a head-of-design sub-agent that composes mockups from real component primitives (Next.js + Tailwind + shadcn/ui + MagicUI + Framer Motion + Google Fonts + AI-generated images) instead of authoring vanilla HTML. Interview first, then build tier by tier. Each tier ships independently with verification. Includes the stumbling blocks to avoid.

- Category: Design
- Published: 2026-05-13
- Tags: agent, design, subagent, shadcn, claude-code, tutorial
- Page: https://hellotrillion.ai/p/design-subagent
- Full prompt (Markdown): https://hellotrillion.ai/p/design-subagent/raw

## Harden Your AI Agent Against Real Attacks — From Binary Trust to Audited in One Session

Paste this into Claude Code, Cursor, or Aider and it'll walk your agent codebase through a complete hardening pass — log redaction, prompt-injection gates, tiered approval for code execution, a hardline shell blocklist, bearer-auth rate-limiting, secret rotation, security headers + CSP, a self-audit shield UI, anomaly caps per tool, a kill switch, and a per-credential incident runbook. Interview first, then build tier by tier. Each tier ships independently with verification.

- Category: Security
- Published: 2026-05-11
- Tags: security, agent, hardening, prompt-injection, tutorial
- Page: https://hellotrillion.ai/p/agent-security
- Full prompt (Markdown): https://hellotrillion.ai/p/agent-security/raw

## Cut Your AI Voice Agent's Response Latency from 6 Seconds to 1

Paste this into Claude Code, Cursor, or Aider and it'll pipeline your LLM stream with your TTS provider so the first audible word lands roughly one second after the user stops talking — not four to eight. Per-sentence speak events, a hold-one-ahead pattern for clean turn endings, a client-side audio queue, and the silence-threshold tuning that actually matters. Interview first, code second.

- Category: Voice
- Published: 2026-05-05
- Tags: voice, latency, tts, streaming, agent, tutorial
- Page: https://hellotrillion.ai/p/natural-convo
- Full prompt (Markdown): https://hellotrillion.ai/p/natural-convo/raw

## Lock in Your AI Agent's Personality So It Doesn't Drift Across Turns

Paste this into Claude Code, Cursor, or Aider and it'll add a personality-persistence layer to your AI agent: a recency voice cue on every user turn, a per-turn tonal checkpoint in the system prompt, and a personality file rebuilt around concrete voice examples. Stops the slide into generic-assistant mode that quietly starts after turn five. Interview first, code second.

- Category: Personality
- Published: 2026-05-04
- Tags: personality, prompt-engineering, agent, claude-api, tutorial
- Page: https://hellotrillion.ai/p/agent-personality
- Full prompt (Markdown): https://hellotrillion.ai/p/agent-personality/raw

## Add a Voice-First Mobile PWA to your AI Agent

Paste this into Claude Code, Cursor, or Aider and it'll add a voice-first mobile PWA companion to your existing AI agent: orb UI, hands-free voice loop, and the iOS audio quirks already baked in. Interview first, code second.

- Category: Voice
- Published: 2026-04-30
- Tags: voice, pwa, mobile, ios, skill, tutorial
- Page: https://hellotrillion.ai/p/mobile-pwa
- Full prompt (Markdown): https://hellotrillion.ai/p/mobile-pwa/raw

## Add a Bitcoin Mining Tracker to your AI Agent

Paste this into Claude Code or Cursor and it'll build a Bitcoin mining tracker tailored to your pool, hosting, and dashboard. Interview first, code second.

- Category: Code
- Published: 2026-04-30
- Tags: trillion, skill, bitcoin, stack sats, tutorial
- Page: https://hellotrillion.ai/p/btc-mining-tracker
- Full prompt (Markdown): https://hellotrillion.ai/p/btc-mining-tracker/raw

## Massively Save Tokens with Handoffs

Stop losing context to /compact. This prompt has Claude Code write a proper engineering handoff before you clear, so the next session resumes with full memory of what was decided and why.

- Category: Code
- Published: 2026-04-29
- Tags: claude code, tokens, optimization, tutorial
- Page: https://hellotrillion.ai/p/context-handoff
- Full prompt (Markdown): https://hellotrillion.ai/p/context-handoff/raw

## Install Chief of Staff Skill

A skill that gives your AI agent the role a real Chief of Staff plays for a CEO. Plug in your strategic doctrine, get a daily prioritization brief that cites your own operating rules verbatim, not generic productivity advice.

- Category: Code
- Published: 2026-04-28
- Tags: trillion, skill, revenue, tutorial
- Page: https://hellotrillion.ai/p/chief-of-staff-skill
- Full prompt (Markdown): https://hellotrillion.ai/p/chief-of-staff-skill/raw

## Connect Trillion to Supabase

An AI playbook for wiring a new Supabase project into Trillion — without the IPv6 potholes.

- Category: Code
- Published: 2026-04-24
- Tags: trillion, supabase, postgres, tutorial
- Page: https://hellotrillion.ai/p/supabase-connection
- Full prompt (Markdown): https://hellotrillion.ai/p/supabase-connection/raw

## Cloud Local Hybrid

How to get the best of both world when running your AI Agent locally and in the cloud.

- Category: Code
- Published: 2026-04-24
- Tags: trillion, cloud, local, postgres, tutorial
- Page: https://hellotrillion.ai/p/hybrid-model
- Full prompt (Markdown): https://hellotrillion.ai/p/hybrid-model/raw

## Build Your Own Voice-First UI

Three copy-paste prompts that recreate Trillion's luminous orb, glass shell, and mic button in any AI coding tool.

- Category: Code
- Published: 2026-04-23
- Tags: design, ui, three.js
- Page: https://hellotrillion.ai/p/trillion-ui-voice-setup
- Full prompt (Markdown): https://hellotrillion.ai/p/trillion-ui-voice-setup/raw

## The Code Sentinel

How I get Trillion to watch my repos, CI, and deploys, and only ping me when something actually matters.

- Category: Code
- Published: 2026-04-12
- Tags: engineering, github, ci
- Page: https://hellotrillion.ai/p/the-code-sentinel
- Full prompt (Markdown): https://hellotrillion.ai/p/the-code-sentinel/raw
