Using Ĝi
The full reference is in the manual: man gi.
Commands
| Command | What it does |
|---|---|
gi health | Checks Ĝi and the model server. Exit 0 when the server answers correctly. |
gi ask "…" | Asks the model a question. --verbose adds speed statistics. |
gi ask --file notes.txt "…" | Asks about a text file (--file - reads standard input). Text piped in also counts as the document: printf 'notes' | gi ask "summarise". Hidden files, upper-case Markdown files such as README.md, links, devices and the token file are refused. Scripts that leave an open pipe on standard input should add < /dev/null, or gi waits timeout_s for a document. |
gi init-workspace | Creates your private workspace (folder mode 0700) with a tamper-evident log. |
gi task new --type req|bug|vuln --title "…" | Creates a private task record; gi task list lists them. |
gi selfcheck | Checks your security baseline: private workspace, intact log, safe config, private model address. |
Add --json for machine-readable output.
Settings
System defaults are in /etc/gi-ai/gi.toml; your own settings go in ~/.config/gi-ai/gi.toml.
Key ([llm]) | Meaning |
|---|---|
backend | ollama (default), lmstudio, or echo (offline test) |
endpoint | http://host:port; @gateway means the Windows host seen from WSL |
model | The model name or id your server offers |
allow_remote | Must be true for any address that is not on this computer. Cloud metadata addresses (169.254.169.254, 169.254.170.2, 100.100.100.200, fd00:ec2::254) are always refused, also inside IPv6 addresses that carry them and when a host name is looked up (once per request) and resolves to one |
timeout_s | Seconds to wait for an answer (1–3600) |
reasoning | LM Studio only: off (default), low, medium, high, on, default |
token_file | LM Studio API token file, inside ~/.config/gi-ai/, mode 0600, reached without links: no symbolic link on the way and no hard link to the file |
Key ([limits]) | Meaning |
|---|---|
max_input_chars | The longest question (default 8000) |
max_output_chars | The longest answer printed (default 16000) |
max_document_chars | The longest document for gi ask, 1000–1000000 (default 20000) |