DeepCode is an Android app shell for an AI agent, bundling a Termux runtime so the agent can run real Bash commands and interact with browsers and phone functions. It is intended for people who want to run the dsh agent locally on an Android device without root. The catalogue entry is an instruction for using the mobile app.
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/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/instructions/kelai141/dsh-mobile-apk/agents-md"><img src="https://agentmods.dev/badge/instructions/kelai141/dsh-mobile-apk/agents-md.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.06958 | $0.06958 |
| Opus 5.5 | $0.02783 | $0.02783 |
| Sonnet 5.5 | $0.01392 | $0.01392 |
| Haiku 4.5 | $0.00696 | $0.00696 |
Grade A, and why
dsh-mobile-apk 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 yesterday.
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 — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — dsh-mobile-apk 项目地图
本文件是你进入壳侧的入口:仓库地图 + 去哪查 + 更新协议。不堆历史记录。 一切以源码为准;发现文档与源码不一致,当场改文档。
1. 这是什么仓
DeepSeek Harness 的安卓壳应用(包名 com.dsharnessmobile.shell)。
职责边界:只保留安卓平台权能与桥——前台服务 / 看门狗 / WebView(主 + 隔离 BrowserHost)/ SAF 桥 / 快照解压 / UndoGate / Shizuku 特权 transport 与虚拟屏 / 无障碍与 ADB 授权 / 通知中心与通知内应答 / 返回网关 / 审计 / 控制台 / 日志。
关键约束:AI 可见的能力全部来自插件,壳侧不直接注册工具。
运行时:内嵌 Termux 快照(assets/snapshot.tar.xz → files/usr + files/home);构建目标 @deepseek-ai/dsh 为 0.2.1-rc.3(以快照内 package.json 与 scripts/snapshot-config/engine-overlay.json 为准),监听回环动态端点(默认 127.0.0.1:4145,被占用时 Node 侧原子回退,实际端口以 files/.engine-endpoint.json 为准);WebView 加载引擎 Web UI。
构建链:minSdk 26 / targetSdk 34 / compileSdk 36;Kotlin 2.0.21;AGP 8.8.2;Java 17。
兄弟子仓(本仓内含自包含副本,见 §4 同步铁律):
dsh-shell-termux 0.2.0 · dsh-client-ui-responsive 0.3.3 · dsh-host-web-compat 0.1.16 · plugins/(bridge 0.2.4 / manage 0.3.0 / file-open 0.1.0 / browser 0.1.0 / linux-env 0.1.2 / vdisplay 0.1.0;模型能力插件已退役)· vendor/(marketplace / undo-savepoint)
上游 deepseek-ai/deepseek-harness(协调仓 dsh/ 只读 checkout):零改动,一切适配走补丁/插件/壳侧。
当前状态:以 docs/AGENTS/changelog-archive.md 最新一行为准(本文件不维护版本号,避免双份漂移)。
2. 怎么建、怎么装、怎么验
# 在【协调仓根】执行(壳侧不单独构建)。三种模式见协调仓 AGENTS.md「三种打包模式」:
# release:双 ABI 全链,门禁失败即拒打包
# Fast :单 ABI x86_64 + preset 1,**门禁全跑**,开发迭代加速(禁发布)
# dev :node dsh-mobile-apk\scripts\build-apk-dev-fast.mjs,**跳过全部发布门禁**,仅本地测试(禁发布;
# 不重建/不注入快照,复用 app/src/main/assets/snapshot.tar.xz)
pwsh -File scripts\build-apk-013.ps1 -Suffix "" # release 档:双 ABI 全链,门禁失败即拒打包
pwsh -File scripts\build-apk-013.ps1 -Fast # Fast 档:单 ABI x86_64 + preset 1(禁发布)
# 发布包不经本地:由 GitHub Action 一键链产出(workflow_dispatch 传 version + notes)——
# gh workflow run release -R kelai141/dsh-mobile-apk -F version=<版本> -F notes=@release/v<版本>/notes.md
# 装机(<serial> 用 adb devices 查;arm64 真机必须用 arm64 产物)
adb -s <serial> install -r -t out\v<版本>\dsh-mobile-apk-v<版本>-arm64.apk
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.
- yesterday Changed · +2 lines · +177 tokens per session 6546e70e96a2
- 5d ago Changed · +36 tokens per session dd84eb9702f1
- 8d ago Changed · +27 tokens per session dc79ca8e1784
- 11d ago Changed b058c20e6b7a
- 13d ago Changed · -1 tokens per session beb7d0b082f6
- 15d ago Changed · +4 lines · +179 tokens per session f809ff8a1157
- 18d ago Changed · +2 lines · +267 tokens per session a4bdc4427798
- 20d ago Changed d3d4f969df68
- 22d ago Changed 42edb7ab30e2
- 23d ago First seen · 200 lines · 6,273 tokens per session scan A 7624e1ef33f1
dsh-mobile-apk AGENTS.md is an instructions file published in the GitHub repository kelai141/dsh-mobile-apk (1,024 stars, last pushed yesterday), licensed MIT. It adds 6,958 tokens to every session, about $0.0278 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.
dsh-mobile-apk AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dsh-mobile-apk AGENTS.mdkelai141/dsh-mobile-apk | Instructions file | 1.0k | yesterday | MIT | A | 6,958 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |