frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Making Codex stop rediscovering the same repository over and over

1•oldskultxo•1h ago
I've been using Codex quite a lot for programming tasks lately, and I kept running into the same issue.

Even when working in the same repository, every task basically starts from scratch. The model has to rediscover things like the project structure, where certain pieces of logic live, what decisions were already made, etc.

In larger repos this quickly turns into a lot of repeated exploration and unnecessary context loading.

So I started experimenting with a small layer around Codex that tries to treat context as something persistent instead of rebuilding it every time.

The idea is pretty simple: put a context engine between the task and Codex. Before sending the prompt, it decides what parts of the repository are likely relevant, trims the context down, and after execution it stores a few signals about what happened.

Right now the system does a few things:

– A planner that decides what parts of the repo are relevant for a task – A context optimizer that deduplicates and trims context before sending it to the model – A small failure memory so the system doesn't keep repeating the same dead ends – Some task-specific memory for recurring task types – A graph that links tasks, files and decisions together over time

The goal isn't to build an agent or anything like that. It's more about letting the system gradually accumulate some understanding of the project instead of rediscovering it over and over.

I originally built this while working on a fairly large interactive narrative project I've been developing over the last ~40 days. Codex kept navigating the same repository structure again and again, which made the problem pretty obvious.

After a few sessions I ran a small internal "savings report" just to get a rough sense of the effect. The numbers aren't scientific, but they were roughly:

Estimated context reduction: ~30–45% Estimated token reduction: ~25–40% Estimated latency improvement: ~15–30%

The biggest difference wasn't even the token savings — it was that Codex stopped wandering around the repo as much.

Still very experimental, but it's already been useful for repeated tasks in a medium-sized codebase.

Repo: https://github.com/oldskultxo/codex_context_engine

Curious if other people building coding workflows around LLMs have run into the same issue or tried something similar.

Comments

oldskultxo•1h ago
Happy to answer questions about how the planner / optimizer parts work internally if people are curious.

Talent is a loop, not a gift

https://medium.com/@orzel.jarek/what-it-means-to-be-a-10x-engineer-0f5c4db543a6
1•orzeljarek•51s ago•0 comments

RPPG-Enabled Contactless Pulse Rate Monitoring Software in CVD Patients

https://www.mdpi.com/2306-5354/13/2/246
1•PaulHoule•55s ago•0 comments

Codex 101 Guide from a Recovering PM

https://www.forwardeployed.com/post/codex-best-practices
1•yummyelephant8•1m ago•1 comments

Paying without Google: New consortium wants to remove custom ROM hurdles

https://www.heise.de/en/news/Paying-without-Google-New-consortium-wants-to-remove-custom-ROM-hurd...
1•therealmarv•1m ago•0 comments

Xygeni/xygeni-action GitHub Action is compromised – poisoned tag is still live

https://www.stepsecurity.io/blog/xygeni-action-compromised-c2-reverse-shell-backdoor-injected-via...
1•varunsharma07•2m ago•0 comments

New AI Note Tool

1•xlisp•3m ago•1 comments

Shipping Grayscale Photos at Small Scale

https://underjord.io/shipping-grayscale-photos-at-small-scale.html
1•zdw•5m ago•0 comments

Head to head: Claude Code (Opus 4.6 / 1M) vs. Cursor (Composer 1.5 / 200k)

https://medium.com/@yoavaa/head-to-head-claude-code-opus-4-6-1m-vs-cursor-composer-1-5-200k-f15c5...
1•yoava•6m ago•0 comments

Managing My Open Source Repos with Autonomous AI Agents

https://massadas.com/posts/managing-opensource-with-ai-agents/
1•G4brym•7m ago•0 comments

Aatel: The Anti-AI Training Ethical License – What It Is and Why It Was Built

https://github.com/aatel-license/aatel-license.github.io
1•aatel-license•7m ago•1 comments

Cinder CSI vs. Ceph RBD CSI in Kubernetes

https://spot.rackspace.com/blogs/cinder-csi-vs-ceph-rbd-csi-in-kubernetes-an-analysis-of-persiste...
1•aleroawani•7m ago•0 comments

Sorca – Voice-first AI therapy companion

https://sorca.life
1•nothanii•8m ago•1 comments

Context plane for AI agents (Rust, S3)

https://aboutphilippe.com/2026/03/04/context-plane/
1•aboutphilippe•9m ago•1 comments

Music Programming Studio

https://folkstack.com/blog/introducing_music_programming_studio.html
1•folkstack•10m ago•0 comments

Ask HN: Value and demand for space-manufactured products?

1•dnlh_lvg•11m ago•0 comments

Anthropic says Trump ban puts federal contractor partnerships 'in jeopardy'

https://fedscoop.com/anthropic-says-trump-ban-puts-federal-contractor-partnerships-jeopardy/
3•petethomas•13m ago•0 comments

Treat Agent Output Like Compiler Output

https://skiplabs.io/blog/codegen_as_compiler
2•friscofoodie•13m ago•0 comments

New HIV cure approach forces hidden virus into tripping immune sensor

https://www.science.org/content/article/new-hiv-cure-approach-forces-hidden-virus-tripping-immune...
2•rbanffy•17m ago•0 comments

LibreOffice learns to speak Markdown in version 26.2

https://www.theregister.com/2026/03/09/markdown_in_libreoffice/
3•rbanffy•17m ago•0 comments

EV charger biz ELECQ zapped by ransomware crooks, customer contact data stolen

https://www.theregister.com/2026/03/09/ransomware_crooks_hit_ev_charger/
1•Bender•18m ago•0 comments

Moody humans should let AI handle bad public feedback first, study finds

https://www.theregister.com/2026/03/09/ai_negative_reviews/
2•Bender•19m ago•0 comments

Number Stations

https://priyom.org/number-stations
1•carlos-menezes•19m ago•0 comments

Microsoft 365 confirms new premium tier, stuffed with AI and few discounts

https://www.theregister.com/2026/03/09/microsoft_adds_a_premium_tier/
3•Bender•19m ago•0 comments

Ending rent seeking in academic publishing

https://dontaylor13.substack.com/p/ending-rent-seeking-in-academic-publishing
4•paulpauper•19m ago•0 comments

OpenLDAP 2.6.13 Now Available

https://lists.openldap.org/hyperkitty/list/openldap-announce@openldap.org/thread/2LZ7KDEMPB66TWBA...
2•neustradamus•20m ago•0 comments

If You're Going to Defend AI, You Should Be Honest About Its Actual Harms

https://www.techdirt.com/2026/03/09/if-youre-going-to-defend-ai-and-whine-about-its-critics-you-s...
1•hn_acker•21m ago•1 comments

Show HN: An open-source DAW plugin built on JUCE, React, and Lyria RealTime

https://github.com/magenta/the-infinite-crate
1•DesaiAshu•21m ago•0 comments

Show HN: Dark Hacker News

https://darkhn.com
2•alexandermorgan•23m ago•4 comments

The Safe Act Is an Imperfect Vehicle for Real Section 702 Reform

https://www.eff.org/deeplinks/2026/03/safe-act-imperfect-vehicle-real-section-702-reform
2•hn_acker•24m ago•0 comments

Claude Code, Claude Cowork and Codex #5

https://thezvi.substack.com/p/claude-code-claude-cowork-and-codex
1•paulpauper•24m ago•0 comments