Skip to content

DRAFT: Add V0 to V1 API migration skill#84

Draft
jpshackelford wants to merge 2 commits intomainfrom
add-v0-v1-migration-skill
Draft

DRAFT: Add V0 to V1 API migration skill#84
jpshackelford wants to merge 2 commits intomainfrom
add-v0-v1-migration-skill

Conversation

@jpshackelford
Copy link
Contributor

Summary

This PR adds a new skill to help developers migrate from the deprecated OpenHands V0 API (/api/conversations) to the new V1 API (/api/v1/*).

V0 API deprecation deadline: April 1, 2026

Features

🔍 Detection

  • Regex patterns for finding V0 API calls in codebases
  • grep commands for Python, TypeScript, JavaScript, and shell scripts
  • Field name detection (initial_user_msg, etc.)

📋 Migration Workflow

  • Step-by-step migration guidance in SKILL.md
  • Code transformation examples (V0 → V1)
  • Complexity categorization (Simple/Moderate/Complex)
  • Endpoint mapping quick reference

📁 Test Fixtures

  • V0 request/response examples
  • V1 request/response examples
  • mapping.json documenting breaking changes between versions

📖 Embedded OpenAPI Specs

  • openapi/app-server.json - Full App Server spec (V0 + V1 endpoints)
  • openapi/agent-server.json - Agent Server spec (per-sandbox API)
  • Specs include metadata with retrieval date and refresh instructions

Trigger Keywords

  • migrate v0 to v1
  • v0 api migration
  • openhands api migration
  • find v0 api calls
  • v0 deprecation

Directory Structure

skills/v0-v1-migration/
├── SKILL.md                    # Main skill with migration workflow
├── README.md                   # Usage documentation
├── openapi/
│   ├── app-server.json         # App Server OpenAPI (retrieved 2026-03-02)
│   └── agent-server.json       # Agent Server OpenAPI (generated 2026-03-02)
├── detection/
│   └── patterns.json           # V0 detection regex patterns
└── fixtures/
    ├── mapping.json            # V0→V1 transformation mapping
    ├── v0/                     # V0 request/response examples
    └── v1/                     # V1 request/response examples

Related

TODO (before removing draft status)

  • Review SKILL.md content for accuracy
  • Add more fixtures (events, file operations, etc.)
  • Add language-specific pattern docs (Python, TypeScript)
  • Consider adding a detection script utility
  • Test skill activation with trigger keywords

This skill helps developers migrate from the deprecated OpenHands V0 API
(/api/conversations) to the new V1 API (/api/v1/*).

Features:
- Detection patterns for finding V0 API calls in codebases
- Step-by-step migration workflow with code examples
- Endpoint mapping quick reference (V0 → V1)
- Test fixtures for V0 and V1 request/response shapes
- Embedded OpenAPI specs for both App Server and Agent Server
- Instructions for refreshing specs from live systems

Triggered by: 'migrate v0 to v1', 'v0 api migration', 'openhands api migration',
'find v0 api calls', 'v0 deprecation'

V0 API deprecation deadline: April 1, 2026

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Copy link
Collaborator

@enyst enyst Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think maybe these can be just links to the existing .json OpenAPI files?

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.

3 participants