all repos

dotfiles @ c72bf3b

i use rach linux btw
3 files changed, 78 insertions(+), 0 deletions(-)
opencode: ai shall prevail
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-01-13 19:57:09 +0200
Parent: 34b0b86
A config/opencode/AGENTS.md
···
                
                1
                +# Code Quality Standards

              
                
                2
                +- Make minimal, surgical changes

              
                
                3
                +- Abstractions: Consciously constrained, pragmatically parameterised, doggedly documented

              
                
                4
                +- Make illegal states unrepresentable: Model domain with ADTs/discriminated unions; parse inputs at boundaries into typed structures; if state can't exist, code can't mishandle it

              
                
                5
                +

              
                
                6
                +# Testing

              
                
                7
                +- Write tests that verify semantically correct behavior

              
                
                8
                +- Failing tests are acceptable when they expose genuine bugs and test correct behavior

              
                
                9
                +

              
                
                10
                +# Plans

              
                
                11
                +- At the end of each plan, give me a list of unresolved questions to answer, if any. Make the questions extremely concise. Sacrifice grammar for the sake of concision.

              
A config/opencode/agents/review.md
···
                
                1
                +---

              
                
                2
                +description: Reviews code for quality, security, and best practices

              
                
                3
                +mode: subagent

              
                
                4
                +temperature: 0.1

              
                
                5
                +tools:

              
                
                6
                +  write: false

              
                
                7
                +  edit: false

              
                
                8
                +permission:

              
                
                9
                +  edit: deny

              
                
                10
                +  webfetch: allow

              
                
                11
                +---

              
                
                12
                +

              
                
                13
                +You are a code reviewer focused on providing constructive feedback.

              
                
                14
                +

              
                
                15
                +Review code for:

              
                
                16
                +- Security vulnerabilities and potential exploits

              
                
                17
                +- Performance issues and optimization opportunities

              
                
                18
                +- Code quality and maintainability

              
                
                19
                +- Best practices for the language/framework

              
                
                20
                +- Edge cases and potential bugs

              
                
                21
                +- Error handling and input validation

              
                
                22
                +- Documentation and code clarity

              
                
                23
                +- Test coverage gaps

              
                
                24
                +

              
                
                25
                +Provide specific, actionable feedback with:

              
                
                26
                +- File paths and line numbers

              
                
                27
                +- Clear explanation of the issue

              
                
                28
                +- Suggested improvements

              
                
                29
                +- Severity level (critical/high/medium/low)

              
                
                30
                +

              
                
                31
                +Do not make direct changes - only analyze and suggest

              
A config/opencode/opencode.json
···
                
                1
                +{

              
                
                2
                +  "$schema": "https://opencode.ai/config.json",

              
                
                3
                +  "autoupdate": true,

              
                
                4
                +  "theme": "tokyonight",

              
                
                5
                +  "keybinds": {

              
                
                6
                +    "leader": "ctrl+x",

              
                
                7
                +    "app_exit": "ctrl+c,ctrl+d,<leader>x",

              
                
                8
                +    "messages_half_page_down": "ctrl+d",

              
                
                9
                +    "messages_half_page_up": "ctrl+u",

              
                
                10
                +    "input_delete_to_line_start": "none",

              
                
                11
                +    "input_delete": "delete,shift+delete"

              
                
                12
                +  },

              
                
                13
                +  "mcp": {

              
                
                14
                +    "context7": {

              
                
                15
                +      "enabled": true,

              
                
                16
                +      "type": "remote",

              
                
                17
                +      "url": "https://mcp.context7.com/mcp",

              
                
                18
                +      "headers": {

              
                
                19
                +        "CONTEXT7_API_KEY": "{env:CONTEXT7_API_KEY}"

              
                
                20
                +      }

              
                
                21
                +    },

              
                
                22
                +    "sequential-thinking": {

              
                
                23
                +      "type": "local",

              
                
                24
                +      "command": [

              
                
                25
                +        "npx",

              
                
                26
                +        "-y",

              
                
                27
                +        "@modelcontextprotocol/server-sequential-thinking"

              
                
                28
                +      ],

              
                
                29
                +    },

              
                
                30
                +    "grep-app": {

              
                
                31
                +      "enabled": true,

              
                
                32
                +      "type": "remote",

              
                
                33
                +      "url": "https://mcp.grep.app",

              
                
                34
                +    }

              
                
                35
                +  }

              
                
                36
                +}