@nateberkopec: Automatic linter rules that are draconian for humans but effective for agents: 1. Cyclomatic complexity budget 2. LOC-p…
Summary
The tweet discusses automatic linter rules like cyclomatic complexity budgets and CSS/JS restrictions that are strict for humans but effective for coding agents, with Sam Saffron highlighting their role in preventing long-term code rot.
View Cached Full Text
Cached at: 08/27/26, 06:00 PM
Automatic linter rules that are draconian for humans but effective for agents:
- Cyclomatic complexity budget
- LOC-per-file restriction
- CSS/JS/filesize restriction
- ABC scores
- what else?
Sam Saffron (@samsaffron): When you are automatic code, having CSS/JS budgets are a handy trick for avoiding long term rot, once you hit a set limit … get agents to prune
Similar Articles
@mattpocockuk: This is really smart. There are definitely a set of rules that are too complex to lint deterministically that feel wast…
The tweet discusses using Jev as a fuzzy linter to handle complex coding guidelines that are not suitable for deterministic linting, with examples like useEffect and comment management.
@rauchg: Agents are only as good as the proof-checkers, compilers, type systems, and linters you give them. 𝚜𝚑𝚊𝚍𝚌𝚗/𝚕𝚒𝚗�…
Guillermo Rauch discusses the importance of linters and compilers for AI agents, highlighting the release of shadcn/lint, an agent-first linter for Tailwind design systems that helps agents adhere to design rules.
Agent configs can pass validation and still be bad instructions. What should we lint before runtime?
The author built LintLang, a deterministic linter for agent configs that catches structural language defects like vague tool descriptions and conflicting instructions before runtime, and notes that Character.AI's Larch framework adopted it in CI. The post asks developers which runtime failures should be caught statically.
@kentcdodds: You know how when you tell an agent to remove something, it adds a test assertion to make sure that thing is no longer …
Kent C. Dodds describes how AI agents often add unnecessary test assertions when removing code, and shares that he had an agent create an oxlint plugin to prevent this behavior.
How to make your agents code better
A tweet discussing Cindy Sridharan's tips for getting AI coding agents to write better code, including building a rich claude.md with favorite books, blogs, OSS projects, and admired engineers' code.