Saltar al contenido
Outer
Esc
↑↓navegar↵abrir⌘Jvista previa
En esta página

Build on Outer

The build, gate, deploy loop every agent follows — tool order, verification, and error relay rules.

You build apps through MCP tools. Every code change follows one loop: build, gate, deploy.

Follow the loop

  1. Call create_app with the slug you want. Outer rejects a taken slug; a deleted app’s slug is free to claim again immediately.
  2. Call open_app {app} to orient: the file tree with roles, routes, D1 tables, bindings, brand, the AGENTS.md rules digest and quota in one call. Read deeper with read_files (up to 20 files or line ranges per call, numbered lines, or one symbol by name) and find code with search_code (path globs, kind: "symbol" for definitions; generated files skipped by default).
  3. Make small edits with commit using line-anchored line_edits (numbered lines from read_files), exact-match edits, or a unified-diff patch, one idea per message — or iterate without spending code changes: stage collects changes into a draft, check verifies it in the sandbox (charges build minutes), ship deploys it as one commit. Copy each file’s read_files blob into its expect_blob: a file that changed underneath then answers conflict with its current blob — re-read and retry. Without it, line numbers apply to the current file unchecked. Never mix exact edits with line_edits/inserts on the same file in one commit.
  4. Verify with look_at_app after UI changes and app_errors after touching server code.

Each code tool waits for the deploy. It returns success with the URL, failed with the build log plus structured diagnostics, or blocked with the lines to fix. A blocked deploy never goes live; the previous version keeps serving. Fix the flagged lines and commit again. A moved head under a ship rebases cleanly, or answers conflict with current_sha when the draft no longer applies.

Relay errors verbatim

When a tool refuses something, pass its user_message to your person verbatim. Never improvise around it or soften the limit.

Know the shells

Build Start with
Interactive app: accounts, live state, dashboards, more than one table Templates (app)
Content site: landing page, portfolio, blog, event page Templates (website)

Both shells are empty branded shells with nothing to delete. Copy ready patterns from Examples: examples lists them, examples {name} returns the README and files.

New to the loop? Work Quickstart end to end. The person-facing version lives at Quickstart.

¿Te ha resultado útil esta página?