GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — opencode/packages/opencode/AGENTS.md at dev · lifeiscontent/opencode

Expand file tree

/

AGENTS.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
27 lines (21 loc) · 1.3 KB
/

AGENTS.md

Copy path

File metadata and controls

27 lines (21 loc) · 1.3 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

opencode agent guidelines

Build/Test Commands

  • Install: bun install
  • Run: bun run index.ts
  • Typecheck: bun run typecheck (npm run typecheck)
  • Test: bun test (runs all tests)
  • Single test: bun test test/tool/tool.test.ts (specific test file)

Code Style

  • Runtime: Bun with TypeScript ESM modules
  • Imports: Use relative imports for local modules, named imports preferred
  • Types: Zod schemas for validation, TypeScript interfaces for structure
  • Naming: camelCase for variables/functions, PascalCase for classes/namespaces
  • Error handling: Use Result patterns, avoid throwing exceptions in tools
  • File structure: Namespace-based organization (e.g., Tool.define(), Session.create())

Architecture

  • Tools: Implement Tool.Info interface with execute() method
  • Context: Pass sessionID in tool context, use App.provide() for DI
  • Validation: All inputs validated with Zod schemas
  • Logging: Use Log.create({ service: "name" }) pattern
  • Storage: Use Storage namespace for persistence
  • API Client: Go TUI communicates with TypeScript server via stainless SDK. When adding/modifying server endpoints in packages/opencode/src/server/server.ts, ask the user to generate a new client SDK to proceed with client-side changes.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.