Skip to main content
Why We Built Grunt Mode and Local Grunt Adapter: Give Routine AI Work a Local Worker
AI Agents|October 27, 202610 min read

Why We Built Grunt Mode and Local Grunt Adapter: Give Routine AI Work a Local Worker

Routine file processing can consume cloud usage before the real decision begins. Why we built Local Grunt Adapter and Grunt Mode, how the local handoff works, and how to test whether it pays off.

Gabe KedingParker NewellLuke Keding

The OneWave Team

AI Engineering

A capable cloud assistant can spend a lot of its work reading material just to pull out a small answer: a few fields from documents, the failures in a long log, or a summary of a folder of notes. Those steps consume context and usage before the assistant gets to the decision you actually need help with.

We built Local Grunt Adapter and Grunt Mode to give that routine processing a local execution path. The idea is simple: let a model on your computer work through suitable source files, return a compact result, and leave the calling assistant responsible for interpreting and checking it. We use both tools in our own workflow and have released them as open source.

The problem has two parts. First, an assistant needs a usable connection to the local worker. Second, it needs evidence that the worker can handle the assigned task. The adapter addresses the connection and bounded handoff; Grunt Mode adds reviewed quality gates for deciding which task categories are ready for local use.

Why we built a local worker for the routine steps

Consider a long build log. The useful answer may be five lines identifying the failing step and its error. Sending the entire log to a cloud assistant makes the cloud model process all of that source. With a suitable local worker, the assistant can request an extraction by file reference and review the smaller result before deciding what to fix. This is the kind of handoff the tools are designed to support.

Having a local model installed does not provide that workflow by itself. Someone still has to choose the input, explain the task, collect the answer and judge whether it helped. We built the adapter to make those assignments available through existing MCP assistants, and Grunt Mode to test a category of work before relying on local answers.

The intended benefit is to spend cloud usage on work that needs the caller's capabilities, while moving suitable source processing to the computer you control. That benefit has to survive coordination, local compute, review and rework. A completed local generation alone does not establish lower cost or a useful result.

Which jobs are worth handing off?

Look for substantial inputs, a narrow question and an answer you can check. Examples include extracting the same fields from a batch of documents, grouping records into predefined categories, or finding diagnostic lines in a long log. These jobs give the local worker a clear finish line and let the assistant continue with a smaller amount of relevant information.

Start with a recurring task where you already know what a good result looks like. Keep short questions, ambiguous planning and final decisions with the calling assistant. For private source files, use the adapter's explicit private-output workflow described below; ordinary local inference can still return information to a cloud caller.

Token efficiency starts with the full cloud workflow

For a file summary or extraction, the direct path sends the source into the cloud model. The delegated path can keep that source local: the caller sends instructions and file references, and receives a smaller result. That can reduce cloud context, especially when the source is substantial and the answer is compact.

Direct cloud path

Source + instructions + answer + review

Delegated cloud path

Coordination + returned result + review + rework

Count every attempt needed to reach an accepted result. A local answer that requires repeated cloud correction can consume more usage than a direct run. Likewise, an input the cloud caller already has in context may provide little avoided-source benefit. Provider prompt caching and differently priced input/output tokens also affect the cost comparison.

Model the break-even point before calling it ROI

The calculator below separates cloud-token accounting from operating cost. Change the source size and the handoff assumptions, then include local hardware, electricity, operations and extra human review. Every default is an illustrative assumption, not a Grunt benchmark or a provider price quote.

Illustrative calculator · editable assumptions

When does local delegation pay off?

These are hypothetical inputs, not measured results from either Grunt project. Count all cloud usage needed for one accepted task, including failed attempts. Worker input limits still apply; if you split work into chunks, include every extra handoff.

Cloud-token assumptions per accepted task
Direct-run overhead and delegation rework
Cloud tokens per accepted task · both bars start at zero
Direct cloud workflow4,700
With local delegation1,800

2,900 fewer cloud tokens per accepted task (61.7% reduction). Source-size break-even for these assumptions: 1,100 tokens.

Translate usage into a modeled monthly benefit

Modeled cloud cost avoided / month

$29.00

Net after local + extra review costs

-$6.00

Modeled ROI on incremental costs

-17.1%

This example uses fewer cloud tokens but still has negative ROI after local and review costs. The rate is an illustrative blended assumption, not a provider quote. Real billing needs separate input, output and cached-token rates. Subscription allowance is not converted into dollars by this model. All calculator values stay in this page; nothing is saved or sent.

In the starting example, delegation uses fewer cloud tokens but the modeled monthly benefit is negative after local and review costs. Increasing the amount of suitable work, reducing unnecessary handoffs, or improving first-pass acceptance changes that result. The number to optimize is cost per accepted task at the required quality.

The adapter records local usage and reviewed outcomes separately. Its local_cloud_usage tool accepts actual paired cloud totals only when the caller has both runs. Modeled estimates remain separate from measured comparisons. Grunt Mode also reports exploratory per-caller usage estimates; those estimates do not deduct every orchestration cost. The public usage documentation explains the accounting limits.

Data flow: what moves between the cloud and your computer

Local Grunt Adapter · schematic data flow

Move the source processing, keep the caller in control

  1. Cloud assistantSends instructions + file references; reviews ordinary results.
  2. ↓ Local MCP adapterReads only allowed source files inside configured roots.
  3. ↓ Local Ollama modelProcesses the full source locally and sends an answer back to the adapter.
  4. ↑ Return through the adapterOrdinary compact result → caller. Sensitive answer → local artifact; only its reference returns.

*Ordinary returned answers are visible to the caller. With sensitive=true, the full answer stays in a private local artifact; the caller receives a reference without answer text or preview. The calling assistant must respect that boundary.

The handoff works best when the caller sends file references before reading the full source itself. The worker processes the named input locally, returns a compact result, and the caller checks it before continuing. If the caller has already ingested the entire source, delegation cannot undo that cloud usage.

Recording whether the result helped connects the implementation to our cloud versus local AI cost analysis: what does it take to get useful work done, including review?

We ended up with two independent tools. They can be used separately, and neither requires our Crest desktop app.

Local Grunt Adapter connects the assistant to the worker

Local Grunt Adapter is a Python MCP adapter for models running through Ollama. A locally installed MCP client can ask it to summarize, extract, classify, rewrite or draft a focused code change. The worker cannot execute generated commands or edit source files.

For file-based work, the caller supplies a project folder and named files. The adapter reads those files locally and returns the result for review. An optional native Mac panel shows actual local activity, model allocation and usage metadata; source text and generated answers stay out of the panel.

The public repository includes a deliberately small, fictional example:

Customer: River Labs
Seats: 12
Status: trial

Ask for the customer and seat count, with a schema requiring those two fields, and the expected result is:

{"customer": "River Labs", "seats": 12}

Our live smoke test exercised that extraction through the real MCP connection and local model. It also checked caching, artifact output and caller feedback. A test passing on this example does not establish accuracy on your own records, but it gives you a reproducible starting point.

After a task, the caller records whether the result was accepted, rejected or redone. Completion alone does not count as success.

The adapter normally keeps short tasks with the caller. Choosing a tool, assembling arguments, waiting and checking an answer all have overhead. A tiny task can take more effort to delegate than to finish directly. The routing thresholds are conservative heuristics, and they can return keep_with_caller without loading a model.

Grunt Mode adds reviewed quality gates

Grunt Mode is a TypeScript task gateway with CLI, HTTP and a minimal legacy MCP interface. It uses a separate local llama.cpp-compatible backend.

Its central idea is shadow evaluation. A task category starts in shadow mode: the local model produces a candidate, the caller continues its normal work, and feedback records how the two compared. Promotion to local mode requires at least 50 shadow examples and 95% agreement. Promotion is explicit; local mode adds spot checks and can demote a category when reviewed agreement drops.

Those are the gates implemented in the code, not a claim that every task category has passed them. Agreement is evidence to inspect. It does not prove that a model is correct.

When Grunt returns use: big, it hands control back to the caller. It does not call a cloud model automatically. That division of responsibility matters in an agent workflow, especially when a local candidate fails a check.

The adapter and Grunt Mode solve related problems through different interfaces. The adapter makes bounded local work easy to call from existing assistants. Grunt Mode adds a per-category process for deciding when local results are reliable enough to use.

The privacy boundary includes the returned answer

Running inference locally does not automatically keep information out of a cloud assistant. If private text appears in tool arguments, it has already reached the caller. If a local model returns a summary containing the same information, that summary can reach the caller too.

For known private files, the adapter accepts sensitive=true. It processes the files locally and returns a reference to a private output artifact, without answer text or a preview. A person can inspect that artifact locally. Reading it back through a cloud-visible tool would defeat the boundary.

Heuristic screening can also trigger this handling, but detection can miss private information. Callers should mark known private inputs explicitly, use neutral filenames and instructions, and avoid sending source text in tool arguments.

Grunt Mode's confidential flag has a narrower purpose: it suppresses persisted content and bypasses result caches. Its responses remain visible to the caller. It is not equivalent to the adapter's private-output workflow.

These are workflow boundaries, not a system-wide prompt filter. Neither project intercepts unrelated app prompts or undoes data already sent elsewhere. Our local AI deployment guide covers the broader operational choices around running models yourself.

Preparing the release exposed problems we needed to fix

The most useful part of preparing an open-source release was finding assumptions that needed to become enforced behavior.

In the adapter, generated output could enter the cache before sensitivity screening. We moved screening ahead of cache writes and validation errors, tightened artifact creation permissions, and added regression coverage. The adapter security review records those changes and their limits.

In Grunt Mode, backend URL overrides needed loopback enforcement, the HTTP service needed bearer authentication, and confidential requests needed to bypass the exact cache as well as the semantic cache. We also stopped retaining free-text feedback reasons on confidential records. The Grunt security review documents that work.

For the October 27 release, 41 adapter tests and 83 Grunt tests passed. Both repositories passed GitHub-hosted CI. Four opt-in Grunt tests for live models and the Linux supervisor were skipped; that environment was not validated on this Mac.

We published clean source snapshots with MIT licenses, setup instructions and synthetic examples. Private task databases, configuration backups, previous task reports, model weights and private development history stayed out. Secret scans and dependency audits found no detected secrets or known dependency vulnerabilities in the checked release inputs. Those checks reduce risk; they do not certify safety.

How to evaluate this in your own workflow

Run a direct baseline and a delegated version on the same representative task set. Include all input, output, cached input, retries and review in each cloud total. Record acceptance and latency, then account for local operating cost and additional human effort. Keep model quality and the definition of an accepted answer comparable.

Subscription allowances, API invoices and modeled token equivalents are different measures. Use the provider's actual accounting when evaluating a plan limit or a bill. The calculator above is a planning aid; it does not establish measured savings for either project.

For a first trial, choose one recurring extraction or summary and a small set of examples with known answers. Use the adapter to test the handoff, or Grunt Mode to collect evidence about a task category before promoting it. Record errors and review time alongside usage. Both repositories include setup instructions and synthetic examples.

That is why we built these tools: to make local processing an option inside the assistant workflow, with a way to judge whether it earns its place. For teams learning to use AI in their work, the starting point is a repeatable job and a clear definition of success.

Quick answers

Why did OneWave build Local Grunt Adapter and Grunt Mode?

We wanted a local execution path for routine source processing such as extraction and summaries, so the cloud assistant could review compact results and focus on decisions. The adapter supplies the handoff; Grunt Mode adds reviewed quality gates. Any cost benefit still needs to be measured across the full workflow.

How should ROI be measured for local AI delegation?

Compare cloud usage and total operating cost per accepted task for direct and delegated workflows. Include coordination, returned output, retries, cloud review, local compute and additional human review. Use actual paired runs for measured savings; calculator scenarios are illustrative.

What is Local Grunt Adapter?

A Python MCP adapter that lets locally installed AI assistants delegate bounded file and text tasks to local Ollama models, with caller review and private-output handling for explicitly sensitive work.

How is Grunt Mode different from Local Grunt Adapter?

Grunt Mode is a separate TypeScript task gateway using a local llama.cpp-compatible backend. It evaluates task categories in shadow mode and requires reviewed evidence before promotion to local mode. The adapter connects existing MCP assistants to bounded Ollama workers.

Does running a model locally keep answers out of the cloud?

Not automatically. A returned answer can reach the calling assistant. The adapter’s sensitive=true file workflow retains the answer in a local artifact without a response body or preview; callers must not read that artifact back through cloud-visible tools.

local AItoken efficiencyAI ROIMCPOllama
Share this article

Want this applied to your own stack?

Leave an email and we'll send back where this fits your team specifically — what to try first, and what it actually takes to run it.

No sequence, no spam. Or book a call directly.

Rather just talk? Book a free 30-minute call — no pitch, just a clear look at what's possible.

Not ready to talk? Stay in the loop.

OneWave Monthly: our best AI reads, blogs, and workflows. Unsubscribe anytime.