dsh-mobile-apk: Instructions file for Codex

AGENTS.md

dsh-mobile-apk AGENTS.md is an instructions file for Codex, OpenCode from kelai141/dsh-mobile-apk. It costs 6,958 tokens per session, scanned A, original, MIT.

A repository instruction file for dsh-mobile-apk, an Android shell application that embeds a Termux runtime and displays a local web interface. It documents the Android architecture, build setup, plugins, and update safeguards.

In plain words
What is it for?
It guides work on Android services, WebView integration, file access, runtime snapshots, updates, crash recovery, auditing, logs, and bundled plugins.
Why use it?
It gives developers and AI agents a map of the project’s native bridge, embedded runtime, build tools, and required documentation updates.

Instructions file for CodexOpenCode

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

This is kelai141/dsh-mobile-apk's own configuration. It tells Codex and OpenCode how to work on dsh-mobile-apk 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-mobile-apk configures →

About the project

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.

kelai141/dsh-mobile-apk · 1,024 stars · on GitHub

Reuse

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.

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

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-mobile-apk AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kelai141/dsh-mobile-apk/agents-md/github.svg)](https://agentmods.dev/instructions/kelai141/dsh-mobile-apk/agents-md)
Your own site
<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.

agentmods 80×15 button for dsh-mobile-apk AGENTS.md

Your own site · 80×15
<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>
Per session 6,958 This file is loaded in full into every session.
When invoked 6,958 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.06958 $0.06958
Opus 5.5 $0.02783 $0.02783
Sonnet 5.5 $0.01392 $0.01392
Haiku 4.5 $0.00696 $0.00696

Measured yesterday against content hash 6546e70e96a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 208 lines

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

Read the full file on GitHub · 208 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. yesterday Changed · +2 lines · +177 tokens per session 6546e70e96a2
  2. 5d ago Changed · +36 tokens per session dd84eb9702f1
  3. 8d ago Changed · +27 tokens per session dc79ca8e1784
  4. 11d ago Changed b058c20e6b7a
  5. 13d ago Changed · -1 tokens per session beb7d0b082f6
  6. 15d ago Changed · +4 lines · +179 tokens per session f809ff8a1157
  7. 18d ago Changed · +2 lines · +267 tokens per session a4bdc4427798
  8. 20d ago Changed d3d4f969df68
  9. 22d ago Changed 42edb7ab30e2
  10. 23d ago First seen · 200 lines · 6,273 tokens per session scan A 7624e1ef33f1

Subscribe to this mod's changes

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.

Related

dsh-mobile-apk AGENTS.md compared with instructions from other repositories

dsh-mobile-apk AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsh-mobile-apk AGENTS.mdkelai141/dsh-mobile-apkInstructions file1.0kyesterdayMITA6,958Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode