Skip to content

Get started

Get started with Fragments

Use Fragments in your coding agent or in the desktop app.

Two ways in

No app needed

In Claude Code or Codex

Install the Fragments plugin. It checks UI edits, draws frames and changes the contract after you confirm.
Mac and Windows

In the desktop app

Open your running React app, direct your agent, and review each change with Undo. The steps below cover the app.

Both use the same engine and the same contract in your repo.

The desktop app: before you start

  • Download the free beta for a Mac (Apple silicon, macOS 14 or later) or a Windows PC (Windows 10 or 11, x64).
  • Sign in to Fragments when you first open it.
  • Install and sign in to Claude Code or Codex.

Your Fragments account, your coding-agent account and any login inside your own app are separate.

  1. Open or create a project

    Open folder

    Pick the folder that holds your runnable React app, then start its development server. Fragments asks before running the project’s code.

    Create project

    Name a folder and pick Fragments UI, shadcn/ui, Base UI or Untitled UI’s free components. The starter uses Vite, React and TypeScript.

    Creating a project needs internet access. It sets up Git, then checks and builds the project before opening it.

  2. Find your page

    • Page shows your running app.
    • All pages shows every page Fragments found. Hidden routes and states may be missing.
    • Select an element to see its source. This needs React’s development information.

    If a page has no picture, follow the reason shown. It may need an example value or your app’s sign-in.

  3. Direct your agent

    • Check the permission mode in Settings.
    • Choose Claude Code or Codex and describe the change in Chat. A selected element is added to the request.
    • The agent works in your project with its own tools, plus Fragments’ page and design-system context. Saved edits show through the development server.
    • Stopping a turn keeps work already written. Read its receipt before deciding what to keep.
  4. Review the change

    Open Changes to see changed files and compare before and after. Fragments says when a comparison is missing.

    Undo reverses recorded project-file changes:

    • It checks that a file still matches the saved change, and keeps later saves that conflict.
    • It does not reinstall dependencies, remove commits or reverse actions outside the project.
    • Files outside the recorded scope are excluded. The receipt lists them.
  5. Check your work

    • Open Checks in the right panel and choose Check now.
    • Read each finding’s message and location.
    • Open Where it looks to see what the check covered.
    • Look at the running app too. A clean source check does not cover every rendered state.

    See Checks and the contract.

Next steps