Skip to content

Use hybrid retrieval to enrich Skill synthesis prompts (replace cluster-blob context) #33

@chigichan24

Description

@chigichan24

Why

  • buildSynthesisPrompt in scripts/skill-synthesizer.ts currently injects cluster-representative sessions and surrounding tool sequences as one large context blob.
  • That is coarse: the prompt drags in many "loosely related" turns and few precisely relevant ones. Token budget is wasted and synthesis quality suffers.
  • A retriever that picks the top-k most relevant turns for the candidate Skill yields a smaller, denser, more on-topic context — and is the single biggest lever on synthesis quality.

What

How

Depends on

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions