Home / use case

L.A.T.E.: a local tool engine where code plans and a 3B model only writes

At a glance
Models & engines
Any model via Ollama, LM Studio or an OpenAI-compatible API
Demo jobs run on qwen2.5:3b through Ollama
Key gotcha
The rules understand shapes of requests, not all language; unusual wording falls back to the model, where small models are shaky.

What they built

Ishx.dev had built a small engine that gives local models real tools, and kept hitting the same problem: small models write fine but are bad at being the agent. They skip steps, guess the maths, lose track and say "Done!" when nothing happened.

Version 2, L.A.T.E., takes that job away from the model. Plain code plans the steps, tools do the exact work and check the result, and the model only writes the words. It is MIT licensed with two dependencies.

Setup

  • Node 18+
  • Any model via Ollama, LM Studio or an OpenAI-compatible API
  • Demo jobs run on qwen2.5:3b through Ollama

How it works

  1. Rules recognise the shape of a request and plan the job, so the same words give the same plan every time.
  2. Tools return typed results (a number, a path, a count) so the next step doesn't guess from a sentence.
  3. Verification is done by tools: comparing numbers or text, or checking whether a word is in a file.
  4. Memory updates in place: "change my favorite fruit to apple" replaces the old note.
  5. Independent research steps run at the same time and results are cached.

Results & numbers

  • Four jobs were run on a real qwen2.5:3b for the post, including merging two files, updating memory, a failing check, and corrupting a report then detecting, repairing and verifying it.
  • A partial failure reports "Partly done: 2 of 3 steps worked"; if nothing ran it says no tools ran, rather than giving how-to instructions.
  • About 470 automated tests run against fake models, including one that changes its mind on every call.

Gotchas

  • The rules understand shapes of requests, not all language; unusual wording falls back to the model, where small models are shaky.
  • There is no delete, rename or overwrite tool, on purpose.
  • The author built and audited it with a lot of AI help, and tests only cover what he thought of.
“Plain code plans the steps. Tools do the exact work and check the result. The model only writes the words.”— Ishx.dev

Do it yourself

  1. `git clone https://github.com/ikaushik817-art/local-ai-tool-engine`
  2. `cd local-ai-tool-engine && npm start` (Node 18+).
  3. Point it at a model in Ollama or LM Studio, such as qwen2.5:3b.
  4. Give it a multi-step goal and check that failed checks are reported as not a success.
git clone https://github.com/ikaushik817-art/local-ai-tool-engine
cd local-ai-tool-engine
npm start
Source: DEV Community (Ishx.dev) · Published 2026-11-22 · Added 2026-11-23. This write-up summarizes the original source; see it for full details.

Similar setups

LM Studio vs Ollama on an RTX 5080: memory settings mattered more than the app

LK Wood IV ran LM Studio and Ollama on the same RTX 5080 with identical GGUF files and found the apps within 14% of each other, while one wrong offload or context setting cost up to 3.4x.

LK Wood IV (DEV Community) · 2026-11-01

OpenCode on a CPU-only Intel i7 laptop talking to local Ollama coder models

Idada Osaigbovo James wires OpenCode on a Dell Latitude 5430 (i7-1265U, 32 GB RAM, Iris Xe) to Ollama’s local OpenAI-compatible API and runs Qwen2.5-Coder 1.5B/7B with no cloud subscription.

Medium · 2026-11-06

A copy-paste path to a local OpenAI-compatible LLM endpoint with LM Studio, Ollama, or llama.cpp

Mikalai Karytka’s Nov 2026 guide walks through installing LM Studio’s lms CLI (plus Ollama and llama.cpp equivalents), sizing RAM for a quantized model, serving an OpenAI-compatible API, and checking tool-calling before you build agents on top.

Mikalai Karytka (DEV.to) · 2026-11-05

How much RAM a local LLM needs on a Mac: measurements on a 16 GB MacBook M5

Kirill Lukyanov measured three models in Ollama on a 16 GB MacBook M5 with short prompts and 10- and 45-page documents, then built a sizing table for what fits on Macs from 16 to 128 GB.

Kirill Lukyanov (DEV Community) · 2026-10-28