agentproto/ts/ap-terminal
Claude Code and agent skill by agentproto/ts
- community
Checking that the SKILL.md file is still in the repository.
Open a real PTY terminal session through agentproto to drive interactive TUIs (vim, htop, an interactive CLI wizard, a nested claude TUI) with live keystrokes and byte-buffered output. Trigger phrases include "open a terminal", "start a PTY session", "type into the interactive prompt", "attach a terminal panel", "send keys to the TUI".
Install
npx vskill@latest install agentproto/ts/ap-terminalSKILL.md
The same SKILL.md was published earlier as agentproto/ts/ap-terminal.
Real PTY Terminals
When to use
Use ap-terminal when a task needs a genuine interactive terminal — a TUI that repaints in place, a CLI that prompts step by step, or anything expecting a real tty (raw mode, cursor control, paste detection). Batch, non-interactive work belongs in command_execute (see ap-run-command), not here.
MCP tool: terminal_start
Spawn a PTY running argv (e.g. ['bash'], or an interactive CLI directly). Set cwd, a name/label for the session list, and cols/rows if the TUI is picky about terminal size.
MCP tool: terminal_output
Read the current screen/buffer. clean: true strips ANSI escape codes for readable text; lastBytes caps how much of the tail you pull back. The buffer is a ring of roughly 64KiB — older output is gone once it rolls off.
MCP tool: terminal_input
Send keystrokes. text is sent verbatim (no implicit newline). Set enter: true to additionally send an isolated carriage return AFTER the text — required for paste-detecting TUIs that ignore a newline embedded in pasted content.
MCP tool: terminal_kill
Tear down the PTY when done or wedged.
MCP tool: terminal_sessions_list
List live terminal sessions. Without limit at most 50 rows come back; when there are more, the reply carries total, truncated: true and a nextCursor (pass it as cursor, with a limit, for the next page), or narrow with onlyAlive / status.
MCP tool: agentproto_terminal
Attach an interactive terminal panel for a human (or you) to watch or drive live, instead of polling terminal_output in a loop.
HTTP
Connect a raw websocket client directly to the PTY for full-duplex streaming, bypassing the polling terminal_output/terminal_input pair.
Gotchas
- Use for interactive TUIs (a nested claude TUI, vim, htop) — not batch
work, which belongs in command_execute.
- Output is a byte ring buffer (~64KiB) — read with
clean: trueearly and
often, or scrollback that rolls off the buffer is permanently lost.
- Sending multi-line text with
enter: true: send the content first, then
let enter fire the Enter keystroke as its own isolated event — don't embed \n inside text for paste-sensitive prompts.
- The WS route is a lower-level escape hatch; prefer the MCP tools unless
full-duplex streaming is genuinely required.
Pointers
- ap-run-command — batch/synchronous commands that don't need a real tty.
- ap-spawn-agent — full agent sessions rather than a raw shell.
- agentproto — general daemon supervision skill.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/skill-pack-agentproto/src/skills/ap-terminal/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/agentproto/ts/ap-terminal)