Borrowing it
Nothing to install: this file belongs to LiuShiYi1027/ThumbAgent. 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/LiuShiYi1027/ThumbAgent/main/AGENTS.mdgit clone --depth 1 https://github.com/LiuShiYi1027/ThumbAgentWrote 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/liushiyi1027/thumbagent/agents-md)<a href="https://agentmods.dev/instructions/liushiyi1027/thumbagent/agents-md"><img src="https://agentmods.dev/badge/instructions/liushiyi1027/thumbagent/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/liushiyi1027/thumbagent/agents-md"><img src="https://agentmods.dev/badge/instructions/liushiyi1027/thumbagent/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.01472 | $0.01472 |
| Opus 5.5 | $0.00589 | $0.00589 |
| Sonnet 5.5 | $0.00294 | $0.00294 |
| Haiku 4.5 | $0.00147 | $0.00147 |
Grade A, and why
ThumbAgent 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ThumbAgent Agent Guide
本文件适用于整个仓库。子目录存在更具体的 AGENTS.md 时,子目录规则在其作用域内优先。
1. 开始工作前
必须依次阅读:
README.mddocs/product/positioning.mddocs/product/solution-v1.mddocs/architecture/technical-design-v1.mddocs/engineering/development.mddocs/iterations/README.mddocs/engineering/iteration-process.md- 与任务相关的迭代文档、目录级
AGENTS.md和 ADR
修改 Contract、Skill、持久化、执行语义或错误体系时,还必须阅读对应专项规范:
docs/engineering/contract-versioning.mddocs/architecture/capability-model.mddocs/engineering/skill-development.mddocs/architecture/reliability-model.mddocs/engineering/data-migrations.mddocs/engineering/error-handling.md
开始修改前必须检查工作区状态。已有修改可能属于用户或其他 Agent,不得覆盖、回滚或顺手重构。
2. V1 边界
V1 目标是完成单台 Android 设备的本地 AI-to-Device 闭环:设备发现、Observation、基础动作、Skills、任务状态、安全策略、证据和报告。
未经明确任务授权,不实现:
- iOS 或鸿蒙真实 Adapter
- 多设备并行调度
- 任意 Shell 执行
- 支付、验证码或权限绕过
- 云端账号、团队空间或遥测上传
- 与当前任务无关的未来能力
3. 强制架构边界
依赖只能沿以下方向:
Clients / Interfaces
↓
Application / Skills / Task Engine
↓
Domain / Policy / Contracts
↓
Device Gateway
↓
Platform Adapters
- Desktop、CLI、MCP 不得直接执行 ADB 或修改任务存储。
- Skill 不得绕过 Tool Registry、Policy Engine 或 Device Gateway。
- Domain 不得依赖 FastAPI、Tauri、具体模型 SDK 或 Android 实现。
- Adapter 不得包含产品流程、Agent 决策或 UI 逻辑。
- MCP 是外部接口,不是内部模块总线。
- 模型输出一律视为不可信输入。
详见 docs/architecture/rules.md。
4. Contract-first
跨模块数据必须先在 contracts/schemas/ 定义 Schema,再生成或实现语言类型。
以下对象禁止由 Python 与 TypeScript 各自手写一份近似定义:
- Device
- Observation
- Task
- ToolCall
- Skill Manifest
- Error
- Event
修改 Contract 时必须:
- 说明兼容性影响。
- 更新生成类型或消费者。
- 添加 Contract 测试。
- 必要时增加 ADR。
5. 安全规则
- 禁止
shell=True。 - 禁止拼接模型文本形成命令。
- 系统进程必须使用固定可执行文件和参数数组。
- 所有设备动作必须绑定明确的
device_id。 - 所有动作必须经过 Schema、Capability 和 Policy 校验。
- 密钥、令牌、密码、验证码不得写入代码、数据库、日志或测试快照。
- 高风险动作不得以“开发方便”为理由绕过确认。
- 不得实现隐藏的任意命令逃生口。
详见 docs/engineering/security.md。
6. 代码要求
- Python 新代码必须有类型标注;公共接口必须有简洁 docstring。
- TypeScript 禁止无理由使用
any。 - 领域错误使用统一错误码,不以裸字符串跨层传播。
- I/O、时间、随机数、模型和设备依赖必须可替换,便于测试。
- 不为假想需求提前抽象;出现第二个真实实现需求时再提炼通用层。
- 不混入与当前任务无关的格式化、重命名或重构。
- 注释解释原因和约束,不重复代码表面含义。
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.
- 2mo ago First seen · 163 lines · 1,472 tokens per session scan A 0efcb88bd4e2
ThumbAgent AGENTS.md is an instructions file published in the GitHub repository LiuShiYi1027/ThumbAgent (1 stars, last pushed 7d ago), licensed Apache-2.0. It adds 1,472 tokens to every session, about $0.0059 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-31.
ThumbAgent AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ThumbAgent AGENTS.mdLiuShiYi1027/ThumbAgent | Instructions file | 1 | 7d ago | Apache-2.0 | A | 1,472 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | 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 | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |