--- name: yerel-agent description: "Use for private offline summaries and classification." license: MIT author: HamaratLabs version: 1.0.0 --- # Yerel Agent Local chat models (Ollama etc.) are optional helpers. If the user has paused local-model work, do not start them until resumed. Never configure local models as main assistants or fallback providers. LAYA is separate and may run only as a bounded on-demand classifier. ## Suitable tasks - Local note summarization and classification - Repetitive text transformations - Draft extraction and simple JSON routing ## Do not use by default - Current web research: route to Gemini/`agy`. - Complex coding or architecture: route to Claude Code. - Final decisions, external side effects, or high-stakes verification: keep in the manager agent. ## LAYA: typed decision encoder Separate from the Ollama chat model above: a `laya` CLI (e.g. `~/.local/bin/laya`) with two models, `laya_english_ud_q4_k_m.gguf` and `laya_multilingual_q8_0.gguf` (361 MB). It runs on `ggmlc` and is **not a chat LLM** — it emits typed decisions, so never ask it for prose, summaries or code. For a bounded CLI smoke test, use the explicit model path `~/.ollama/models/laya_multilingual_q8_0.gguf`: `laya decide --device metal --state '' --questions '' --json`. No server or Ollama daemon is required. `laya info` without a model path/models-dir fails. Persist raw stdout/stderr and timing; require nonempty `answers`, valid JSON and exit code zero. Report model `usage.latency_ms` separately from process wall time (which includes loading). Treat `probabilities` and the separate `confidence` field as different quantities, not calibrated correctness probabilities. Reversing choice order can change scores; factual attribution needs external sources, not a choice score. Question schema: - `choice` → `criteria` as a dict - `score` → `criteria` as a list - force language with `"model": "multilingual"` A Turkish run passed on Metal GPU at roughly 210 ms. ## Bounded LAYA shadow trial The trial procedure is in `references/laya-shadow-trial.md`; executable: `scripts/laya_trial.py`. Read it for task-routing or note-type classification. This is opt-in agent-mediated sampling, not an installed gateway interceptor or an automatic agent dispatcher. No raw content scanning or always-on daemon. The trial self-expires (end date set in the script); after expiry ask before extending. ## Training versus inference Upstream LAYA documents fine-tuning and an Apple Silicon MPS training script: https://github.com/NandhaKishorM/laya#fine-tuning . Its Python training package is distinct from our native ggmlc `laya` CLI and compiled Q8 GGUF. Do not assume the local binary has `laya-train`, or that a newly trained checkpoint/option layout exports compatibly; verify the multilingual base, training path, compiler support and post-export parity before deployment. Do not promise local training RAM/time without a bounded measurement. The shadow trial is NOT online learning: logging choices never updates model weights. Its privacy-preserving logs omit input text, so they are not a reusable training dataset. To train, explicitly obtain approval for a separate set of non-sensitive/de-identified input summaries with reviewed labels; split held-out cases before tuning, keep synthetic/live evaluations distinct, and never let the manager's unreviewed guesses become ground truth. Start with clearer criteria and a no-training baseline before paying the complexity of fine-tuning. ## Verification Require valid JSON when structured output is requested. Treat this model as an assistant, not the final authority.