-
Notifications
You must be signed in to change notification settings - Fork 253
Description
Repository: darrenhinde/OpenAgents (primary target, as OpenAgents extends OpenCode functionality)
Alternative Repository: github/spec-kit (cross-reference or linked guide)
Type: Documentation Enhancement
Priority: Medium (improves usability for hybrid workflows without code changes)
Summary
Provide a dedicated documentation section (e.g., a new Markdown file such as docs/integrations/spec-kit.md or an addition to README.md under a "Integrations" heading) explaining how to combine Spec-Kit with OpenAgents. This integration leverages Spec-Kit's explicit support for the OpenCode CLI, enabling its slash commands (/speckit.*) within OpenAgents sessions launched via opencode --agent openagent or opencode --agent opencoder. The guide would demonstrate a hybrid workflow where Spec-Kit's specification-driven phases ground OpenAgents' plan-first execution, enhancing accuracy through structured artifacts and phased validation.
Motivation
- Spec-Kit is explicitly designed for compatibility with OpenCode, including full slash-command integration when initialized with
--ai opencode. - OpenAgents builds directly on OpenCode, inheriting its terminal user interface (TUI) and command system.
- Users can achieve a powerful spec-first to plan-first pipeline: Use Spec-Kit for upfront executable specifications (e.g.,
constitution.md,spec.md,tasks.md) and OpenAgents for approval-gated execution, testing, and subagent delegation. - Current documentation in both repositories lacks explicit guidance on this combination, despite natural compatibility. Adding this would reduce setup friction, promote best practices, and highlight synergies for multi-language, validation-heavy projects.
- As of December 2025, Spec-Kit supports numerous agents (including opencode), making this a addition to encourage adoption.
Proposed Content Outline for the Documentation
The new section should include clear, step-by-step instructions with code examples, substantiated by references to existing repository features.
-
Prerequisites
- Install OpenCode CLI (per https://opencode.ai/docs).
- Install OpenAgents (via interactive installer or profile-based script).
- Install Spec-Kit CLI (using
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git).
-
Project Initialization
- Initialize a Spec-Kit project selecting OpenCode as the AI agent:
specify init my-project --ai opencode --here # Use --here for existing repositories - This scaffolds the
.specify/directory and enables/speckit.*commands in compatible agents.
- Initialize a Spec-Kit project selecting OpenCode as the AI agent:
-
Launching a Hybrid Session
- Start an OpenAgents session:
opencode --agent openagent # Or opencoder for complex coding tasks - Within the TUI, Spec-Kit slash commands are now available alongside OpenAgents commands (e.g.,
/commit,/test).
- Start an OpenAgents session:
-
Recommended Workflow
- Phase 1: Specification (Spec-Kit)
Use/speckit.constitution,/speckit.specify,/speckit.plan, and/speckit.tasksto generate artifacts likespecs/<feature>/spec.mdandtasks.md. - Phase 2: Execution (OpenAgents)
Delegate implementation to OpenAgents' hierarchical subagents (e.g., prompt for task breakdown, then approve plans for incremental execution with automatic testing via@testerand@reviewer). - Synergies:
- Reference Spec-Kit artifacts in OpenAgents context (e.g., via
.opencode/context/files or direct prompts). - Use
/speckit.implementto initiate code generation, then leverage OpenAgents' approval gates for validation. - Enhance accuracy by validating OpenAgents-generated code against Spec-Kit checklists and contracts.
- Reference Spec-Kit artifacts in OpenAgents context (e.g., via
- Phase 1: Specification (Spec-Kit)
-
Example Session
Provide a sample transcript:/speckit.specify Build a photo album app with upload and organization features. /speckit.plan Use TypeScript and SQLite. /speckit.tasks # Review tasks.md, then: Implement the tasks using opencoder subagents with full testing. -
Advanced Tips
- Load Spec-Kit artifacts into OpenAgents context files for persistent standards enforcement.
- Use OpenAgents' System Builder (Advanced profile) to create custom agents that incorporate Spec-Kit phases.
- Troubleshooting: Ensure no command conflicts; Spec-Kit commands are prefixed distinctly.
-
Benefits
- Improves requirement fidelity and reduces rework.
- Combines Spec-Kit's upfront governance with OpenAgents' runtime safeguards.
Implementation Notes
- No code changes required; this is purely documentation.
- Cross-link to Spec-Kit's
spec-driven.mdand agent compatibility table. - Optionally, add a note in Spec-Kit's documentation linking back for OpenAgents-specific execution tips.
This addition would significantly enhance the ecosystem's value for professional developers adopting AI-driven workflows. Thank you for considering this request.
Would You Like to Contribute?
- I'm just suggesting the idea