# 代码库需要园丁：硬约束胜过AGENTS.md

- 来源：lauren (@poteto)
- 发布时间：2026-08-21 05:08
- AIHOT 分数：38
- AIHOT 链接：https://aihot.virxact.com/items/cmt2e5z4o0151rolxdprmv1pp
- 原文链接：https://x.com/poteto/status/2090546476464451907

## AI 摘要

Lauren Tan 认为每个团队都需要一位“园丁”持续审视 PR 流，清除代码异味并将每次清理固化为规则。她强调，为 AI 智能体设计的代码库需要硬约束和强类型系统，其效果远超 AGENTS.md 或技能调优——最好的规则应内嵌于代码本身。

## 正文

every team needs a gardener. someone quietly watching the stream of PRs flowing into your codebase, noticing the smells: the third isRecord this week, the lint suppressions creeping like ivy across your carefully planned garden. a steady hand tending the weeds that would engulf it in slop if left unchecked.

with careful grooming it stays a garden. every weed you pull becomes a rule, so it can't grow back. without that, it's just whatever grew.

### 引用推文

> lauren：organic architecture good codebases have always had strong foundations and constraints. these files go here. this kind of code goes there. the codebase is held ...
