DOCUMENTATION & REFERENCE

Mosaic CLI & App Guide

A focused reference for autonomous coding commands, hardware acceleration, remote machines and everyday App workflows.

22 references
REFERENCE

Getting Started

5 items
mosaicGetting Started

Launch the interactive TUI coding agent in the current workspace directory.

Example
$mosaic
mosaic .Getting Started

Open the current directory with auto-detected local model configuration.

Example
$mosaic .
mosaic chatGetting Started

Start a conversational chat session without workspace tools, shell execution, or web access.

Example
$mosaic chat
mosaic "<instruction>"Getting Started

Execute a headless autonomous prompt directly from your terminal and exit upon verification.

Example
$mosaic "Fix memory leak in buffer pool and run test suite"
mosaic machine linkGetting Started

Link the current machine to your account, or add --anon to share a restricted machine with Methil members without GitHub authentication.

Example
$mosaic machine link --anon
REFERENCE

Slash Commands

8 items
/setupSlash Commands

Open the hardware auto-configuration wizard to benchmark GPU/RAM and pick optimal models.

/model <id>Slash Commands

Switch the active language model on the fly (e.g. /model qwen3.8-27b-q4_k_m).

/provider <name>Slash Commands

Switch provider route (local, lmstudio, openai, openrouter, anthropic, ollama).

/doctorSlash Commands

Run comprehensive workspace diagnostics, verify build tools, git tree, and runtime dependencies.

/statusSlash Commands

Display current token usage, active provider, context budget, and system resource telemetry.

/diffSlash Commands

View pending file changes and uncommitted git modifications generated by the agent.

/reviewSlash Commands

Initiate an automated code review pass on recent edits before committing.

/newSlash Commands

Reset conversational context and start a fresh coding session.

APP CONTROL

Remote Machine Control

3 items
mosaic machinesRemote Machine Control

List all linked compute nodes, online statuses, accelerators, and memory capacity.

Example
$mosaic machine list
mosaic machine statusRemote Machine Control

Inspect local machine registration, system daemon health, and telemetry heartbeat.

Example
$mosaic machine status
mosaic machine rotate-tokenRemote Machine Control

Rotate the cryptographic access token of this computer and re-authenticate.

Example
$mosaic machine rotate-token
REFERENCE

CLI Flags & Options

3 items
--provider <provider>CLI Flags & Options

Override default model provider (local, openrouter, openai, anthropic, deepseek).

Example
$mosaic --provider openrouter --model deepseek/deepseek-v4-pro
--workspace <dir>CLI Flags & Options

Set target root directory for workspace inspection and tool executions.

Example
$mosaic --workspace ~/projects/backend
--jsonCLI Flags & Options

Format output as structured JSON / JSONL for CI/CD pipeline automation.

Example
$mosaic doctor --probe --json
REFERENCE

Hardware & Runtimes

3 items
Apple Silicon MLXHardware & Runtimes

Native unified memory acceleration for M1/M2/M3/M4 Macs. Zero VRAM overhead, instant startup via HuggingFace MLX community.

llama.cpp (Metal & CUDA)Hardware & Runtimes

Ultra-portable GGUF inference supporting split CPU/GPU layer offload with quantized KV cache.

SGLang & vLLMHardware & Runtimes

High-throughput server engines for Linux NVIDIA CUDA and AMD ROCm with FP8 / MXFP4 support.

DEEP DIVE

Hardware Auto-Configuration & Memory Safety

Mosaic dynamically detects your system's memory topology at startup. On Apple Silicon, Darwin virtual memory counters (vm_stat) are parsed to distinguish active wired memory from reclaimable page caches, helping quantizations like Qwen3.8 27B or Qwen3.5 4B MLX fit safely in available RAM without kernel OOM panic.

On Linux workstations with NVIDIA or AMD hardware, Mosaic queries PyTorch and ROCm sysfs counters to balance layer offloading between dedicated VRAM and host RAM.