Personal OpenCode configuration — a complete AI-assisted development environment with specialized agents and MCP servers.
This repository contains a fully-featured OpenCode configuration preset plus optional experimental packages. It provides specialized AI agents, integrated MCP server config, and reusable document templates.
| Agent | Model | Purpose |
|---|---|---|
plan |
GPT-5.5 | Requirements analysis and execution planning |
swe |
GPT-5.5 | Software engineering orchestrator for multi-step code work |
chat |
GPT-5.5 | General interactive agent |
build |
GPT-5.5 | High-agency implementation and verification |
explore |
GPT-5.5 | Fast codebase navigation and file discovery |
researcher |
GPT-5.4 | Literature-review research with optional read-only codebase context |
plan-checker |
GPT-5.5 | Workplan, spec, handoff, and workflow risk review |
code-writer |
GPT-5.5 | Documentation-first focused implementation subagent for scoped plan steps |
code-checker |
GPT-5.5 | Code review, smells detection, and verification |
document-proofreader |
GPT-5.5 | Academic proofreading and argument review |
packages/plugin packages the durable workflow layer as a proper OpenCode plugin. A single plugin install provides all eight workplan tools, the workflow-plan and workflow-execute skills, and additive compaction continuity for active workplans. See packages/plugin/README.md.
This repo now includes a software-engineering baseline with durable workplan tools and agent prompts for structured multi-step execution.
Available workplan tools:
workplan_create— create a persistent workplan under.opencode/workplan/workplan_inspect— list stable phase/step ids for targeted updatesworkplan_list/workplan_read— discover and inspect existing workplansworkplan_update— patch phases, steps, files, findings, and notesworkplan_reset— reset a stale plan or regenerate its markdownworkplan_validate— validate JSON metadata, linked markdown, and spec files
- GitHub Copilot — Code search and repository intelligence
- DeepWiki — Repository documentation and structure analysis
- Context7 — Library documentation queries
- Exa — Primary open-web search through the native remote MCP
- Hound — Local webpage, PDF, and crawl retrieval with browser fallback
- DuckDuckGo Search — Alternative fallback search
The legacy @rice-opencode/docs Pandoc plugin and its docs-workflow skill
have been removed. Quarto is the successor direction for document authoring.
The useful IEEE and SIT/UofG LaTeX templates and logos remain under pandoc/
for Quarto or direct Pandoc/LaTeX workflows.
├── agents/ # Agent prompt definitions
│ ├── build.md # Core builder methodology
│ ├── chat.md # General interactive agent
│ ├── code-checker.md # Code verification agent
│ ├── code-writer.md # Docs-first focused SWE implementation subagent
│ ├── document-proofreader.md
│ ├── docs-first-coder.md # Disabled deprecated alias; use code-writer
│ ├── explore.md # File system navigator
│ ├── plan.md # SWE planning agent
│ ├── plan-checker.md # Workplan and handoff verification agent
│ ├── researcher.md # Literature-review research subagent
│ └── swe.md # SWE orchestrator
├── deprecated-agents/ # Archived agent prompts removed from active use
├── commands/ # OpenCode slash commands
├── skills/ # OpenCode skills
├── tools/
│ └── workplan.ts # Public workplan tool entrypoint
├── src/
│ └── custom-tools/
│ └── workplan/ # Workplan tool implementation
├── tests/
│ └── workplan/ # Focused workplan tool tests
├── packages/ # Installable and experimental plugin packages
│ ├── plugin/ # Batteries-included workflow plugin
│ ├── shared/
│ └── viz/
├── pandoc/ # LaTeX templates and assets
│ ├── assets/ # Logo images (SIT, UofG)
│ └── templates/ # LaTeX templates
└── opencode.json # Config preset + MCP entries
This repo has two layers:
- OpenCode preset/config layer —
agents/,commands/,skills/, andopencode.jsondefine the portable harness experience. - Optional package layer —
packages/vizremains experimental and private;packages/sharedis reserved for internal helpers.
The removed docs package is not part of either layer. Its reusable presentation
assets survive in the root pandoc/ directory while Quarto replaces the old
custom document-tool workflow.
packages/viz is a placeholder for future visualization features like charts, diagrams, and tables for reports/papers.
Right now it is:
- private
- not loaded in
opencode.json - not considered part of the stable default harness
Treat viz as a future idea or stub, not part of the stable default harness.
-
Clone this repository and install workspace dependencies:
bun install
-
Create local secret files:
# Environment-backed credentials GITHUB_PAT=your_github_pat CONTEXT7_API_KEY=your_context7_keySave the Exa API key in the global file read by
opencode.json:mkdir -p "$HOME/.config/opencode" read -rsp 'Exa API key: ' EXA_API_KEY printf '%s' "$EXA_API_KEY" > "$HOME/.config/opencode/.exa-api-key" chmod 600 "$HOME/.config/opencode/.exa-api-key" unset EXA_API_KEY printf '\n'
The key stays outside this repository.
.exa-api-keyis also gitignored defensively in case one is created in the checkout by mistake. -
Prewarm and diagnose the pinned Hound MCP tool:
uvx --from 'hound-mcp[all]==12.4.1' hound -v uvx --from 'hound-mcp[all]==12.4.1' hound --doctor
OpenCode launches this same pinned environment through
uvx, avoiding user-specific executable paths. If the doctor reports that Chromium is unavailable, install it into Playwright's user cache:uvx --from 'hound-mcp[all]==12.4.1' playwright install chromium -
Verify the MCP connections:
opencode mcp list
Exa OAuth is disabled because the MCP sends the local API key through the
x-api-keyheader. -
Install Quarto separately; install LaTeX when using the retained templates: Follow the official Quarto installation guide. The commands below install the LaTeX toolchain used by the retained templates:
# Ubuntu/Debian sudo apt install texlive-full # macOS brew install --cask mactex
Agents are invoked automatically by OpenCode based on task context, or you can reference them explicitly:
@explore find all configuration files in this project
@build implement a non-trivial feature using the workflow skill
@researcher write a literature review on vector databases for RAG
@plan-checker review .opencode/workplan/my-plan.md before implementation
@code-writer implement a scoped React hook step following current React docs
@code-checker review the auth module
@document-proofreader review report.md
Quarto is the preferred document-authoring workflow. Reusable presentation assets remain available for Quarto, Pandoc, or direct LaTeX use:
pandoc/templates/ieee/template.latexpandoc/templates/sit-uofg/template.latexpandoc/assets/sit-logo.pngpandoc/assets/uofg-logo.png
Project skill available:
workflow— on-demand OpenCode skill for durable workplans, scoped delegation, validation, and review loops
opencode.jsonuses{env:VAR}and{file:path}substitutions for secrets — safe to commit- Agents/commands/skills are loaded from their directories directly
- Open-web discovery uses
exa_web_search_exa; known URLs are retrieved withhound_smart_fetch - Hound's duplicate
hound_smart_searchtool is disabled so Exa remains the canonical search path researcher-mcpis still shell-script based for now and expected to resolve via.opencode/researcher-mcp.sh- Actual API keys should be in
.envor~/.config/opencode/.exa-api-key, outside tracked config
- OpenCode AI CLI
- Node.js / Bun runtime
- uv for the pinned Hound runtime
- Quarto for document authoring and LaTeX when using the retained templates
- API keys for enabled MCP servers that use explicit headers
Personal configuration — use as reference for your own setup.