slg-cli
v0.1.2
Published
Semantic git intelligence for LLM agents — npx installer and proxy for the slg CLI.
Maintainers
Readme
slg
Semantic git intelligence for LLM agents.
This is the npm installer and proxy for the slg CLI. It downloads the correct pre-built binary for your platform, verifies its SHA-256 checksum, and proxies all commands through to it.
Usage
No install required — just use npx:
# Run any slg command directly
npx slg-cli init
npx slg-cli why "why was the retry limit set to 3"
npx slg-cli doctor
# Install slg permanently and add it to PATH
npx slg-cli installThe binary is cached at ~/.slg/bin/slg after the first download, so subsequent npx slg-cli calls are instant.
Global install
npm install -g slg-cli
# Now use slg directly (no npx needed)
slg init
slg why "your question"How it works
- Detects your platform (
linux-x64,linux-arm64,darwin-arm64,darwin-x64,win32-x64) - Downloads the binary from GitHub Releases
- Verifies the SHA-256 checksum against the
.sha256file published alongside the binary - Caches it at
~/.slg/bin/slg(orslg.exeon Windows) - Execs with your arguments — zero overhead on subsequent calls
Zero npm dependencies. Uses only Node.js built-ins.
Links
License
MIT OR Apache-2.0
