Skip to content

BenDavidAaron/cearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cearch

cearch (sea-urch) is a codebase search tool that parses the code files in your git repos, isolates the logical units using treesitter, embeds them, and then allows you to do nearest neighbor lookups of your code to detect duplicated and similar logic in your codebase.

Sea Urch Logo

Usage

  1. prepare your repo by running cearch init from any path in your git repo, this will:
    • add .cearch/ to your .gitignore
    • download an embedding model and cache it in .cearch/
  2. index your repo by running cearch index
  3. search indexed symbols by using cearch query 'pub fn nothing() {' -n $NUM_HITS
  4. delete your saved index and cached embedding models with cearch clean

Development

  1. Clone the repo using git
  2. cargo build
  3. Make commits
  4. Submit a PR
  • Please consider searching the ./plans/* directory for open issues

About

Like Grep but more semantic and less performant

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages