AGENTS.mdA

AGENTS.md from bluechonk/modelmux is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add bluechonk/modelmux/AGENTS.md@git:20261107.bd0e3d9

Pins git:20261107.bd0e3d9 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
bluechonk/modelmux
Path
AGENTS.md
Versions recorded
10
Latest version
git:20261107.bd0e3d9, committed Nov 7, 2026
First version recorded
Oct 29, 2026
Size
7,828 bytes
Repository stars
11
License
MIT

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

# AGENTS.md —— modelmux

modelmux 是多渠道 LLM 网关:一个端口、动态模型池、渠道热插拔。项目介绍见 [README.md](README.md),
架构与契约见 [docs/README.md](docs/README.md)。

## 通用规则

全局规则(环境 / 网络 / 临时文件 / 工作流 / 编码 / 文档 / 版本控制 / 平台)由全局真源
`~/.agents/AGENTS.md` 规定;各工具入口(`~/.zcode`、`~/.codex`、`~/.claude`、`~/.dsh`)都是它的软链。
本文件只写本仓库特有的约束,不复制全局规则。冲突优先级:用户当次明确指令 > 本文件 > 全局规则 > 技能默认行为。

## 仓库结构

```
packages/
  cli/         全局 mx 入口,esbuild 单文件 bundle
  ui/          Web 控制台(Vite),不在 tsc solution 中
  core/
    gateway/   共享层:runtime → pool/auth → http → app,单向分层,向上依赖失败
    channels/  渠道包:每个 <cid> 只实现 7 个文件(channel / cli / index + cred / upstream / catalog / billing)
```

- `packages/core/gateway` 不许出现渠道知识(厂商名、渠道特有字段、渠道模型名)。
- `packages/core/channels/<cid>` 超出 7 文件即违规。
- 共享层 `dependencies` 为空;渠道包只依赖 `@modelmux/gateway`。
- 落点由共享层按 `cid` 推导,渠道不许自己拼路径。
- 调用渠道模块前必须包 `runInChannel(cid, …)`(AsyncLocalStorage 上下文)。
- 分层由 `scripts/verify-layering.mjs` 强制,例外在 `ALLOWLIST` 声明理由。

完整契约见 [docs/CONTRACT-TS.md](docs/CONTRACT-TS.md)。

## 命令

```sh
npm install        # npm workspaces
npm run build      # tsc -b + esbuild cli + copy-ui
npm test           # build + typecheck + 全部 verify:* + 全部包测试
npm run typecheck  # 全工作区类型检查(含 UI)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add bluechonk/modelmux/AGENTS.md@sha256:21605f2f0b9b04bf

The line at the top of this page pins the label git:20261107.bd0e3d9, 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_6ux2jwzu3cg4ribq.svg)](https://markdownregistry.com/a/art_6ux2jwzu3cg4ribq)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 10 versions of this file, between Oct 29, 2026 and Nov 7, 2026, more than one a day. Its first recorded version is graded B and its latest A.

versioncommittedcommitsizeaudit
git:20261107.bd0e3d9 latest2026-11-07 bd0e3d9 7,828 BA view · diff
git:20261106.f07736d2026-11-06 f07736d 7,768 BA view · diff
git:20261106.003f6852026-11-06 003f685 7,767 BA view · diff
git:20261105.38debea2026-11-05 38debea 7,946 BA view · diff
git:20261105.29cf9712026-11-05 29cf971 7,834 BA view · diff
git:20261102.d2bbb082026-11-02 d2bbb08 7,092 BA view · diff
git:20261101.6ee502b2026-11-01 6ee502b 6,961 BA view · diff
git:20261101.c4bb7112026-11-01 c4bb711 6,706 BA view · diff
git:20261029.b4eaf812026-10-29 b4eaf81 36,279 BB view · diff
git:20261029.469f3de2026-10-29 469f3de 35,952 BB 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 (7828 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

bluechonk/modelmux · 11 stars · license MIT · pushed 2026-11-07 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_6ux2jwzu3cg4ribq
GET https://markdownregistry.com/api/v1/resolve?ref=bluechonk/modelmux/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/21605f2f0b9b04bf5e21d65133abeb4fcf724dbc6ba74066c956406474c4c4db

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 bluechonk/modelmux

claude-mx-test SKILL.md skill
bluechonk/modelmux · .agents/skills/claude-mx-test/SKILL.md · 用 Claude Code 对 modelmux(mx)网关做端到端测试(Anthropic Messages 协议,/v1/messages + count_tokens)。适用于:用 claude 测 mx、claude code…
git:20261107.0bf381d · audit B · 11 stars
codex-mx-test SKILL.md skill
bluechonk/modelmux · .agents/skills/codex-mx-test/SKILL.md · 用 Codex CLI 对 modelmux(mx)网关做端到端测试(OpenAI Responses 协议,/v1/responses)。适用于:用 codex 测 mx、codex 接入 modelmux、验证…
git:20261107.0bf381d · audit B · 11 stars
dsh-mx-test SKILL.md skill
bluechonk/modelmux · .agents/skills/dsh-mx-test/SKILL.md · 用 dsh(DeepSeek Harness)ACP 协议对 modelmux(mx)网关做端到端模型测试。适用于:用 dsh 测 mx、dsh 接入 modelmux、网关端到端验收、换 harness 复测模型、dsh…
git:20261106.f07736d · audit B · 11 stars
log-triage SKILL.md skill
bluechonk/modelmux · .agents/skills/log-triage/SKILL.md · modelmux 的日志排查与故障分诊流程。只要用户问“为什么这么慢 / 为什么失败 / 超时 / 卡住 / 网关挂了 / 日志在哪 / 怎么排查 / 看下日志”,或提到 request id、慢请求、502/503、stale…
git:20261106.f07736d · audit A · 11 stars
mx-cli SKILL.md skill
bluechonk/modelmux · .agents/skills/mx-cli/SKILL.md · modelmux 的 mx CLI 使用手册。用户要运行/查询/配置 mx(启动、重启、状态、模型、登录、账号池、额度、日志、Web 控制台、path),或不确定动词与渠道参数的顺序、该用 mx model list 还是 mx…
git:20261107.bc11d30 · audit B · 11 stars
repo-sync SKILL.md skill
bluechonk/modelmux · .agents/skills/repo-sync/SKILL.md · modelmux 仓库的收尾与同步流程:把一轮代码改动同步到 docs 文档、规划进度与 commit 历史,并在需要上线时走完分支 → PR → CI → squash merge → 删分支的闭环。用户说「收尾」「同步文档」「更新…
git:20261105.29cf971 · audit A · 11 stars
zcode-session-archaeology SKILL.md skill
bluechonk/modelmux · .agents/skills/zcode-session-archaeology/SKILL.md · 按 session id 或项目路径还原另一个 ZCode 会话做了什么(模型、轮次、工具调用、错误、最终结论、产物),用于多会话并行改同一个项目时的对齐、排查与收尾。当用户提到「另一个会话」「session_xxx /…
git:20261025.1f96581 · audit A · 11 stars
AGENTS.md@docs AGENTS.md file
bluechonk/modelmux · docs/AGENTS.md
git:20261105.36a6b70 · audit A · 11 stars
AGENTS.md@packages/core/channels/catpaw AGENTS.md file
bluechonk/modelmux · packages/core/channels/catpaw/AGENTS.md
git:20261019.f7f08e1 · audit A · 11 stars

Every file in bluechonk/modelmux

Other files named AGENTS.md

AGENTS.md AGENTS.md file
morluto/rea · AGENTS.md
git:20261102.920d634 · audit A · 433,876 stars
AGENTS.md AGENTS.md file
obra/superpowers · AGENTS.md
git:20261020.b739a8a · audit A · 314,583 stars
AGENTS.md AGENTS.md file
affaan-m/ecc · AGENTS.md
git:20261030.f29e332 · audit A · 299,696 stars
AGENTS.md AGENTS.md file
firecrawl/firecrawl · AGENTS.md
git:20261008.5a75dca · audit A · 199,595 stars
AGENTS.md AGENTS.md file
dietrichgebert/ponytail · AGENTS.md
git:20261008.2a1fe84 · audit A · 185,249 stars
AGENTS.md AGENTS.md file
graphify-labs/graphify · AGENTS.md
git:20260926.98d73fe · audit A · 144,492 stars
AGENTS.md AGENTS.md file
garrytan/gstack · AGENTS.md
git:20261107.ef99eb5 · audit A · 140,694 stars
AGENTS.md AGENTS.md file
juliusbrussee/caveman · AGENTS.md
git:20261106.e45976c · audit A · 118,366 stars

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