You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/topics/prompting.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,21 +36,21 @@ These natural-language prompts reliably trigger the right tool sequences:
36
36
37
37
| Prompt | Agent interprets as |
38
38
|--------|-------------------|
39
-
|"Run `pytest` in my build pane and show results"| {toolref}`send-keys` → {toolref}`wait-for-text` → {toolref}`capture-pane`|
40
-
|"Start the dev server and wait until it's ready"| {toolref}`send-keys` → {toolref}`wait-for-text` (for "listening on") |
41
-
|"Check if any pane has errors"| {toolref}`search-panes` with pattern "error" |
42
-
|"Set up a workspace with editor, server, and tests"| {toolref}`create-session` → {toolref}`split-window` (x2) → {toolref}`set-pane-title` (x3) |
43
-
|"What's running in my tmux sessions?"| {toolref}`list-sessions` → {toolref}`list-panes` → {toolref}`capture-pane`|
44
-
|"Kill the old workspace session"| {toolref}`kill-session` (after confirming target) |
39
+
|[Run `pytest` in my build pane and show results]{.prompt}| {toolref}`send-keys` → {toolref}`wait-for-text` → {toolref}`capture-pane`|
40
+
|[Start the dev server and wait until it's ready]{.prompt}| {toolref}`send-keys` → {toolref}`wait-for-text` (for "listening on") |
41
+
|[Check if any pane has errors]{.prompt}| {toolref}`search-panes` with pattern "error" |
42
+
|[Set up a workspace with editor, server, and tests]{.prompt}| {toolref}`create-session` → {toolref}`split-window` (x2) → {toolref}`set-pane-title` (x3) |
43
+
|[What's running in my tmux sessions?]{.prompt}| {toolref}`list-sessions` → {toolref}`list-panes` → {toolref}`capture-pane`|
44
+
|[Kill the old workspace session]{.prompt}| {toolref}`kill-session` (after confirming target) |
45
45
46
46
## Anti-patterns to avoid
47
47
48
48
| Prompt | Problem | Better version |
49
49
|--------|---------|---------------|
50
-
|"Run this command"| Ambiguous — agent may use its own shell instead of tmux |"Run `make test` in a tmux pane"|
51
-
|"Check my terminal"| Which pane? Agent must discover first |"Check the pane running `npm dev`" or "Search all panes for errors"|
52
-
|"Clean up everything"| Too broad for destructive operations |"Kill the `ci-test` session"|
53
-
|"Show me the output"| Capture immediately? Or wait? |"Wait for the command to finish, then show me the output"|
50
+
|[Run this command]{.prompt}| Ambiguous — agent may use its own shell instead of tmux |[Run `make test` in a tmux pane]{.prompt}|
51
+
|[Check my terminal]{.prompt}| Which pane? Agent must discover first |[Check the pane running `npm dev`]{.prompt} or [Search all panes for errors]{.prompt}|
52
+
|[Clean up everything]{.prompt}| Too broad for destructive operations |[Kill the `ci-test` session]{.prompt}|
53
+
|[Show me the output]{.prompt}| Capture immediately? Or wait? |[Wait for the command to finish, then show me the output]{.prompt}|
0 commit comments