TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/yocxy2/RCLI/llms.txt
Use this file to discover all available pages before exploring further.
rcli ask command sends a single text query to the LLM, executes any triggered actions, and prints the response. Perfect for scripting and automation.
Usage
How It Works
- Initialization — Loads LLM, STT, TTS models (one-time per invocation)
- LLM Processing — Classifies intent and generates response
- Action Execution — If action detected, executes via AppleScript/shell
- Response — Prints text to stdout
- TTS — Speaks response (unless
--no-speak) - Exit — Process terminates
Options
Models directory path
Load RAG index for document-grounded answers
GPU layers for LLM
Disable TTS audio output
Show debug logs
Examples by Category
Productivity Actions
Communication Actions
Media Control
System Control
Web & Navigation
Conversational Queries
RAG-Powered Queries
Use--rag to query indexed documents:
- Embed the query
- Retrieve relevant chunks via hybrid search (vector + BM25)
- Pass context to LLM
- Generate document-grounded response
Scripting Examples
Shell Automation
Capture Output
Conditional Actions
Performance
Typical latencies on Apple M3 Max:- Initialization — 1-2 seconds (model loading)
- LLM TTFT — 15-25ms
- LLM throughput — 150-200 tok/s
- Action execution — 10-100ms (depends on action)
- TTS synthesis — 100-200ms
For repeated queries, use interactive mode (
rcli) to avoid reloading models.Output Format
By default,rcli ask prints:
Action Execution Feedback
When actions are triggered:✓ indicates successful execution. Failures show:
Error Handling
No Models Installed
rcli setup
Invalid Action Arguments
Empty Query
Advanced Usage
Custom Context Size
CPU-Only Mode
Silent Mode (No TTS)
Tool Calling Flow
Whenrcli ask "open Safari" is run:
- LLM receives:
"open Safari" - LLM generates:
<tool_call>{"name": "open_app", "arguments": {"app_name": "Safari"}}</tool_call> - Tool engine parses and executes
open_app({"app_name": "Safari"}) - AppleScript runs:
tell application "Safari" to activate - Result:
{"success": true, "output": "Opened Safari"} - LLM generates final response:
"Done! Safari is now open." - TTS speaks: “Done! Safari is now open.”
Use
--verbose to see full tool call JSON and execution logs.