Public beta0.2.0-beta.21WebLocal-first

Design the product you are already running.

Foundry turns a live web project into a visual design workspace for Codex, Cursor, and Claude Code. Select real elements, refine them precisely, review one change set, then apply and verify the result in source.

Direct manipulation, with source accountability.

No account. No cloud workspace. Local runtime.
Foundry workspace in light mode, showing Layers, the Morrow canvas, change summary, and Inspector
Design the running product

Select live elements, refine measured values, and review exact changes in one connected workspace.

Installation

Install the agent connection once. Then use one command in every project. Foundry finds the real project root, validates its development integration, and refuses to modify a home folder by mistake.

Install once
npx foundry-design install
1

Foundry installs one shared skill and MCP connection for Codex, Cursor, and Claude Code.

2

Restart those agents once so they can load the Foundry tools.

3

Open a real project and run npx foundry-design. Foundry detects, validates, and opens it.

Agent prompt
Start Foundry for this project and keep listening for Apply with agent requests.
Your first complete loopReady when all five are complete
  1. 01

    Setup completeThe project adapter is installed and validated.

  2. 02

    Agent listeningFoundry confirms the MCP listener is live for this project session.

  3. 03

    Element selectedChoose a real element in the running product.

  4. 04

    Change recordedAdjust a value and review the measured result.

  5. 05

    Applied and verifiedThe rebuilt value matches the reviewed request.

Use the same command in every later project. Foundry discovers the nearest project root, reuses the shared connection, and only refreshes files it manages.

Every project
npx foundry-design

Requires Node.js 20 or newer. Precision setup supports Next.js App Router, Vite, and plain HTML. Other local web projects can open in Basic mode without an entry-point edit.

One continuous design loop

A preview is useful. A measured, reviewed, and verified source change is useful for longer.

  1. 01

    Select

    Choose a real element in the running product. Foundry measures what the browser rendered and traces it toward source.

  2. 02

    Refine

    Adjust layout, type, color, content, accessibility, and motion with direct controls and project-native values.

  3. 03

    Review

    See every requested change, its scope, source mapping, and confidence before anything reaches the codebase.

  4. 04

    Apply and verify

    Let the active coding agent update source, rebuild the product, and compare the requested values with the rendered result.

Designed for work that must reach source

Foundry keeps navigation, editing, review, and application separate enough to stay clear, but connected enough to feel like one workspace.

Navigate the product

  • Live Layers and Components
  • Source-aware selection
  • Fixed-size artboards
  • Responsive Design Lab

Make precise changes

  • Layout and spacing
  • Typography Studio
  • Editable shadows and blur
  • Motion Studio and accessibility

Use the project language

  • Component Workshop
  • Design System intelligence
  • Project-native tokens
  • Mapped variants and states

Finish the loop

  • Isolated Design Branches
  • Grouped review
  • Agent source application
  • Rendered verification

Documentation

The complete reference for setting up Foundry, working visually, handing changes to an agent, and keeping the process reversible.

Requirements and support

Install from the root of a project with Node.js 20 or newer. Foundry’s complete beta workflow is currently designed around web projects.

Automatic web setup
Next.js App Router, Vite, and plain HTML.
Generic web projects
Foundry creates the local adapter and provides an explicit integration step when it cannot safely edit an entry point.
Coding agents
Codex, Cursor, and Claude Code.
Native experiments
SwiftUI and React Native adapters are available for debug builds, but do not yet have the complete automatic web workflow.

Start your first session

Run one command from the project. It installs or updates Foundry, repairs the user-level agent connection, validates the integration, records a reversible manifest, and opens the session.

Install and start
npx foundry-design

Restart your coding agent once after the first installation. Then reopen the same project and use the agent prompt. You can queue a reviewed batch while the agent is offline and it will be claimed after the listener reconnects.

Agent prompt
Start Foundry for this project and keep listening for Apply with agent requests.

Foundry reuses an available development server and local runtime when possible, resumes the most recent session for the current source revision, and opens a per-session authenticated preview.

Understand the workspace

Layers
Navigate the rendered hierarchy, search elements, reorder compatible siblings, and see source-mapping status.
Components
Find instrumented component families and select one or every live instance.
Inspector
Edit properties that apply to the current selection. Scope, breakpoint, theme, and state remain attached to each recorded change.
Canvas tools
Switch between Select, Interact, and Pan. Navigate fixed-size artboards with explicit zoom controls while preserving the requested viewport.
Change summary
See the latest recorded edit from the top-center summary and open Review without losing the current canvas context.
Visual Agent
Attach a live selection or region to a visual question. Requests wait safely for a listener, and preview directions report success only after the branch and rendered preview are acknowledged.

Select and edit

In Select mode, click any element to select it. Shift-click adds compatible elements. Repeat a click to cycle through overlapping targets, or use Layers for exact hierarchy navigation. In Interact mode, Option-click temporarily selects an element without leaving interaction mode.

The Inspector exposes only properties that apply to the selected element and can be represented safely. Available controls include:

  • Position, fixed, hug, fill, minimum and maximum sizing, ratio, overflow, alignment, distribution, and linked spacing
  • Typography presets, font properties, line height, letter spacing, alignment, and editable content
  • Project colors, gradients, fills, strokes, opacity, radius, effects, and contrast guidance
  • Accessible names, interaction states, responsive context, and motion values

Numeric fields support keyboard entry and label dragging. Preview undo and redo affect temporary visual changes, not project source.

Foundry dropdowns are theme-aware, keyboard accessible, and kept above panel clipping. Effects expose editable drop shadow, inner shadow, layer blur, and background blur values when the selected source can represent them safely.

Motion Studio discovers CSS animations, CSS transitions, and Web Animations on the selected element. You can play, pause, replay, loop, change playback speed, scrub the timeline, and edit rendered keyframe tracks before review.

Typography Studio compares Current and Candidate specimens side by side with identical copy, dimensions, settings, and context. It reports loaded-face status, line count, rendered size, and clipping before a mapped font choice enters Review.

Use project-native values

Foundry indexes components, variants, breakpoints, themes, motion conventions, and design tokens from the project. Controls can suggest existing spacing, radius, typography, and color values instead of introducing unnecessary literals.

When a rendered value could map to more than one source expression, Foundry asks for the intended mapping. Ambiguous changes stay unresolved and cannot be included in an apply run until that choice is made.

Re-index project rebuilds the stored design graph from source, preserves the last good graph if indexing fails, and updates the live workspace only after the replacement is acknowledged.

Test conditions and design health

The State Workbench uses only themes and states authored by the project. Each viewport, theme, interaction state, and motion combination is measured as applied, current, unsupported, or untested instead of being simulated.

Responsive Design Lab audits every live frame independently, reports partial connection failures, compares geometry across frames, and keeps breakpoint-specific or all-breakpoint edit scope attached to staged changes.

Design Health can surface contrast, overflow, clipping, touch-target, accessible-name, reduced-motion, and spacing issues.

Safe corrections are recorded as normal changes and still pass through Review. Intentional issues can be ignored with their evidence preserved locally.

Large viewports open at their real dimensions. Pan, Space-drag, middle-drag, trackpad movement, and explicit zoom navigate the canvas without changing responsive measurements. Closing Design Health or Design Memory returns to the same selection, panel state, pan, and zoom.

Review and Compare

Review groups changes by element and shows the requested value, original value, scope, source evidence, mapping confidence, and affected instance count. You can edit, include, reject, or permanently delete an unapplied change. Deleting removes it from the local batch and restores its recorded original value on the canvas.

Compare temporarily returns to the canvas for before and after toggling, continuous scrubbing, side-by-side inspection, or element isolation. Returning to Review preserves approvals and edited values.

Apply, rebuild, and verify

Apply with agent freezes one persistent run containing only approved, exactly mapped changes and every affected viewport, theme, and state. Queued for agent means the batch is stored locally. Handoff received means an agent has claimed a renewable lease. Applying source changes is the first state that confirms editing has begun.

If a listener disconnects before source editing begins, Foundry safely returns the run to the queue and blocks the stale claimant from updating it. Reconnect agent restores the listener without creating a duplicate run.

If the agent disappears during source editing, rebuilding, or verification, Foundry preserves the same run in Needs attention. Resume with agent requires your approval, then the next listener must reinspect the current source before continuing. Foundry does not assume that repeating a partial source edit is safe.

After editing, the agent runs relevant project checks and asks Foundry to reload the rendered surface. Foundry measures the rebuilt result against the requested values, even if Review was closed, reopened, or refreshed during the run.

A run passes only after source changed and every reviewed context returns acknowledged rendered evidence matching the request. If verification finds a mismatch, Foundry explains it and waits for explicit retry authorization.

Connect your coding agent

The universal setup installs the reusable skill and MCP connection once. Agent-native routes provide the same versioned Foundry bundle through each host.

All supported agents
npx foundry-design install
CodexShared plugin-ready connection

Use the npm route until Foundry completes public marketplace review. It installs the same skill and MCP bridge across projects.

Install for Codex
npx foundry-design install-agent codex
CursorOne-click MCP connection

Open the current Cursor install prompt, then run Foundry once from each product repository to add its development adapter.

Add Foundry to Cursor
Claude CodeVersioned plugin marketplace

Add the Foundry marketplace once, install the plugin, then reload plugins before opening the product project.

Install for Claude Code
/plugin marketplace add seanx24x/foundry-design-control
/plugin install foundry-design-control@foundry-design-control
/reload-plugins
Claude DesktopNative extension bundle

Install the release bundle from Settings, Extensions, Advanced. New MCP tools become available in a new task.

Download the MCPB bundle

After the shared connection exists, every project needs only its development adapter and local metadata. Foundry creates that lightweight connection automatically.

Connect this project
npx foundry-design connect

Project-scoped connections remain available as an explicit compatibility option.

Compatibility mode
npx foundry-design setup --project-agent --agent codex

Claude Desktop can also use Foundry through the validated MCPB extension. Install the extension from Claude Desktop settings, then use the normal Foundry command in each project to add the development adapter.

CLI reference

install

Install one reusable Foundry skill and MCP connection for Codex, Cursor, and Claude Code.

install
npx foundry-design install

Options --agent codex,cursor,claude · --yes

launch

Install or update Foundry, repair the detected shared agent connection, validate the integration, and start or resume the visual session.

launch
npx foundry-design

Options --project PATH · --url URL · --new · --no-open · --no-dev · --no-start · --yes

reset

Migrate legacy project agent files and refresh the shared connection to one exact release while preserving customized files.

reset
npx foundry-design reset

Options --project PATH · --agent codex,cursor,claude · --url URL · --yes

companion

Show locally installed agents and recently opened projects without using an account or telemetry.

companion
npx foundry-design companion

Options --json

setup

Connect the project through the shared machine bridge and configure only its supported development integration.

setup
npx foundry-design setup --yes

Options --project PATH · --agent codex,cursor,claude · --agent none · --project-agent · --url URL · --yes

start

Start the loopback runtime, reuse or launch the project preview, and open an authenticated Foundry session.

start
npx foundry-design start

Options --project PATH · --url URL · --platform PLATFORM · --new · --no-open · --no-dev

doctor

Check project detection, instrumentation, agent connection, preview availability, and runtime health.

doctor
npx foundry-design doctor

Options --project PATH · --repair · --json

status

Report project integration, the installed MCP version, runtime health, and the live listener as separate readiness checks.

status
npx foundry-design status

Options --project PATH · --json

index

Inspect the project and output its local design graph for components, variants, tokens, and source mappings.

index
npx foundry-design index

Options --project PATH · --output FILE

export

Export a session as structured JSON, one agent prompt, or the complete local record.

export
npx foundry-design export <SESSION_ID>

Options --format json|prompt|full · --output FILE

install-agent

Add one reusable user-level skill and MCP connection for a coding agent.

install-agent
npx foundry-design install-agent <cursor|claude|codex>

Options --project-agent · --project PATH

disconnect

Remove the current project from Foundry's recent-project list without deleting its development adapter.

disconnect
npx foundry-design disconnect

Options --project PATH · --yes

uninstall

Remove Foundry-managed project integration while preserving files that contain user changes.

uninstall
npx foundry-design uninstall

Options --project PATH · --global · --agent codex,cursor,claude · --yes

Troubleshooting

Check readiness
npx foundry-design status

Status reports configuration, installed MCP version, runtime health, and the live listener as separate checks. It never calls a configured server connected until the active session has received a listener heartbeat.

Diagnose and repair
npx foundry-design doctor --repair
Resolve mixed or stale installs
npx foundry-design reset
Foundry configured the wrong folder

Current Foundry refuses to configure a home folder and searches upward for the nearest real project. Open the intended project folder, then run the reset command. It refreshes project and shared connections together.

Doctor shows two different Foundry versions

Run npx foundry-design reset from the project. It removes Foundry-owned legacy project MCP references, refreshes the shared machine bridge, and preserves files you customized.

Foundry does not open

Run the doctor command from the project root. Confirm Node.js 20 or newer is installed and check whether another Foundry runtime is already using port 4387.

The preview opens without Foundry controls

Restart the coding agent after setup, then start a new Foundry session. The authenticated preview URL must include the Foundry session parameters.

Apply with agent stays Queued for agent

The reviewed batch is stored locally because no coding agent is listening. Restart the agent, reopen the same project, and ask it to start Foundry and keep listening. The existing run remains available and will be claimed after reconnecting.

Handoff received does not progress

Foundry delivered the reviewed batch, but source editing has not started yet. Use Reconnect agent or restart the listener in the same project. An abandoned claim expires safely, returns to the queue, and cannot be updated by the stale claimant.

The agent stopped during source work

Foundry preserves the same run in Needs attention instead of silently repeating a partial edit. Choose Resume with agent. The next listener will claim that same run and reinspect the current source before continuing.

Claude is configured but Foundry tools are missing

Run the status command first. It checks the actual listener separately from configuration and reports invalid MCP configuration shapes. After installing or updating the Claude Code plugin, run /reload-plugins. After installing the Claude Desktop extension, begin a new task because an existing task cannot gain newly installed MCP tools.

The agent plugin updated but this task still cannot see Foundry

Agent tools are loaded when a task begins. Reload plugins where the host provides that action, then open a new task in the same project folder. Your local Foundry project and queued review state remain available.

I need to share a support report

Open the Foundry status menu and choose Copy diagnostics. The copied report contains product version, theme, connection state, counts, and run state. It excludes project content, paths, selectors, session IDs, tokens, and preview values.

Setup reports integration pending

Foundry could not find a safe supported web entry, so it opens a loopback-only Basic preview. Use the generated adapter guidance when you need exact source mapping and Apply with agent, then run doctor again.

A change cannot be included

The rendered element has not been mapped precisely enough. Choose the intended source mapping in Review before sending the change to the agent.

Verification needs attention

Review the requested and rendered values. Foundry waits for explicit retry authorization and never applies another correction automatically.

Privacy, security, and removal

Foundry runs on your machine, binds its runtime to the loopback interface, and protects every design session with a generated token. The installed product does not require an account, use a Foundry cloud service, include telemetry, or send analytics.

This public website uses Vercel Web Analytics to understand page visits. That website tracking is separate from the Foundry product and is not installed in your project.

Session data can include rendered measurements, local project paths, source locations, design changes, validation results, and apply history. Keep authenticated session URLs and exports private.

Preview overrides are temporary. A coding agent must produce a normal source change and validate the rebuilt result before Foundry marks an apply run as passed.

Remove project integration
npx foundry-design uninstall
Remove the machine connection
npx foundry-design uninstall --global

Project and machine removal are separate. Both remove only Foundry-managed integration, while files with user changes are preserved for manual review.

Move from “make it smaller” to an exact, verified change.

Install the public beta in an existing web project and design the running product with the agent already doing the implementation.

Install Foundry