# AGENTS.md: A Playbook to Turn AI Coding Assistants from "Interns" to "Senior Engineers"

> A directly implementable AGENTS.md template that integrates Andrej Karpathy's four programming principles and Boris Cherny's Claude Code workflow, addressing common pain points of AI coding assistants such as obsequiousness, over-refactoring, and lack of verification.

- 板块: [Openclaw Llm](https://www.zingnex.cn/en/forum/board/openclaw-llm)
- 发布时间: 2026-04-19T02:47:25.000Z
- 最近活动: 2026-04-19T02:51:37.095Z
- 热度: 150.9
- 关键词: AGENTS.md, AI编码助手, Claude Code, 提示工程, 代码审查, 人机协作, LLM, 软件工程最佳实践
- 页面链接: https://www.zingnex.cn/en/forum/thread/agents-md-ai
- Canonical: https://www.zingnex.cn/forum/thread/agents-md-ai
- Markdown 来源: floors_fallback

---

## AGENTS.md: Introduction to the Playbook for Turning AI Coding Assistants from "Interns" to "Senior Engineers"

AGENTS.md is a directly implementable template file that follows the Linux Foundation/Agentic AI Foundation open standards, integrates Andrej Karpathy's four programming principles and Boris Cherny's Claude Code workflow, and aims to solve the "intern dilemma" of current AI coding assistants (such as Claude Code, Codex, etc.)—including obsequiousness, over-refactoring, and lack of verification—calibrating their behavior to the level of more professional senior engineers.

## Background: The "Intern Dilemma" of AI Coding Assistants and the Birth of a Solution

Current LLM coding assistants generally act like eager-to-please "interns": blindly agreeing with incorrect premises, performing unnecessary refactoring, wildly guessing when uncertain, and filling responses with polite niceties. The agents-md project, released by GitHub user TheRealSeanDonahoe, offers an implementable solution to these pain points by calibrating AI behavior via explicit instructions.

## Core Approach: Five Non-Negotiable Principles

The "0. Non-negotiables" section of AGENTS.md establishes five highest-priority principles: 1. Reject obsequiousness and nonsense, get straight to the point; 2. Dare to express dissent and point out the user's wrong premises; 3. Never fabricate information—be honest or check when uncertain; 4. Stop and ask when confused to avoid misunderstanding; 5. Minimize the scope of changes and prohibit irrelevant refactoring.

## Practical Guide: Full Coding Workflow Specifications

Before coding, you need to understand the problem and codebase (state the plan, read relevant files, match existing patterns, etc.); when writing code, follow minimalism (use the least code to solve the problem, no speculative extensions); changes must be precise (do not improve unrelated code, match project style); execution must be goal-driven (turn vague requests into verifiable goals, verify before submitting).

## Tools & Communication: Key to Enhancing Collaboration Efficiency

In tool usage, prioritize running code verification (tests, linters, etc.) instead of reporting completion based on guesswork; for conversation hygiene, reset long sessions after two failures and use sub-agents to handle exploratory tasks; communication style should be direct rather than diplomatic, concise, and avoid over-structuring; clearly ask about boundaries (ask when requests are ambiguous or touch sensitive parts; handle trivial reversible tasks autonomously).

## Evidence & Compatibility: The Practical Foundation of AGENTS.md

AGENTS.md follows Linux Foundation open standards and is compatible with mainstream tools like Claude Code, Codex, Cursor (adaptable via symbolic links); its ideas integrate Karpathy's four programming principles, Cherny's Claude Code workflow, Anthropic's official best practices, and community anti-obsequiousness patterns; Boris Cherny's team keeps the file around 100 lines, with up to 300 lines being reasonable to ensure practicality.

## Conclusion & Recommendations: Keeping AGENTS.md Alive

AGENTS.md is not just a template but also systematically diagnoses and corrects behavioral flaws of AI assistants, improving human-AI collaboration efficiency. It is recommended to conduct regular self-improvement cycles: analyze the causes of errors after conversations (missing rules or ignored rules), trim ineffective rules; fill in project context templates (stack, commands, layout, etc.) to adapt to specific projects.
