This repository contains an enterprise-focused OpenCode configuration that you might use at your day job or in situations where you don't have source control that can compensate for unwanted changes. It has the share feature disabled, has permissions configured to ask bash and edit operations and includes an additional primary agent called "web" optimized for web research tasks, with tools limited to webfetch, todowrite, and todoread, and a prompt tailored for web research purposes.
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-enterprise.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.