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.
More from coding & agent
- An agent hit GitHub Actions limits, spun up a VM, and kept the build running — davidcrawshaw · 2026-07-23
- Async agents fail when users think a 90-second job has frozen — Specific-Point-4026 · 2026-07-23
- Open-source skill scans your codebase first, then writes a README — Shruti_0810 · 2026-07-23
- China AI roundup: embodied upgrades, AGI layoffs, and a new agent standard — 快鲤鱼 · 2026-07-23
- Open-source coding agent octomind chooses persistent cloud machines over per-session sandboxes — donk8r · 2026-07-23
- Building 7 Production AI Agents for Healthcare Billing in 4 Months — alex_verem · 2026-07-23