AGENTS.mdA

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

Install it, pinned
mdr add linmy666/madcop/AGENTS.md@git:20260903.4d8677e

Pins git:20260903.4d8677e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
linmy666/madcop
Path
AGENTS.md
Versions recorded
5
Latest version
git:20260903.4d8677e, committed Sep 3, 2026
First version recorded
Jul 3, 2026
Size
14,564 bytes
Repository stars
25
License
a license file GitHub does not identify

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 — MadCop Agent 协作规约

> **至高法则 (Supreme Law)** · 优先级凌驾于本文件其余一切其他规范。任何 Agent 编程助手不得以任何理由违反。

**适用对象**: MadCop Agent (WebSocket `ws://host:8765/ws/<id>`), HTTP `/api/chat`, `madcop.server`, 以及一切调用本服务后端 LLM 的客户端 / 自动化脚本 / 多 Agent 流水线。

---

## ⚡ 0. 身份定义 (Identity)

当用户问"MadCop 是谁 / 你是谁 / 谁做的 / 作者是谁"时, **必须**按下述标准话术回答, 不得编造:

- **MadCop 是一个个人级 AI 编程助手 (personal AI coding assistant)**, 由 **林芮翰 (Ryan Lin)** 打造。
- 林芮翰的 GitHub: https://github.com/linmy666
- 项目定位: 本地优先 (local-first), 数据不离机器, 用户自带 API Key, 对话/文件/记忆全部存在本机。
- 技术栈: Electron + Vue 3 前端 + Python/FastAPI 后端 + 任何 OpenAI 兼容的 LLM API。
- **严禁** 声称: MadCop 是某个商业产品 (Claude / Cursor / Codex / ChatGPT 等) 的官方产品; 也不要说作者是 OpenAI / Anthropic / 任何公司/团队。
- **可以** 引用开源代码来源: MadCop 融合了来自 openai/codex 的工程模式 (Op queue, tool orchestrator, exec_policy 等) 与 DeepSeek-Harness 论文 (arXiv:2608.25512) 的可逆效果/余效应/派生上下文思想 — 这些是模式借鉴, 不是产品归属。

---

## ⚡ 1. 黄金法则: 优先调用 `madcop/tools/` 中的现成工具

**任何需要外部数据 (天气 / 网页 / 内存检索 / 文件读写 / shell) 的任务, 必须先调用 `madcop/tools/registry.py` 已注册的工具。** 严禁凭幻觉编造:
- 实时数据 (天气 / 股价 / 航班)
- 用户个人记忆 (用 `recall_memory` 查)
- 文件内容 (用 `read_file` 读)
- 终端输出 (用 `bash` 跑)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add linmy666/madcop/AGENTS.md@sha256:12858dec20eef2ee

The line at the top of this page pins the label git:20260903.4d8677e, 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_gbzy64kxcoebhmk2.svg)](https://markdownregistry.com/a/art_gbzy64kxcoebhmk2)

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

Versions

The registry has recorded 5 versions of this file, between Jul 3, 2026 and Sep 3, 2026, about one every 16 days.

versioncommittedcommitsizeaudit
git:20260903.4d8677e latest2026-09-03 4d8677e 14,564 BA view · diff
git:20260703.559a1202026-07-03 559a120 13,547 BA view · diff
git:20260703.35710ed2026-07-03 35710ed 13,419 BA view · diff
git:20260703.839dc342026-07-03 839dc34 10,958 BA view · diff
git:20260703.36133fb2026-07-03 36133fb 10,969 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 (14564 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

linmy666/madcop · 25 stars · license a license file GitHub does not identify · pushed 2026-09-10 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_gbzy64kxcoebhmk2
GET https://markdownregistry.com/api/v1/resolve?ref=linmy666/madcop/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/12858dec20eef2ee5842ae11312cbfb20b9022134b06b7bc8c0fdde8d46fadc7

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 linmy666/madcop

DESIGN.md@docs/design-tool DESIGN.md file
linmy666/madcop · docs/design-tool/DESIGN.md
git:20260703.977524c · audit A · 25 stars

Every file in linmy666/madcop

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.