usepilot 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
  Pilot lets you point at your running app and tell your coding agent exactly what to change. It runs inside your app in development, so you work on the real page with real data, not on a separate canvas:
6
6
 
7
7
  - **Edit.** Select an element, type a property the way you'd type a Tailwind class (`pt`, `w`, `gap-x`), and set it with a visual control. You see the change live.
8
- - **Comment.** Leave a note on an element ("make this feel less cramped") and get the agent's reply right there.
9
- - **Ask for a task.** Use **Make responsive** on a section and the agent makes it work at every screen width.
8
+ - **Ask for a change.** Click an element with the comment tool and say what you want, in your own words, with a screenshot or a file if it helps. The agent makes the change and tells you in a line what it did.
9
+ - **Run a task.** Type `/` in the comment box and pick one: **Make responsive** makes the element work at every screen width, and **Break and fix** tries it with odd content (very long text, missing or odd-shaped images) and fixes what breaks.
10
10
 
11
11
  Then press **Send**. Your agent writes the changes into your code using your project's own conventions (Tailwind classes, CSS modules, design tokens). Pilot never edits your files itself. It checks the result on the page: what landed stops being previewed, and what didn't goes back to the agent. You see what the code does, not what the agent says it did.
12
12
 
@@ -14,34 +14,38 @@ Then press **Send**. Your agent writes the changes into your code using your pro
14
14
 
15
15
  ## Install
16
16
 
17
- Paste this into your coding agent, in your project. Any agent that supports MCP works: Claude Code, Codex, Cursor, VS Code and others.
17
+ Works with any agent that supports MCP: Claude Code, Codex, Cursor, VS Code and others.
18
18
 
19
- ```
20
- Set up Pilot in this project: run `npx usepilot@latest init` and follow what it prints.
21
- ```
19
+ 1. **Paste this into your agent**, in your project. It installs Pilot and loads it in your app, in development only.
20
+
21
+ ```
22
+ Set up Pilot in this project: run `npx usepilot@latest init --agent <you>`, where <you> is the agent you are (claude-code, cursor, codex, vscode or other), and follow what it prints.
23
+ ```
24
+
25
+ 2. **Open a new chat.** Pilot doesn't work in the chat that installed it. In the new one, ask the agent to **launch Pilot**, or run `/pilot` (`$pilot` in Codex).
22
26
 
23
- The agent installs Pilot as a dev dependency, connects itself to it, and loads it in your app, in development only. Then open a new chat and ask it to **launch Pilot** (`/pilot` in Claude Code). It opens Pilot in your app.
27
+ To work on several things at once, launch Pilot in more chats on the same project: each Send or comment goes to a chat that's free, and two chats never work on the same element at once.
24
28
 
25
- Commit the files it adds (the MCP config for your agents, and Claude Code's `/pilot`), and everyone on the project gets Pilot.
29
+ Your agent is connected once for this machine, with nothing added to the repo. In another project, the same prompt only adds Pilot to that app. Teammates paste it in their own agent. To keep the setup in the repo instead, for a team to commit, the agent adds `--project`.
26
30
 
27
- **No agent?** Run `npx usepilot@latest init` yourself and do the step it prints for loading Pilot. Then press **Option+P** (Alt+P on Windows and Linux) in your app, and **Copy prompt** hands your changes to any chat.
31
+ **No agent?** Run `npx usepilot@latest init --agent other` yourself and do the step it prints for loading Pilot. Then press **Option+P** (Alt+P on Windows and Linux) in your app, and **Copy prompt** hands your changes to any chat.
28
32
 
29
33
  ### If something doesn't work
30
34
 
31
35
  - **The toolbar doesn't appear.** Pilot only loads in development, in the browser. Ask your agent to check where `usepilot/auto` is imported. The shortcut is ignored while you're typing in a text field.
32
- - **The agent doesn't know Pilot.** Start a new chat: agents load their MCP servers when a chat starts. Some ask once to approve the project's server: say yes.
33
- - **"Another Pilot version (bridge …) runs on port 4747".** Another open chat runs a different Pilot version. Update with `npx usepilot@latest init` and restart that chat.
36
+ - **The agent doesn't know Pilot.** Start a new chat: agents load their MCP servers when a chat starts. Some ask once to approve the project's server: say yes. In Cursor, if `pilot` shows switched off in Cursor Settings (MCP section), switch it on: Cursor keeps servers set up in a repo off until you do.
37
+ - **Pilot doesn't open, and another project's chat runs an older Pilot.** Pilots before 0.7.0 all used one port, so two projects on different versions blocked each other. Update Pilot in the older project (paste the install prompt there), or close that chat. From 0.7.0, each version has its own port, and projects on different versions run side by side.
34
38
 
35
39
  ## Using Pilot
36
40
 
37
- 1. **Launch:** ask your agent to launch Pilot (`/pilot` in Claude Code), or press **Option+P** on any page of your app.
38
- 2. **Select** with the cursor button in the toolbar, then click any element. Its property dialog opens next to it.
41
+ 1. **Launch:** ask your agent to launch Pilot, or run `/pilot`. Pilot opens in your app, connected to the agent: everything you send goes to it, and it writes the code while you keep designing. Closed Pilot, or moved to another page? **Option+P** (Alt+P) opens it again, still connected while the agent's chat runs Pilot.
42
+ 2. **Select** with the cursor button in the toolbar, then click any element. Its property dialog opens next to it. Shift+click selects several, to edit them together.
39
43
  3. **Search and edit.** Type a property (`p`, `pt`, `w`, `gap`, `display`, `aspect`…), press Tab to go into its editor, then type or drag a value. Cmd/Ctrl+Z undoes.
40
44
  - Type `from-768 ` first to make the change only for some screen widths.
41
45
  - Type `hover:` to change the hover state.
42
46
  - Type `/` to see every modifier.
43
47
  4. **Send** your changes to the agent with the toolbar's Send button. Keep designing while it works. Each change stays previewed until it's really in your code.
44
- 5. **Comment** with the speech-bubble tool: click an element and write to the agent.
48
+ 5. **Ask for a change** with the speech-bubble tool: click an element (Shift+click for several) and tell the agent what to change. Type `/` there for tasks like Make responsive and Break and fix.
45
49
  6. **Edit text** in place: with the cursor tool on, double-click it.
46
50
 
47
51
  Your changes survive reloads in the same browser tab. Quit with the toolbar's last button.