dsh-TUI: Instructions file for Codex

AGENTS.md

dsh-TUI AGENTS.md is an instructions file for Codex, OpenCode from ccch1mneyyy/dsh-TUI. It costs 3,220 tokens per session, scanned A, original, MIT.

Repository instructions for dsh-TUI, a terminal user interface plugin that provides a text-based screen for interacting with DeepSeek Harness.

In plain words
What is it for?
Use them when working on the terminal interface, session and agent views, themes, rendering, preferences, commands, or the plugin's integration with DeepSeek Harness.
Why use it?
They define the plugin's boundaries, file layout, upstream dependencies, and development rules so changes do not alter systems owned by the underlying harness.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Codex.

This is ccch1mneyyy/dsh-TUI's own configuration. It tells Codex and OpenCode how to work on dsh-TUI itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dsh-TUI configures →

About the project

dsh-TUI is a terminal interface plugin for DeepSeek Harness that gives the coding agent a Claude Code-style display with live status, streaming thoughts, rollback, context usage, and TPS information. It is for users who prefer a richer terminal workflow, and the catalogue entries extend the DeepSeek Harness environment with related skills and instructions.

ccch1mneyyy/dsh-TUI · 5,919 stars · on GitHub · dshtui.com

Reuse

Borrowing it

Nothing to install: this file belongs to ccch1mneyyy/dsh-TUI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ccch1mneyyy/dsh-TUI/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ccch1mneyyy/dsh-TUI

Made for: Codex, OpenCode.

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 dsh-TUI AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ccch1mneyyy/dsh-tui/agents-md/github.svg)](https://agentmods.dev/instructions/ccch1mneyyy/dsh-tui/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ccch1mneyyy/dsh-tui/agents-md"><img src="https://agentmods.dev/badge/instructions/ccch1mneyyy/dsh-tui/agents-md/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 dsh-TUI AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ccch1mneyyy/dsh-tui/agents-md"><img src="https://agentmods.dev/badge/instructions/ccch1mneyyy/dsh-tui/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,220 This file is loaded in full into every session.
When invoked 3,220 The same file — it is already loaded in full.
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.03220 $0.03220
Opus 5.5 $0.01288 $0.01288
Sonnet 5.5 $0.00644 $0.00644
Haiku 4.5 $0.00322 $0.00322

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

Security

Grade A, and why

dsh-TUI AGENTS.md 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 15d 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.

AGENTS.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

dsh-TUI 是 DeepSeek Harness 的终端界面应用(@deepseek-harness-tui/dsh-tui),零核心改动、只消费 DSH 的公开导出。DSH 是首要适配目标与首方后端;本包正从「DSH 的插件」演进为「拥有自身入口与组装根的终端应用」,届时 DSH 与 claude / codex 一样作为后端按需在进程内加载。Agent、会话、模型、工具、持久化与策略域仍然由 DeepSeek Harness 拥有,本包只消费它们。改动前先读 docs/contributing.md(本仓库共享开发契约的权威文本)与 ADAPTER.md(上游边界与契约);整体结构见 docs/architecture.md;独立宿主的方案与非目标见 docs/standalone-host-design.md。

仓库布局

src/index.ts        公共 Cordis 插件入口、配置 Schema、对运行时实现的惰性移交
src/dsh-adapter/plugin.ts  运行时实现:TTY 校验、服务注册、Agent 创建/恢复、React 树挂载与收尾
src/dsh-adapter/host-entry.ts  本包入口:非 DSH 内核不组合完整 DSH profile(改组合轻量 profile:本包的行 + profile 声明的第三方插件)、在裸 Cordis 根上挂运行时;路由判定在 src/hostEntryRoute.ts(docs/standalone-host-design.md)
src/dsh-adapter/channel.ts  Channel 入口:后端中立核心(channel/core/)+ 仅 DSH 会话挂载的扩展(channel/extensions.ts)
src/agent/          后端中立的会话领域:AgentEvent、AgentSession、类型化能力(无 I/O、无厂商依赖)
src/channel/        共享投影器(AgentEvent → 视图状态)与审批/问卷等中立 store
src/backends/claude/  实验性 Claude Agent SDK 后端;多后端结构见 docs/agent-backend-design.md
src/backends/codex/  Codex app-server 原生后端:协议、hub、翻译器与能力;不捆绑 Codex npm 依赖
src/dsh-adapter/oauth/    内置订阅 OAuth:provider 路由、/auth、凭据存储与问卷桥接
src/screens/        Chat.tsx 交互协调器与状态栏呈现
src/components/     功能组件;design-system/ 是主题感知原语
src/components/sidePanel/  侧栏分栏(几何、标签栏、PanelHost、键盘接缝)与内置面板适配
src/themeCatalog.ts  内置、静态 JSON 与运行时插件主题的统一列表/解析
src/ui.ts           本地渲染器、主题化 Box/Text 与公共 TUI 原语的首选门面
src/ink/            Ink 系渲染器与终端实现——敏感基础设施,改动聚焦并附专用回归
src/native-ts/      渲染器使用的 Yoga 布局引擎
src/terminal-utils/ 终端格式化与呈现辅助
src/dsh-adapter/    唯一允许 import 官方 @deepseek-ai/* 的位置;themes.ts 提供 tuiThemes 插件接缝
src/*Prefs.ts 等    ~/.dsh-tui 下的持久化用户偏好与会话元数据;src/tuiSettingsFile.ts 是 /settings 的 dsh-tui 分区(settings.json)
.agents/skills/     仅供仓库维护者使用的项目技能,不随 npm 包分发
presets/            随包分发的 preset(liangshen)
bin/dsh-tui.js      dsh-tui 直达命令入口
vendor/dsh-std      vendored 依赖(frozen lockfile 构建,见 scripts/build 相关脚本)
tui-profile/        仓内 TUI Profile:插件准入 + 私有协议定义(纯文件,随本仓代码修订)
cordis.patch.yml    profile 安装的包级覆盖层;行序、行 ID 与 insert/override 语义关键
cordis.yml          直接 Cordis/DSH 启动的完整裸组合示例
scripts/            无头回归、复现环境、探针与诊断;运行前先读脚本头部说明
docs/               根 README 之外的完整文档;中文无后缀,英文 .en.md 后缀
lib/                由 src/ 生成的产物——忽略入库、随 npm 分发,绝不手改

Read the full file on GitHub · 93 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. 15d ago Changed · +2 lines · +343 tokens per session 22ac39bde4ce
  2. 18d ago Changed · +10 lines · +308 tokens per session 8956717c5634
  3. 19d ago Changed · +1 lines · +38 tokens per session 9eb4c89aab86
  4. 22d ago Changed · +3 lines · +219 tokens per session cf6ea9391eaf
  5. 24d ago Changed · +1 lines · +43 tokens per session d58a46c92dfe
  6. 25d ago Changed · +1 lines · +104 tokens per session c1d6d5757ff1
  7. 27d ago Changed · +1 lines · +32 tokens per session 9d37b1bb355e
  8. 28d ago Changed · +1 lines · +25 tokens per session 1888f67574b8
  9. 1mo ago Changed · +8 tokens per session 6bbe3f091bdf
  10. 1mo ago First seen · 73 lines · 2,100 tokens per session scan A ff20b21c28fe

Subscribe to this mod's changes

dsh-TUI AGENTS.md is an instructions file published in the GitHub repository ccch1mneyyy/dsh-TUI (5,919 stars, last pushed today), licensed MIT. It adds 3,220 tokens to every session, about $0.0129 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-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,786 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens