Borrowing it
Nothing to install: this file belongs to stepfun-ai/Step-Realtime-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/stepfun-ai/Step-Realtime-CLI/main/AGENTS.mdgit clone --depth 1 https://github.com/stepfun-ai/Step-Realtime-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/stepfun-ai/step-realtime-cli/agents-md)<a href="https://agentmods.dev/instructions/stepfun-ai/step-realtime-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/stepfun-ai/step-realtime-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/stepfun-ai/step-realtime-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/stepfun-ai/step-realtime-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.03516 | $0.03516 |
| Opus 5.5 | $0.01406 | $0.01406 |
| Sonnet 5.5 | $0.00703 | $0.00703 |
| Haiku 4.5 | $0.00352 | $0.00352 |
Grade A, and why
Step-Realtime-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 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 — 356 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Step Realtime CLI 项目架构与开发原则。
1. 总体分层
Step Realtime CLI 采用分层 monorepo 架构,默认依赖方向如下:
packages/protocol <- packages/utils <- packages/core <- packages/agent-sdk <- packages/realtime <- src/gateway <- packages/sdk <- clients
旁路依赖如下:
src/bootstrap -> packages/coresrc/commands -> src/runtime -> src/gatewayskills/* -> packages/coreextensions/* -> packages/core或src/gatewaysrc/bootstrap承载多个入口复用的启动 / 配置 / prompt 辅助逻辑
这里的 clients 指:
src/cli/src/tui/ui/apps/desktop/apps/*中未来新增的独立端侧应用
基础规则:
- 上层可以依赖下层,下层不得反向依赖上层。
packages/core不依赖具体厂商 SDK、数据库、WebSocket 服务端或 UI 层。src/gateway是应用组装层,不是公共库层。packages/sdk依赖的是 gateway 的协议,不是 gateway 的源码实现。- UI、TUI、CLI、Desktop 默认只依赖
packages/sdk,不直接依赖src/gateway。
2. 各层职责
packages/protocol/
负责跨边界契约:
- request/response schema
- event schema
- DTO
- session、workspace、agent、model 的共享类型
该层应尽量保持纯类型和纯协议,不放业务实现。
packages/core/
负责核心运行时与领域语义:
- Agent Loop
- Agent / SubAgent / AgentTeam 编排
- session / workspace 领域模型
- context / prompt 组装
- memory 抽象
- tool / skill / provider / model 抽象接口
该层默认依赖 packages/protocol,并允许依赖 packages/utils 这类无领域语义的基础共享层;不得直接依赖具体外部实现。
packages/agent-sdk/
负责对外暴露的 Agent 构建 SDK:
- 基于
packages/core暴露稳定的 Agent / Tool / Skill 构建 API - 供第三方或上层应用以编程方式声明 agent / 工具
- 仅依赖
packages/core、packages/protocol、packages/utils
该层不得反向依赖 packages/sdk、src/*、apps/*、extensions/*、skills/*、ui/(由 .dependency-cruiser.cjs 的 agent-sdk-no-implementation-deps 强制)。
packages/realtime/
负责实时音频 / 语音相关的协议与运行时:
- 实时音频 stream 抽象
- VAD / AEC / 语音通道的协议层与共享类型
- 供 gateway 与
extensions/realtime-*复用的实时运行时基础设施
该层不放具体厂商适配;具体实现走 extensions/realtime-*。
packages/utils/
负责基础共享工具与纯辅助函数:
- 文本、路径、错误、token 估算等无业务状态工具
- 纯格式化、解析、归一化函数
- 可被 core / gateway / sdk / src/bootstrap / skills / extensions 复用的轻量 helper
该层不拥有 session authority,不实现 agent loop,不放具体外部系统集成。
skills/
负责 agent-facing 能力单元:
skills/builtin/:内置工具
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 · 356 lines · 3,516 tokens per session scan A 43929e85a9f4
Step-Realtime-CLI AGENTS.md is an instructions file published in the GitHub repository stepfun-ai/Step-Realtime-CLI (48 stars, last pushed 2mo ago), licensed MIT. It adds 3,516 tokens to every session, about $0.0141 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.
Step-Realtime-CLI AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Step-Realtime-CLI AGENTS.mdstepfun-ai/Step-Realtime-CLI | Instructions file | 48 | 2mo ago | MIT | A | 3,516 | 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 | today | 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 |