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

推荐订阅源

IT之家
IT之家
博客园 - 聂微东
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
博客园 - 司徒正美
爱范儿
爱范儿
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
博客园 - 【当耐特】
Jina AI
Jina AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
人人都是产品经理
人人都是产品经理
V
V2EX

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
Your Claude-generated code is already out of date. Here's...
Panav Mhatre · 2026-05-04 · via DEV Community

You asked Claude to build a feature. It worked. You shipped it.

Six weeks later, you're adding something related, and nothing makes sense anymore. The code is technically correct but completely opaque. You can't remember why anything was structured this way. Claude can't figure it out either — it starts guessing, and the guesses start breaking things.

This is the scenario I keep seeing. And it's not really a Claude problem. It's a workflow problem.

The real issue: you're generating before you've defined

When you prompt Claude without first establishing the structure of your system, a few things happen:

  • Claude fills in ambiguity with plausible-sounding assumptions
  • You accept those assumptions because the code works
  • The assumptions pile up across sessions
  • You end up with a codebase that reflects Claude's guesses, not your actual design intent

The code isn't wrong. But it's nobody's code. No one owns the decisions, so no one can maintain them.

What actually breaks

Here's what this looks like in practice:

Session drift. Each conversation with Claude starts fresh. Without a stable reference document — something that defines your architecture, naming conventions, what's in scope and what isn't — Claude reinvents your system every time. Slightly differently each time.

False confidence from passing tests. Claude writes tests for the code it just wrote. Those tests pass. But they're testing the implementation, not your intent. You don't catch the drift until something breaks in production or a new feature is impossible to fit cleanly.

Prompt fatigue. You find yourself writing longer and longer context blocks at the start of every session, trying to re-explain your own codebase. This is the tax you pay for not investing in structure upfront.

Hidden coupling. Claude tends to solve the immediate problem. Cleanly, often. But it doesn't have a strong incentive to consider how this component interacts with the one you'll build three weeks from now. You get local clarity, systemic blur.

What actually helps

The fix isn't better prompts. It's better scaffolding before you prompt.

A few things that make a real difference:

A project brief Claude can reference. Not a giant spec. A short document: what this is, what it's not, the key architectural decisions already made, what "done" looks like for the current phase. Two pages is plenty. This becomes the anchor for every session.

Explicit scope per session. Before generating anything, tell Claude what you're building in this session and what it should leave alone. This alone reduces a huge amount of unintended drift.

Verify, don't just accept. After Claude generates something non-trivial, ask it to explain the tradeoffs it made. Not to praise or critique it — just to surface whether the assumptions it made are actually the assumptions you wanted. You'll be surprised how often they're not.

Maintain a decisions log. A simple markdown file where you note: "decided to use X instead of Y because Z." Claude can't remember between sessions, but you can keep the memory alive.

The underlying shift

The most useful way I've found to think about this: Claude is excellent at execution within a defined context. It's poor at defining the context itself.

When you skip the definition step and go straight to execution, you're not really saving time — you're just deferring the cost to later, when it's more expensive to fix.

This is less of a Claude complaint and more of a workflow design principle that's always been true: clarity before implementation reduces rework. AI just makes the cost of skipping that step arrive faster and harder.


I put together a free starter pack around exactly this — prompts, a project brief template, a shipping checklist, and a reusable session structure I use when building with Claude. It's aimed at solo builders and students who are shipping their first real projects with AI assistance and want to avoid the structural debt that makes things fall apart later.

It's completely free: Ship With Claude — Starter Pack

No upsell required to get the core material. Download it, try it on one project, and see if it changes how you work.


Would be curious what others have found helps with this — particularly around keeping context consistent across sessions. Drop a comment if you've found something that works.