Native local LLM chat client for Windows, Linux and macOS with built-in tools for arithmetic, JSON manipulation, IP networking, hashing, sorting, base64 encoding, and more. Supports Ollama and OpenAI-compatible APIs.
Loach provides 4 utility tools with complete JSON schemas and detailed descriptions (avg 180 chars). All tools are read-only, well-scoped, and follow verb_noun naming. Schemas include proper type definitions, enums, and constraints. However, parameter descriptions lack actionable guidance on format/range (e.g., 'indent' has min/max but no explanation of what values mean). Error handling is not documented, no guidance on what happens with invalid input. Output schemas are not explicitly documented. Tool composition is sound (each does one thing), but descriptions could better explain WHEN to use each tool vs alternatives.
Encode a UTF-8 string to base64, or decode a base64 string to UTF-8 (returning the bytes as hex if the result isn't valid UTF-8). Modes: `encode` (default), `decode`. Alphabets: `standard` (default, RFC 4648 §4 with `+` and `/`) or `url_safe` (RFC 4648 §5 with `-` and `_`). Padding (`=`) is added on encode and accepted-but-not-required on decode.
IP-address arithmetic. Use this rather than computing subnet boundaries by hand — getting the network/broadcast address right for a /23 or a /127 is harder than it looks, especially on IPv6. Operations: `in_cidr` — return `true` / `false` for whether `address` falls within `cidr`. Both IPv4 and IPv6 supported. Family mismatches return `false` (an IPv4 address never matches an IPv6 prefix). `subnet_info` — given a `cidr`, return the network address, broadcast (IPv4 only), first/last usable host, prefix length, and total host count. Host count is the address range size; for IPv4 /31 and /32 (and IPv6 in general) every address is treated as usable.
Validate, pretty-print, or extract a value from JSON. Use this when you're unsure whether a string is valid JSON, when you need a clean indented copy, or when you want a specific nested value. Operations: `validate` (returns `valid` or a parse error with line/column), `format` (pretty-prints with `indent` spaces, default 2 — also validates as a side effect), `extract` (returns the value at a JSON Pointer path, RFC 6901, e.g. `/users/0/name`; leading slash, slash-separated, integer indices for arrays, `~1` escapes `/`, `~0` escapes `~`).
Sort lines of text. Use this rather than reordering by hand — natural sort especially is easy to get wrong (`file1, file2, file10` not `file1, file10, file2`). Modes: `lexical` (default — byte-wise comparison, fastest, Unicode-aware in Rust), `natural` (treats runs of digits as numbers — `file2` before `file10`), `numeric` (parses each line as a number and sorts numerically — lines that don't parse sort after the numbers in their original order). Flags: `reverse` (descending order), `unique` (collapse adjacent duplicates after sort, like `sort -u`), `case_sensitive` (default true; when false, lexical and natural compare case-insensitively).
Output schemas not documented. LLMs cannot plan downstream tool calls or extract results without knowing what fields to expect.
Error handling guidance missing. No documentation of what happens when input is invalid (e.g., malformed JSON, invalid CIDR, non-numeric lines in sort). LLMs cannot self-correct.
Parameter descriptions lack actionable constraints. 'indent' has min/max but no explanation of effect. 'path' in json tool references RFC 6901 but doesn't explain empty string behavior clearly enough for LLM inference.
Tool descriptions do not explain WHEN to use each tool vs alternatives. 'Use this rather than computing by hand' is motivation but lacks discovery guidance for multi-tool selection.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 59 | <=2025-11-25 | v2 |
Transport mechanism unknown. Source code shows Tauri desktop app with Rust backend, but MCP protocol transport (HTTP, STDIO, SSE) is not evident from provided files.