galapagos
DocsHubLeaderboardPlaygroundNews
galapagos

six blocks · any task ·
better solutions emerge.

Platform

  • Hub
  • Leaderboard
  • Playground

Resources

  • Docs
  • API reference
  • Card spec

Community

  • GitHub
  • Contribute

Updates

  • News
  • Releases

© 2026 Galapagos. Licensed under Apache-2.0.

Build your own scaffold.

Hub/Scaffolds/default/Top-K

default/topk

Top-K

Always expand the single best program, with the next K as context. Pure greedy elitism.

Test-time searchApache-2.0
Scaffold cardFiles and versions
topk/proposer.py
13 lines · 633 BpythonDownload
"""Top-K Proposer component — the strict SEARCH/REPLACE diff operator (no full-rewrite fallback)."""
from __future__ import annotations

from ...components.proposer import DiffProposer


class TopKProposer(DiffProposer):
    """One LLM call -> a SEARCH/REPLACE diff applied to the parent (SkyDiscover's solution generator),
    with mandatory no-op detection. Diffs apply by whole-line matching (SkyDiscover ``apply_diff``); a
    response with no matching diff block is a NO_DIFF (retried/discarded), never a full rewrite or a
    substring edit — SkyDiscover never accepts a rewrite in diff mode."""

    diff_wholeline = True