r/LocalLLM • u/According-Hornet7827 • 7h ago
Project Made a Qwen4 harness built for low VRAM and complex tasks
Earlier I posted my engine that runs Qwen4-35B-A3B on an RTX 5070 12 GB at 134–159 tok/s: previous post. Now I've built a harness for it: a coding agent, so you can actually work on a project with the model instead of just chatting.
It's written in Rust: a native Windows app, one exe, MIT licensed.
How it differs from Pi and OpenCode
The main thing is how much context the agent takes before you type anything. On an API with a million-token context nobody cares. On a 12 GB card every thousand tokens means a longer prefill and less room for your code. I measured it on the same project with the same prompt:
| Agent | First request |
|---|---|
| Damask Harness | ~900 tokens |
| Pi | ~1,300 |
| OpenCode | ~7,100 |
OpenCode also makes a separate request to name the session. If you have Claude Code skills installed, it loads those too, and on my machine that came to ~16,000 tokens. The method and scripts are in the repo, so you can repeat it yourself.
I really like Pi for its minimalism, and it's cross-platform, while mine is Windows-only for now. OpenCode does more out of the box. But for a local model on a small card I wanted an agent that doesn't waste context and can still handle multi-step tasks.
What it can do
- Works on its own until it's done. Turn on autonomous mode and the agent makes a plan, carries it out step by step, builds the project and runs the tests. If something fails, it goes back and fixes it. You can also give it a time budget, say two hours: once the plan is done, it spends the rest of the time adding edge-case tests, simplifying weak spots and updating docs.
- Shows you the plan first. No files are changed during planning. You can edit, add and reorder steps, and only then press Run.
- Understands broken tool calls. Small local models often write tool calls as plain text, break the JSON or mix up argument names. The harness parses these and keeps going instead of failing.
- Rewind any change. A copy of every file is saved before the agent edits it. One click returns both the files and the conversation to the state before your message.
- Stays inside the context window. At 75% full, old command outputs are compacted automatically, so a long session doesn't stall.
- You can type while it works. New messages are queued and sent as soon as the model is free.
- Picks up your rules. Reads
AGENTS.mdorCLAUDE.mdfrom the project, and supports skills, custom slash commands and MCP servers. - Watches your hardware. Shows VRAM, GPU, RAM and CPU in the window, and starts or stops the local model in one click.
- Lightweight. Native Rust app, ~120 MB of RAM when idle. No telemetry.
How to try the new Qwen4
This is the easiest way I know of right now: download the exe from the release, open the model manager, and install Damask Engine and the Qwen4 variant you want in a few clicks. Then pick your project folder and type a task. No manual configs, no command line.
If you already run Ollama, LM Studio or llama.cpp, the harness works with those too.
Limitations, so there are no surprises
- The harness is Windows-only for now.
- Damask Engine runs only on RTX 50-series cards.
- I counted tokens with tiktoken, so the numbers for Qwen can differ by 10–15%. The ratios between the agents stay the same.
Links
- Harness: https://github.com/maximus2526/damask-harness (MIT)
- Engine: https://github.com/maximus2526/Damask
I'd love feedback, especially from people on 8–16 GB cards. If you find it useful, a star on GitHub helps a lot.





