Open
Conversation
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."
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work Done:
Add modular opencode configuration for improved AI agent integration:
The modular structure allows easy updates by:
This setup enables running: opencode task and opencode workflow
for common development operations."