agentleFS

AGENTS.md examples from real projects

How real projects brief Codex, Cursor and every other agent that reads AGENTS.md.

Worked for most · soon
ZhangHanDongAGENTS.md

rust-skills

ZhangHanDong/rust-skills/AGENTS.md

For OpenAI Codex and compatible agents When creating Rust projects or Cargo.toml files, ALWAYS use: For detailed guidance, see: - skills/rust-router/SKILL.md - Question routing - skills/coding-guidelines/SKILL.md - Code style rules…

1.5k10mo agoReviewMountCreate a free account to mount
ZhangHanDongAGENTS.md

agent-spec

ZhangHanDong/agent-spec/AGENTS.md

This file provides Codex with the same guidance that Claude Code gets via .claude/skills/. Two workflows: Tool-First (using the CLI) and Authoring (writing .spec/.spec.md files). Review point displacement: Human attention moves from "reading code diffs" to "writing contracts".

4573mo agoReviewMountCreate a free account to mount
ZhangHanDongAGENTS.md

mempal

ZhangHanDong/mempal/AGENTS.md

本文件是仓库级 agent 工作约束,内容与 CLAUDE.md 保持一致;在本仓库内工作的 agent 都应遵循以下规则。 Rust 实现的 coding agent 项目记忆工具。单二进制,cargo install mempal,10 秒内带出处找回历史决策。 必须使用项目内的 Rust 技能:skills/rust-skills/SKILL.md 编写、审查、调试、重构 Rust 代码时,遵循该 skill 的四步工作流(理解 → 服从 → 释放 → 约束)和概念锚点框架。 mempal 借鉴 MemPalace 的设计理念(verbatim 存储、Wing/Room 结构、AAAK 压缩),用 Rust 从零实现并修复其缺陷。以下两个本地项目是关键参考: 实现时遇到设计疑问,优先查阅书稿中的分析(特别是附录 C 的 AAAK 评估和附录 A/B 的 E2E Trace),而非直接复制 Python 代码。 docs/specs/2026-04-08-mempal-design.md — 完整架构设计,所有实现必须以此为准。 项目使用 agent-spec 管理任务合约。所有实现必须对照 spec 验收。

2847mo agoReviewMountCreate a free account to mount
CLAUDE.md vs AGENTS.md

About AGENTS.md

What is AGENTS.md?

An open format for instructions to coding agents, read by Codex, Cursor and others. Think of it as a README written for agents.

Where does it go?

At the repository root, with more specific files in subdirectories. Agents read the one closest to the file they're editing.

What should it contain?

Setup and test commands, code style, and the rules a new contributor would need to know.

Does Claude Code read it?

Claude Code reads CLAUDE.md. A one-line CLAUDE.md that points at AGENTS.md covers both.