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-workspacegit 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-workspace)<a href="https://agentmods.dev/skills/xichan96/dinotty/dinotty-workspace"><img src="https://agentmods.dev/badge/skills/xichan96/dinotty/dinotty-workspace/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-workspace"><img src="https://agentmods.dev/badge/skills/xichan96/dinotty/dinotty-workspace.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.00106 | $0.01659 |
| Opus 5.5 | $0.00042 | $0.00664 |
| Sonnet 5.5 | $0.00021 | $0.00332 |
| Haiku 4.5 | $0.00011 | $0.00166 |
Grade A, and why
dinotty-workspace scanned grade A with 0 findings 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Dinotty 工作区文件操作
dinotty workspace ... 访问的是某个 pane 的工作区(pane 的 cwd),走
/api/workspace/{list,raw,meta,file,git-changes,git-file-diff}。路径 jail 和
Dinotty 文件浏览器一致。
何时使用
- 需要确认用户 Dinotty tab 的工作区里有什么(目录、大小、链接)
- 读取工作区文件内容(尤其是远程/别人的 pane,或本机路径不确定时)
- 往用户工作区写文件(从 stdin 落盘)
- 看工作区的 git 改动概览或单文件 HEAD/工作区内容
- 要给用户展示 HTML/图片/PDF:改用
dinotty-viewer
如果只是在自己 worktree 里做开发,直接用 cat/rg/git 更快;当目标是
用户正在用的 pane 或远程实例时,用本 skill 的 CLI。
前置检查
dinotty tabs list找到目标tab_id/pane_id- pane 必须是 local 或受支持的 remote session;SSH 的 git 命令会返回 409
- 在 Dinotty tab 里
DINOTTY_PANE_ID已注入;否则传--pane
路径规则(重要)
- 路径相对 pane 工作区,不是运行 CLI 的当前目录
- 服务端会去掉前导
/,并拒绝任何..段:/tmp/a等于<workspace>/tmp/a,不是本机/tmp/a - 符号链接按 canonical 路径做 jail 检查;越界返回 403
outside workspace - 需要打开工作区外的本机文件时用
dinotty-viewer(它会 staging 到.claude/artifacts/),不要试图用 workspace 命令绕过 jail
列目录
dinotty workspace list # 工作区根
dinotty workspace list src # 相对子目录
dinotty workspace list src --json # {cwd, path, entries:[{name,is_dir,size,is_symlink,is_cycle}]}
人类输出 NAME / TYPE / SIZE;dir、file、link、link (cycle) 区分目录、
文件和符号链接。is_cycle 的链接不要递归展开。
读取
dinotty workspace read Cargo.toml
dinotty workspace read assets/logo.png | file -
dinotty workspace read Cargo.toml --json # 文本预览(/meta)
- 普通输出走
/api/workspace/raw,字节原样写到 stdout,可管道、可处理二进制 - 服务端单文件下载上限 500 MiB;超过是
FILE_TOO_LARGE --json改为请求/api/workspace/meta:返回kind、language、content、truncated、mime。文本预览上限 512 KiB;需要完整内容用普通输出- 二进制文件在
--json下是kind: "unsupported",用普通输出读原始字节
写入
printf '# Notes\n' | dinotty workspace write notes.md -
dinotty workspace write src/generated.rs - < /tmp/generated.rs
- 必须带结尾的
-,内容从 stdin 读取 - 内容是 UTF-8 字符串(
PUT /api/workspace/file的content字段);服务端上限 500 MiB - 目标父目录必须已存在;路径越界会被拒绝
- 会覆盖已有文件——写入前先
workspace read <path>或确认用户意图;不要覆盖 用户未提及的文件
git
dinotty workspace git status # 变更文件 + 增删行 + repo/HEAD
dinotty workspace git status --json # 完整 /git-changes payload
dinotty workspace git diff src/a.rs # HEAD 与工作区整文件内容
dinotty workspace git diff src/a.rs --json
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 · 122 lines · 106 tokens per session scan A 01ccf4f3eb5c
dinotty-workspace is a skill published in the GitHub repository xichan96/dinotty (741 stars, last pushed today), licensed MIT. It adds 106 tokens to every session and 1,659 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-20.
dinotty-workspace compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dinotty-workspacexichan96/dinotty | Skill | 741 | today | MIT | A | 106 | Claude Code |
| autofix-prQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 142 | Claude Code |
| repo-hygieneQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 48 | Claude Code, Codex |
| create-issueQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 26 | Claude Code |
| docs-update-from-diffQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 75 | Claude Code, Codex |
| prepare-prQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 42 | Claude Code |
| triageQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | B | 50 | Claude Code |