惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Webroot Blog
Webroot Blog
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
云风的 BLOG
云风的 BLOG
IT之家
IT之家
S
Secure Thoughts
U
Unit 42
G
GRAHAM CLULEY
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News and Events Feed by Topic
The Cloudflare Blog
月光博客
月光博客
V
Visual Studio Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Schneier on Security
Schneier on Security
O
OpenAI News
Hacker News - Newest:
Hacker News - Newest: "LLM"
P
Privacy International News Feed
The Hacker News
The Hacker News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
T
Tailwind CSS Blog
SecWiki News
SecWiki News
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Simon Willison's Weblog
Simon Willison's Weblog
Stack Overflow Blog
Stack Overflow Blog
爱范儿
爱范儿
Last Week in AI
Last Week in AI
C
Check Point Blog
D
Docker
Scott Helme
Scott Helme
Engineering at Meta
Engineering at Meta
博客园_首页
W
WeLiveSecurity
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Vulnerabilities – Threatpost
D
Darknet – Hacking Tools, Hacker News & Cyber Security
J
Java Code Geeks
NISL@THU
NISL@THU
S
Security Affairs
C
Cybersecurity and Infrastructure Security Agency CISA
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Why AI Agents Love Boring Code
Ian Johnson · 2026-05-21 · via DEV Community

The most useful thing you can do for your coding agent is not a better prompt or a smarter model. It's a more boring codebase.

This sounds like a joke. It is not.

What "boring" means

Boring code is not bad code. Boring code is code that does exactly what every other piece of code in the same situation does. It uses the same patterns, the same naming, the same error handling, the same file structure. When you have read one module, you have roughly read them all. There are no surprises, no special cases, no clever shortcuts that only the original author understood.

Boring code is what you get when a team commits to a small number of conventions and refuses to deviate from them. It is the opposite of "every engineer expressing themselves." It is engineering as a coordinated activity rather than a series of individual performances.

Senior engineers have always quietly preferred boring code, because they spend more time reading code than writing it and they know what unboring code costs. Agents make that preference economically unavoidable.

Why agents reward this

An agent working on your codebase is doing something close to advanced pattern-matching, against everything it has been trained on and everything in the repo it has just loaded into context. The more consistent that context is, the more reliable the matching.

If every controller in your codebase validates input the same way, the agent will validate input that way without being told. If half of them use one pattern and half use another, the agent will pick one (possibly the wrong one for the file it is editing) and you will find out at code review, or worse, at runtime.

This is not a quirk of any particular model. It is what happens when you feed a pattern-matcher inconsistent patterns. The codebase is a prior. Inconsistent priors produce inconsistent outputs.

The novelty tax

Every unusual thing in your codebase is a tax the agent has to pay. Some examples of what this tax looks like in practice:

A bespoke logging wrapper that does almost-but-not-quite what the standard library does. The agent reaches for the standard one because that's what most code uses, and the resulting logs end up in a different place from everything else.

A single service that uses a different ORM than the rest of the system, for historical reasons nobody remembers. The agent writes code in the style of the majority and quietly breaks the minority.

A clever bit of metaprogramming in one module that auto-generates handlers from annotations. The agent does not recognize the trick, adds a handler manually, and now there are two handlers for the same route.

None of these are bugs in the agent. They are bugs in the codebase, where "bug" means "places where the patterns are inconsistent enough that a competent pattern-matcher will get them wrong." Humans hit the same problems; they just compensate by spending five minutes reading nearby files first. Agents are faster than that, which means their mistakes are also faster.

The tax compounds. A codebase with three weird patterns is annoying. A codebase with thirty is a place where agent reliability collapses and nobody can quite say why.

Standards as a contract

Coding standards have always been a contract between current and future contributors. The current author agrees to write code in a particular way; future contributors agree to read it in that way. The contract is what makes the codebase legible over time.

The list of future contributors has expanded. It now includes agents: yours, your teammates', whichever ones your company adopts next year, and whichever ones you use yourself in two years that don't exist yet. None of them will have been in the original design discussions. All of them will read the code the same way: as a source of patterns to extrapolate from.

A team with strong, documented conventions is offering all of those future contributors the same deal. A team without them is offering each one a guessing game.

Mechanical enforcement beats good intentions

The conventions that work are the ones that do not depend on anyone remembering them. Linters, formatters, type systems, and CI checks are how you take a convention out of the realm of "we agreed to do it this way" and into the realm of "the build fails if you don't."

Prettier and gofmt are uninteresting tools that have done more for codebase consistency than a thousand style guides. ESLint rules with autofix turn discussions into commits. A strong type system mechanically rules out entire categories of code that an agent might otherwise produce.

This matters for agents specifically because agents respond to feedback. An agent that runs the linter and sees an error fixes the error. An agent that produces code which conforms to the linter on the first try produces it because the patterns it learned from your codebase already point that direction. Either way, the tool is doing work that human reviewers would otherwise have to do — at human speed, against agent throughput.

Conventions on disk

The other practice worth investing in is the boring one: write your conventions down, in the repo, in a file the agent can read.

The exact filename varies (AGENTS.md, CLAUDE.md, a CONTRIBUTING.md, a top-of-tree README). What matters is that the things your team knows implicitly become explicit, in a place an agent loads into context at the start of every session. "We use functional components, not classes." "Errors bubble up to the route handler; do not catch them in the service layer." "Database access goes through the repository module; no raw queries."

These are the things a new human engineer would learn from a week of code review and a few uncomfortable PRs. The agent does not get a week. It gets one file. Make sure the file says what the code already implies, so the agent's priors line up with your reality.

Use a harness

Writing conventions down is the starting move. The next one is wrapping them in a harness — the layer that turns a static list of "we do things this way" into something the agent actively references, gets corrected by, and helps maintain.

A useful working definition: a harness is everything around the agent except the agent itself. Note that I am not saying model specifically, because there is some overlap in terminology. Some folks call Claude Code (and other comparable products) a harness. In a way it is: it's a harness around the model. Here, I am specifically talking about an agent harness defined in the code that improves the results of the agent (this session of Claude Code).

The CLAUDE.md the agent loads. The rules and skills in your .claude/ directory. The slash commands the team has standardized on. The checks that run when the agent edits a file. The loop that turns "a reviewer caught a bad pattern" into "the next agent run won't do that." Agent = Model + Harness. You don't get to pick a new model every Tuesday. You can engineer the harness every day.

If you are starting from zero, bridle is a sensible default. It's a Claude Code plugin that scaffolds CLAUDE.md and a .claude/ directory with rules, agents, skills, and commands, and ships with slash commands for the lifecycle: /bridle:learn turns a review comment into a durable rule, /bridle:audit walks the repo looking for rule violations, /bridle:harness-health flags rules that have gone stale or coverage that has thinned. The opinionation is the point — you get to a working baseline in an afternoon instead of bikeshedding directory layouts for a sprint.

But the specific tool is not the argument. The argument is that you need a working harness — one that lives in the repo, that the agent reads on every session, that the team updates when the agent surprises them, and that closes the loop between "we caught this in review" and "the next run won't do it." A homegrown setup made of three markdown files and a pre-commit hook beats a sophisticated harness that nobody touches. What matters is the discipline: treat the harness as part of the codebase, version it, review changes to it, and feed it every time the agent does something you would correct in a code review.

The teams that get the most out of agents are the ones that have built this layer deliberately. The teams that get the least are still hoping that a single CLAUDE.md and a strong model will be enough. It won't.

How this connects to the pipeline

The thread running through this whole argument is the same one that runs through Continuous Delivery and through blameless post-mortems: the system, not the individual, holds the standard.

A linter check in CI is a standard the system enforces. A type error caught at build time is a standard the system enforces. A regression test that fails when the agent reaches into the wrong layer of the stack is a standard the system enforces. None of them depend on a reviewer remembering the rule at the moment they happen to be reading the diff.

Agents are going to produce a lot of diffs. The reviewers cannot scale. The standards have to.

The leverage

If you want to get more out of your agents tomorrow, the highest-leverage move is rarely a model upgrade. It is the unglamorous work of making your codebase predictable: pick one pattern per problem, document the patterns, enforce them mechanically, and refactor the loud exceptions until they are quiet.

Boring code is a force multiplier. It always was, for humans. Agents just put a number on it.