diff options
| author | Paul Buetow <paul@buetow.org> | 2025-08-17 08:54:20 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-08-17 08:54:20 +0300 |
| commit | a61f40a4221c1586d801308da9ae1869fb6bdbb6 (patch) | |
| tree | 477ecc7313b4f9e6fd5dd57ea2a727b7befc8f13 /README.md | |
| parent | 17e9d33f2a5dc9305b4dbae1bc400b28f9b6c211 (diff) | |
cli: add hexai command-line tool and split LSP to hexai-lsp
- New cmd/hexai CLI: reads stdin/arg, prints LLM output to stdout
- Prints provider/model immediately to stderr; summary at end
- Refactor config loader to internal/appconfig
- Update Taskfile to build/install/run both binaries
- Update README with new CLI and LSP names
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -43,11 +43,20 @@ Notes: ## CLI usage and configuration - Run LSP server over stdio: - - `hexai` + - `hexai-lsp` -- Flags (minimal): +- LSP flags (minimal): - `-version`: print the Hexai version and exit. - - `-log`: path to log file (optional; default `/tmp/hexai.log`). + - `-log`: path to log file (optional; default `/tmp/hexai-lsp.log`). + +- Run command-line tool (processes text via configured LLM): + - `cat SOMEFILE.txt | hexai` + - `hexai 'some prompt text here'` + - `cat SOMEFILE.txt | hexai 'some prompt text here'` (stdin and arg are concatenated) + +Notes for `hexai` (CLI): +- Prints LLM output to stdout. +- Prints provider/model immediately to stderr, and a summary to stderr at the end (time, input bytes, output bytes, provider/model). Notes: - Token estimation for truncation uses a simple 4 chars/token heuristic. |
