| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository provides an advanced agent configuration for OpenCode, designed to create a powerful and reliable software engineering assistant.
This configuration is intended to be installed globally by cloning it directly into your OpenCode configuration directory. This makes the tools and skills available across all your projects.
IMPORTANT: This will prevent you from overwriting any custom setups you may have.
mv ~/.config/opencode ~/.config/opencode.bakClone this repository directly into the ~/.config/opencode directory.
git clone git@github.com:apenlor/opencode-expert-mode.git ~/.config/opencodeThis repository provides different example configuration files. Choose the one that best fits your environment and copy it to opencode.json.
cd ~/.config/opencode
# Choose one of the following:
# cp opencode.geminicli.example.json opencode.json # For Google Gemini
# cp opencode.github.example.json opencode.json # For GitHub Copilot
# cp opencode.local.example.json opencode.json # For local llama-swap models
cp opencode.hybrid.example.json opencode.json # For mixed-provider setups
# Also copy the agents configuration template
cp AGENTS.example.md AGENTS.mdYou can now safely customize opencode.json and AGENTS.md without creating conflicts with future updates from this repository.
To ensure the configuration is correctly loaded:
Start a new OpenCode session:
opencodeAsk the agent about its mode:
What mode are you in?
It should confirm that it is in "Expert Mode." This verifies the rules are loading correctly.
Test a Command: Ask the agent to plan a simple task using a command.
/write-plan "create a hello world script in python"
Confirm Behavior: The agent should respond with a structured implementation plan. This verifies that the commands and skills are working together correctly.
This configuration enables a structured, expert-guided development lifecycle using the provided commands.
Note: While these commands are convenient shortcuts, the skills are the true core of this configuration. They are designed to be used by any agent, enhancing its ability to reason and execute tasks effectively, regardless of how it's invoked.
/brainstorm "a web server that returns the current time"
/write-plan "a simple python flask server with one endpoint /time"
/execute-plan
/debug "failing login test after auth refactor"
/review "flask server implementation"
@code-reviewer Please review the flask server implementation.
The central idea of Expert Mode is a "Skill-as-Core" architecture.
This configuration is composed of several key components that work together.
When using the local configuration (opencode.local.example.json), OpenCode utilizes a decoupled pipeline to maximize hardware efficiency across three specialized local models. This setup is specifically optimized to work out-of-the-box with the llm-local-setup repository:
A collection of expert workflows in the skills/ directory:
User-facing shortcuts in the commands/ directory that invoke skills.
Always-active instruction files in the rules/ directory provide constant guidance to the agent.
This repository's root is designed to be your OpenCode configuration directory.
. ├── AGENTS.example.md # A template for your local agent rules. ├── agents/ # Definitions for specialized subagents (e.g., code-reviewer). ├── commands/ # User-facing slash commands that invoke skills. ├── opencode.geminicli.example.json # Gemini-only provider config example. ├── opencode.github.example.json # GitHub Copilot provider config example. ├── opencode.hybrid.example.json # Mixed provider config example (e.g., Gemini + GitHub Copilot). ├── rules/ # Always-active instruction files (e.g., Expert Mode, Context7). ├── skills/ # The core skills that define expert workflows. └── tui.json # TUI-specific settings.
| Back | FazBrowse Home | New Git URL |