Original Reddit post

Yesterday I started using .claude/rules and a moved series of rules out my claude.md file and into .claude/frontend.md for example, and other path based rule files there. I’m testing this out and wondering if anyone else has had positive results doing the same. My understanding is that this enforces a path based set of rules so the upside is an overall cleaner context when I’m not doing anything frontend related stuff because the agent will not read in something in the frontend path if isn’t working on the frontend Same for other paths. I have already been doing this by using my claude.md as a router to sub files like one for frontend and so on, so the concept isn’t new-just the routing method. I don’t buy the 1m context is pure context, and continue to utilize multiple agents regardless of what the Claude flavor of the week is so I want to keep it tidy. I’m not sure how I feel about this method yet, mostly because it takes me one step closer to vendor lock in. I still have not been able to replicate the token I/O quality using GPT or Gemini, so I’m willing to try this kind of optimization. submitted by /u/diystateofmind

Originally posted by u/diystateofmind on r/ClaudeCode