mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 20:04:55 +00:00
docs: add tmux testing instructions to AGENTS.md
This commit is contained in:
parent
0faba293e6
commit
62209c4a0f
1 changed files with 25 additions and 0 deletions
25
AGENTS.md
25
AGENTS.md
|
|
@ -50,6 +50,31 @@ When closing issues via commit:
|
||||||
- GitHub CLI for issues/PRs
|
- GitHub CLI for issues/PRs
|
||||||
- Add package labels to issues/PRs: pkg:agent, pkg:ai, pkg:coding-agent, pkg:mom, pkg:pods, pkg:tui, pkg:web-ui
|
- Add package labels to issues/PRs: pkg:agent, pkg:ai, pkg:coding-agent, pkg:mom, pkg:pods, pkg:tui, pkg:web-ui
|
||||||
|
|
||||||
|
## Testing pi Interactive Mode with tmux
|
||||||
|
|
||||||
|
To test pi's TUI in a controlled terminal environment:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Create tmux session with specific dimensions
|
||||||
|
tmux new-session -d -s pi-test -x 80 -y 24
|
||||||
|
|
||||||
|
# Start pi from source
|
||||||
|
tmux send-keys -t pi-test "cd /Users/badlogic/workspaces/pi-mono && ./pi-test.sh" Enter
|
||||||
|
|
||||||
|
# Wait for startup, then capture output
|
||||||
|
sleep 3 && tmux capture-pane -t pi-test -p
|
||||||
|
|
||||||
|
# Send input
|
||||||
|
tmux send-keys -t pi-test "your prompt here" Enter
|
||||||
|
|
||||||
|
# Send special keys
|
||||||
|
tmux send-keys -t pi-test Escape
|
||||||
|
tmux send-keys -t pi-test C-o # ctrl+o
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
tmux kill-session -t pi-test
|
||||||
|
```
|
||||||
|
|
||||||
## Style
|
## Style
|
||||||
- Keep answers short and concise
|
- Keep answers short and concise
|
||||||
- No emojis in commits, issues, PR comments, or code
|
- No emojis in commits, issues, PR comments, or code
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue