agent-fleet: Instructions file for Codex

AGENTS.md

agent-fleet AGENTS.md is an instructions file for Codex, OpenCode from metahub-tech/agent-fleet. It costs 6,977 tokens per session, scanned A, original, Apache-2.0.

A repository instruction file for the agent-fleet project, an application that lets agents operate Windows, macOS, Android, and iOS devices through a common tool set.

In plain words
What is it for?
Use it as the project's standing guidance for checking repository state, finding the authoritative code and documents, and choosing the right workflow.
Why use it?
It tells agents which project facts and checks to trust before changing code, reducing the risk of following outdated documentation or mixing unrelated work.

Instructions file for CodexOpenCode

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

This is metahub-tech/agent-fleet's own configuration. It tells Codex and OpenCode how to work on agent-fleet 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 agent-fleet configures →

Reuse

Borrowing it

Nothing to install: this file belongs to metahub-tech/agent-fleet. 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/metahub-tech/agent-fleet/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/metahub-tech/agent-fleet

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 agent-fleet AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/metahub-tech/agent-fleet/agents-md"><img src="https://agentmods.dev/badge/instructions/metahub-tech/agent-fleet/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,977 This file is loaded in full into every session.
When invoked 6,977 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.06977 $0.06977
Opus 5.5 $0.02791 $0.02791
Sonnet 5.5 $0.01395 $0.01395
Haiku 4.5 $0.00698 $0.00698

Measured 7d ago against content hash 040a8e999179, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-fleet 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 7d 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 · 277 lines

How it starts

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

AGENTS.md · agent-fleet 工作指令

这份文件是每个 agent 会话开始时自动加载的常驻指令(DSH 读取根目录 AGENTS.md / CLAUDE.md;项目根由 .git 标记,预算 64 KiB)。 它只放「做任何事都不能忘的东西」。细节看 docs/project-map.md(操作层地图:拓扑 / 命令 / 门禁 / 漂移登记 / 任务配方)。

维护约定:改坏了它比没有它更糟。新增一行前先问「换个任务这句话还成立吗」;只写稳定的、可验证的事实,并给证据位置。


0. 三十秒上手

# 1) 我现在在哪、仓库什么状态
git log -1 --format="%h %ad %s" --date=short   # main 最后一次提交 2026-11-23 e0815b9
git tag -l --sort=-v:refname | Select-Object -First 3   # 最新 tag v0.8.14-alpha

# 2) 改东西前先跑「现状体检」(2026-11-21 对齐后已转绿;再变红说明文档又落后于代码)
python3 scripts/gen_docs.py --check

# 3) 只改文档?只改平台代码?先看 §3 的分流表,别在同一 PR 里混。

事实真源顺序(永远按这个顺序取真相,越靠前越权威):

  1. 代码:platforms/*/server/*_mcp.py + platforms/common/**
  2. 运行时:让接了设备的 agent 调 list_capabilities()(唯一能反映「这台机器现在真的有什么」的口径)
  3. 自动生成物:docs/internal/blueprint/INTERFACE.md(工具签名)、MAP.md(模块地图)
  4. 平台 README.md / docs/platforms/<name>.md(手工,最容易漂移)
  5. ONBOARDING.md、docs/roadmap.md、docs/internal/{design,plans,specs}/、docs/superpowers/**(叙事与历史,不当作现状)

1. 这是什么项目

agent-fleet 让 LLM agent 通过 MCP 操作真实的 Windows / macOS / Android / iOS 设备:四个平台各有一个 FastMCP 设备桥(streamable-http),agent 用统一工具集(take_screenshot / tap / launch_app / …)跨设备操作,换设备只是换一个 URL。产品定位在「agent 驱动的跨平台测试与验证」与「agent 在物理世界的手和眼」之间。

  • 当前是 alpha(CHANGELOG [Unreleased] 已走到 v0.8.13 之后),接口未冻结,允许破坏性变更。
  • 改动这个仓库,等于改「我自己和队友 agent 的手」:本会话挂载的 win-device(http://test-win11:8766/mcp)与 win-device-qjl(http://win-personal-qjl:8766/mcp)就是本项目的产物。改 server 行为前先想到「真机上有操作员在跑」。
  • 近期工作主线:human_dom / human_browser / vision 的精度与零自动化痕迹(配合外部 AgentHub #100 的真账号发文 E2E)。

2. 仓库地图(一行一项,详解见 project-map §3)

路径 是什么 能改吗
platforms/<p>/server/*_mcp.py 平台 MCP server 主入口,core 工具内联在这里 代码改动,需 CODEOWNERS 真人审
platforms/common/ 共享运行时 / 租约 / 别名 / 上传 / 能力框架 同上(win/mac/android/ios 全受影响)
platforms/common/capabilities/ core / agent_browser / human_browser / human_dom / vision 同上;改完要同步 platform.toml 与 list_capabilities 分桶
platforms/<p>/scripts/ 设备端安装 / 启动 / 排错脚本 安装脚本(高敏感)
platforms/<p>/skills/using-*/SKILL.md 给调用方 agent 用的平台操作规范(产品资产) 文档可改,但属产品契约
cli/src/fleet/ agent-fleet setup 向导(installers / frameworks / guidance;收尾写 skills 交接物,不枚举客户端) 代码;改完跑 cli/tests
scripts/ 生成器与门禁(gen_docs.py 是活的,gen-docs.py 是 shim) 蓝图脚本被 CODEOWNERS 钉住
scripts/install_skills.py 把 using-* skill 装进 agent 自己的技能目录(跨平台、幂等、不写任何 config) 代码;改动跑 scripts/tests
docs/install-for-agents.md 面向 agent 的安装 playbook:装 MCP → 装 skill → human_dom provisioning → 只把 4 件人类步骤交还 文档,随安装链路更新
docs/internal/blueprint/ MAP.md/INTERFACE.md(自动生成,必须随代码再生)+ ADR + GLOSSARY + SNAPSHOT 不是只读留档,是 CI 门禁对象
docs/internal/{design,plans,specs}/、docs/superpowers/ 历史设计/计划留档(两代,各自冻结) 只读,不追现状
docs/project-map.md 操作层地图(本文件的展开) 手写,随事实更新

Read the full file on GitHub · 277 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. 7d ago Changed · +103 lines · +1,576 tokens per session 040a8e999179
  2. 8d ago Changed · +1 lines · +128 tokens per session 3c9032fec4b7
  3. 11d ago Changed · +45 tokens per session 6c2e45daa234
  4. 12d ago First seen · 173 lines · 5,228 tokens per session scan A 2ea7e9b9010e

Subscribe to this mod's changes

agent-fleet AGENTS.md is an instructions file published in the GitHub repository metahub-tech/agent-fleet (4 stars, last pushed today), licensed Apache-2.0. It adds 6,977 tokens to every session, about $0.0279 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-11-22.

Related

agent-fleet AGENTS.md compared with instructions from other repositories

agent-fleet AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-fleet AGENTS.mdmetahub-tech/agent-fleetInstructions file4todayApache-2.0A6,977Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot