lorix-cli
v0.1.0-alpha.0
Published
Experimental local-first Git repository search CLI for Lorix.
Maintainers
Readme
lorix-cli
lorix-cli is a local-first CLI for indexing Git history and searching it from the terminal.
It currently focuses on a simple, inspectable workflow:
- build a local index for a Git repository
- search commit history by query
- find related commits
- trace file history
- inspect one commit and nearby similar work
Install
npm install -g lorix-cliIf the package is not published yet:
git clone https://github.com/sukumarrekapalli/lorix.git
cd lorix/packages/cli
npm pack
npm install -g ./lorix-cli-0.1.0-alpha.0.tgzUsage
Move into any Git repository and run:
lorix init
lorix search "authentication middleware"
lorix related <sha>
lorix file src/auth.ts
lorix inspect <sha>
lorix stats
lorix doctorLorix stores its local index in:
.lorix/index.jsoninside the target repository.
Commands
lorix initbuilds a local indexlorix syncrebuilds the local indexlorix search "query"searches commit historylorix related <sha>finds nearby related commitslorix file <path>shows commits that touched a filelorix inspect <sha>shows one commit and related contextlorix statsshows repository and index statslorix doctorchecks Git and index availability
Current Scope
- deterministic local token-vector ranking
- no LLM required
- no remote AI provider required
- no cloud service dependency
Limitations
- search quality depends on commit-message quality
- results are lexical, not deep semantic understanding
- diffs and symbols are not parsed yet
- large repositories will eventually need stronger storage than JSON
Repository
- Source: https://github.com/sukumarrekapalli/lorix
- Issues: https://github.com/sukumarrekapalli/lorix/issues
License
MIT
