dinotty-sessions

dinotty-sessions is a skill for Claude Code from xichan96/dinotty. It costs 111 tokens per session (1,368 once invoked), scanned C, original, MIT.

A tool for viewing and controlling terminal sessions inside Dinotty. It can read a pane's screen and send text or key presses to a running session.

In plain words
What is it for?
Use it to monitor tabs, inspect screen output, handle approval prompts, send follow-up instructions, and manage progress across multiple sessions.
Why use it?
It lets an agent check what another terminal or coding agent is doing before responding, including whether it is waiting for approval or showing an error.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to monitor tabs, inspect screen output, handle approval prompts, send follow-up instructions, and manage progress across multiple sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xichan96/dinotty/dinotty-sessions
Install

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.

Any agent
npx skills add xichan96/dinotty --skill dinotty-sessions
Clone the repo
git clone --depth 1 https://github.com/xichan96/dinotty

Made for: Claude Code.

Wrote 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.

agentmods badge for dinotty-sessions

README.md
[![agentmods](https://agentmods.dev/badge/skills/xichan96/dinotty/dinotty-sessions/github.svg)](https://agentmods.dev/skills/xichan96/dinotty/dinotty-sessions)
Your own site
<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.

agentmods 80×15 button for dinotty-sessions

Your own site · 80×15
<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>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,368 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 10d ago against content hash fd07c55d3df0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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`、
skills/dinotty-sessions/SKILL.md · 108 lines

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 提交

安全边界(必须遵守)

  1. 确认目标 pane:发送前用 tabs list / sessions list / screen 核对 pane id 与 tab 标题、cwd,避免发错会话
  2. 不要在别人的 pane 里乱发:用户自己开的 tab 只做只读观察;未经明确授权 不输入
  3. 破坏性输入先征得用户同意:rm -rf、git reset --hard、git push、 部署、kill 非自建进程、重启 8999 等,一律先问用户
  4. 不代答用户问题:agent 在 tab 里向用户提问(非权限提示)时,转告用户, 不替用户决定
  5. 审批选择要精确:don't ask again 只用于窄规则,别批 git add * 这类 全量规则;回车用 printf '\r' / $'\r'

Read the full file on GitHub · 108 lines

Changes

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.

  1. 10d ago First seen · 108 lines · 111 tokens per session scan C fd07c55d3df0

Subscribe to this mod's changes

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.

Related

dinotty-sessions compared with skills from other repositories

dinotty-sessions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dinotty-sessionsxichan96/dinottySkill741todayMITC111Claude Code
batchQwenLM/qwen-codeSkill31ktodayApache-2.0A102Claude Code
batch-apiQwenLM/qwen-codeSkill31ktodayApache-2.0A51Claude Code
loopQwenLM/qwen-codeSkill31ktodayApache-2.0A66Claude Code
opencode-exportZelinZhou-THU/opencode-exportSkill25mo agoMITA41Claude Code, Codex
herdrshahidshabbir-se/my-pi-setupSkill11mo agoMITA74Claude Code, Codex
repo-hygieneQwenLM/qwen-codeSkill31ktodayApache-2.0A48Claude Code, Codex