This document provides guidelines for AI agents operating in this repository.
oh-my-opencode-slim - A lightweight agent orchestration plugin for OpenCode, a slimmed-down fork of oh-my-opencode. Built with TypeScript, Bun, and Biome.
| Command | Description |
|---|---|
bun run build |
Build TypeScript to dist/ (both index.ts and cli/index.ts) |
bun run typecheck |
Run TypeScript type checking without emitting |
bun test |
Run all tests with Bun |
bun run lint |
Run Biome linter on entire codebase |
bun run format |
Format entire codebase with Biome |
bun run check |
Run Biome check with auto-fix (lint + format + organize imports) |
bun run check:ci |
Run Biome check without auto-fix (CI mode) |
bun run dev |
Build and run with OpenCode |
Running a single test: Use Bun's test filtering with the -t flag:
bun test -t "test-name-pattern"
biome.json)tsconfig.jsonany: Generates a linter warning (disabled for test files)bundler strategy.d.ts files in dist/organizeImports: "on")bun run check:ci before pushingoh-my-opencode-slim/
├── src/ # TypeScript source files
├── dist/ # Built JavaScript and declarations
├── node_modules/ # Dependencies
├── biome.json # Biome configuration
├── tsconfig.json # TypeScript configuration
└── package.json # Project manifest and scripts
@modelcontextprotocol/sdk - MCP protocol implementation@opencode-ai/sdk - OpenCode AI SDKzod - Runtime validationvscode-jsonrpc / vscode-languageserver-protocol - LSP supportbun run check:ci to verify linting and formattingbun run typecheck to verify typesbun test to verify tests passsrc/src/cli/index.tssrc/index.tssrc/skills/ (included in package publish)