dinotty-workspace

dinotty-workspace is a skill for Claude Code from xichan96/dinotty. It costs 106 tokens per session (1,659 once invoked), scanned A, original, MIT.

A workspace tool for listing, reading, and writing files in a Dinotty pane's working folder. It can also show Git status and differences; Git is the system used to track code changes.

In plain words
What is it for?
Use it to inspect project files, read known paths, create files from input, and review uncommitted changes in the user's workspace.
Why use it?
It avoids confusing the agent's local folder with the workspace used by another or remote pane. Its path rules also prevent access outside that workspace.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to inspect project files, read known paths, create files from input, and review uncommitted changes in the user's workspace.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xichan96/dinotty/dinotty-workspace
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-workspace
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-workspace

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

agentmods 80×15 button for dinotty-workspace

Your own site · 80×15
<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>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,659 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00106 $0.01659
Opus 5.5 $0.00042 $0.00664
Sonnet 5.5 $0.00021 $0.00332
Haiku 4.5 $0.00011 $0.00166

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

Security

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.

skills/dinotty-workspace/SKILL.md · 122 lines

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。

前置检查

  1. dinotty tabs list 找到目标 tab_id/pane_id
  2. pane 必须是 local 或受支持的 remote session;SSH 的 git 命令会返回 409
  3. 在 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

Read the full file on GitHub · 122 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 · 122 lines · 106 tokens per session scan A 01ccf4f3eb5c

Subscribe to this mod's changes

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.

Related

dinotty-workspace compared with skills from other repositories

dinotty-workspace next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dinotty-workspacexichan96/dinottySkill741todayMITA106Claude Code
autofix-prQwenLM/qwen-codeSkill31ktodayApache-2.0A142Claude Code
repo-hygieneQwenLM/qwen-codeSkill31ktodayApache-2.0A48Claude Code, Codex
create-issueQwenLM/qwen-codeSkill31ktodayApache-2.0A26Claude Code
docs-update-from-diffQwenLM/qwen-codeSkill31ktodayApache-2.0A75Claude Code, Codex
prepare-prQwenLM/qwen-codeSkill31ktodayApache-2.0A42Claude Code
triageQwenLM/qwen-codeSkill31ktodayApache-2.0B50Claude Code