원클릭으로
pexpect-cli
Persistent pexpect sessions. Use when automating interactive terminal programs (ssh, databases, debuggers, REPLs).
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Persistent pexpect sessions. Use when automating interactive terminal programs (ssh, databases, debuggers, REPLs).
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Current API docs + code snippets for third-party libraries/frameworks. Use to verify exact signatures/usage.
Control Firefox browser from the command line. Use for web automation, scraping, testing, or any browser interaction tasks.
Inspect Buildbot (buildbot-nix) CI for a PR. Use to find/watch the build for a PR, list failed sub-builds with their attrs, and fetch failing log tails.
Manage calendar events and send meeting invitations. Use for listing, creating, editing, deleting events and sending/replying to invites.
Search Deutsche Bahn train connections. Use for train routes, schedules, and travel times in Germany.
Search for places and get directions using Google Maps. Use for finding locations, nearby places, and route planning.
| name | pexpect-cli |
| description | Persistent pexpect sessions. Use when automating interactive terminal programs (ssh, databases, debuggers, REPLs). |
Each session is a long-lived Python namespace: all variables, imports, and functions persist across calls.
Exceptions return exit 1 but the session stays alive. Expression results are not echoed; use print().
pexpect-cli --start [--name label] # → prints session id
pexpect-cli --list
pexpect-cli --stop <id> # also kills spawned children
session=$(pexpect-cli --start --name ssh)
pexpect-cli $session <<'EOF'
child = pexpect.spawn('ssh user@host', encoding='utf-8') # encoding → .before is str not bytes
child.expect('password:', timeout=30)
child.sendline('secret')
child.expect(r'\$')
EOF
# child still alive next call
pexpect-cli $session <<'EOF'
child.sendline('uptime')
child.expect(r'\$')
print(child.before)
EOF
Only stdout is returned. stderr and full history go to pueue log (find task id via pueue status --group pexpect).
Always set timeout= on expect(). Catch pexpect.TIMEOUT / pexpect.EOF for robustness.