Skip to content

aasixh/devgrep

Repository files navigation

devgrep logo

Search your developer workflow history instantly.

Terminal-native search for shell history, logs, markdown notes, and indexed project workflows.

GitHub  ·  Documentation  ·  Releases  ·  Twitter/X

devgrep is a terminal-native search engine for developer workflows. It indexes shell history, log files, and markdown notes into a local SQLite database so you can recover commands, debugging steps, and project context without digging through scattered files.

No cloud. No accounts. No telemetry. No AI layer — just fast, offline search in your terminal.

devgrep demo

Documentations

Comprehensive documentation, including usage guides, is available at Devgrep Docs


Install

Go

go install github.com/aasixh/devgrep@latest

Release binary

curl -fsSL https://raw.githubusercontent.com/aasixh/devgrep/main/scripts/install.sh | sh

Build from source

git clone https://github.com/aasixh/devgrep
cd devgrep
make build
./bin/devgrep version

Platforms: Linux, macOS, and Windows (amd64 / arm64) via manual method (docs/release.md).

Commands

Command Description
devgrep search [query] Search indexed workflows (TUI or plain)
devgrep [query] Shorthand for search
devgrep index [path...] Index history, logs, and notes
devgrep index . --dry-run Preview files without writing to SQLite
devgrep index <path> --no-watch Index once, do not stay in watch mode
devgrep index --watch Restore and run persisted watchers
devgrep sources List indexed source locations
devgrep sources --tree Tree view of indexed paths
devgrep stats Document counts, DB size, top searches
devgrep doctor Local health checks
devgrep version Version and build metadata

Global flags: --config, --db, --plain, --verbose

Search flags: --source history,logs,notes, -n limit, -i force TUI, --tail, --regex, --severity

Index flags: --source, --path, --watch, --no-watch, --dry-run, -y confirm risky paths


Configuration

devgrep runs with sensible defaults. No config file is required for the first run.

On first devgrep index, defaults are written to ~/.config/devgrep/config.yaml if missing. Customize indexed paths, ignore rules, ranking weights, history limits, log extensions, and TUI colors.

Full reference: docs/user-manual.md · docs/config.md


Development

make build    # bin/devgrep
make test     # race detector + coverage
make lint     # golangci-lint or go vet
make bench    # includes 100k-document search benchmark

License

MIT

About

Fast recursive command search CLI tool built for developers.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors