AGENTS.md@packages/aiA
AGENTS.md@packages/ai from maomaochong-ai/open-astravia is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add maomaochong-ai/open-astravia/packages/ai/AGENTS.md@git:20260811.9384bf0Pins git:20260811.9384bf0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- maomaochong-ai/open-astravia
- Path
packages/ai/AGENTS.md- Versions recorded
- 1
- Latest version
- git:20260811.9384bf0, committed Aug 11, 2026
- Size
- 1,693 bytes
- Repository stars
- 39
- License
- Apache-2.0
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Team: AI Core > 本包属于 **AI Core Team**,同组包:`packages/agent`、`packages/tui`、`packages/web-ui` ## 职责范围 统一多提供商 LLM API,包括流式处理、模型管理、提供商注册。 ## 关键模块 - `src/stream.ts` — 核心流式处理入口 - `src/types.ts` — 所有类型定义,修改需同步检查 agent/web-ui 的兼容性 - `src/models.generated.ts` — 自动生成,不要手动编辑;通过 `scripts/generate-models.ts` 生成 - `src/providers/` — 各 LLM 提供商实现 - `src/api-registry.ts` — API 注册表 ## 注意事项 - 修改 `types.ts` 中的 `Api`、`StreamOptions`、`KnownProvider` 等类型后,必须检查 `packages/agent` 和 `packages/coding-agent` 是否需要适配 - 添加新提供商请严格遵循 [`README.md#adding-a-new-provider`](README.md#adding-a-new-provider) 中的文件、测试和文档清单 ## 测试要求 - 默认使用 `bun run test:unit` 或 `bunx vitest --run <test-file>`,以 fixture/fake transport 覆盖 Provider 请求映射、流式 chunk 聚合、tool call、reasoning、usage、stop、错误和取消语义。 - Provider 协议、流解析或消息转换发生变化时,上述成功、部分流、畸形输入、Provider 错误和中止路径属于必测合同;不能只测试最终文本。 - 需要本地协议服务器或 SDK 集成环境的测试放入 `test:integration`,运行 `bun run test:integration`。必须与默认单测隔离并保持确定性。 - `bun run test:live` 会访问真实 Provider,只能在用户明确授权、凭证已由环境安全提供且任务确实需要时运行;live 结果不能替代可重复的单元/集成回归测试。
Read the whole file at its exact version.
How to install
mdr add maomaochong-ai/open-astravia/packages/ai/AGENTS.md@sha256:481409a68cc24d05The line at the top of this page pins the label git:20260811.9384bf0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_tax6mdwp3dvmz5y3)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Aug 11, 2026.
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (1693 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
maomaochong-ai/open-astravia · 39 stars · license Apache-2.0 · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_tax6mdwp3dvmz5y3 GET https://markdownregistry.com/api/v1/resolve?ref=maomaochong-ai/open-astravia/packages/ai/AGENTS.md GET https://markdownregistry.com/api/v1/blob/481409a68cc24d051a6de50535f61d3ae7161bd0eef5ab8fcdb1c0e27d27888f
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.
More from maomaochong-ai/open-astravia
Every file in maomaochong-ai/open-astravia