Claude Code can load path-scoped rules from .claude/rules without extra context tax
thisdudelikesAI · x · 2026-07-23
The thread says Claude Code supports path-scoped rules via .claude/rules/.
You can drop Markdown files there with YAML frontmatter such as:
yaml
---
paths:
- "src/api//.ts"
---
Those rules load only when Claude touches matching files, which keeps unrelated work free from context overhead.
Related event: Best Practices for Claude Code Memory and Rules(12 posts)→
More from coding & agent
- One prompt, full Blender animation: dev says he never touched Blender once — iamfakhrealam · 2026-10-26
- Claude Code finds root backdoor in Honda Civic head unit, then debloats it — IndraVahan · 2026-10-26
- Claude Code + Monid MCP builds a $12K/year B2B prospecting engine on live data — aryanXmahajan · 2026-10-26
- Karpathy shares CLAUDE.md rulebook to stop AI coding agents from piling up tech debt — mdancho84 · 2026-10-26
- Rethinking dependencies in the agent era: drop libs that save 20 lines of code — gethackteam · 2026-10-26
- RustGIS hits 2,000 GitHub stars in two weeks with agent-first architecture — giswqs · 2026-10-26