How maithehao/c4f-opencode-config works
This repository packages OpenCode configuration: effort-tiered implementation and research agents, routing and authoring skills, and two runtime plugins. A typical workflow selects an agent lane, applies its routing policy, and produces implementation work or an evidence-based research report. The model-insights plugin separately exposes live model availability, pricing, variants, and selection metadata; c4f-status checks configured repositories and surfaces update advisories. Plugin edges are grounded in the supplied source excerpts or SOURCE INDEX; agent and skill relationships are limited to README-documented capabilities.
Main entry points: great-builder Builder Primaries · snapshot-store.js Snapshot Store · handlers Tool Actions · index.js Insights Tool
Components 26
Agent Workflows
- Builder Primaries
agents/great-builder - Build Specialists
agents/great-builder/sub - Research Primaries
agents/research - Research Specialists
agents/research/sub
Skills & Policies
- Routing Skill
skills/oc-routing/SKILL.md - Agent Config Standard
skills/oc-agent-config/SKILL.md - Update Workflow Skill
skills/c4f-update/SKILL.md
Model Insights Plugin
- Plugin Setup
plugins/model-insights/src/setup.js - Snapshot Store
plugins/model-insights/src/runtime/snapshot-store.js - Metadata Loader
plugins/model-insights/src/config/loader.js - Metadata Validation
plugins/model-insights/src/config/schema.js - Model Catalog
plugins/model-insights/src/insights/catalog.js - Registry Normalizer
plugins/model-insights/src/runtime/normalizer.js - Pricing Insights
plugins/model-insights/src/insights/pricing.js - Variant Runtime
plugins/model-insights/src/runtime/variants.js - Insights Tool
plugins/model-insights/src/tools/model-insights/index.js - Tool Actions
plugins/model-insights/src/tools/model-insights/handlers - Tool Rendering
plugins/model-insights/src/tools/model-insights/table.js - Result Columns
plugins/model-insights/src/tools/model-insights/columns.js
Update Status Plugin
- Status Plugin Setup
plugins/c4f-status/src/setup.js - Module Registry
plugins/c4f-status/src/modules/registry.js - Update Check
plugins/c4f-status/src/modules/check-for-update/index.js - Repository Probe
plugins/c4f-status/src/modules/check-for-update/probe.js - Advisory Messages
plugins/c4f-status/src/modules/check-for-update/warn.js
Other components
- OpenCode User
- OpenCode Runtime
Connections 29
- OpenCode User → Builder Primaries: selects lane
README.md - OpenCode User → Research Primaries: selects lane
README.md - Builder Primaries → Build Specialists: delegates work
- Research Primaries → Research Specialists: delegates research
- Builder Primaries → Routing Skill: uses routing
README.md - Research Primaries → Routing Skill: uses routing
README.md - Builder Primaries → Agent Config Standard: follows standard
- OpenCode Runtime → Plugin Setup: loads plugin
README.md - Plugin Setup → Snapshot Store: creates store
plugins/model-insights/src/setup.js - Plugin Setup → Insights Tool: registers tool
plugins/model-insights/src/setup.js - Snapshot Store → Metadata Loader: loads metadata
plugins/model-insights/src/runtime/snapshot-store.js - Snapshot Store → Model Catalog: builds catalog
plugins/model-insights/src/runtime/snapshot-store.js - Snapshot Store → Registry Normalizer: normalizes registry
plugins/model-insights/src/runtime/snapshot-store.js - Metadata Loader → Metadata Validation: validates config
plugins/model-insights/src/config/loader.js - Model Catalog → Metadata Validation: normalizes metadata
plugins/model-insights/src/insights/catalog.js - Registry Normalizer → Pricing Insights: uses pricing
plugins/model-insights/src/runtime/normalizer.js - Registry Normalizer → Variant Runtime: uses variants
plugins/model-insights/src/runtime/normalizer.js - OpenCode User → Insights Tool: queries models
README.md - Insights Tool → Tool Actions: dispatches actions
plugins/model-insights/src/tools/model-insights/index.js - Tool Actions → Model Catalog: queries catalog
plugins/model-insights/src/tools/model-insights/handlers/variants.js - Tool Actions → Result Columns: selects columns
plugins/model-insights/src/tools/model-insights/handlers/variants.js - Tool Actions → Tool Rendering: renders results
plugins/model-insights/src/tools/model-insights/handlers/variants.js - Insights Tool → Tool Rendering: renders status
plugins/model-insights/src/tools/model-insights/index.js - OpenCode Runtime → Status Plugin Setup: loads plugin
README.md - Status Plugin Setup → Module Registry: loads modules
plugins/c4f-status/src/setup.js - Module Registry → Update Check: runs module
plugins/c4f-status/src/modules/registry.js - Update Check → Repository Probe: probes repositories
plugins/c4f-status/src/modules/check-for-update/index.js - Update Check → Advisory Messages: builds advisories
plugins/c4f-status/src/modules/check-for-update/index.js - OpenCode User → Update Workflow Skill: runs update workflow
README.md