cd /news/ai-agents/dllm-minimal-clean-coding-agent-buil… · home topics ai-agents article
[ARTICLE · art-94468] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

DLLM: Minimal, clean coding agent built directly on llama.cpp without overhead

Danny Arends released DLLM, a minimal coding agent written in the D language that runs directly on llama.cpp via importC, eliminating Python and bindings. The agent operates a three-model pipeline (agent, summary, embed) with CUDA offloading, multimodal vision, RAG, and an extensible tool system, tested with Qwen3.5-4B, Qwen2.5-0.5B, and Nomic embed text v1.5 models, requiring 8GB VRAM.

read2 min views1 publishedAug 12, 2026
DLLM: Minimal, clean coding agent built directly on llama.cpp without overhead
Image: source

A minimal, clean D language agent built directly on llama.cpp via importC. No Python, no bindings, no overhead. Runs a three-model pipeline (agent, summary, embed) with full CUDA off, multimodal vision via mtmd, RAG, KV-cache condensation, thinking budget, and an extensible tool system (auto-registered via user-defined attribute @Tool("Description") on functions). Tools included cover: file I/O, web search, date & time, text encoding, Docker sandboxed code execution, and audio playback.

Compilation guide for dependencies are found in deps/README.md

D Compiler: Use either DMD, LDC, or GDC to compile the agent.** llama.cpp**: Bundled withllama.cpp** Cuda Toolkit**: Built withCUDAfor GPU acceleration support.** SearxNG**:SearxNGis used to provide unlimited web searching by the webSearch() tool.** Docker**:Dockerprovides a code execution sandbox used by the runCode() tool.

Tested with the following HuggingFace models:

Agent:Qwen3.5-4B&mmproj-F16(vision).Summary:Qwen2.5-0.5b instruct.Embed:Nomic embed text v1.5.

Model paths are configured in src/main.d and with the above model setup require 8GB VRAM.

Execute with prompt to OneShot:

  dub -- "What is your name?"
  dub -- "Download the image at https://picsum.photos/400, load it, and write a poem about it"
  dub -- "What date is it today ? and which day of the week was 2 days ago ?"
  dub -- "Generate an 8-second audio file of a 440hz sine wave that fades out, then play it"
  dub -- "Generate a spoken 16-bit PCM WAV of 'Hello World' and play it"
  dub -- "Ingest the file README.md into RAG, tell me what DLLM is in one sentence"
  dub -- "Read the file dub.json, and summarize in a single line what the file is about."
  dub -- "How is the weather in Newcastle upon Tyne (UK) ?"
  dub -- "Fetch the Bitcoin price history online, plot it as a chart and save to workspace"
  dub -- "Think about then tell me, a story about math, 4 lines of text and be creative!"

Or start an interactive session:

  dub

Want to contribute? Great! Contribute to this repo by starring ⭐ or forking 🍴, and feel free to start an issue first to discuss idea's before sending a pull request. You're also welcome to post comments on commits.

Written by Danny Arends and released as GPLv3

── more in #ai-agents 4 stories · sorted by recency
── more on @danny arends 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/dllm-minimal-clean-c…] indexed:0 read:2min 2026-08-12 ·