Skip to content

How to edit your UI with T3 Code by pointing at it

To edit your UI with T3 Code by pointing at it, run npx tencil in your project with the T3 Code desktop app running, press C on your dev site, click the element and type what should change. Every pin becomes a T3 Code thread in your project, with the element in its first message.

npx tencil

What you need

  • Node 22 or newer
  • The T3 Code desktop app, running
  • A Next.js or Vite app, or any dev server
  1. Run Tencil in your project

    In the folder of your app, run npx tencil. The first time, it pairs with the T3 Code on your machine by itself and starts the daemon. Then it adds Tencil to your project and shows the change first.

    terminal

    cd your-app
    npx tencil
  2. Pair by hand if you need to

    If T3 Code runs elsewhere, create a pairing link in T3 Code under Settings, Connections, and hand it to Tencil. The Pair button in the overlay does the same.

    terminal

    npx tencil connect "<pairing link>"
  3. Point at what should change

    Start your dev server, press C, click the element and type what you want. Pick the model in the comment box, or leave it on T3 Code’s default for the project.

  4. Work in the thread

    The pin is a real T3 Code thread in the project of your dev server’s folder. Open it in T3 Code from the pin’s link icon, or read, reply and stop it from the inbox while you look at the page.

  5. Send the next element to the same thread

    In the composer, switch from New thread to any thread in the project: the element you click becomes its next message, so the agent that built the feature picks it up.

Questions

What people run into along the way.

Yes, the desktop app. Tencil talks to it on your machine; a T3 Code server elsewhere works with --t3-url.

The providers you set up in T3 Code. Choose one for Tencil in the comment box, or with --model, as instance and model.

Read next

More on how it works and what it is good for.