Urgent.News

What's breaking now, across thousands of outlets.

AI

Keep your CLAUDE.md under 40 lines so Claude Code actually follows it

Most CLAUDE.md files I see grow into a wiki: architecture notes, style essays, a changelog, three pasted READMEs. Then people wonder why the agent ignores the one rule that mattered. CLAUDE.md is loaded into context at the start of a session, so every line competes with your actual task. Short, concrete house rules beat long explanations. A shape that works # House rules ## Before you edit - Read…

Many CLAUDE.md files seem to become extensive documents, containing architecture notes, style essays, and multiple pasted READMEs. This can lead to confusion about why agents may ignore the crucial one rule that matters. CLAUDE.md is loaded at the beginning of a session, so each line competes for attention with the actual task at hand.

Effective house rules are concise and to the point, offering clear guidelines rather than lengthy explanations. A successful structure involves # House rules, followed by Before you edit instructions and Ask before adding a new dependency reminders. Specific Commands to test, lint, and avoid certain actions like force pushing or deleting files should be listed.

The Done criteria include passing tests and lint checks locally, clearly stating changed files and reasons. The Style section emphasizes matching surrounding code without making small, isolated changes. Key rules include keeping commands over prose, using test commands, and enforcing rules through hooks or settings. Reference material should be linked to external documents rather than loading it every session.

Regular pruning of the file is recommended, removing rules that have never impacted a diff. Check the memory documentation for your specific Claude Code version, as nested and user-level file loading can vary between releases. This concise house-rules file, along with the allow-list and safety hooks, is distributed with the Vildanden Agent Config. The sample provided is sufficient to start implementing this pattern.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at dev.to →

More in AI

Gemini Gems to Skills: What Changes in November 2026 and How to Move Your Gems Now

Google's official timeline by account type, what doesn't carry over yet, and the steps to recreate a Gem as a skill before the switch. Disclosure: this article was drafted and edited with AI tools.

  • Google replaces Gemini Gems with skills in November 2026.
  • Personal accounts lose Gems by November 2026, work/school accounts by March 2027.
  • Moving Gems to skills involves downloading knowledge files and creating new skills.

Gemini Notebook Adds Co-Creation for Slide Decks and Video Overviews

Google has introduced a new co-creation workflow in Gemini Notebook for Slide Decks and Video Overviews. Rather than relying solely on an initial prompt or accepting an automatically generated result…

  • Gemini Notebook adds co-creation feature for Slide Decks and Video Overviews.
  • Users can select focus topics and output settings before final generation.
  • Co-create workflow allows feedback on structure and content alignment.

More from Tuesday 20 October →