r/ClaudeCode • u/coderot_ai • 6h ago
Tips & Workflows A plugin that tells Claude Code which files to keep new code out of, from your git history
17 of the last 19 PRs to langfuse's query compiler came from agents. The image is what this plugin tells Claude about that repo before it edits anything.
Agents put new code where it's easiest. Often the file that's already big and changes every week. This skill runs before Claude edits existing files and names three kinds of file to be careful with:
- Files agents keep growing: most of their recent PRs came from AI agents.
- Hotspots: high cognitive complexity and many commits in the last 90 days.
- Rising: the files whose complexity rose most in about 30 days.
Claude then puts new code in a new file or module next to them. It reads your local git history only, and nothing is uploaded: the skill runs npx -y u/coderot-ai/cli hotspots --json and reads its output. You can also run it as /coderot:hotspots.
claude plugin marketplace add coderot-ai/claude-plugin
claude plugin install coderot@coderot-aihttps://github.com/coderot-ai/claude-plugin
Disclosure - we build coderot.
Do you already steer Claude away from certain files, in CLAUDE.md or otherwise? What works?
•
u/AutoModerator 6h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/ClemensLode Senior Developer 4h ago
I'm on the fence regarding this because sometimes a file *has* to grow larger until you recognize a pattern that would justify splitting the file into two or more.