miniplayer guide

Overview

miniplayer is a fast, minimal language-model CLI harness built around a strict separation of concerns: LMScript or shell pipelines execute deterministic tools and probes, while miniplayer turns prompts into text or classification JSON (PROMPT IN, TEXT OUT). Because pure run and classify modes send zero tool schemas, miniplayer works reliably across cloud frontier models and small local Ollama models alike.

Online-first model catalog and zero-config routing

miniplayer resolves models from the published schema-version-1 dataset at https://lmctl.com/dataset/model_list.json, cached locally in ~/.cache/miniplayer/catalog (permissions 0o700 directory, 0o600 files):

Four interaction modes and system prompt precedence

miniplayer offers four distinct execution modes governed by a four-level system-prompt precedence rule:

External child-process tools, session resume, and compaction

When external tools are declared in ~/.config/miniplayer/config.json (or MINIPLAYER_CONFIG) for chat or acp sessions, miniplayer spawns them directly via child_process.spawn(command, args, { shell: false }) in isolated process groups (SIGTERM followed by SIGKILL after 250 ms on cancellation) with bounded output buffers (256 KiB stdout, 64 KiB stderr). If a model's catalog record sets capabilities.supports_function_calling to false, miniplayer prints a warning to stderr and runs tool-free.

One-shot runs support multi-turn continuation via --session new --json and --session <id>. Live chat and acp sessions automatically compact context when estimated tokens exceed 70% of the context window (compact.thresholdRatio: 0.7), retaining the last two user turns verbatim and writing durable notes to durable-memory/<timestamp>-session-notes.md.