Expose on-device AI
as callable agent tools with tool-mode

A plugin for DeepSeek Harness

READ THE DOCS
8MODELS
24TOOLS
MCPHOST
Code Mode

Laya

decision family

Choose, score, test.

decision_choose01
decision_score02
decision_test03
EXPOSUREMCP · local
TOOLS3 / host-reported

A decision family for routing, scoring, and evaluation. Every call runs through the same host registry and returns a receipt — no cloud detour.

SIZE1.26 GB
RUNTIMEONNX
DEVICECPU
1.26 GB · ONNX · CPU

Call models like tools with tool-mode

Small, specialized models sometimes outperform large frontier models on the narrow tasks they were trained to perform. Manually loading up dozens of models in an inference agent and selecting them on a per-task basis is tedious and time consuming. Let's design a better way for agents to work with specialist models.

tool-mode mounts models from Cactus Computer, Desert Ant Labs and other labs and researchers as packages and makes them available to coding agents like DSH as tools. This way, agents know what functionalities are available to them at all times, and can also string together several model-tool calls using Code Mode to gain powerful new capabilities.

The catalog lists eight model integrations with capabilities declared once. A per-platform resolver reports unavailable tools with an exact reason — so agents and operators know what actually runs.

Install only what you need. Start with Tongue (~2 MB, fully offline) for language detection, then add transcription and privacy tools when the job requires them.

Model catalog

Pre-built models and harness recipes from the plugin packages — each with a stable capability and named tools.

Laya

decision family
decision_choose01
decision_score02
decision_test03

Choose, score, test.

1.26 GB · ONNX · CPU

Needle

structured extraction
tools_plan01
structured_extract02
validate_record03
+1 MORE

Extract structure from messy records.

37 MB · Native · CPU

Embedding Gemma 2

multimodal embeddings
multimodal_embed01
semantic_rank02
semantic_similarity03
+4 MORE

Search across text, images, and audio.

2.82 GB · ONNX · CPU

Tongue

language ID
lang_detect01

Detect the language on device.

2 MB · Node · CPU

Voz

speech to text
stt_transcribe01

Transcribe a recording locally.

367 MB · ONNX · CPU / GPU

Jev

remote decision
decision_choose_jev01
decision_judgments_jev02

Remote decision judgments with an API key.

REMOTE · API · OFF-DEVICE

Mirage

vision
mirage_describe01
mirage_detect02
mirage_ocr03
+1 MORE

On-device vision for scenes, objects, text, and forms.

21.9 MB · WASM · CPU

MiniLM

text embedding
text_embed01
text_rerank02

Embed and rerank text on device.

173 MB · ONNX · CPU

Tool inventory

Each model extension comes packaged with ready to use tools. Tools can be exposed over MCP and used by any application.

Laya
decision_choose
READY
Laya
decision_score
READY
Laya
decision_test
READY
Needle
tools_plan
READY
Needle
structured_extract
READY
Needle
validate_record
READY
Needle
extract_with_repair
READY
Embedding Gemma 2
multimodal_embed
READY
Embedding Gemma 2
semantic_rank
READY
Embedding Gemma 2
semantic_similarity
READY
Embedding Gemma 2
semantic_classify
READY
Embedding Gemma 2
semantic_deduplicate
READY
Embedding Gemma 2
dedupe_and_rank
READY
Embedding Gemma 2
media_find_moments
READY
Tongue
lang_detect
READY
Voz
stt_transcribe
READY
Jev
decision_choose_jev
READY
Jev
decision_judgments_jev
READY
Mirage
mirage_describe
READY
Mirage
mirage_detect
READY
Mirage
mirage_ocr
READY
Mirage
mirage_extract
READY
MiniLM
text_embed
READY
MiniLM
text_rerank
READY

Private by default*

The plugin loads official model packages locally and never routes covered payloads through a third-party API. * If tool results are part of context and later turns are routed to cloud models, content may be shared with remote providers. User discretion advised.

Local-first execution

No payloads routed through a third-party API. Packages stay on this machine.

Chain tool calls with Code Mode

One Code Mode program can call several model-tools in sequence — the return of one feeds the next — so agents compose capabilities that no single package ships alone.

Meeting brief from audio

stt_transcribe → lang_detect → text_title

Transcribe a recording, detect its language, and propose a titled brief — one program, three tools.

const t = await stt_transcribe({ path }) const { language } = await lang_detect({ text: t.text }) return text_title({ text: t.text, kind: "document" })

Decide, then fill a schema

tools_plan → structured_extract

Propose the next tool calls as data, then extract JSON fields the agent can act on — planning and structured output in one Code Mode call.

const plan = await tools_plan({ task, tools }) return structured_extract({ text: task, schema })

Find docs from a screenshot

describe_image → multimodal_embed → semantic_rank

Describe a UI capture, embed the description, and rank matching documents — vision into retrieval without a separate pipeline.

const d = await describe_image({ image }) const [q] = await multimodal_embed({ items: [d.text] }) return semantic_rank({ query: q, candidates })

How it works

Model-tools with defined tools

Per-model named tools with explicit input and output schemas.

Support for Code Mode and MCP

Let your DSH agent string together multiple model-tools in a single call for more powerful capabilities, and let other applications access tools via MCP.

Skills and routes included

Playbooks teach the agent when to reach for each tool.

Any MCP client.
One host.

tool-mode serves MCP v2 on loopback — stateless, bearer-authenticated, tools only. DSH stays the host: every call goes through the same registry, grants and receipts as a native tool.

POST /mcp MCP 2026-07-28 Mcp-Method: tools/call · Mcp-Name: lang_detect Authorization: Bearer ••• · Accept: application/json, text/event-stream
{ "text": "Bonjour tout le monde" }
→ { "language": "fr", "reliability": "confident" }
loopback · 127.0.0.1:3765/mcp
loopbacktools · server/discoverstdio bridge

Install on-device tools
for your agent

Give DSH named tools with contracts, skills, and declared capabilities. The smallest model starts at 2 MB.

BLOG · THE JOURNAL

Notes from the local machine.

Essays on device-local models, agent tooling, and the contracts that make a model usable by a machine.