This repository contains my personal OpenCode configuration files. At this point the only notable thing in here is an additional primary agent called "web" that only has the web fetch, todo write and todo read tools enabled and has a version of the main opencode prompt that is changed to remove coding specific sections and to focus more on web research.
To clone this repository directly into your home directory at the correct location, run: ##WARNING this will delete your existing opencode config WARNING##
rm -r ~/.config/opencode
git clone https://github.com/jasontally/opencode-config.git ~/.config/opencodeThis will create the ~/.config/opencode directory and download all configuration files into it.
opencode.jsonc- Main OpenCode configuration fileprompts/- Directory containing custom promptsweb.txt- Web-related prompts
After cloning, OpenCode should automatically detect and use these configuration files when you run it from any directory. Use the TAB key to switch between the default plan and bulid agents in addition to the web agent that this config adds.
Feel free to modify these files to suit your needs. The main configuration is in opencode.jsonc and custom prompts can be added to the prompts/ directory.