deepseek-harness-desktop: Instructions file for Codex

AGENTS.md

deepseek-harness-desktop AGENTS.md is an instructions file for Codex, OpenCode from baihejiangnan/deepseek-harness-desktop. It costs 7,349 tokens per session, scanned A, original, MIT.

Repository-specific development instructions for DSH Launcher, a Windows desktop launcher that manages multiple Deepseek Harness Desktop instances and their runtime processes.

In plain words
What is it for?
Developing or reviewing launcher features involving instance IDs, processes, windows, ports, startup states, tray behavior, updates, plugins, and Windows taskbar integration.
Why use it?
They define boundaries between the launcher, instance hosts, and the native web app, helping changes preserve correct process, window, port, and instance behavior.

Instructions file for CodexOpenCode

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

This is baihejiangnan/deepseek-harness-desktop's own configuration. It tells Codex and OpenCode how to work on deepseek-harness-desktop 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 deepseek-harness-desktop configures →

Reuse

Borrowing it

Nothing to install: this file belongs to baihejiangnan/deepseek-harness-desktop. 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/baihejiangnan/deepseek-harness-desktop/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/baihejiangnan/deepseek-harness-desktop

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 deepseek-harness-desktop AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/baihejiangnan/deepseek-harness-desktop/agents-md"><img src="https://agentmods.dev/badge/instructions/baihejiangnan/deepseek-harness-desktop/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,349 This file is loaded in full into every session.
When invoked 7,349 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.07349 $0.07349
Opus 5.5 $0.02940 $0.02940
Sonnet 5.5 $0.01470 $0.01470
Haiku 4.5 $0.00735 $0.00735

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

Security

Grade A, and why

deepseek-harness-desktop 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 1mo 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 · 226 lines

How it starts

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

DSH Launcher 开发规范

本仓库是 DSH Launcher(Deepseek Harness Desktop)的启动器开发分支。它管理多个 DSH 实例、DSH 运行时、插件生态、更新和 Windows 桌面集成;实例窗口直接承载 DSH 原生 Web。本文是仓库级开发约束,代码、产品行为与本文冲突时应先核实当前实现和最新用户决策,不得凭旧方案覆盖现状。

文档导航与维护

  • README:项目介绍、下载和快速开始;不另建重复的 project-overview。
  • 用户指南:面向使用者的操作和故障处理。
  • 架构与数据流:进程、运行时、数据归属和协作边界。
  • Tauri 接口契约:关键 command、事件载荷、错误码与实例绑定;不重复普通组件 Props。
  • 视觉规范:主题、布局、交互状态和视觉回归。
  • 开发说明 / English:环境、命令和回归清单。
  • 发布检查、当前待办、附属清理方案。
  • 服务商与界面升级执行基线:该模块的设计决定、阶段表、逐项落地状态与尚未验证项。改服务商模块前先读它的边界与验收段。
  • 已知缺陷清单:master 全量源码通读得到的缺陷台账(P0/P1/P2),每条带位置、证据等级与"已排除"记录。接手、排期或声称"已修"之前先读它,不要凭这份清单以外的记忆判断现状。

本文保留强制约束,详细说明由对应文档维护。行为/协议/数据流变化时同步相关文档;待办标明待实现、待验证与验收条件,不把过程记录或旧交接当作完成证据。

首要原则

  • 保持启动器、实例宿主和 DSH 原生 Web 三层解耦。
  • 启动器负责管理和适配 DSH 的外部运行契约,不修改 DSH 核心、Web 路由或原生页面业务逻辑。用户明确选择的模型服务商导入可通过已验证的外部配置契约写入设置和凭据;不得借此覆盖无关会话、密钥或 Agent 预设。
  • 实例宿主只负责进程、窗口、端口和生命周期,直接加载对应 DSH 本地 Web 地址;不要用启动器页面或 iframe 业务层替代 DSH 原生 Web。
  • 只要 DSH 保持可启动的 CLI/Web 外部契约,原生 Web 内部更新不应要求封装层同步改造。若 CLI 参数、启动方式、认证或服务入口变化,由启动器适配层处理。
  • 所有实例级操作必须显式绑定 instance_id。不要依赖“当前选中实例”跨异步边界执行写操作;临时切换 Rust 全局活动实例时必须在成功和失败路径恢复。
  • 仓库通常包含大量未提交开发改动。禁止重置、回滚、格式化或清理无关文件;修改前先读取重叠代码并与现有改动协作。

进程与窗口模型

  • RunMode::Launcher:启动器管理窗口、实例注册表、托盘面板、更新、下载、插件管理和实例宿主进程表。
  • RunMode::Instance { id }:通过 --mode instance --instance-id <id> 启动,只运行该实例的 DSH 服务并创建独立窗口。
  • 启动器与每个实例是独立 Tauri 进程,并使用独立 Windows AppUserModelID;任务栏应分别显示启动器、实例 1、实例 2 等入口。
  • 仅在确认实例服务就绪且实例窗口出现后最小化启动器,不能点击启动或仅创建 PID 后立刻最小化;失败应保留可见错误入口。保留任务栏和系统托盘入口。主窗口关闭按钮只隐藏到托盘;只有明确的“退出启动器”操作才退出应用。
  • 托盘面板是独立的 tray-menu WebView(index.html?view=tray),失焦或关闭时隐藏,不应退出主进程。
  • 不要用“同一 Tauri 进程多个普通窗口”代替实例宿主进程;进程级 PID、端口和活动配置会因此相互覆盖。
  • 实例启动是异步状态机。必须区分宿主已创建、等待端口、DSH 健康检查通过、启动失败和进程退出,不能把 PID 存在等同于服务可用。
  • 实例退出不得导致启动器退出;启动器需清理陈旧 PID、端口和宿主记录。启动器退出时应回收自己持有的 DSH 进程树。

Read the full file on GitHub · 226 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. 1mo ago Changed · +36 tokens per session d35fdbecdb99
  2. 1mo ago Changed · +18 lines · +1,515 tokens per session b2cf96148186
  3. 2mo ago Changed · +12 lines · +271 tokens per session 7f8115060e99
  4. 2mo ago Changed · +22 lines · +757 tokens per session 97b9633bfbd7
  5. 2mo ago First seen · 174 lines · 4,770 tokens per session scan A 5f6a7ea95e03

Subscribe to this mod's changes

deepseek-harness-desktop AGENTS.md is an instructions file published in the GitHub repository baihejiangnan/deepseek-harness-desktop (91 stars, last pushed 1mo ago), licensed MIT. It adds 7,349 tokens to every session, about $0.0294 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

deepseek-harness-desktop AGENTS.md compared with instructions from other repositories

deepseek-harness-desktop AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deepseek-harness-desktop AGENTS.mdbaihejiangnan/deepseek-harness-desktopInstructions file911mo agoMITA7,349Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot