anomalyco / anomalyco/opencode

[FEATURE]: /security-review — scan diff for secret leaks and hardcoded credentials

Open
#41,913 2 comments 0 reactions 1 assignee View on GitHub

@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 / *.key files
    • gitignore/allowlist violations and dangerous patterns (exposed endpoints, unsafe SQL, missing input validation)
  • 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.