AGENTS.mdA
AGENTS.md from wild1024/alun is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add wild1024/alun/AGENTS.md@git:20261024.c0b1671Pins git:20261024.c0b1671 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- wild1024/alun
- Path
AGENTS.md- Versions recorded
- 3
- Latest version
- git:20261024.c0b1671, committed Oct 24, 2026
- First version recorded
- Oct 13, 2026
- Size
- 8,680 bytes
- Repository stars
- 32
- 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 — Alun Framework
给编码 Agent(Claude Code / Cursor / Codex / WorkBuddy Agent)的操作指令。
本文件是「指令」,详细参考与可运行示例见 `README.md`、`docs/`、`skill-alun/SKILL.md`、`examples/`。
## 项目是什么
Alun 是**面向 AI Coding 的 Rust Web 框架**:配置驱动 + 插件架构,一个接口 = 一个 `async fn` + 一个宏注解。
版本 `0.4.2`(Edition 2024,rust-version 1.94.1),Cargo workspace 含 **21 个 crate + 5 个示例工程**。
分层:`用户代码 → alun(门面)→ 功能 crate(web / db / cache / template …)→ alun-core(纯骨架:Error / Plugin)`。
设计理念承接 **[Aifei](https://github.com/jfinal/aifei)**([官网 aifei.cn](https://aifei.cn),世界首个 AI Coding 框架)的
Just Service 范式——Alun 是它在 Rust 生态的表达(Just Config),不是代码翻译。
回答「这个 API 为什么这样设计」时,必要时读 `docs/architecture/aifei-tribute.md`(含 aifei → alun 的逐项映射与取舍)。
## 铁律(动手前必读)
1. **唯一框架依赖是 `alun`**。业务 `Cargo.toml` 不写 `alun-db` / `alun-db-core` 等子 crate;
路由 / 配置 / 数据库 / 响应 / 错误全部从 `use alun::prelude::*;` 来。
2. **handler 只有一种签名**:`async fn -> ResResult<T>`,其中 `ResResult<T> = Result<Res<T>, ApiError>`。
响应统一包成 `{ "code": 0, "msg": "ok", "data": .. }`。出错:`Err(ApiError::not_found(".."))` 等。
3. **数据访问层用 `DbResult<T>`**(即 `Result<T, DbError>`)。`DbError` 通过 `From<DbError> for ApiError`
…Read the whole file at its exact version.
How to install
mdr add wild1024/alun/AGENTS.md@sha256:763eb20477dbd8dbThe line at the top of this page pins the label git:20261024.c0b1671, 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_xl5kz4ksu5nbhxhb)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Oct 13, 2026 and Oct 24, 2026, about one every 5 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261024.c0b1671 latest | 2026-10-24 | c0b1671 | 8,680 B | A | view · diff |
| git:20261016.a013a2a | 2026-10-16 | a013a2a | 8,680 B | A | view · diff |
| git:20261013.3541145 | 2026-10-13 | 3541145 | 8,680 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (8680 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
wild1024/alun · 32 stars · license MIT · pushed 2026-10-24 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_xl5kz4ksu5nbhxhb GET https://markdownregistry.com/api/v1/resolve?ref=wild1024/alun/AGENTS.md GET https://markdownregistry.com/api/v1/blob/763eb20477dbd8dbf6431954998626c91d9a5730ba13d6d4c15aca4016ec43c9
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.