I Built a Personal AI Operating System on a 4GB Laptop With No GPU. Here Is What Actually Broke.
From the publisher’s feed, collected in the ZeroLabs newsroom.
A real build log of NEXUS, a self-hosted multi-agent system that runs research, job hunting, content, and lead generation from a 4GB laptop. This is the version with the actual failures, the actual fix for agents losing memory between runs, and an explanation of why that fix is a patch rather than a real solution.IndexThe Problem That Started ThisWhat NEXUS Actually IsThe Hardware I Was Actually Working WithThe Architecture: How the Pieces FitThe Real Problem: Agents Forgetting Everything OvernightThe Fix: One Memory File for EverythingWhy This Fix Is a Patch, Not a SolutionWhat Else Broke Along the WayWhat NEXUS Can Actually Do Right NowWhat I’d Tell Someone Starting This Today1. The Problem That Started ThisI was running five or six different things every day. Reading research papers on memory architecture. Searching for freelance contracts and jobs. Finding leads for outreach. Writing content for three different platforms. Debugging my own backend projects.Every one of these needed a different tool, a different tab, a different login. None of them remembered anything from the day before. I was basically the orchestrator, manually copying context between five browser tabs every single morning.So yeah, I built my own orchestrator instead. I called it NEXUS.Not because the idea is new. Multi-agent systems are everywhere right now. But almost everything I found assumed you had a GPU, a cloud budget, or both. I had a 4GB laptop, no GPU, and zero dollars to spend on API calls.That constraint is the entire reason this thing looks the way it does.Connecting tools to one system2. What NEXUS Actually IsNEXUS is not a chatbot. It is not a wrapper around an API. It is closer to infrastructure: a persistent background process that reads a task list every morning, decides which AI agent should handle each task, runs them one after another with rate limits in mind, and reports back to me through a terminal interface and a Telegram bot on my phone.The basic loop looks like this:You write tasks → NEXUS reads them → Agents execute → Results land in your notes ↑ You watch live or control it remotely from your phoneIt currently runs seven agents:Research agent: pulls papers, extracts structure, writes synthesis notes, flags gaps in what I’ve already coveredContent agent: drafts platform-specific posts in my writing voice, never publishes on its ownMarketing agent: finds trending products and writes content ideas dailyLead generation agent: a multi-stage pipeline that finds, validates, and scores outreach contactsJob hunt agent: searches real job boards and tailors resume bullets per listingEmail agent: drafts outreach emails from approved leads, never sendsDebugger agent: runs QA checks on my other coding projects after I build something (because I inevitably break things).Every agent writes its output to plain Markdown files. Nothing is locked into a database I can’t read myself.Nexus orchestrator feature map diagram3. The Hardware I Was Actually Working WithHere’s what I had to build this on:RAM: 4GB total, realistically 2.5 to 3GB usable once the OS takes its shareCPU: a low-end i3, no discrete GPUStorage: standard SSD, nothing specialThis rules out running any serious local LLM on the actual machine. There is no room for a 7B or even a 3B parameter model to run inference locally alongside an orchestrator, a daemon, and multiple agent processes. I tried early on. It choked the system within minutes.The fix was to stop trying to run the intelligence locally at all. NEXUS doesn’t run its own model. It routes every actual reasoning task to free-tier cloud APIs (Groq, Gemini, DeepSeek) and reserves the laptop’s own compute for orchestration, file watching, and lightweight local embedding tasks through HuggingFace’s smaller sentence-transformer models.That single decision is what made the whole project survivable on this hardware. The laptop’s job became traffic control, not thinking.Local vs cloud-based processing comparison4. The Architecture: How the Pieces FitAt the center is a state machine built with LangGraph, which handles the sequential execution of agents so that one task finishes cleanly before the next one starts. This matters a lot on free-tier APIs, because most of them rate-limit you hard, and running tasks in parallel is the fastest way to get your keys throttled or banned.Every agent call goes through a router first. The router looks at four things before deciding where a task goes:How many tokens will the task likely needHow healthy each provider currently is (e.g., are they lagging, or did they rate-limit me?)How complex the task actually is, scored roughly 0 to 10How much of the daily token budget is left for each providerBased on that, it picks a provider and a temperature setting. Simple extraction tasks get a low temperature of around 0.1. Creative or open-ended generation gets pushed up toward 0.7. The router writes its reasoning out in plain English every time, so I can see exactly why it made the call it made, instead of trusting a black box.Decision: Routed to GroqReasons: - Tokens (4,200) within Groq limit - Task complexity: 5.2/10 - Groq latency avg: 820ms, healthy - Gemini daily quota at 68%, preserving itConfidence: 0.91, Temperature: 0.2I call this the XAI layer rather than just “logging” on purpose. The distinction matters. A log tells you what happened. This tells you why the system made a choice, before it acts on it.The confidence score shown isn’t the model guessing how sure it is — that’s the same self-reported uncertainty that makes LLMs hallucinate in the first place. It’s computed from actual system state: how many requests this provider has handled this minute, how much of today’s token budget is left, and how complex the task was scored. The number is grounded in something measurable, not generated.That’s actually the same structural argument I’ve been working through in my own research on AI memory architecture — confidence that comes from checking real conditions beats confidence that comes from a model describing its own certainty. Building NEXUS’s router this way wasn’t an accident. It’s the same idea applied to a much smaller, much more practical problem.Routing decision flowchart with provider optionsI can watch all of this live in a terminal interface that shows the current agent, what step it’s on, provider health, and token budget in real time. And because I’m not always at my laptop, a Telegram bot mirrors every control I have in the terminal: pause, resume, skip a stuck agent, check status, check estimated API cost for the day, or do a full shutdown. All from my phone.5. The Real Problem: Agents Forgetting Everything OvernightThis is the part that actually broke things, repeatedly, before I fixed it.Each agent ran fine within a single session. The research agent could read a paper, extract structure, and write a synthesis note, all in one run. But the next morning, every agent started from zero again.The orchestrator itself didn’t remember what happened yesterday either. It had no idea the research agent had already flagged three gaps in my reading the day before. It had no idea the lead generation agent had already contacted twelve people last week. Every agent and the orchestrator running them were each waking up with total amnesia, every single day.This is the same structural problem I’d written about with LLM hallucination: no episodic memory, no persistent record of what actually happened, no way to distinguish “this is new” from “we already did this.” The only difference here was that it wasn’t one model forgetting. It was an entire system of agents, each with separate memory gaps, none of them talking to each other across time.I tried storing session memory in ChromaDB first, since that’s the obvious answer for “give an AI system memory.” It helped inside a single agent’s run. It did nothing for the bigger problem: the orchestrator deciding what to run next had no visibility into what every other agent had already done across the whole system, across days.Timeline of daily workflows6. The Fix: One Memory File for EverythingWhat actually fixed this wasn’t a smarter vector database or a more clever embedding strategy. It was almost embarrassingly simple once I stopped trying to solve it with more AI and started solving it like a filing problem.I gave the entire system a single shared memory, written in plain Markdown, stored in an Obsidian vault that every agent and the orchestrator can read and write to.Three files do the heavy lifting:CONTEXT.md: rolling memory, read by every agent first thing every morning, rewritten every evening with what actually happened that daySTATUS.md: a live log updated after every single agent finishes, so there’s a continuous record of what ran, when, and what it produced and why it produced.ERROR.md: written immediately the moment anything fails or breaks, so a crash doesn’t just vanish into a terminal log.Every agent’s actual output, research notes, lead lists, drafted content, debug reports, all of it lands as plain markdown files in the same vault, organized by category. Nothing gets overwritten. New findings get appended to existing topic notes instead of replacing them.So the loop now actually looks like this:Morning: every agent reads CONTEXT.md before doing anythingDuring: every agent writes its output to its own folderAfter each agent: STATUS.md gets updated immediatelyEvening: CONTEXT.md gets rewritten with what changedNext morning: the cycle repeats, but nobody starts from zeroThis sounds almost too plain to be a real fix. Tbh that’s the point. The system didn’t need a more advanced memory architecture. It needed one boring, readable, append-only file that every part of the system was forced to check before doing anything.Shared memory hub infographic diagram7. Why This Fix Is a Patch, Not a SolutionI want to be straight about this part, because it would be easy to make this sound like a clean fix. It is not.What I built is closer to a shared notepad than real memory. It works because:It’s append-only, so nothing important silently disappearsEvery agent reads the same source of truth before actingA human (me) can open the file and read exactly what the system believes happenedBut it has real limits that I’m not going to pretend don’t exist:It doesn’t scale forever. CONTEXT.md keeps growing. At some point, it gets long enough that feeding the whole thing into every agent’s prompt starts eating into the token budget I’m trying to protect in the first place.There’s no actual relevance filtering. The file doesn’t know what’s still useful and what’s stale. A note about a lead I closed out three weeks ago sits in the same file as something from this morning, with no built-in way to tell the system “this one matters less now.”It’s a write, not a memory. The agents aren’t learning from this context in any real sense. They’re being handed a summary and asked to act as they remember it. That’s closer to giving someone sticky notes than giving them an actual memory.It’s still manual in spirit. I review and prune this file myself sometimes when it gets messy. A real fix wouldn’t need me doing that.So when I say I “solved” the memory problem, what I actually mean is I built a patch that’s good enough to stop the system from redoing the same work every day. It is not the architectural fix that something like proper episodic memory, with decay, relevance scoring, and actual provenance, would be. That’s a much bigger problem, and one I don’t think anyone, myself included, has fully solved yet for systems like this.Pros and cons comparison char8. What Else Broke Along the WayA few other things failed before they worked, worth mentioning honestly:Rate limits got hit constantly at first. Free-tier APIs do not forgive parallel requests. The fix was to enforce a mandatory delay of about thirty seconds between every agent call, plus rotating between multiple API keys once usage crossed eighty percent of the limit for that minute.A crash used to mean starting the whole day over. Now the orchestrator checkpoints its state to a local database after every step, so if the laptop loses power or a process dies, I can resume from exactly where it stopped instead of re-running everything from the morning.Local embedding models eat RAM if left running. The fix was lazy-loading them only when needed and unloading them automatically after a few minutes of being idle. Small thing, but on 4GB it’s the difference between the system staying up and getting killed by the OS.The terminal interface alone wasn’t enough. I’m not always at the laptop, so a Telegram bot mirrors every control I have locally: pause, resume, skip, check cost, shut down, so I’m never actually stuck if something goes wrong while I’m out. Windows refused to open a terminal in a WSL path for two straight days, which is its own special kind of debugging hell9. What NEXUS Can Actually Do Right NowLet me be honest about both sides of this.On a good day, NEXUS handles things I genuinely don’t want to touch anymore. Research papers get processed end-to-end without me babysitting anything. Job listings and leads show up scored and ranked every morning. When I need to put out content, it drafts in a voice that actually sounds like me instead of something that needs a full rewrite. It runs QA checks on my other coding projects automatically, survives crashes and rate limits without losing a day’s work, and does all of this on free-tier APIs with zero server cost. That last part still gets me sometimes.But I would be lying if I said it was all clean.The shared memory file approach works until it doesn’t. It is a stopgap, not a real foundation, and I know that. Complex multi-step reasoning that crosses multiple agents still needs me to step in and check things rather than just trust the output. And the whole system is built so tightly around how I work that handing it to someone else would be like handing them my notes, technically makes sense to me, but not really plug and play for anyone else.This is not a finished product, and it is not trying to be. It is a working system I use every single day, with all the rough edges you get when you build something for yourself instead of for other people. Those rough edges do not bother me the way they would if I were shipping this to users. They are just things I know about, work around, and will fix eventually.10. What I’d Tell Someone Starting This TodayIf you are thinking about building something like this, here is what I actually learned.Do not try to run a model locally on a low-spec machine. Just route the thinking to free-tier cloud APIs and keep your local machine for orchestration and file handling. That is the only reason NEXUS runs at all on my i3 with 4GB RAM.Start with the simplest thing that works before you go near a vector database. A shared append-only file solved more of my actual problem than ChromaDB did on its own. Reach for the complex stuff only when the simple thing genuinely breaks.Be honest with yourself about what a fix is and what a patch is. Most of what I have are patches. Calling them that keeps me looking for the real solution instead of pretending the problem is closed.And build for delays and failures from day one. Free APIs will throttle you; that is just how it is. Plan the gaps and the checkpoint system before you need them, not after the first crash wipes everything.NEXUS is not open-sourced yet. It is still very much a personal build shaped around how I work specifically. If you want to know more about the architecture, the agents, or how the memory system holds together day to day, you can reach me at sp_mohdfaraz@outlook.com.Stack used: LangGraph, ChromaDB, HuggingFace sentence-transformers, Groq, Google Gemini, DeepSeek, python-telegram-bot, Rich (terminal UI), Obsidian as the shared markdown vault.I Built a Personal AI Operating System on a 4GB Laptop With No GPU. Here Is What Actually Broke. was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.