Skip to content

Feat/opencode support#60

Open
KBryan wants to merge 2 commits into0xPolygon:mainfrom
KBryan:feat/opencode-support
Open

Feat/opencode support#60
KBryan wants to merge 2 commits into0xPolygon:mainfrom
KBryan:feat/opencode-support

Conversation

@KBryan
Copy link

@KBryan KBryan commented Mar 12, 2026

Work Done:

Add modular opencode configuration for improved AI agent integration:

  • .opencode/config.json - main configuration with project metadata
  • AGENTS.md - comprehensive agent instructions at repo root
  • .opencode/tasks/ - 4 reusable task definitions:
    • build.json - build all packages
    • typecheck.json - TypeScript type checking
    • lint.json - linting and formatting checks
    • cli-dev.json - run CLI in development mode
  • .opencode/workflows/ - 2 workflow compositions:
    • ci.json - full CI pipeline (typecheck + lint + build)
    • new-command.json - interactive new command creation
  • .opencode/README.md - documentation for extending config.

The modular structure allows easy updates by:

  • Separating individual tasks into reusable JSON files
  • Composing workflows from existing tasks
  • Providing clear documentation for future extensions
    This setup enables running: opencode task and opencode workflow
    for common development operations."

KBryan added 2 commits March 12, 2026 08:12
Add modular opencode configuration for improved AI agent integration:
- .opencode/config.json - main configuration with project metadata
- AGENTS.md - comprehensive agent instructions at repo root
- .opencode/tasks/ - 4 reusable task definitions:
  - build.json - build all packages
  - typecheck.json - TypeScript type checking
  - lint.json - linting and formatting checks
  - cli-dev.json - run CLI in development mode
- .opencode/workflows/ - 2 workflow compositions:
  - ci.json - full CI pipeline (typecheck + lint + build)
  - new-command.json - interactive new command creation
- .opencode/README.md - documentation for extending config
The modular structure allows easy updates by:
- Separating individual tasks into reusable JSON files
- Composing workflows from existing tasks
- Providing clear documentation for future extensions
This setup enables running: opencode task <name> and opencode workflow <name>
for common development operations."
Add test suite for opencode configuration files:
- .opencode//config.test.js - test runner with 6 test cases:
  - Validates config.json structure and required fields
  - Verifies AGENTS.md exists at repository root
  - Checks all task files are valid JSON with required properties
  - Validates workflow files (supports both task-based and prompt-based)
  - Ensures workflows only reference existing tasks
  - Confirms README.md documentation exists
- package.json - add test scripts:
  - \"test\": runs opencode config tests
  - \"test:opencode\": specific script for opencode tests
Tests can be run with: pnpm test, pnpm run test:opencode, or node directly
The test suite ensures configuration integrity and prevents broken
references when adding new tasks or agent workflows."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant