Download Loach
Built-in tools

Precise answers, not guesses.

Language models are great with words and shaky with arithmetic, dates and checksums. Loach gives them a local toolkit to call instead. Each tool runs on your machine, works with any tool-capable model, local or cloud, and stays off until you switch it on.

The toolkit

Tools

Flip the switches, or try the presets from first-run setup. 0 of 14 on

Web fetch

Drop up to five links in your message and Loach pulls each page's readable text in for the AI to read. Private and local network addresses are refused, and every fetched page shows on the reply. No presets touch it.

Calculator calculate

Evaluate math exactly: arithmetic with correct precedence, powers, trig, logarithms, square roots, rounding, scientific notation, pi and e.

You ask
What's 17.5% of 2,480?
In the reply
Called calculate tool
17.5% of 2,480 is 434.

Date & time datetime

Parse, format and do arithmetic on dates across time zones. DST is handled, and business-day counts skip weekends.

You ask
What weekday is 1 January 2030?
In the reply
Called datetime tool
1 January 2030 is a Tuesday.

Count count

Count characters, bytes, words, lines, or occurrences of a substring.

You ask
How many times does “r” appear in “strawberry”?
In the reply
Called count tool
Three: st-r-awbe-r-r-y.

Hash hash

Compute SHA-224, SHA-256, SHA-384 or SHA-512 of any text, hex or Base64 input. Real digests, never invented ones.

You ask
SHA-256 of “hello”?
In the reply
Called hash tool
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

UUID uuid

Generate v4 (random) or v7 (time-ordered) UUIDs, one or up to a hundred at a time.

You ask
Give me a v7 UUID for this migration.
In the reply
Called uuid tool
019a3c5e-8f21-7d4b-b2c6-3e9f1a7d5c08

Base64 base64

Encode and decode text in standard or URL-safe Base64, without the garbling.

You ask
Decode aGVsbG8gTG9hY2g=
In the reply
Called base64 tool
hello Loach

JSON json

Validate JSON with line and column on errors, pretty-print it, or pull a value out by JSON Pointer path.

You ask
Is this valid? {"name": "Loach", "tags": ["ai",]}
In the reply
Called json tool
No: there's a trailing comma after "ai" in the tags array.

Unit conversion unit_convert

Convert between units of length, mass, volume, speed, time, area, energy, pressure and temperature, with exact factors.

You ask
A marathon is 26.2 miles. How far is that in kilometres?
In the reply
Called unit_convert tool
26.2 miles is about 42.16 km.

Text diff diff_text

Show the exact differences between two pieces of text: a unified diff by line, or inline changes by word or character.

You ask
What changed between these two configs?
In the reply
Called diff_text tool
- timeout = 30
+ timeout = 60
  retries = 3

Sort sort

Sort lines lexically, numerically or naturally, so file2 comes before file10. Reverse, de-duplicate or ignore case if you like.

You ask
Sort naturally: file10, file2, file1
In the reply
Called sort tool
file1
file2
file10

IP / CIDR ip

Subnet math for IPv4 and IPv6: check whether an address falls in a CIDR range, or get the network, netmask, usable host range and host count.

You ask
Is 10.0.5.20 inside 10.0.0.0/22?
In the reply
Called ip tool
No. 10.0.0.0/22 ends at 10.0.3.255 (1,022 usable hosts).

PDF pdf

Turn headings, paragraphs, lists, tables and page breaks into a real PDF that lands in the chat as a previewable, savable attachment.

You ask
Turn this release checklist into a one-page PDF.
In the reply
Called pdf tool
PDFrelease-checklist.pdf

Workspace files 8 tools

Give a chat a folder and the model can list, find, read and search its files, then write, edit, move or delete them once you approve the change. Sandboxed to that folder, with no shell. How it works

You ask
Where is the item limit set?
In the reply
Called 2 tools · search_files, read_file
In server/routes/items.ts: const limit = 20;
The full set
list_directory · find_files · read_file · search_files
write_file · edit_file · move_file · delete_file
01

Switch it on

Every tool starts off. Pick a preset during first-run setup, or toggle tools one by one in Settings → Tools.

02

The model reaches for it

Any tool-capable model can call them mid-answer. Calls fold into a “Called N tools” block above the reply, with arguments and results one click away.

03

It all stays local

The utilities never touch the network and run on your machine, offline included. Web fetch only contacts the links you include.

Everything runs on your machine. The one exception is Web fetch, which only contacts the links you include and stays off until you turn it on. With a cloud provider the model itself is remote, so a tool's inputs and results travel with the conversation like any other message. Private Chat offers no tools at all, so nothing in it can reach a tool, a folder or an MCP server.