Urgent.News

What's breaking now, across hundreds of outlets.

AI

Rethinking Claude Code Best Practices

Coding-agent workflows used to require constant supervision: Start a session. Approve commands one by one. Correct the model when it gets stuck. Add another warning to CLAUDE.md . Review every change manually. That made sense when sessions were short and models needed frequent steering. But as coding models become better at understanding repositories, running tests, and working for longer…

Coding-agent workflows once required constant supervision: initiate a session, approve commands one by one, correct the model when it encounters obstacles, and add more warnings to CLAUDE.md. Reviewing each change manually was sensible when sessions were brief and models frequently needed guidance. However, as coding models improve at comprehending repositories, executing tests, and working over extended periods, this approach increasingly resembles a bottleneck.

In her presentation "Rethinking Claude Code Best Practices," Lydia Hallie suggests developers should transition to a higher level: spend less time supervising every action and more time designing the system around the agent. The developer's role remains present, but responsibility now shifts to better layers. Understanding the task and the model should occur within the model itself, while routine approvals, permission modes, and policy now reside in absolute prohibitions and deny rules.

Limiting side effects should be managed through sandbox or isolated environments, while detecting incorrect work should rely on tests, hooks, and CI. Final judgment should remain with human review, based on risk assessment.

CLAUDE.md may contain too much history; project instruction files tend to grow after each frustrating model mistake. Soon, they contain repeated folder structure descriptions, obvious framework information, "IMPORTANT" warnings added following a single old failure, generic advice like "write clean code," and rules already enforced by tests or permissions.

The issue isn't that documentation is poor; it's that old corrections can become noise for a more powerful model. Excessive instructions can result in unnecessary tool calls or steer the model down a less useful path. What should remain? Preserve information the model cannot reliably discover from the repository, such as a legacy service not clearly referenced in the code, an external system with unusual deployment constraints, a business rule absent in tests, a security boundary that must always be respected, or a precise definition of "done."

What should be removed? Remove information the model can discover by inspecting the project, including the obvious programming language, normal directory layout, generic style advice, and repeated warnings already automated by tests or permissions. A helpful test: If this instruction disappears, would the model still be able to find the answer in the repository?

If the answer is yes, it may not belong in the instruction file. For instance, in a Claude Code terminal workflow, rather than filling CLAUDE.md with every possible warning, place crucial acceptance criteria directly within the task: Implement the API migration. Done means: the existing sessions continue to function, new logins use the new API, the old API isn't called by production code, the relevant tests pass, the build completes successfully, and the final response includes commands run and their output.

This provides the model with a clear target without transforming project instructions into a record of everything that once went wrong.

The new developer role involves a shift from micromanagement to system design. Developers still decide what should be built, define what must never occur, and review significant changes. However, routine steering can increasingly be managed by the model, while safety and quality move into enforceable controls. This leads to the next question: if the model is permitted to work more autonomously, how do we ensure its safety? In Part 2, we will explore auto mode, deny rules, sandboxing, and isolated cloud sessions.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

Website to LLM Prompt: How to Turn Any Page Into a Brief an AI Can Rebuild

Originally published on Crafttor . TL;DR: An LLM can only rebuild what you describe. A screenshot shows pixels, so the model guesses at fonts, colours, spacing and every interaction it cannot see.

  • Webpage recreation limited by AI input
  • Six key elements in detailed prompt
  • WebCapture to Figma extension simplifies process

More from Tuesday 24 November →