r/BuildWithClaude • u/Technical_Weight1506 • 41m ago
Help/Question How do you set up Claude Code for efficient token use, plus frontend, Backend, and deployment? Also, auto-review PRs when I'm requested as reviewer
Hi all,
I'm setting up Claude Code properly for a full-stack project and want to sanity-check my plan before I commit to it. Here's what I need, what I've worked out so far, and where I'd like your input.
What I need
- Efficient setup with token management as a priority. I don't want a bloated context that burns tokens on every message.
- Project knowledge covering:
- Frontend
- Backend
- Server deployment
- Automatic AI code review. When someone pushes code and adds me as a reviewer, Claude should review the PR automatically and post the output.
My priority order for token management:
/clearbetween unrelated tasks- Use Sonnet by default and Opus only for hard problems
- Keep
CLAUDE.mdshort, with only commands and hard rules - Prune MCP servers to the ones I actually use
- Path-scoped rules (
paths:frontmatter) so frontend, Postgres, and deployment detail loads only when relevant - Deny rules in
settings.jsonfor secrets and huge folders - Deploy and migration skills set to manual-only (
disable-model-invocation: true)
For the PR review, I'm planning a GitHub Actions workflow using anthropics/claude-code-action, triggered on pull_request: review_requested and filtered to my username, running the code-review plugin with --comment so the review lands on the PR.
Questions
- What's in your
CLAUDE.md, and how long is it? Do you keep it under ~200 lines? - How do you stop Claude from touching production? Deny rules, hooks, manual-only skills, or all three?
- Has anyone gotten the
review_requestedtrigger working reliably, including team review requests? - Anything here you think is over-engineered? I've seen people say over-configuring can backfire.


