HOW-TO GUIDE
How to check that CLAUDE.md loaded before you rewrite a rule Claude ignored
Based on a guide by PromptMaster on DEV Community · Dec 2, 2026
You'll end with: A check of which CLAUDE.md and rule files Claude Code loaded, a hook that logs each load, and a script that flags rules that never reach Claude.
Why it's worth having: Six documented traps, from a CLAUDE.local.md that hides AGENTS.md to a rule inside an HTML comment, get caught before you reword a rule Claude never saw.
At a glance
WHO IT'S FOR
Software engineers and team leads who set up Claude Code for a repository.
COST
Free to read. Claude Code needs a paid Claude plan; the check script uses only Python.
YOU NEED
Claude Code · jq for the logging hook · Python 3 for the pre-flight script
The method, in short
- 1Run /context all and look under Memory files, then run /memory to see every instruction file location.
- 2Check the six traps: late subfolder loads, a hidden AGENTS.md, a cut-off long file, a bad @ import, an HTML comment, and /compact.
- 3Add an InstructionsLoaded hook that logs each file Claude loads, the reason, and the file that triggered it.
- 4Run the read-only pre-flight script on a repo or in CI to flag files and lines that would never load.
Read the full guide from PromptMaster on DEV Community
The post has the hook script, the settings block, and the full pre-flight script with sample output.
More from The Feed
ENERGY
Shell starts water injection at Vito, adding 60 MMboe in the Gulf
Shell started water injection at its Vito field in the Gulf of Mexico, about 75 miles south of Venice, Louisiana, in more than 4,000 ft of water.
THE VOLUME
The Vito waterflood adds 60 MMboe of recoverable resources by sweeping oil toward producing wells and repressurizing the reservoir.
THE OWNERS
Shell operates Vito with a 63.11% interest; Equinor holds the other 36.89%.
THE RECORD
Earlier in 2026, Shell became the first operator in the basin to reach 1B bbl of water injection.
WHY IT MATTERS
Water injection lets Shell recover 60 MMboe more from a field it has already developed, adding barrels in the Gulf of Mexico through an existing deepwater host.
HOW-TO GUIDE
You'll end with: Copilot CLI on Windows that starts from one trusted repo folder, with deny rules on risky commands and the OS sandbox turned on.
WHO IT'S FOR
Software developers and IT admins who run AI coding agents on Windows PCs.
COST
Free to read. Copilot CLI needs a Copilot plan, your own model provider, or an eligible Entra account.
YOU NEED
Windows PowerShell 5.1 or later · winget, or Node.js 22 for npm · A Copilot plan · Windows 11 25H2 or 26H1 for the sandbox
Read the full guide from Windows Mode on DEV Community
Based on a guide by Windows Mode on DEV Community · Dec 2, 2026
GRID
Williams County approves a permit for a 250 MW gas-powered data center
Williams County, North Dakota commissioners voted 4 to 1 to approve a permit for phase 1 of Western Dakota Infrastructure's data center northeast of Williston.
THE POWER
The 250 MW data center runs on electricity from the company's own natural gas generators.
THE PERMIT
The permit gives the company 18 months to break ground, and a road agreement on construction traffic comes back for a vote.
THE WATER
The site would use about 3.3M gallons of water a year, and the county water board still has to approve the supply.
WHY IT MATTERS
A 250 MW campus on its own gas generators adds a large new power load in the Williston Basin, built without drawing on the grid.