Touch Grass, Pack Your Docs: An Offline Coding Agent on a 4 GB Laptop GPU
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass This article provides a step by step build of an offline coding agent on a laptop with a 4 GB GPU. Gemma 4 runs locally under llama.cpp, opencode drives it, and every run is scored by an independent grader, from the first context sweep to the setup that passes. https://github.com/xbill9/dev-hacktoberfest Gemma…
This story details the development of an offline coding agent that can write working code on a laptop with a 4 GB GPU, even without internet access. The Gemma 4 E4B model is used, running locally on a GTX 1650 Ti GPU, with the llama.cpp inference engine and opencode agent. Six benchmark runs using the agent achieved full pass rates, while other combinations of components failed 16 out of 16 tests.
The agent is designed to work in low-connectivity environments, like parks, campsites, or trains, by packing necessary documents, model, server, and agent on the laptop itself.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.