From d18a799be314b3f334d42a7a0e81619f9bb5da52 Mon Sep 17 00:00:00 2001 From: coja Date: Mon, 20 Apr 2026 00:34:26 +0200 Subject: [PATCH] [Opencode] update --- .config/opencode/opencode.json | 77 +++++++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/.config/opencode/opencode.json b/.config/opencode/opencode.json index 9b08b86..2a22a2a 100644 --- a/.config/opencode/opencode.json +++ b/.config/opencode/opencode.json @@ -1,6 +1,41 @@ { "$schema": "https://opencode.ai/config.json", - "share": "disabled", + "permission": { + "bash": { + "rm *": "deny", + "cat .env*": "deny", + "grep .env*": "deny", + "grep -r --exclude-dir={node_modules,.git} *": "allow", + "grep *": "allow", + "mkdir *": "allow", + "touch *": "allow", + "npm list": "allow", + "npm help": "allow", + "npm version": "allow", + "pnpm list": "allow", + "pnpm help": "allow", + "npx --version": "allow", + "tsc *": "allow", + "which *": "allow", + "ls *": "allow", + "cat *": "allow", + "git status": "allow", + "git diff": "allow", + "git log": "allow", + "git *": "ask", + "npm install": "deny", + "npm i": "deny", + "pnpm i": "deny", + "pnpm install": "deny", + "npm *": "ask", + "pnpm *": "ask", + "npx *": "ask", + "*": "ask" + }, + "edit": { + "*": "deny" + } + }, "provider": { "duskadiy": { "npm": "@ai-sdk/openai-compatible", @@ -50,5 +85,45 @@ "bash": "ask" } } + "code-reviewer": { + "description": "Reviews code for best practices and potential issues", + "prompt": "You are a code reviewer. Focus on security, performance, and maintainability.", + "mode": "subagent", + "model": "duskadiy/DeepSeek-Coder-V2-Lite-Instruct-Q8_0", + "permission": { + "edit": "deny", + "bash": "ask" + } + }, + "test-runner": { + "description": "Runs and interprets test suites", + "prompt": "You are a test runner. Focus on identifying failing tests and providing clear reproduction steps.", + "mode": "subagent", + "model": "duskadiy/DeepSeek-Coder-V2-Lite-Instruct-Q8_0", + "permission": { + "edit": "deny", + "bash": "ask" + } + }, + "doc-writer": { + "description": "Maintains project documentation and docstrings", + "prompt": "You are a technical writer. Focus on clarity, accuracy, and keeping documentation in sync with code changes.", + "mode": "subagent", + "model": "duskadiy/gemma-4-26B-A4B-it-UD-IQ4_XS", + "permission": { + "edit": "allow", + "bash": "ask" + } + }, + "security-auditor": { + "description": "Scans for security vulnerabilities and hardcoded secrets", + "prompt": "You are a security auditor. Focus on OWASP principles, secret detection, and dependency vulnerabilities.", + "mode": "subagent", + "model": "duskadiy/DeepSeek-Coder-V2-Lite-Instruct-Q8_0", + "permission": { + "edit": "deny", + "bash": "ask" + } + } } }