whatisgithub

What is opencode-security?

ismkdc/opencode-security — explained in plain English

Analysis updated 2026-07-26

5PythonAudience · developerComplexity · 3/5Setup · moderate

In one sentence

A security plugin for OpenCode that scans your code for vulnerabilities and can generate patch files to fix them, with multi-step verification to reduce false positives.

Mindmap

mindmap
  root((repo))
    What it does
      Scans code for flaws
      Generates fix patches
      Runs inside OpenCode
    Scan types
      Full codebase scan
      Branch or PR scan
    Effort levels
      Low medium high max
      Red-team at max level
    Verification
      Three-voter panel
      Independent patch review
    Outputs
      Markdown report
      JSONL for CI pipelines
    Requirements
      OpenCode 1.14 plus
      Python 3.9 plus
      Git for patching

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Scan your entire codebase for security vulnerabilities before a release.

USE CASE 2

Review only the changes in a pull request for newly introduced security issues.

USE CASE 3

Generate patch files that fix detected vulnerabilities automatically.

USE CASE 4

Export machine-readable security findings into a CI/CD pipeline.

What is it built with?

PythonOpenCodeGit

How does it compare?

ismkdc/opencode-security1ncendium/aibusteraaronmayeux/ha-hurricane-tracker
Stars555
LanguagePythonPythonPython
Setup difficultymoderatemoderateeasy
Complexity3/53/52/5
Audiencedeveloperops devopsgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires OpenCode 1.14+, Python 3.9+ on your system path, and Git installed for change scanning and patch generation.

So what is it?

{"i":1,"repo":"ismkdc/opencode-security","stars":5,"lang":"Python","ok":true,"char_count":1650,"text":"opencode-security is a plugin for OpenCode that scans your code for security problems. It looks through your codebase, finds potential vulnerabilities, and can even produce patch files to fix them, all without leaving your OpenCode session.\n\nThe plugin offers two main scan types. You can scan your entire codebase or focus on a specific area, or you can scan just the changes in a branch, pull request, or individual commit. Scan effort comes in four levels: low, medium, high, and max. Low is a quick check with a single researcher plus verification. Medium, the default, runs a full pipeline including inventory, threat modeling, research, and a verification sweep. High widens the scope and uses two researchers per area. Max adds an adversarial red-team phase on top of everything in high. Every effort level uses the same three-voter verification panel, so confidence stays consistent.\n\nA key feature is that every finding gets challenged by an independent verification panel before it appears in your report. When patches are needed, they are developed in isolated scratch workspaces and independently reviewed before delivery. This two-step checking aims to reduce false positives and catch mistakes.\n\nSetting it up involves adding the plugin to your opencode.json configuration file and copying some agent definitions from the provided example file. You need OpenCode version 1.14 or newer, Python 3.9 or later on your system path, and Git if you want to use change scanning or patch generation. Codebase scans work without Git.\n\nTo run a scan, you start OpenCode in your project and ask it to run the opencode-security skill. A menu appears where you pick a scan type and effort level. The scan runs asynchronously, meaning you can keep working while it proceeds. Results land in a timestamped folder in your repository. You get a human-readable report in Markdown, a machine-readable JSONL file for CI integration, and a revision stamp recording what was scanned and at what effort level. This project is a port of Anthropic's Claude Security plugin, adapted for OpenCode. The core pipeline is complete and functional.","error":null}

Copy-paste prompts

Prompt 1
I have opencode-security installed. Run a full codebase scan at medium effort and show me the Markdown report.
Prompt 2
Scan only the changes in my current Git branch for security vulnerabilities using the high effort level.
Prompt 3
Run a max effort scan with the adversarial red-team phase on my project and generate patch files for any findings.
Prompt 4
Take the JSONL output from my last opencode-security scan and help me add it as a failing step in my GitHub Actions workflow.

Frequently asked questions

What is opencode-security?

A security plugin for OpenCode that scans your code for vulnerabilities and can generate patch files to fix them, with multi-step verification to reduce false positives.

What language is opencode-security written in?

Mainly Python. The stack also includes Python, OpenCode, Git.

How hard is opencode-security to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is opencode-security for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.