Skip to content

overview getting started

Douwe de Vries edited this page Jul 2, 2026 · 1 revision

Getting started

This repo uses Bun, TypeScript, Biome, and GitHub Actions. The package builds an OpenCode plugin entrypoint, a small CLI, and declaration files from the TypeScript sources in src/.

Prerequisites

ToolRequired by
Node.js >=20package.json engine and TypeScript tooling.
BunLocal scripts in package.json.
OpenCodeRuntime host for the published plugin.
npmRelease publishing and smoke-package consumption checks.

Install for local development

bun install
bun run check

bun run check runs bun run typecheck, bun run lint, bun run build, and bun run test in that order, as defined in package.json.

Build outputs

ScriptOutput
bun run build:pluginBundles src/index.ts to dist/index.js.
bun run build:cliBundles src/cli.ts to dist/cli.js with a Node shebang.
bun run build:typesEmits declarations from tsconfig.types.json.
bun run buildRuns all three build steps.

Install as an OpenCode plugin

The public install path in README.md is:

opencode plugin opencode-plugin-flow@4.2.0 --global --force
npx -y opencode-plugin-flow@4.2.0 sync

After restarting OpenCode, a user can start with /flow-auto <goal> or split the loop with /flow-plan, /flow-run, and /flow-review. The CLI commands behind the npm binary are implemented in src/cli.ts.

Local validation commands

CommandScope
bun run typecheckTypeScript check using tsconfig.json.
bun run lintBiome check for src and tests.
bun run testAll Bun tests under tests/.
bun run package:smokePacked package and consumer import check.
bun run smoke:liveReal OpenCode server smoke, gated by FLOW_LIVE_SMOKE=1.

Related pages: Testing, Tooling, and Deployment.

Clone this wiki locally