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.

Install it, pinned
mdr add maomaochong-ai/open-astravia/packages/ai/AGENTS.md@git:20260811.9384bf0

Pins 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

The exact contents, by fingerprint
mdr add maomaochong-ai/open-astravia/packages/ai/AGENTS.md@sha256:481409a68cc24d05

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_tax6mdwp3dvmz5y3.svg)](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.

versioncommittedcommitsizeaudit
git:20260811.9384bf0 latest2026-08-11 9384bf0 1,693 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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

astravia-testing SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/astravia-testing/SKILL.md · 为 OpenAstravia 的功能变更、Bug 修复、重构、公共合同和 UI 交互设计、编写或审查测试;在决定测试范围、补充回归测试、覆盖用户常见使用流程或评估测试质量时使用。纯文档或没有运行时行为变化的编辑不使用。
git:20261014.02ac874 · audit A · 39 stars
compose-component-design SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/compose-component-design/SKILL.md · Use when designing or reviewing reusable Jetpack Compose component APIs with modifier parameters, root layout…
git:20260928.e3f9971 · audit A · 39 stars
compose-state-and-effects SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/compose-state-and-effects/SKILL.md · Use when writing or reviewing Jetpack Compose state ownership, remember state, state hoisting, screen state holders…
git:20260928.e3f9971 · audit A · 39 stars
design-taste-frontend SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/design-taste-frontend/SKILL.md · Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right…
git:20260911.9951787 · audit B · 39 stars
diagnose SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/diagnose/SKILL.md · Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument →…
git:20260922.7ea4a67 · audit A · 39 stars
expo-overview SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/expo-overview/SKILL.md · Framework (OSS). Entry point and router for every Expo or EAS task. Load this skill first — before writing code and…
v1.1.0 · audit A · 39 stars
expo-project-structure SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/expo-project-structure/SKILL.md · Framework (OSS). Folder structure for a new Expo app. Use when scaffolding or laying out a new Expo project with Expo…
v1.0.0 · audit B · 39 stars
expo-router SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/expo-router/SKILL.md · Framework (OSS). Navigation and routing for Expo Router. Covers file-based routes, groups and dynamic routes, folder…
v1.0.1 · audit A · 39 stars
find-skills SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/find-skills/SKILL.md · Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is…
git:20260901.3ee8f34 · audit A · 39 stars
frontend-design SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/frontend-design/SKILL.md · Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with…
git:20260911.9951787 · audit A · 39 stars
grill-me SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/grill-me/SKILL.md · Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of…
git:20260922.7ea4a67 · audit A · 39 stars
grill-with-docs SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/grill-with-docs/SKILL.md · Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates…
git:20260922.7ea4a67 · audit A · 39 stars

Every file in maomaochong-ai/open-astravia

Other files named AGENTS.md@packages/ai

AGENTS.md@packages/ai AGENTS.md file
code-yeongyu/senpi · packages/ai/AGENTS.md
git:20260913.aac18c4 · audit A · 504 stars
AGENTS.md@packages/ai AGENTS.md file
nebutra/nebutra-sailor · packages/ai/AGENTS.md
git:20260827.ca77bd1 · audit A · 5 stars

Browse by kind, by grade A, or by owner.