Borrowing it
Nothing to install: this file belongs to kelai141/dsh-mobile-apk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/kelai141/dsh-mobile-apk/main/AGENTS.mdgit clone --depth 1 https://github.com/kelai141/dsh-mobile-apkWrote 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/instructions/kelai141/dsh-mobile-apk/agents-md)<a href="https://agentmods.dev/instructions/kelai141/dsh-mobile-apk/agents-md"><img src="https://agentmods.dev/badge/instructions/kelai141/dsh-mobile-apk/agents-md.svg" alt="Measured on agentmods" 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.19306 | $0.19306 |
| Opus 5 | $0.09653 | $0.09653 |
| Sonnet 5 | $0.03861 | $0.03861 |
| Haiku 4.5 | $0.01931 | $0.01931 |
Grade A, and why
dsh-mobile-apk AGENTS.md scanned grade A 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 2d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
| **EngineProbe.kt** | 本地引擎探活(0.13.2-fix 重构):应用级状态唯一判定源 | `check()` **全链 Proxy.NO_PROXY 直连**(#118:系统代理劫持本地探针实锤——WebView/curl 豁免代理而 HttpURLConnection 走 ProxySelector → 请求发往代理网关恒 timeout);`portReachable()` TCP 端口级判定(HTTP 未 How it starts
The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — dsh-mobile-apk 开发地图
AI 主动更新条款(必须最先执行):本文件面向人类与 AI 开发助手,是唯一权威的仓库开发地图。任何代码变更导致本文件描述失真(文件作用、函数签名、桥协议、构建命令、关键实现落点)时,AI 必须在本轮同步更新本文件,并在文末「更新记录表」登记(时间 + 版本号)。 变更未触及本文件描述范围时无需更新(避免无意义改写)。若发现本文件与源码不一致,以源码为准并当场修正本文件——不要忽略。
过期风险声明:代码演进可能快于文档更新,本文件内容可能过时;一切以源码为准。
1. 仓库概览与技术栈
- 角色:DeepSeek Harness 安卓壳应用(包名
com.dsharnessmobile.shell)。 - 职责边界:只保留安卓平台权能与桥——前台服务、看门狗、WebView、SAF 桥、快照解压与更新、崩溃回退闸门(UndoGate)、ADB 授权原生写面(AdbState)、审计、内置控制台、日志。AI 可见能力全部来自插件。
- 运行时形态:壳内嵌 Termux 运行时快照(
assets/snapshot.tar.xz→files/usr+files/home);引擎(Node.js@deepseek-ai/dsh,基线 0.1.1-rc.2)监听127.0.0.1:3080;WebView 加载引擎 Web UI。 - 构建链:minSdk 26 / targetSdk 34 / compileSdk 36;Kotlin 2.0.21;AGP 8.8.2;Java 17。
- 依赖:androidx.activity-ktx / core-ktx、commons-compress、xz;Shizuku 零依赖反射(ShizukuSupport.kt,仅探活示例)。
- 兄弟仓库(协调仓库下的子目录):
dsh-shell-termux(Termux 执行器)、dsh-client-ui-responsive(移动 UI 注入层 + F5 消费端)、dsh-host-web-compat(页面注入/兼容)、plugins/(dsh-android-bridge / -manage / -linux-env / -file-open,协调仓库内)、vendor/(dshmarketplace-plugin、dsh-undo-savepoint 固化副本 + PATCHES.md)。 - 上游
deepseek-ai/deepseek-harness(本地 checkoutdsh/):只读参考,零改动;一切适配以补丁层/插件/壳侧实现。 - 版本状态:0.13.2 已发布(Release v0.13.2 正式版,versionCode 29,2026-09-05,tag 落 main,15 资产,prerelease=false;详见更新记录表与协调仓 AGENTS.md §1)。0.13.2-preview(28)与 0.13.1(27)被其取代。0.13.2 含悬浮球 v2.1 全套 + 用户实测三连修(deriveHalo/乐观置忙+bridge 0.1.2 turn_start/吸边同心)+ 快照刷新看门狗闸门(坑 37)(#118 引擎启动/探活/UndoGate 五项 + 悬浮球 v2 重设计 + v2.1 三窗口/待答卡片/状态模板批 + 设置页全屏(ui-responsive 0.1.12)+ #120 工作区,详见更新记录表)。当前开放跟踪:#115(市场 Phase2,目标 0.13.2)、#120(添加工作区按键不可用——修复批已实施,待发版验证)、#108(数据备份 feature)。
- 环境无关声明:本文档适用于任意环境(Windows/WSL/Linux/macOS、有/无真机)开发维护者;环境差异点(WSL、ADB 真机、run-as)已在对应章节标注。
2. 构建与验证命令
# 一键双 ABI(协调仓库根;快照→注入→门禁→gradle→out/):
pwsh -File scripts\build-apk-013.ps1 -Suffix "" # 产物 out\v<版本>\dsh-mobile-apk-v<ver>-<abi>.apk
# 快照(Termux 源 + TARGETS 预装 + licenses + pnpm 装配 + 瘦身 + 归档):
node scripts\build-snapshot-013.mjs <arm64|x86_64>
# 插件单测/冒烟:
node scripts\smoke-bridge.mjs # bridge 18 断言
cd ..\dsh-client-ui-responsive && npm test && npm run build
cd ..\plugins\dsh-android-<pkg> && npm run build
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.
- 2d ago Changed · +3 lines · +1,704 tokens per session 35777bf1b541
- 3d ago Changed · +2 lines · +1,147 tokens per session ff56082f4390
- 4d ago Changed · +13 lines · +2,953 tokens per session 8d4ad4643c67
- 8d ago First seen · 202 lines · 13,502 tokens per session scan A 133a6b3641eb
dsh-mobile-apk AGENTS.md is an instructions file published in the GitHub repository kelai141/dsh-mobile-apk (322 stars, last pushed 3d ago), licensed MIT. It adds 19,306 tokens to every session, about $0.0965 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
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.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
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).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
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.
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.