Skip to content

TheArchitectit/opencode-dev

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6,330 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OpenCode logo

The open source AI coding agent.

πŸš€ Sprint Development Repository
This is the sprint execution repo implementing competitive gap closure features

Discord npm Build status

OpenCode Terminal UI


🎯 Project Scope

This repository contains the 52-week sprint execution for implementing comprehensive competitive gap closure features for the main OpenCode repository.

πŸ“‹ What's Being Built

Agent Foundation (Weeks 1-12)

  • Subagent Architecture: Multi-agent orchestration system matching Cursor Composer
  • Oracle Reasoning Agent: Second-opinion reasoning matching AmpCode's Oracle
  • Librarian Search Agent: Cross-repository search with high-performance indexing
  • Agent Selection & Workflows: Intelligent task routing and coordination

Context Management & UX (Weeks 13-26)

  • Thread System: Persistence, sharing, and cross-referencing
  • Session Handoff: Context preservation between sessions
  • Live Preview: Interactive editing with real-time browser integration
  • Voice & Multimodal: 24-language voice input and image processing

Workflow Automation (Weeks 27-39)

  • Custom Commands: Command palette and skills system
  • Workflow Designer: Multi-agent workflow automation
  • Performance Optimization: High-performance search and navigation

Enterprise Features (Weeks 40-52)

  • Team Collaboration: Advanced team workspaces and controls
  • Compliance: SOC 2, air-gapped deployment options
  • Advanced Security: Role-based access and audit trails

πŸ”„ Integration Strategy

Complete-First Approach: Implement ALL 52-week sprint features before generating PRs

Phase 1: Sprint Implementation (Current)

  • Focus: Day-by-day execution of 52-week plan
  • Tracking: Continuous change logging (no PR generation yet)
  • Goal: Complete competitive gap closure feature set
  • Timeline: ~12 months of comprehensive development

Phase 2: Strategic PR Generation (After Sprint Complete)

  • Approach: Generate 6-8 major feature bundles
  • Benefits: Better integration, reduced conflicts, comprehensive testing
  • Integration: Coordinated submission to main OpenCode repository

This ensures OpenCode gets complete, well-tested competitive parity rather than incremental features.

πŸ“Š Progress Tracking

  • Current Sprint: Week 1 - Agent Foundation
  • Daily Tasks: Tracked in SPRINT_TRACKER.md
  • PR Generation: Automated via scripts/simple-pr-tracker.cjs
  • Feature Branches: Managed via scripts/feature-branch.sh

All features are designed for integration into the main OpenCode repository to achieve competitive parity with Cursor, Windsurf, Claude Code, and GitHub Copilot.


Installation

# YOLO
curl -fsSL https://opencode.ai/install | bash

# Package managers
npm i -g opencode-ai@latest        # or bun/pnpm/yarn
scoop bucket add extras; scoop install extras/opencode  # Windows
choco install opencode             # Windows
brew install opencode              # macOS and Linux
paru -S opencode-bin               # Arch Linux
mise use -g github:sst/opencode # Any OS
nix run nixpkgs#opencode           # or github:sst/opencode for latest dev branch

Tip

Remove versions older than 0.1.x before installing.

Desktop App (BETA)

OpenCode is also available as a desktop application. Download directly from the releases page or opencode.ai/download.

Platform Download
macOS (Apple Silicon) opencode-desktop-darwin-aarch64.dmg
macOS (Intel) opencode-desktop-darwin-x64.dmg
Windows opencode-desktop-windows-x64.exe
Linux .deb, .rpm, or AppImage
# macOS (Homebrew)
brew install --cask opencode-desktop

Installation Directory

The install script respects the following priority order for the installation path:

  1. $OPENCODE_INSTALL_DIR - Custom installation directory
  2. $XDG_BIN_DIR - XDG Base Directory Specification compliant path
  3. $HOME/bin - Standard user binary directory (if exists or can be created)
  4. $HOME/.opencode/bin - Default fallback
# Examples
OPENCODE_INSTALL_DIR=/usr/local/bin curl -fsSL https://opencode.ai/install | bash
XDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash

Agents

OpenCode includes two built-in agents you can switch between, you can switch between these using the Tab key.

  • build - Default, full access agent for development work
  • plan - Read-only agent for analysis and code exploration
    • Denies file edits by default
    • Asks permission before running bash commands
    • Ideal for exploring unfamiliar codebases or planning changes

Also, included is a general subagent for complex searches and multistep tasks. This is used internally and can be invoked using @general in messages.

Learn more about agents.

Documentation

For more info on how to configure OpenCode head over to our docs.

🀝 Contributing to Sprint Development

This is a sprint execution repository. For contributing to main OpenCode:

  1. Main Repository: sst/opencode
  2. Sprint PRs: Generated here and submitted to main repo
  3. Review Process: Features implemented incrementally with comprehensive testing

Sprint Development Guidelines

  • Follow the 52-week sprint plan in 52_WEEK_SPRINT_PLAN.md
  • Track changes using the PR tracking system
  • Create feature branches via scripts/feature-branch.sh
  • Generate PR suggestions using scripts/simple-pr-tracker.cjs

Progress Integration

Features developed here are submitted as PRs to the main OpenCode repository after:

  • βœ… Sprint completion and testing
  • βœ… PR template generation and review
  • βœ… Quality assurance validation
  • βœ… Documentation updates

Contributing to Main OpenCode

If you're interested in contributing to the main OpenCode project, please read their contributing docs before submitting a pull request.

Building on OpenCode

If you are working on a project that's related to OpenCode and is using "opencode" as a part of its name; for example, "opencode-dashboard" or "opencode-mobile", please add a note to your README to clarify that it is not built by the OpenCode team and is not affiliated with us in any way.

FAQ

How is this different from Claude Code?

It's very similar to Claude Code in terms of capability. Here are the key differences:

  • 100% open source
  • Not coupled to any provider. Although we recommend the models we provide through OpenCode Zen; OpenCode can be used with Claude, OpenAI, Google or even local models. As models evolve the gaps between them will close and pricing will drop so being provider-agnostic is important.
  • Out of the box LSP support
  • A focus on TUI. OpenCode is built by neovim users and the creators of terminal.shop; we are going to push the limits of what's possible in the terminal.
  • A client/server architecture. This for example can allow OpenCode to run on your computer, while you can drive it remotely from a mobile app. Meaning that the TUI frontend is just one of the possible clients.

What's the other repo?

The other confusingly named repo has no relation to this one. You can read the story behind it here.


πŸ› οΈ Development in This Repo

Quick Start

# Track daily progress
cat SPRINT_TRACKER.md

# Generate PR suggestions
node scripts/simple-pr-tracker.cjs record "your change description" feature
node scripts/simple-pr-tracker.cjs suggest

# Manage feature branches
bash scripts/feature-branch.sh create "feature-name" "Description"
bash scripts/feature-branch.sh commit "commit message" "description"

Current Status

  • Sprint: Week 1 Day 1 βœ… Complete
  • Feature: Agent Foundation
  • Next: Day 2 - Registry Implementation
  • PR Strategy: Complete-first - NO PRs until full 52-week implementation
  • Feature Branch: feat/agent-foundation (kept for integration)

Sprint Files

  • 52_WEEK_SPRINT_PLAN.md - Complete sprint blueprint
  • SPRINT_TRACKER.md - Daily execution tracking
  • PR_TRACKING.md - Change management strategy
  • packages/opencode/src/agent/subagent/ - New agent architecture
  • packages/opencode/migrations/001_agents.sql - Database schema

Join our community Discord | X.com

About

The open source coding agent. - dev branch

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 83.5%
  • CSS 7.6%
  • MDX 6.3%
  • JavaScript 1.1%
  • Astro 0.5%
  • Shell 0.4%
  • Other 0.6%