qc
Synopsis
Section titled “Synopsis”qc [prompt...]Description
Section titled “Description”Quick-chat wrapper around the aichat LLM CLI that defaults to the “cli” role — a system prompt tuned for concise, terminal-friendly output. Resolves the aichat config directory (honoring $XDG_CONFIG_HOME), creates it if missing, and on first use installs the bundled role by symlinking scripts/cli-agent.md to $XDG_CONFIG_HOME/aichat/roles/cli.md. Inherits every aichat flag and tab completion (--wraps aichat); passing --role/-r overrides the default role, so qc forwards to aichat unchanged. The function is only defined when aichat is installed. Run qc --help for aichat’s full flag reference with the command name rewritten to qc.
Arguments
Section titled “Arguments”prompt... |
Prompt forwarded to aichat |
-h, --help |
Show usage help |
Exit Status
Section titled “Exit Status”aichat’s exit status.
Example
Section titled “Example”qc "how do I list open ports on linux?"qc -m ollama:llama3 "explain this error"qc --role coder "refactor this function"Dependencies: aichat