Skip to content

Re-add fuzzy with a faithful fzf algorithm port #34

@tony

Description

@tony

Summary

Once it can be done faithfully, bring back a non-interactive fuzzy filter shaped like fzf --filter. The previous implementation wrapped rapidfuzz (WRatio / partial_ratio), which only approximated fzf's scoring; a re-introduction should port fzf's actual algorithm so --algo v1|v2, the extended-search grammar, and --tiebreak behave like fzf. Companion to the removal (linked below).

Reference — fzf v0.72.0

Open questions

  • Port fzf's V1/V2 scoring + tiebreak directly (or via a faithful Python port) rather than re-introducing the rapidfuzz approximation.
  • Keep it a generic stdin filter (fzf-parity, pipe-friendly), or also add a mode that filters the agent stores so it fits an agent-history tool?

Acceptance criteria

  • --algo v1|v2, extended-search tokens, and --tiebreak match fzf --filter output on a shared fixture corpus.
  • Restore the CLI page + card and the test suite; full gate green.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions