跳到正文
Sung-Jin In· 来源· @SungJinIn2 · X·· 4 小时前AI 评分63
正文 · 原文

Your Coding Agents Are Fast. That Might Be What Breaks Your Codebase - Software Factory That Doesn't Ship Slop — Dex Horthy, Factory

Engineering teams spent the last year watching implementation time collapse from days to minutes, then wondering why shipping suddenly felt heavier. Pull requests ballooned. Bugs per developer crept upward. According to data from Faros cited by Factory's Dex Horthy, 30 percent of pull requests are now merging without human review, accompanied by longer review threads and higher incident rates per change.

Horthy, who co-founded HumanLayer before joining Factory, recently laid out twelve practical rules for running an agentic software factory alongside the Anti-Slop Manifesto. Strip away the online hype around autonomous agent swarms, and his diagnosis is disarmingly grounded. Building faster with AI exposes every weak habit in how a team plans, verifies, and thinks. Here are the seven most counter-intuitive takeaways from his playbook.

1. Software factories run on thirty-year-old engineering habits

Talk about "software factories" online often makes them sound like an alien discipline invented six months ago. In practice, a factory follows the exact lifecycle teams have run for decades: put ideas in a tracker, build, run tests, open a pull request, gate it with CI and static linters, roll out behind canaries and feature flags, monitor production, and feed customer issues back to the team. Going agentic simply swaps a coding agent into the build step.

To keep that pipeline sane, Horthy drops vague talk of "agent loops" in favor of two opposing mechanics: forward pressure and back pressure. Forward pressure initiates work automatically, routing feature requests straight into the factory or wiring 3 AM production alerts so an engineer wakes up to a proposed fix instead of a raw stack trace. Back pressure pushes against messy output through CI/CD, static linters, agentic code reviews, test harnesses, and even formal verification like Lean checks.

That framing changes how you spend engineering time. Instead of begging prompts to behave, you invest in deterministic feedback so models can autonomously hill-climb past every obvious bug before a human ever opens the diff.

2. Newer AI models can actively make a codebase worse over time

Watch a frontier model clone Excel or Redis in a few hours, and it is easy to assume code maintenance is a solved problem. Those demos hide a massive catch: every requirement is known upfront. Real software grows one messy feature at a time, requiring engineers to notice bad abstractions, centralize duplicated logic, and delete dead weight.

When Gabe Orlanski's lab at the University of Wisconsin tested incremental codebase evolution with Slop Code Bench, frontier models stumbled badly. GPT-5.5 scored 15 percent and Astra hit 16.3 percent across multi-stage checkpoints. Worse yet, several undesirable coding habits appeared more frequently in current models than in releases from six months earlier. Horthy highlighted Claude and GLM reverting to Python 2 style %s format strings in Python 3 instead of using f-strings by default.

Waiting for the next model release to magically clean up technical debt looks like a bad bet. Left unattended, agents optimize for passing today's test suite by layering patches on top of patches, leaving you with high cyclomatic complexity and an architecture nobody recognizes six months later.

3. Slop is an economic mismatch between writers and readers

People love using "slop" as a lazy synonym for anything touched by an LLM. The Anti-Slop Manifesto, co-authored by Horthy with collaborators including Swix and Philip, gives the term a sharper edge.

"Slop is when we put less effort into producing something than we ask the consumer on the other end to spend understanding it."

The root problem is pure asymmetry. Generating a 1,000-line pull request or a ten-page strategy memo now costs fractions of a cent, while the human effort required to read, verify, and reason about it stays stubbornly fixed.

"A swarm of agents can produce more work in a single day than a human can review in their entire career."

Once sloppy code and bloated docs pile up in a repository or chat history, the next agent reads them as gospel and copies the mess. Meanwhile, overwhelmed teammates stop pushing back out of sheer exhaustion. AI tools already lean heavily toward adding code rather than deleting it, so unchecked volume quietly turns both your codebase and your team's communication to mush. Pushing back kindly when a coworker drops an unreviewed AI wall of text in Slack becomes a basic act of team hygiene.

4. Calibrate your planning to expected pain, and show instead of tell

Faced with runaway agents, many engineers overcorrect and spend six hours crafting an exhaustive specification for a trivial feature. Horthy recommends sizing your upfront effort by multiplying two variables: how likely a piece of code is to change later, and how painful that change will be.

A two-sentence prompt is completely fine for tweaking a button color, even if it takes a quick follow-up nudge to land. A database schema deserves serious planning, and the highest-stakes core logic may still warrant hand-coding.

When you do plan, skip giant walls of prose. Human brains spent millions of years navigating visual environments and only about five thousand years reading text. Horthy built a popular skill called show me (now past 40,000 installs) that renders plans as HTML mockups, tables, and charts so engineers can spot misaligned intent in seconds. Seeing a layout beats parsing twelve paragraphs of markdown every time.

5. Rough AI code belongs behind feature flags and strict linters

Perfectionism kills one of AI's greatest advantages. Horthy treats rough, lightly reviewed output as a practical instrument in the right setting. Vibe coding a quick prototype or side project to learn whether users even care about a feature saves weeks of wasted engineering.

The trick is isolating experiments from your core system. Wiring coding agents into feature-flagging platforms like PostHog, Statsig, or LaunchDarkly lets them ship variations safely, measure real performance, and prove demand before anyone hardens the implementation.

For everything destined to live longer than a weekend test, turn recurring AI mistakes into hard automated rules. Horthy points engineers toward concrete anti-slop tooling: Cloudflare principal engineer Dylan Moy's TypeScript Anti-Slop repository (roughly 100 targeted rules), Factory's ESLint plugin, and the 200 Python quality rules extracted directly from Slop Code Bench. Give agents real execution environments too, from browsers and screenshots to full iOS builds, so they test their own output against reality.

6. Unify your forge, because you can never buy verification

Decades ago, developers emailed Git patches back and forth on mailing lists before forges like GitHub pulled source code into one home. Today, code sits together while context is scattered across Notion pages, Google Docs, and endless Slack copy-paste chains where engineers shuttle Claude outputs between private sessions. Pulling specs, architectural discussions, and agent sessions right next to the codebase ensures both humans and future models can see why decisions happened.

Even with a unified forge, Horthy draws a clear line around what vendors can sell you. You can rent VMs off the shelf, customize minimal agent harnesses like OpenCode or Pi, and buy a control plane for scheduling, automations, and governance. Verification stays yours. Inside an organization with hundreds of engineers and repositories, no black-box vendor holds the domain opinions required to prove your system actually behaves correctly.

7. Reviewing something is where your remaining edge lives

As models get stronger, reading every generated line of code will make less sense for many tasks. Human review will migrate upward to plans, interfaces, designs, and user-facing results. Abandoning review completely, however, guarantees mediocrity.

"I believe there will always be alpha in reviewing something... if you don't review anything, if you bring nothing to the table, no thinking, then you're just going to get the same AI output as everybody else."

Linters, verifiers, and agent reviewers do heavy lifting, yet they remain incomplete on their own. Real leverage shows up when engineers do their own thinking before prompting, own the taste and consequences of what ships, and judge success by who uses the product rather than how many parallel agents ran overnight.

Software factories work best when they amplify human judgment instead of sidelining it. Tools will keep accelerating every month, yet the teams building durable products five years from now will be the ones that treat human attention as their scarcest resource and keep caring deeply about what gets shipped.

Dex Horthy's 12 Software Factory Practices

A software factory is not a brand-new invention—it is the classic engineering lifecycle (tracking work, building, testing, reviewing, deploying with canaries and feature flags, and monitoring production) with the manual "build" step replaced by an orchestrated coding agent. To make that system reliable rather than chaotic, Dex Horthy frames the core mechanic around balancing forward pressure and back pressure, supported by 12 practical rules.

1. Design around forward and back pressure, not vague "loops": Focus tactically on how work starts automatically and what automated checks force agents to refine their output before a human ever inspects it.

2. Know your enemy (unattended models degrade codebases): Models can one-shot greenfield projects when all requirements are known upfront, but they struggle to evolve a codebase cleanly across incremental checkpoints. Data from Slop Code Bench (where frontier models like GPT 5.5 scored 15% and Astra scored 16.3%) shows high cyclomatic complexity, bloated functions, and strange regressions—such as Claude and GLM reverting to Python 2 %s formatting instead of f-strings—making it essential to retain human understanding of long-lived systems.

3. Plan before you build: Just as pre-AI teams used architecture reviews and sprint planning to prevent expensive rework, aligning on what to build and how before spending tokens and review cycles cuts down the chance of having to redo agent output later.

4. Calibrate planning effort to "expected pain": Avoid over-specifying trivial tasks. Match your planning depth to the likelihood of future change multiplied by how hard that change will be—meaning you can fire off a two-sentence prompt for a button color, write a detailed spec for a database schema, or hand-code the highest-stakes logic.

5. Align visually: Humans process visual layouts far better than walls of text. Use tools that render HTML mockups, tables, and charts (such as Horthy's show me skill) during planning and review to align quickly on intent.

6. Help agents test their work: Give agents direct feedback loops matching what they are building—browsers, screenshots, videos, curl commands, or the ability to compile and run an iOS app in its target environment—so they can observe failures and hill-climb toward working software.

7. Fight slop with linters and static rules: Turn recurring model mistakes into deterministic checks rather than hoping prompts prevent them. Use language-specific anti-slop rule sets, such as Cloudflare principal engineer Dylan Moy's TypeScript Anti-Slop repo (~100 rules), Factory's ESLint plugin, or the ~200 Python quality rules extracted from Slop Code Bench.

8. Treat slop as a tool (not all slop is bad): Not every line of code needs production hardening. Vibe coding, prototypes, and side projects are high-leverage when validating whether users even want a feature—provided they are contained safely (such as behind a feature flag) and don't undermine long-term maintainability.

9. Give models a feature flagging system: Connect agents to experimentation tools like PostHog, Statsig, or LaunchDarkly so they can ship variations safely, measure whether changes actually perform better, and make data-backed decisions.

10. Compound over time: Build evaluations around everything and systematically capture lessons from past agent sessions so the factory gets smarter instead of repeating the same errors.

11. Unify your forge: Just as GitHub centralized code patches that used to float around mailing lists, bring plans, design discussions, docs (Notion, Google Docs), and agent sessions into one place—ending the telephone game of copy-pasting AI outputs back and forth in Slack—so both humans and agents can see why decisions were made.

12. Recognize you can't buy everything: Commodity building blocks like VMs, dev environments, minimal or frontier harnesses (e.g., OpenCode or Pi), and control planes can be bought or customized, but verification cannot be outsourced. Only your own engineering team holds the domain opinions and testing criteria required to prove your code actually works.

Key Takeaways

* Forward and back pressure turn agents into a self-correcting system: Forward pressure automates how incidents and feature requests trigger builds, while back pressure (linters, CI/CD, tests, agentic review) lets models fix low-hanging issues before humans step in.

* Proportionality prevents both slop and bureaucracy: Long-lived architecture demands upfront planning, deterministic anti-slop linters, and custom verification, while exploratory prototypes can stay rough as long as they live behind feature flags.

* Context and verification are your real moat: Unifying specs, code, and past decisions in one forge—and owning your domain-specific verification—is what keeps an agentic factory compounding cleanly instead of decaying over time.

引用AI.Engineer@aiDotEngineer
How do you stop a software factory from becoming a slop factory? @dexhorthy of @factory lays out 12 practices: planning, visual alignment, lint rules and review. Plus the Anti-Slop Manifesto. Watch: https://youtu.be/-NFMsM2y0Vk
在 X 查看被引用的帖子

来源:Sung-Jin In · x.com