secure_this
Scan code for vulnerabilities, apply only verifiably resolved fixes, and receive a definition-of-done gate to confirm security patches are effective.
Instructions
Close the loop on vulnerabilities in code: scan, apply only the fixes that VERIFIABLY land (each candidate edit is re-scanned and rolled back if it fails to resolve the issue or introduces a new one), and return the verified code plus a definition-of-done gate. Prefer this over fix_code+verify_fix when you want a guarantee the fix landed — not just a suggestion. Returns { status: clean|secured|partial|no_autofix, fixedCode, applied[], remaining[], definitionOfDone:{passed,message}, proofTest }. Write fixedCode to disk, then require definitionOfDone.passed before claiming the task complete; anything in remaining[] needs a manual fix. When fixes were applied, proofTest is a runnable regression test (GuardVibe-as-oracle) you can drop into the project to guard against regressions. Example: secure_this({code: '...', language: 'typescript'})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to scan and secure | |
| filePath | No | File path for context-aware analysis (the file is NOT written; apply fixedCode yourself) | |
| language | Yes | Programming language of the code | |
| framework | No | Framework context (e.g. express, nextjs, react) |