Ĝigi-ai

Using Ĝi

The full reference is in the manual: man gi.

Commands

CommandWhat it does
gi healthChecks Ĝ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-workspaceCreates 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 selfcheckChecks 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
backendollama (default), lmstudio, or echo (offline test)
endpointhttp://host:port; @gateway means the Windows host seen from WSL
modelThe model name or id your server offers
allow_remoteMust 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_sSeconds to wait for an answer (1–3600)
reasoningLM Studio only: off (default), low, medium, high, on, default
token_fileLM 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_charsThe longest question (default 8000)
max_output_charsThe longest answer printed (default 16000)
max_document_charsThe longest document for gi ask, 1000–1000000 (default 20000)