@kompassdev/opencode
v0.13.2
Published
OpenCode plugin for navigating repos with fewer wrong turns
Maintainers
Readme
Kompass is under active development, so workflows, package APIs, and adapter support may keep evolving as the toolkit expands.
Kompass keeps AI coding agents on course with token-efficient, composable workflows.
Docs
- Main docs: https://kompassdev.ai/docs/
- Getting started: https://kompassdev.ai/docs/getting-started/
- OpenCode adapter: https://kompassdev.ai/docs/adapters/opencode/
- Config reference: https://kompassdev.ai/docs/config/overview/
- Command, agent, tool, and component reference: https://kompassdev.ai/docs/reference/commands/, https://kompassdev.ai/docs/reference/agents/, https://kompassdev.ai/docs/reference/tools/, https://kompassdev.ai/docs/reference/components/
Bundled Surface
- Commands cover direct work (
/ask,/commit,/merge,/skill/create,/skill/optimize), orchestration (/dev,/ship,/todo), ticket planning/sync, and PR review/shipping flows. - Agents are intentionally narrow:
workeris generic,planneris no-edit planning,navigatorowns multi-step orchestration, andrevieweris a no-edit review specialist. - Structured tools keep workflows grounded in repo and GitHub state:
changes_load,command_expansion(resolve a slash command and return the expanded prompt for immediate delegation),pr_load,pr_sync,ticket_load,ticket_sync. - Reusable command-template components live in
packages/core/components/and are documented in the components reference.
Prerequisites
- GitHub CLI (
gh) must be installed and authenticated. Kompass usesghfor all GitHub operations (PRs, issues, reviews). Install from cli.github.com and rungh auth login.
Installation
For OpenCode, add the adapter package to your config:
{
"plugin": ["@kompassdev/opencode"]
}Project config is optional. To start from the published base config:
curl -fsSL https://raw.githubusercontent.com/kompassdev/kompass/main/kompass.jsonc -o .opencode/kompass.jsoncKompass loads the bundled base config, then optional home-directory overrides, then optional project overrides. In each location it uses the first file that exists from:
.opencode/kompass.jsonc.opencode/kompass.jsonkompass.jsonckompass.json
The recommended project override path is .opencode/kompass.jsonc.
Workspace
This repository is the Kompass development workspace.
packages/core: shared workflows, prompts, components, config loading, and tool definitionspackages/opencode: the OpenCode adapter package, published as@kompassdev/opencodepackages/web: docs site and web contentpackages/opencode/.opencode/: generated OpenCode output for review
When changing Kompass itself, keep runtime definitions, bundled config, schema, docs, and generated output in sync in the same change.
