[{"data":1,"prerenderedAt":120},["ShallowReactive",2],{"navigation":3,"/blog/5-omega-context-engine":30,"/blog/5-omega-context-engine-surround":116},[4],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Blog","/blog","blog",[9,13,17,21,25],{"title":10,"path":11,"stem":12},"How to run LLMs on your local machine?","/blog/1-introduction-to-ollama","blog/1-introduction-to-ollama",{"title":14,"path":15,"stem":16},"Hosting a website on a Raspberry Pi - Part 1: why bother?","/blog/2-pi-hosting-part-1-why","blog/2-pi-hosting-part-1-why",{"title":18,"path":19,"stem":20},"omega: an AI agent platform that runs on your machine","/blog/3-introducing-omega","blog/3-introducing-omega",{"title":22,"path":23,"stem":24},"omega today: settings as one document","/blog/4-omega-settings-one-document","blog/4-omega-settings-one-document",{"title":26,"path":27,"stem":28},"omega's context engine: steer the run, keep the memory","/blog/5-omega-context-engine","blog/5-omega-context-engine",false,{"id":31,"title":26,"author":32,"body":34,"date":100,"description":101,"extension":102,"image":103,"meta":104,"minRead":112,"navigation":113,"path":27,"seo":114,"stem":28,"__hash__":115},"blog/blog/5-omega-context-engine.md",{"name":33},"Endo",{"type":35,"value":36,"toc":96},"minimark",[37,41,44,47,50,53,56,59,62,65,68,71,74,82,85],[38,39,40],"p",{},"Run an agent long enough and it gets worse at its job. Not dumber - just crowded. Every tool call, every file it read, every mistake it made sits in the context window forever, and the model spends its attention re-reading its own history instead of doing the work.",[38,42,43],{},"The usual answer is compaction: when the window fills, summarize the past and keep going. The problem is what compaction throws away. Most implementations cut from the top - the oldest stuff goes first - but the oldest stuff is often the instructions. The plan. The rules you set at the start. That's the last thing an agent should forget.",[38,45,46],{},"And a second thing nobody fixes: while the agent is mid-turn, churning through a ten-minute task, you can't talk to it. Send a message and it bounces. \"Stop\", \"actually use the other file\", \"you're going the wrong way\" - all of it waits until the turn ends, if the send even works at all.",[38,48,49],{},"omega 0.18.0 rebuilt its context handling around both problems.",[38,51,52],{},"Context is now tiered. Instructions and long-lived facts sit in blocks that compaction protects. Session history sits below them. When the window needs to shrink, the engine takes the least valuable memory first - not the oldest, the least valuable. A compacted omega session still knows what it was told to do.",[38,54,55],{},"You can steer a live run. A message sent while omega is mid-turn parks as a visible queue row and steers the running turn instead of bouncing. Tell it to switch approach mid-task and it does that, on the next step, without the turn dying or the send getting lost. In practice this is the feature I use most - an agent grinding down a wrong path is a ten-second fix now, not a cancelled run.",[38,57,58],{},"Switching models mid-session asks first: compress the context with the old model, the new one, or skip it. Small thing, but it means the model switch is your call, not a surprise.",[38,60,61],{},"Sessions are single JSONL files now. The file is the truth - the session list derives from the files, not the other way around. Copy one file, you've copied the whole session. This also made the store easy to test, which paid for itself immediately (more on that below).",[38,63,64],{},"The logs tab gained per-source filters - llm, agent, cron, kanban, gateway - and the status bar shows the prompt-cache share, so you can see when a session is still riding cached tokens and when it isn't.",[38,66,67],{},"Here's the part most release posts skip.",[38,69,70],{},"0.18.0 shipped with a boot bug. If you ran the update on a real install with months of session data, the legacy migration could write a wrong timestamp, omega's own consistency check caught it, and the boot aborted. Fresh installs were fine - which is exactly why CI never saw it: CI always boots fresh stores, and fresh stores have no history. My production instance hit it within a minute.",[38,72,73],{},"Rollback took one command. The fix shipped as 0.18.1 the next day - four lines. But the interesting change is what shipped with it: before the fixed binary touched production, I ran it against a copy of the real production data first. Boot, health check, verify the exact broken session migrated byte-exact, then flip. That's now a standing rule for every release - no binary flips prod without proving itself on real data first.",[38,75,76,77,81],{},"If you're updating from 0.17.x: run ",[78,79,80],"code",{},"omega update",". The migration is fixed, your sessions keep their original timestamps, and the update is boring now - which is the goal.",[38,83,84],{},"Next up is the desktop arc - omega as a proper local app instead of a browser tab - and the kanban module reaching full parity. Long way around, but the foundation it all rides on got a lot sturdier this release.",[38,86,87,88,95],{},"omega is a single binary, runs on a Pi, no accounts, no telemetry. ",[89,90,94],"a",{"href":91,"rel":92},"https://endothe.dev",[93],"nofollow","endothe.dev"," if you want to look around.",{"title":97,"searchDepth":98,"depth":98,"links":99},"",2,[],"2026-11-25T00:00:00.000Z","Long agent sessions rot. omega 0.18.0 rebuilt how context grows, compacts and moves between models - and you can now talk to a running agent instead of waiting it out.","md","/blog/omega-context-engine.png",{"tags":105,"ogImage":103},[106,107,108,109,110,111],"AI","Agents","Local","Self-hosted","Development","Go",4,true,{"title":26,"description":101},"wqOGnDPxXgWCbqUr7Ymyc1fvzSN5O6c5UzlYrNonFps",[117,119],{"title":22,"path":23,"stem":24,"description":118,"children":-1},"State of the project: v0.17 turns settings into one searchable document, the agents tab gets a real chat, and the fleet that builds omega is the part worth watching.",null,1795592371626]