Cache LDE + Scaling improvements #1042
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Claude Code Review | |
| on: | |
| pull_request: | |
| types: [opened, ready_for_review] | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| claude-review: | |
| if: | | |
| (github.event_name == 'pull_request' && | |
| github.event.pull_request.head.repo.full_name == github.repository) || | |
| (github.event_name == 'issue_comment' && | |
| github.event.issue.pull_request && | |
| contains(github.event.comment.body, '/claude') && | |
| contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) | |
| uses: yetanotherco/actions/.github/workflows/pr_review_claude.yml@v1.0.0 | |
| with: | |
| custom_prompt: | | |
| 1. **Security vulnerabilities** - Label by criticality (Critical/High/Medium/Low) | |
| - Rust: unsafe blocks, error handling, panics, memory safety issues | |
| - Cryptography: incorrect implementations, timing attacks, weak randomness | |
| - VM: instruction handling, memory access, privilege escalation | |
| 2. **Potential bugs** - Logic errors, edge cases, incorrect behavior, race conditions | |
| 3. **Performance issues** - Only significant: e.g. O(n²) on unbounded input, unnecessary allocations, hot path inefficiencies | |
| 4. **Simplicity** - Prefer simple, readable code over clever abstractions | |
| Guidelines: | |
| - Be concise and to the point | |
| - Do NOT suggest micro-optimizations or premature abstractions | |
| - Always prefer simplicity over complexity when performance gains are marginal | |
| - Focus on real issues, not hypothetical improvements | |
| - Be concise and actionable | |
| secrets: | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} |