Skip to main content

grep, but the search engine is an LLM

Project description

vibegrep

grep, but the search engine is an LLM.

Install

pip install vibegrep  # or: uvx vibegrep

Setup

export VIBEGREP_API_KEY=<your-api-key>
export VIBEGREP_BASE_URL=https://<openai-compatible-api>/v1
export VIBEGREP_MODEL=<a-fast-and-affordable-model>

Usage

vibegrep "security vulnerabilities" src/
vibegrep "error handling" . -g "*.py"
vibegrep "authentication logic" src/ --depth 2 -j 5

Options

QUERY                 search query (required)
PATH                  search path (default: .)
--depth 1|2           directory depth (default: 1)
-j NUM, --threads NUM concurrent requests (default: 10)
-g GLOB, --glob GLOB  file filter (e.g. '*.py')
--model MODEL         override VIBEGREP_MODEL
--dry-run             preview batching without calling API

Output

TTY:

src/auth.py
 42│     password = request.form["password"]
 43│     db.execute(f"SELECT * FROM users WHERE pass='{password}'")

 67│     os.system(user_input)

Pipe:

src/auth.py:42:    password = request.form["password"]
src/auth.py:43:    db.execute(f"SELECT * FROM users WHERE pass='{password}'")

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vibegrep-0.3.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vibegrep-0.3.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file vibegrep-0.3.0.tar.gz.

File metadata

  • Download URL: vibegrep-0.3.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vibegrep-0.3.0.tar.gz
Algorithm Hash digest
SHA256 627971258be8ac7781ca6ef1de56b5d929a1ee77229bb09ad6c80eac0ae65913
MD5 27283684376a70bb80c1421d727c96e5
BLAKE2b-256 b9bdfd2b671ae05de8c5e1fdaf945ca6936ae56a209548946b9af8ae24f30add

See more details on using hashes here.

File details

Details for the file vibegrep-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: vibegrep-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vibegrep-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b23f0231033c6e8fa497f4feb4486effcd75e1b86267f2b75c12325ce89b5af0
MD5 59482cbb2681b504179622be5cf7ea83
BLAKE2b-256 93dfcb762d02ed661087b9d5d655a58719d9f8162641eb7d05c2acf141a2ad7a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page