opencode-akane
v0.1.10
Published
Akane orchestration plugin for OpenCode
Maintainers
Readme
Akane Agents
Akane is a global OpenCode orchestration plugin draft.
Current direction:
- Keep OpenCode provider and auth infrastructure
- Keep
oh-my-opencodeinstalled but neutralized - Drive a deterministic workflow across planning, review, implementation, and synthesis
See docs/session-context-20260306.md for the current working context.
MVP scaffold
This repository now contains the first MVP skeleton for the plugin:
src/plugin.ts: OpenCode plugin entrysrc/config.ts:~/.config/opencode/akane.jsonloader with defaultssrc/artifacts.ts:.opencode/akane/artifact andstate.jsonhelperssrc/tools/akane-init.ts: initializes the per-project workspacesrc/tools/akane-stage-artifact.ts: writes stage artifacts deterministicallysrc/workflow.ts: child-session orchestration, stage prompts, and artifact handoffsrc/tools/akane-plan.ts: planner stagesrc/tools/akane-plan-review.ts: plan review stagesrc/tools/akane-implement.ts: implementation stagesrc/tools/akane-review.ts: review stagesrc/tools/akane-synthesize.ts: final synthesis stagesrc/tools/akane-run.ts: end-to-end MVP workflow runnerexamples/akane.example.json: example global Akane config
Local development
bun install
bun run typecheck
bun run buildThe build emits dist/index.js as the package entrypoint and also keeps dist/akane.js for local file-based linking.
Available tools
Once the plugin is loaded in OpenCode, the current MVP exposes these tools:
akane_initakane_stage_artifactakane_planakane_plan_reviewakane_implementakane_reviewakane_synthesizeakane_run
Notes:
akane_initis optional because the stage tools lazily create.opencode/akane/on first useakane_runis the main MVP entrypoint when you want to test the full workflow
Repo-local commands and skill
This repository now includes project-local OpenCode command files in .opencode/commands/ and a project-local skill at .opencode/skills/akane-workflow/SKILL.md.
That gives you slash-command style entrypoints such as:
/akane-init/akane-plan/akane-plan-review/akane-implement/akane-review/akane-synthesize/akane-run
The commands are thin wrappers that tell OpenCode to load the akane-workflow skill and then invoke the matching akane_* tool while reusing existing artifacts in .opencode/akane/.
When the Akane plugin loads, it now bootstraps these managed command and skill files into the global OpenCode paths under ~/.config/opencode/commands/ and ~/.config/opencode/skills/akane-workflow/.
Existing files are only updated automatically when they are recognized as Akane-managed copies.
Package install
For package-based installation, publish this repository to npm and add it to the OpenCode plugin array in ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"oh-my-opencode@latest",
"opencode-akane@latest"
]
}Akane still reads its runtime config from ~/.config/opencode/akane.json.
If that file does not exist yet, the plugin now bootstraps it automatically on first load with the default config.
You only need to edit it when you want to override the default role or artifact settings.
By default, Akane stays model-first and does not depend on oh-my-opencode.
workflow.agentMode is the explicit routing switch:
models: Akane routes by model onlynative: Akane uses OpenCode native/custom agents likeplan,build, andgeneralomo: Akane prefers OMO agent names likeprometheus,atlas, andmomus
workflow.preferAgents is still supported for backward compatibility, but workflow.agentMode should be preferred for new configs.
workflow.stageTimeoutMinutes controls the per-stage timeout budget and defaults to hour-scale values.
akane.json supports both model routing and agent routing:
{
"workflow": {
"agentMode": "omo",
"stageTimeoutMinutes": {
"plan": 180,
"plan-review": 180,
"implementation-context": 360,
"review-codex": 180,
"review-claude": 180,
"final-synthesis": 180
}
},
"roleAgents": {
"planner": "prometheus",
"plan_reviewer": "hephaestus",
"implementer": "atlas",
"reviewer_codex": "momus",
"reviewer_claude": "oracle",
"synthesizer": "sisyphus"
}
}For native OpenCode agents, the config is typically closer to:
{
"workflow": {
"agentMode": "native",
"stageTimeoutMinutes": {
"plan": 180,
"plan-review": 180,
"implementation-context": 360,
"review-codex": 180,
"review-claude": 180,
"final-synthesis": 180
}
},
"roleAgents": {
"planner": "plan",
"plan_reviewer": "general",
"implementer": "build",
"reviewer_codex": "general",
"reviewer_claude": "akane-review-claude",
"synthesizer": "general"
}
}Publish flow
The package is prepared to publish from npm with:
bun install
bun run typecheck
bun run build
npm publishUseful checks before publishing:
bun run pack:checkNotes:
- The current package name assumption is
opencode-akane - The current license is
MIT - If you later switch to a scoped package name, publish with
npm publish --access public
Automated publishing
This repository includes GitHub Actions workflows for CI and npm publishing:
.github/workflows/ci.yml: runs install, typecheck, build, andnpm pack --dry-run.github/workflows/publish.yml: publishes to npm when a tag likev0.1.0is pushed
Recommended setup for public release:
- Make the GitHub repository public
- Publish
opencode-akaneonce manually from your npm account, or reserve the package name - In npm package settings, add a Trusted Publisher for:
- GitHub owner:
NaturaAurum - Repository:
akane-agents - Workflow filename:
publish.yml
- GitHub owner:
- Push a version tag that matches
package.json, for example:
git tag v0.1.0
git push origin main --tagsThe publish workflow intentionally uses npm trusted publishing with GitHub OIDC instead of an NPM_TOKEN.
