Imtiaz RayhanFounder & EditorPrompting Bolt.new is not like prompting a chat assistant or an in-IDE editor. Bolt.new is StackBlitz's cloud-native full-stack builder powered by in-browser WebContainers, pairing instant client-side app execution with persistent project instructions, Design System settings, and Bolt Secrets. That runtime shapes every prompting decision. Write app-level briefs, move recurring rules into persistent project settings, pin the load-bearing stack, and treat WebContainer compatibility as part of the spec rather than an afterthought.
What Bolt.new Is
Bolt.new is an AI coding agent that scaffolds, installs dependencies for, and runs full-stack web applications inside a WebContainer directly in your browser tab. You describe the application, Bolt generates files across frontend and backend routes, installs packages, and boots a live preview beside the prompt thread — no local toolchain to configure and no remote VM boot delay.
Bolt is not a snippet generator and not a surgical diff editor for a ten-year-old monorepo. It is a full-stack generator optimized for getting from product brief to live, clickable software fast. For the category definition, see agentic AI; for the broader landscape, see the pillar: The Complete Guide to Prompting AI Coding Agents.
The WebContainer Constraint — And Why It Belongs in the Prompt
The WebContainer is the most load-bearing technical fact about Bolt.new and the one beginners overlook most often. As explained in the WebContainers introduction, WebContainers run a Node.js-compatible environment natively inside the browser tab using WebAssembly. That architecture is why installs and previews feel immediate.
The tradeoff is that a browser runtime is not a bare Linux VM. Native binaries, compiled C/C++ addons, OS-level daemons, and certain system calls are unavailable or behave differently inside WebContainers. Package compatibility evolves over time, so the cleanest posture in your prompt is to name the runtime explicitly and steer the agent toward browser-compatible tooling.
One line does most of the work: "Runs in Bolt's WebContainer; prefer pure-JS dependencies and managed APIs, and avoid packages requiring native binaries or OS-level services." That sentence prevents broken npm install loops before generation starts.
Persistent Instructions, Design Systems, and Bolt Secrets
Repeating styling rules, tech-stack preferences, and architecture guardrails on every prompt burns context and invites drift across iterations. As covered in the Bolt Help Center, three built-in surfaces separate standing configuration from per-turn feature requests:
- Persistent project Markdown instructions. Store project-wide conventions — folder structure, TypeScript strictness, component guidelines, and WebContainer rules — in persistent project instructions rather than pasting them into every follow-up prompt.
- Design System settings. Define palette tokens, typography, spacing scale, and component visual direction in Bolt's Design System configuration so newly generated pages match existing screens without turning every prompt into a CSS spec.
- Bolt Secrets for environment variables. Never paste API keys, database connection strings, or webhook secrets into the chat box. Store credentials in Bolt Secrets and reference them only by environment variable name in your prompt (for example,
"Read process.env.ANTHROPIC_API_KEY from Bolt Secrets inside a server route — never expose it in client code"). If your prototype calls live AI APIs in late 2026 — such as Claude Sonnet 5.5 ($2/$10 per 1M tokens), GPT-6.2 Sol ($2/$10), Gemini 4 Hydrogen ($1.50/$7.50), or budget tiers like Claude Haiku 5.5 / GPT-6 Luna ($0.10/$0.50) — keeping those keys strictly inside Bolt Secrets and server-side handlers protects both your preview and any exported repo.
How Bolt.new Prompting Differs From v0 and Replit Agent
App-generation tools overlap on the surface, but their runtimes and defaults change what belongs in your brief. Bolt sits alongside Vercel's v0 (see the v0 prompting guide) and Replit Agent:
| Dimension | v0 | Bolt.new | Replit Agent |
|---|---|---|---|
| Primary strength | UI-first & full-stack Next.js on Vercel | Full-stack web apps in browser WebContainers | Full-stack apps with Linux VM persistence |
| Runtime | Vercel hosted preview | In-browser StackBlitz WebContainer | Replit hosted Linux VM |
| Default stack | React + Tailwind + shadcn/ui + Next.js | Agent's choice unless pinned | Agent's choice unless pinned |
| Standing config | Project instructions + Vercel integrations | Project Markdown instructions, Design System, Bolt Secrets | Workspace config + Replit Secrets |
| Prompt shape | Component-to-app spec with visual detail | Six-block app brief (stack + runtime pinned) | Product brief (PRD-shaped) |
| Iteration loop | Visual refinement + Vercel preview | Instant in-browser regenerate & click-through | Run on VM, observe logs, refine |
Two practical takeaways emerge. First, Bolt's unit of work is a complete running app, so vague one-liners leave too many architectural choices to chance. Second, naming WebContainer compatibility and Bolt Secrets up front prevents the most common build and security failures. For surgical edits on existing repos, compare the Cursor prompting guide.
App-Level Briefs — Not Component Requests
The biggest shift when prompting Bolt is zooming out from "build me this screen" to "build me this app." Follow the structured approach recommended in Bolt's guide to prompting effectively by opening with six plain-language blocks:
- What the app is. One or two sentences stating the product and its core outcome.
- Who uses it. The primary user and job to be done in one crisp sentence.
- Main flows. Numbered end-to-end actions (create X, filter Y, update Z, export report).
- Data model. Persistent entities and the exact fields that matter.
- Auth and pages. How authentication works (or explicitly
"none for v1") and the exact routes to generate. - Out of scope. Features excluded from v1 so Bolt does not invent billing pages, admin panels, or social auth you never requested.
Every block removes an ambiguity Bolt would otherwise guess at. A clear initial brief is the cheapest way to land a first preview close enough to refine in two or three focused turns rather than restarting from scratch.
Specifying the Tech Stack — Don't Let Bolt Pick Blind
Bolt will happily pick a stack if you omit one, because you asked for an app rather than a library. Under-specifying gets a preview faster at the cost of dependencies your team dislikes; over-specifying turns your brief into a rigid spec doc that fights the generator. Pin the four load-bearing decisions and let Bolt handle the rest:
- Framework. Next.js App Router, Vite + React, Remix, or Astro. Pin it because it sets routing and server boundaries.
- Database / storage. Browser-local storage, pure-JS embedded storage, or a hosted API/Postgres service (configured via Bolt Secrets). Pin it so persistence matches your runtime.
- Auth. Managed auth provider, simple magic link, or none for v1. Pin it so Bolt does not scaffold unused auth boilerplate.
- Styling. Tailwind CSS, Design System tokens, or a specific component library. Set visual tokens once in Design System settings.
For another angle on stack-pinning in full-stack builders, see the Replit Agent guide.
The In-Browser Iteration Loop
Bolt's core advantage is turnaround time: code generation and live preview share the same browser tab. That speed rewards tight, single-focus feedback loops — echoing the small, verifiable feedback loops highlighted in Anthropic's guide to building effective agents:
- Generate. Submit the six-block brief and let Bolt scaffold and boot the preview.
- Click through. Exercise the main happy-path flows directly in the live preview.
- Pick one or two concrete changes. Ask for
"Replace the top nav with a collapsible sidebar"or"Add confirmation before deleting a book"— never bundle ten unrelated tweaks into one message. - Prompt observed behavior. Describe what you saw in the preview and what should happen instead, rather than micro-managing line numbers.
- Lock stable wins. Once a flow works, keep follow-up prompts narrowly scoped to the next feature so Bolt does not rewrite working screens.
Resist editing files line-by-line inside Bolt's code pane while still exploring the app's shape. Once the prototype graduates into a long-lived codebase, export to GitHub and switch to an in-IDE agent like Cursor for minimal-diff maintenance.
Where Bolt.new Shines vs. Where It's Weaker
Bolt.new is strongest for prototypes, client demos, internal tools, and getting v1 of a web product live the same afternoon. Instant WebContainer boot, Design System consistency, and shareable previews turn ideation into clickable validation fast.
Honest weak spots:
- Long-lived multi-year repositories. Bolt optimizes for rapid scaffolding and iteration rather than surgical, minimal-diff PRs against strict legacy conventions.
- Heavy native dependencies. Workloads needing native system binaries, GPU libraries, or custom Linux daemons fit a full VM better than a browser WebContainer.
- Complex enterprise sprawl. Asking one prompt to build a twenty-screen, multi-tenant enterprise suite produces brittle glue code. Scope v1 tightly and layer features incrementally.
Decision heuristic:
- Clickable full-stack prototype or v1 web app today. Bolt.new is a strong default.
- Full app needing Linux VM tooling or native binaries. Replit Agent often fits better.
- UI-heavy Next.js interface deployed straight to Vercel. See the v0 prompting guide.
- Surgical diffs in an existing production repository. Use an IDE or terminal coding agent.
A Good App Brief Example
Here is a hypothetical Bolt.new app brief. Pair it with your persistent project Markdown instructions and Design System settings, and keep any external API keys in Bolt Secrets:
APP
"Readlog" — a personal reading tracker. One user logs books
they are reading, tracks status, and saves short reflection notes
for finished titles.
WHO IT IS FOR
A single user (me). No multi-user accounts or sharing.
MAIN FLOWS (v1)
1. Add a book by title and author from the home page.
2. Move a book's status: to-read -> reading -> finished.
3. Prompt for an optional short note when marking a book finished.
4. View three focused lists: currently reading, finished, and to-read.
5. Delete a book from any list with a quick confirmation.
DATA MODEL
Book:
- id (string)
- title (string)
- author (string)
- status ('to-read' | 'reading' | 'finished')
- note (string, optional, for finished books)
- createdAt, updatedAt (ISO timestamps)
OUT OF SCOPE (v1)
- Multiple users, accounts, login screens, or billing.
- Book cover scraping, external metadata, or ISBN lookup.
- Ratings, tags, or nested folders.
- Native mobile app; responsive web layout is sufficient.
TECH STACK
- Framework: Next.js App Router (TypeScript strict).
- Storage: browser-local persistence (IndexedDB or localStorage)
or a pure-JS WebContainer-compatible store.
- Styling: Tailwind CSS following the project Design System tokens.
- Auth: none.
WEBCONTAINER CONSTRAINT
Runs in Bolt's in-browser WebContainer. Prefer pure-JS dependencies.
Avoid native binaries or traditional server-only daemons. If any
external API is added later, read credentials strictly from Bolt Secrets.
PAGES
- "/" — currently reading list + quick-add form.
- "/finished" — finished books with reflection notes.
- "/to-read" — reading queue.
SUCCESS CRITERIA (what I will click through)
1. Adding a book from "/" shows it immediately in the list.
2. Moving a book from to-read -> reading -> finished updates counts.
3. Marking finished prompts for a short note and displays it on "/finished".
4. Deleting a book removes it cleanly.
5. Reloading the browser tab preserves all books and notes.
Every section closes a gap Bolt would otherwise improvise around. The WebContainer line prevents incompatible packages, the out-of-scope list stops unrequested login walls, and the clickable success criteria give you a concrete verification checklist for your first review loop.
Common Anti-Patterns
- One-line prompts for a whole app.
"Build me a habit tracker"forces Bolt to guess stack, schema, auth, and routes all at once. Fix: lead with the six-block app brief. - Ignoring persistent project Markdown and Design System settings. Repeating brand colors and TypeScript rules in every turn wastes context and causes visual drift. Fix: configure persistent project instructions and Design System tokens once.
- Pasting API keys into prompts. Hardcoded keys leak into chat logs and client bundles. Fix: store all credentials in Bolt Secrets and reference them by env var name inside server routes.
- Omitting WebContainer constraints. Unconstrained prompts sometimes pull native packages that fail to boot in the browser. Fix: include one WebContainer compatibility line in your project instructions and initial brief.
- Bundling ten edits into one follow-up prompt. Giant follow-up prompts cause regressions in working flows. Fix: send one or two scoped behavioral changes per loop and click-test after each.
- Leaving out an out-of-scope list. Without boundaries, Bolt frequently generates unrequested auth, onboarding, or settings pages. Fix: explicitly state what v1 excludes.
FAQ
How is Bolt.new different from v0?
Both can build full-stack web apps, but v0 remains centered on React, Tailwind, shadcn/ui, and Vercel's hosted preview/deploy workflow, while Bolt.new runs full-stack workspaces directly inside in-browser StackBlitz WebContainers with project Markdown rules and Bolt Secrets. See the v0 prompting guide.
How is Bolt.new different from Replit Agent?
Both build full-stack apps from natural-language briefs, but the runtime differs: Bolt runs in an in-browser WebContainer for instant boot, whereas Replit Agent runs inside a hosted Linux VM. That changes which native packages and OS services are available. See the Replit Agent prompting guide.
Should I pin the tech stack or let Bolt pick?
Pin the load-bearing pieces — framework, storage, and auth — set visual direction in Design System settings, and include a one-line WebContainer compatibility constraint so Bolt picks pure-JS dependencies for the pieces it owns.
Is Bolt.new good for long-term codebases?
It is strongest for prototypes, demos, internal tools, and getting a v1 web app running fast. Once a codebase matures into multi-year maintenance with strict minimal-diff review, teams typically sync to GitHub and transition ongoing edits to an IDE or terminal agent like Cursor.
Does Bolt.new replace writing code?
No. It removes the slow boilerplate of starting a new app — scaffolding, routing, package wiring, and first boot — so you validate working software quickly. Once the product exists and scales, standard engineering discipline takes over. See the pillar guide.