Skip to content

Commit dd2e7f6

Browse files
committed
docs(recipes): Link tmuxp, generalize CV project to React
why: tmuxp should link to its docs. "CV project" is too specific — "React project" is more relatable to the general audience. what: - Link tmuxp to https://tmuxp.git-pull.com - "CV project" → "React project" - session_name "cv" → "myapp"
1 parent 90fe9c9 commit dd2e7f6

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

docs/recipes.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ Every recipe uses the same structure:
2121

2222
## Find a running dev server and test against it
2323

24-
**Situation.** A developer manages a CV project with tmuxp. One pane is
25-
already running `pnpm start` with Vite somewhere in the `react` window.
26-
They want to run Playwright e2e tests. The agent does not know which pane
27-
has the server, or what port it chose.
24+
**Situation.** A developer manages a React project with
25+
[tmuxp](https://tmuxp.git-pull.com). One pane is already running
26+
`pnpm start` with Vite somewhere in the `react` window. They want to run
27+
Playwright e2e tests. The agent does not know which pane has the server,
28+
or what port it chose.
2829

2930
### Discover
3031

@@ -33,15 +34,15 @@ has the server, or what port it chose.
3334
> its URL to the terminal minutes ago, so I need to search terminal content.
3435
3536
The agent calls {tool}`search-panes` with `pattern: "Local:"` and
36-
`session_name: "cv"`. The response comes back with pane `%5` in the `react`
37+
`session_name: "myapp"`. The response comes back with pane `%5` in the `react`
3738
window, matched line: `Local: http://localhost:5173/`.
3839

3940
### Decide
4041

4142
> The server is alive and its URL is known. I do not need to start anything.
4243
> I just need an idle pane for running tests.
4344
44-
The agent calls {tool}`list-panes` on the `cv` session. Several panes show
45+
The agent calls {tool}`list-panes` on the `myapp` session. Several panes show
4546
`pane_current_command: zsh` -- idle shells. It picks `%4` in the same window.
4647

4748
### Act
@@ -68,7 +69,7 @@ working directory. If the agent had used {toolref}`list-panes` to find a pane
6869
running `node`, it would know a process exists but not whether it is ready or
6970
what URL it chose.
7071

71-
**Prompt:** "Run the Playwright tests against my dev server in the cv
72+
**Prompt:** "Run the Playwright tests against my dev server in the myapp
7273
session."
7374

7475
---

0 commit comments

Comments
 (0)