anomalyco / anomalyco/opencode
[FEATURE]: /security-review — scan diff for secret leaks and hardcoded credentials
Open
@kitlangton is already working on this.
Since Aug 12, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Requested feature
Add a /security-review slash command (inspired by Claude Code's /security-review) that scans the working diff for vulnerabilities, hardcoded credentials, and leaked secrets.
Why
openCode has /review for general code review but no signal for secret/credential leakage and security anti-patterns. Searching a diff for tokens/keys is manual today.
Proposed behavior
/security-review(alias/security) inspects uncommitted changes (or a branch/PR) for:- hardcoded API keys, tokens, passwords,
.env/.pem/*.keyfiles - gitignore/allowlist violations and dangerous patterns (exposed endpoints, unsafe SQL, missing input validation)
- hardcoded API keys, tokens, passwords,
- Reuse the review command template infra (
packages/opencode/src/command/template/review.txt), scoped to security. - Emits a prioritized findings list with file:line references.
Benefits
- Catch secret leaks before commit/PR.
- Distinct, focused security pass separate from general
/review.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.