Borrowing it
Nothing to install: this file belongs to modelstudioai/cli. 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/modelstudioai/cli/main/AGENTS.mdgit clone --depth 1 https://github.com/modelstudioai/cliWrote 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/modelstudioai/cli/agents-md)<a href="https://agentmods.dev/instructions/modelstudioai/cli/agents-md"><img src="https://agentmods.dev/badge/instructions/modelstudioai/cli/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/modelstudioai/cli/agents-md"><img src="https://agentmods.dev/badge/instructions/modelstudioai/cli/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.03885 | $0.03885 |
| Opus 5.5 | $0.01554 | $0.01554 |
| Sonnet 5.5 | $0.00777 | $0.00777 |
| Haiku 4.5 | $0.00388 | $0.00388 |
Grade A, and why
cli 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 4d 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 — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
bailian-cli — AI 维护指南
本文件是 AI agent 维护本仓库时的契约。每次进入项目先读这里,从"业务场景索引"挑一条,再进入对应 docs/agents/*.md 清单。
项目地图
monorepo 现在按"纯逻辑 → 运行时框架 → 命令库 → 产品入口"分层:
packages/core—bailian-cli-core,纯逻辑层:鉴权、配置、HTTP client、错误、类型、文件工具packages/runtime—bailian-cli-runtime,通用 CLI 运行时:createCli、参数解析、registry/help、middleware、error handler、输出、pipeline、Command Pack hostpackages/commands—bailian-cli-commands,可复用命令实现库,只导出 command,不决定产品路径packages/cli—bailian-cli,完整bl产品入口;src/commands.ts组装bl暴露的命令路径packages/kscli—knowledge-studio-cli,Knowledge Studio 专用入口;src/main.ts复用 commands 并重映射为kscli路径packages/bailian-kb-dsh—bailian-kb-dsh,下游宿主适配层(依赖方向朝外):百炼知识库的 DeepSeek Harness (dsh) 插件,消费blCLI 与知识库 API,不在上面这条分层链上;构建独立,版本与发布跟随 bailian-cli,见 docs/agents/dsh-plugin.mdpackages/bailian-memo-dsh—bailian-memo-dsh,下游宿主适配层:百炼个人记忆 dsh 插件(dsh 0.2.1 Volatile Config / SettingsForms);身份在~/.bailian/personal-memory/config.json;构建独立,版本与发布跟随 bailian-cli,见 docs/agents/dsh-plugin.md
关键文件
packages/cli/src/main.ts # bl 入口,注入 binName/version/clientName/npmPackage
packages/cli/src/commands.ts # bl 产品命令 map,tools/generate-reference.ts 也读它
packages/cli/src/command-pack-policy.ts # bl 的 Command Pack policy
packages/kscli/src/main.ts # kscli 入口和命令 map
packages/commands/src/index.ts # re-export 单个命令实现
packages/commands/src/commands/ # defineCommand({ auth, flags, usageArgs, exampleArgs, run })
packages/runtime/src/create-cli.ts # createCli(commands, options)
packages/runtime/src/registry.ts # 命令树解析 + 动态 help
packages/runtime/src/middleware.ts # auth / telemetry / update / run command
packages/runtime/src/command-packs/ # 通用 Command Pack 加载、校验、隔离安装目录和管理命令
packages/runtime/src/urls.ts # 用户面控制台 URL
packages/core/src/types/command.ts # Command / flags / auth 类型
packages/core/src/config/ # ConfigFile / Settings / source 解析
packages/core/src/auth/ # apiKey / console credential 解析与落盘
packages/core/src/client/ # HTTP client / endpoints / console gateway
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.
- 4d ago Changed · +3 lines · +161 tokens per session 42a6be3826a0
- 9d ago Changed · +1 lines · +45 tokens per session 71a93dc20734
- 16d ago Changed · +1 lines · +98 tokens per session f07449840878
- 21d ago Changed · +1 lines · +53 tokens per session 1fa23f6c0a04
- 1mo ago Changed · +8 tokens per session cae34e5123d0
- 2mo ago First seen · 146 lines · 3,520 tokens per session scan A 6e216b43cc0d
cli AGENTS.md is an instructions file published in the GitHub repository modelstudioai/cli (369 stars, last pushed today), licensed Apache-2.0. It adds 3,885 tokens to every session, about $0.0155 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.
cli AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cli AGENTS.mdmodelstudioai/cli | Instructions file | 369 | today | Apache-2.0 | A | 3,885 | 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 | today | 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 |