Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add xichan96/dinotty --skill dinotty-sessionsgit clone --depth 1 https://github.com/xichan96/dinottyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xichan96/dinotty/dinotty-sessions)<a href="https://agentmods.dev/skills/xichan96/dinotty/dinotty-sessions"><img src="https://agentmods.dev/badge/skills/xichan96/dinotty/dinotty-sessions/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/xichan96/dinotty/dinotty-sessions"><img src="https://agentmods.dev/badge/skills/xichan96/dinotty/dinotty-sessions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00111 | $0.01368 |
| Opus 5.5 | $0.00044 | $0.00547 |
| Sonnet 5.5 | $0.00022 | $0.00274 |
| Haiku 4.5 | $0.00011 | $0.00137 |
Grade C, and why
dinotty-sessions scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
3. **破坏性输入先征得用户同意**:`rm -rf`、`git reset --hard`、`git push`、 How it starts
The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Dinotty session 读屏与输入
用 dinotty sessions/screen/input 观察和驱动 Dinotty 里的终端会话。典型场景:
多 tab 并行 agent 的审批与进度管理、检查某个 tab 是否卡在 API 错误、给 agent
补一句「继续」。
何时使用
- 需要知道某个 pane 当前屏幕上有什么(agent 状态、审批提示、报错)
- 需要给一个已经存在的 pane 发文本或按键
- 多 tab 分派的进度/审批循环
创建/关闭/分屏 tab 用 dinotty-tabs;读写文件用 dinotty-workspace;给用户
看文件用 dinotty-viewer。
前置检查(关键)
/api/sessions、/screen、/input 都要求服务端 Settings → Open API 已
开启;否则返回 OPEN_API_DISABLED。tabs list 不需要 Open API,可先用它确认
实例和 tab。
dinotty tabs list # 不需要 Open API
dinotty sessions list # 需要 Open API
在 Dinotty tab 里 DINOTTY_PANE_ID/DINOTTY_URL 已注入;外部调用给
--pane / --url / --token。
列出 session
dinotty sessions list
dinotty sessions list --json
人类输出包含 PANE ID / TAB ID / STATUS / SIZE / CWD。用它找到目标 pane,并确认
它属于哪个 tab(/api/sessions 的 tab_id 可能为空,CLI 会从 /api/tabs 补全;
--json 保留原始 payload)。
读屏
dinotty screen <pane_id>
dinotty screen <pane_id> --ansi
dinotty --pane <pane_id> screen # pane 来自 --pane/DINOTTY_PANE_ID
dinotty screen <pane_id> --json # {"pane_id","content","size"}
默认输出纯文本;--ansi 保留转义序列。屏幕内容在 JSON 的 content 字段。
读屏是只读操作,先读再决定是否输入。
判读提示:审批类提示常见 to proceed?、Do you want to…;agent 工作中常见
Bash(/Read(/Edit(;空闲常见 ✻ Churned/Cooked for 0s。空闲不等于完成
——还要看任务列表和最终总结(见 dinotty-dispatch-tabs)。
发送输入
API 把文本原样写入 PTY,不会自动加回车:
dinotty input send <pane_id> 'ls -la
'
dinotty --pane <pane_id> input send $'ls -la\n'
dinotty input send <pane_id> $'\r' # 回车
dinotty input send <pane_id> $'\x03' # Ctrl-C
dinotty input send <pane_id> $'\x1b[A' # 上方向键
要点:
- 文本必须是单独一个参数;含空格/换行时用 shell 引号(
$'...'最直观) - 回车用
\r(不是\n在交互式 TUI 里更可靠);审批提示常需再发一次\r - 发送后
sleep几秒再读屏确认生效(渲染有延迟) - 输入可能被排队(composer 未就绪时屏幕出现
Press up to edit queued messages), 再发一次\r提交
安全边界(必须遵守)
- 确认目标 pane:发送前用
tabs list/sessions list/screen核对 pane id 与 tab 标题、cwd,避免发错会话 - 不要在别人的 pane 里乱发:用户自己开的 tab 只做只读观察;未经明确授权 不输入
- 破坏性输入先征得用户同意:
rm -rf、git reset --hard、git push、 部署、kill 非自建进程、重启 8999 等,一律先问用户 - 不代答用户问题:agent 在 tab 里向用户提问(非权限提示)时,转告用户, 不替用户决定
- 审批选择要精确:
don't ask again只用于窄规则,别批git add *这类 全量规则;回车用printf '\r'/$'\r'
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 108 lines · 111 tokens per session scan C fd07c55d3df0
dinotty-sessions is a skill published in the GitHub repository xichan96/dinotty (741 stars, last pushed today), licensed MIT. It adds 111 tokens to every session and 1,368 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-20.
dinotty-sessions compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dinotty-sessionsxichan96/dinotty | Skill | 741 | today | MIT | C | 111 | Claude Code |
| batchQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 102 | Claude Code |
| batch-apiQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 51 | Claude Code |
| loopQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 66 | Claude Code |
| opencode-exportZelinZhou-THU/opencode-export | Skill | 2 | 5mo ago | MIT | A | 41 | Claude Code, Codex |
| herdrshahidshabbir-se/my-pi-setup | Skill | 1 | 1mo ago | MIT | A | 74 | Claude Code, Codex |
| repo-hygieneQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 48 | Claude Code, Codex |