Skip to content

v2.6.0 — Self-Refine + DSPy Prompt Optimizer + API Adapter

Choose a tag to compare

@adrianhihi adrianhihi released this 29 Mar 07:00
· 158 commits to main since this release

What's New

Sprint V1: Self-Refine Loop

Paper: Self-Refine (2303.17651). When repair fails, PCEC now iteratively refines instead of blind retry:

  • refine() decides whether to continue + what strategies to exclude
  • filterCandidates() removes failed strategies from candidate list
  • Stops after 3 unique failures, same-strategy loop, or max attempts
  • 100% domain-agnostic

Sprint V2: DSPy Prompt Self-Optimization

Paper: DSPy (2310.03714). LLM prompt improves automatically over time:

  • Tracks LLM classification outcomes (correct/incorrect/unknown)
  • Correct classifications become few-shot examples in the prompt
  • Category diversity in example selection
  • REST: GET /api/prompt-stats, GET /api/prompt-examples
  • Schema migration v12

Sprint V3: @vial-agent/adapter-api

Second vertical proving Vial is generic — HTTP/API self-healing:

  • 22 patterns across 7 categories (throttle, server, timeout, network, auth, client, data)
  • 5 strategies: retry, backoff_retry, renew_session, reduce_request, hold_and_notify
  • Zero domain-specific logic — works with any HTTP client

Install

npm install @helix-agent/core@2.6.0       # payment self-healing
npm install @vial-agent/core@0.2.0         # generic framework
npm install @vial-agent/adapter-api@0.1.0  # API error adapter

Stats

  • 514 Helix tests + 27 adapter tests = 541 total
  • 53 test files
  • Schema v12