From 5880b3093b52c209e192ee9952d6893432d9f509 Mon Sep 17 00:00:00 2001 From: sudacode Date: Fri, 12 Sep 2025 00:42:11 -0700 Subject: [PATCH] add opencode --- .config/opencode/opencode.json | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .config/opencode/opencode.json diff --git a/.config/opencode/opencode.json b/.config/opencode/opencode.json new file mode 100644 index 0000000..919d120 --- /dev/null +++ b/.config/opencode/opencode.json @@ -0,0 +1,49 @@ +{ + "$schema": "https://opencode.ai/config.json", + "theme": "catppuccin", + "model": "github-copilot/gpt-4.1", + "provider": { + "openai": { + "models": { + "gpt-5": { + "options": { + "reasoningEffort": "high", + "textVerbosity": "low", + "reasoningSummary": "auto", + "include": ["reasoning.encrypted_content"], + }, + }, + }, + }, + }, + "agent": { + "build": { + "mode": "primary", + "model": "github-copilot/gpt-4.1", + "tools": { + "write": true, + "edit": true, + "bash": true + } + }, + "plan": { + "mode": "primary", + "model": "github-copilot/gpt-4.1", + "tools": { + "write": false, + "edit": false, + "bash": false + } + }, + "code-reviewer": { + "description": "Reviews code for best practices and potential issues", + "mode": "subagent", + "model": "github-copilot/gpt-4.1", + "prompt": "You are a code reviewer. Focus on security, performance, and maintainability.", + "tools": { + "write": false, + "edit": false + } + } + } +}