Skip to content

v0.4.0 - Find Similar Code

Choose a tag to compare

@Helweg Helweg released this 18 Jan 19:51
· 948 commits to main since this release

What's New

New Tools

  • find_similar: Find code similar to a given snippet. Perfect for:

    • Duplicate detection
    • Pattern discovery
    • Refactoring prep

    Paste code and find semantically similar implementations elsewhere in the codebase.

  • codebase_peek: Token-efficient semantic search returning metadata only (file, line, name, type) without code content. Saves ~90% tokens compared to codebase_search for discovery workflows.

Usage Example

// Find duplicates of a function
find_similar(code="function validate(input) { ... }", excludeFile="src/original.ts")

// Find similar patterns in a specific directory
find_similar(code="try { await api.fetch() } catch (e) { ... }", directory="src/api")

Full Changelog: v0.3.2...v0.4.0