pty-agent SKILL.md skillF
pty-agent from ming-14/pty-agent is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add ming-14/pty-agent/pty-agent@git:20260831.edadd30Pins git:20260831.edadd30 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- F, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- ming-14/pty-agent
- Path
SKILL.md- Versions recorded
- 5
- Latest version
- git:20260831.edadd30, committed Aug 31, 2026
- First version recorded
- Aug 24, 2026
- Size
- 41,457 bytes
- Repository stars
- 2
- License
- MIT
Interactive CLI program proxy via pseudo-terminal (PTY). Use when: (1) must maintain ongoing dialog with interactive programs (REPLs, debuggers, Servers) — send input and wait for specific prompts; (2) process may block, crash, or pop up GUI windows — need real-time state detection; (3) simulating user interaction tests; (4) download large files.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
[TOC] # PTY-Agent PTY-Agent 是一个**命令行交互式程序交互代理**,通过伪终端(PTY)与交互式 CLI 程序双向通信 原理:程序后台有运行一个守护进程,执行命令时需要再次调用程序,程序会call守护进程对对应CLI进行操作:你 <-> PTY-AgentCLI <-> PTY-Agent守护进程 <-> PTY 程序位于`app.py`,运行方法:`python app.py <args>`,或者包执行等其他方法 ## 环境要求 Python>=3.8 requirements.txt 守护进程会向`~/pty-agent/`写日志和配置,若你在沙箱运行,请允许读写`~/pty-agent/` 出现守护进程报认证失败或其他启动错误,可以在用户允许的前提下,执行`app.py stop force` ## 两种运行模式 ### 终端模式 基于伪终端,有TTY,**输出始终为终端屏幕快照**,等效于实际用户使用时真正看到的部分 - 适用:TUI 程序(vim/htop)、需要回显/行编辑的交互式程序 - 快照返回条件:trigger 匹配快照文本 / idle-timeout / timeout / 进程结束 / GUI 检测 注意:pty 模式默认没有Shell包装,若要使用Shell,请使用`--shell <shell>` ### 子进程模式(需显式--subprocess) 用 `subprocess.Popen` 直接捕获子进程的 **stdout 与 stderr**(无伪终端), **增量输出**,无终端回显、无快照、无 resize。 - 适用:普通命令行程序(编译、脚本、下载),只需追踪输出流 - `exec`/`send`/`read` 返回增量文本;`read` 支持 `--offset` 增量读取 - **增量语义**:stdout/stderr 各有一个会话内消费游标(镜像关系)。`exec`/`send` 与默认 `read` 从"上次交付末尾"续读,两次调用之间写入的输出不会丢失; `-l/--column/--full` 是累积查询(从保留起点读,**不**推进游标)。 缓冲超限会从头裁剪最旧字节(游标前数据可能被丢弃,响应仍单调推进) - 输入通过写 stdin 注意:不要使用子进程模式运行需要TTY的会话! ## 命令速查 | 命令 | 用途 | 典型选项 | 示例 | |------|------|----------|------| …
Read the whole file at its exact version.
How to install
mdr add ming-14/pty-agent/pty-agent@sha256:6875675b14439ec2The line at the top of this page pins the label git:20260831.edadd30, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_5pleebl22u576mkk)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Aug 24, 2026 and Aug 31, 2026, about one every 2 days. Its first recorded version is graded A and its latest F.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260831.edadd30 latest | 2026-08-31 | edadd30 | 41,457 B | F | view · diff |
| git:20260831.8a9d964 | 2026-08-31 | 8a9d964 | 41,250 B | F | view · diff |
| git:20260831.86e2f9d | 2026-08-31 | 86e2f9d | 40,902 B | A | view · diff |
| git:20260825.5fc7890 | 2026-08-25 | 5fc7890 | 33,173 B | A | view · diff |
| git:20260824.4a09955 | 2026-08-24 | 4a09955 | 33,078 B | A | view |
Audit of the latest version
- FAIL, critical: No zero-width or bidi control characters (matched: )
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (41457 bytes)
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
ming-14/pty-agent · 2 stars · license MIT · pushed 2026-10-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_5pleebl22u576mkk GET https://markdownregistry.com/api/v1/resolve?ref=ming-14/pty-agent/pty-agent GET https://markdownregistry.com/api/v1/blob/6875675b14439ec2278278c31988a594b810e501b18ac2d4bad95f46d030f015
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.