Skip to content

Add OpenSpec workflow infrastructure and Apple container extension design#1

Open
tomasz wants to merge 2 commits into
mainfrom
claude/apple-container-ide-extension-i8kc5i
Open

Add OpenSpec workflow infrastructure and Apple container extension design#1
tomasz wants to merge 2 commits into
mainfrom
claude/apple-container-ide-extension-i8kc5i

Conversation

@tomasz

@tomasz tomasz commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

This PR establishes the foundational infrastructure for an OpenSpec-based development workflow and introduces a comprehensive design for a Dev Containers IDE extension targeting Apple's container runtime.

Key Changes

OpenSpec Workflow Infrastructure

  • Skills (Claude & Cursor): Added reusable skill definitions for the experimental workflow:

    • openspec-explore: Thinking partner mode for investigating problems and clarifying requirements
    • openspec-propose: One-step change proposal with artifacts (proposal, design, tasks)
    • openspec-apply-change: Implementation guidance for executing change tasks
    • openspec-sync-specs: Delta spec synchronization to main specs
    • openspec-archive-change: Change finalization and archiving
  • Commands (Claude & Cursor): Added command definitions for the experimental workflow:

    • /opsx:explore: Enter exploration mode
    • /opsx:propose: Create a new change proposal
    • /opsx:apply: Implement tasks from a change
    • /opsx:sync: Sync delta specs to main specs
    • /opsx:archive: Archive completed changes

Apple Container Dev Containers Extension Design

  • Proposal (proposal.md): Rationale for building a Dev Containers extension on Apple container instead of Docker, addressing the closed nature of Microsoft's remote containers extension

  • Design (design.md): Comprehensive technical architecture covering:

    • Constraint analysis (Microsoft's closed API, SSH as universal attach surface, Apple container's CLI-only interface)
    • Architecture decisions (SSH bridge pattern, static agent injection, devcontainer spec compliance)
    • Integration points with VS Code, Cursor, VSCodium, and Windsurf
    • Reference implementation patterns from DevPod and devcontainers/cli
  • Delta Specs (8 capability specs):

    • devcontainer-config: Configuration discovery and precedence
    • devcontainer-lifecycle: Container creation, reuse, and lifecycle management
    • devcontainer-features: Feature reference resolution (OCI, HTTPS, local)
    • container-runtime-adapter: Runtime detection and version gating
    • ssh-attach-bridge: In-container SSH provisioning without image requirements
    • ide-attach: IDE detection and attachment targeting
    • extension-ux: Core extension commands and UI
    • port-forwarding: Port forwarding via create-time publish and SSH tunnels
    • clone-repo-in-volume: Repository cloning into named volumes
  • Tasks (tasks.md): 7-milestone implementation roadmap (M0–M7) with acceptance criteria, from repository scaffolding through production-ready extension

Project Configuration

  • OpenSpec config (openspec/config.yaml): Project context and schema definition for spec-driven workflow
  • README (updated): High-level project description and feature overview
  • References (docs/references.md): Curated research notes on Dev Containers spec, Apple container, and related tooling

Notable Implementation Details

  • Multi-IDE support: Design accounts for VS Code, Cursor, VSCodium, and Windsurf with IDE-specific server download paths
  • SSH-based architecture: Avoids proprietary APIs by using SSH as the universal remote attachment surface, following the DevPod pattern
  • Static agent injection: Enables SSH access in minimal container images without requiring sshd in the base image
  • Spec compliance: All delta specs reference the official Dev Containers specification schema and implementor documentation
  • Dual-platform skills/commands: Infrastructure duplicated for both Claude and Cursor to ensure consistency across AI assistants

https://claude.ai/code/session_017gvu6ymwP46QkpALqTwfDE

claude added 2 commits July 1, 2026 22:30
…Cursor tooling

Scaffold openspec/ with project context for the Apple container dev-containers
IDE extension, plus the add-apple-container-devcontainers-extension change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017gvu6ymwP46QkpALqTwfDE
…ension

Complete spec-driven plan for a VS Code/Cursor extension implementing the
Dev Containers specification on Apple's container runtime:

- proposal.md: motivation, scope, 9 new capabilities, non-goals
- design.md: DevPod-style SSH attach bridge (works in stock VS Code and
  Cursor without proposed APIs), vendored @devcontainers/cli driven through
  a Docker-CLI-compatible shim over the Apple container CLI, companion acdc
  binary, risks and open questions
- specs/: requirements with WHEN/THEN acceptance scenarios for
  devcontainer-config, container-runtime-adapter, devcontainer-lifecycle,
  devcontainer-features, ssh-attach-bridge, ide-attach, port-forwarding,
  extension-ux, clone-repo-in-volume
- tasks.md: milestones M0-M7, each task with acceptance criteria traced to
  spec requirements
- docs/references.md: verified research notes and primary-source links
- README.md: mission statement and repo guide

Validated with: openspec validate --strict

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017gvu6ymwP46QkpALqTwfDE
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.

2 participants