frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Contex – semantic context routing for AI agents

https://github.com/cahoots-org/contex
2•cahoots•29m ago

Comments

cahoots•29m ago
Hi HN! I built Contex to solve a problem I kept running into: tailoring project context for multiple specialized AI agents.

When you have multiple agents (code reviewer, documentation writer, API assistant, etc), each needs different slices of your project's context. The naive approach is to dump the entire project into every agent's prompt, but that isn't scalable or efficient. The other option is to manually curate what each agent gets, but that comes with a lot of overhead.

Contex uses semantic matching to automatically route relevant context. Agents describe what they need in natural language (i.e. "API configuration and endpoints"), and Contex finds and delivers matching data using sentence transformers + hybrid search.

Key features:

- Schema-free: Publish TOON, CSV, JSON, YAML, TOML, Markdown, or plain text

- Real-time: Redis pub/sub or webhooks for instant updates

- Event sourcing: Complete audit trail for debugging and compliance

- Multi-project: Isolated namespaces with RBAC

- Python SDK: pip install contex-python

The interesting bits:

1. Agents only get context they actually need (semantic similarity scoring)

2. When you publish new data, agents automatically get notified if it's relevant

3. Event sourcing lets you time-travel debug (i.e. "what did this agent know at 3pm?")

It's MIT licensed and runs in Docker. We use it internally for a multi-agent coding system and it's been solid.

Would love feedback on:

- Is this a real problem for others building agent systems?

- What other context routing patterns have you tried?

- Are there use cases I'm missing?

GitHub: https://github.com/cahoots-org/contex PyPI: https://pypi.org/project/contex-python/

Happy to answer questions!

What Is This Logo?

https://old.reddit.com/r/HelpMeFind/comments/1p4nn1r/what_is_this_logo_i_came_across_it_on_my_exs/
1•yaur•31s ago•0 comments

Up to 14% of employee expenses are overpaid, study shows AI detects errors

https://www.financemagnates.com/forex/ai-tackles-14-employee-expense-overpayments-study-shows/
1•onpedrof•38s ago•0 comments

Narrative Context Protocol

https://github.com/narrative-first/narrative-context-protocol
1•turtleyacht•55s ago•1 comments

The Panini-Backus Form in Syntax of Formal Languages

https://www.infinityfoundation.com/mandala/t_es/t_es_rao-t_syntax.htm
1•burglarhobbit•58s ago•0 comments

Wealthiest 10% of Americans make up 50% of purchases and consumer spendings

https://www.morningbrew.com/stories/wealthy-americans-account-half-consumer-spending
1•randycupertino•1m ago•0 comments

TinyML

https://github.com/thommaskevin/TinyML
1•atomicnature•1m ago•0 comments

Misunderstanding That "Dependency" Comic

https://bertptrs.nl/2025/11/24/misunderstanding-that-dependency-comic.html
1•todsacerdoti•4m ago•0 comments

Andrej Karpathy's LLM Council

https://github.com/karpathy/llm-council
1•nanfinitum•5m ago•0 comments

The char-TCHAR-wchar_t Pendulum in Windows API Native C/C++ Programming

https://giodicanio.com/2025/11/24/the-char-tchar-wchar_t-pendulum-in-windows-api-native-c-and-c-p...
2•movd128•5m ago•0 comments

Self-Acceptance vs. Self-Improvement (and Why You Need Both) (2016)

https://www.doctornerdlove.com/self-acceptance-self-improvement-you-need-both/
1•mooreds•7m ago•0 comments

Boosting Claude: Faster, Clearer Code Analysis with MGrep

https://elite-ai-assisted-coding.dev/p/boosting-claude-faster-clearer-code
1•breadislove•9m ago•0 comments

SVGs that feel like GIFs

https://danq.me/2025/11/24/svgs-that-feel-like-gifs/
1•speckx•10m ago•0 comments

HTTPX 1.0 — Prelease

https://www.encode.io/httpnext/
1•gfortaine•10m ago•0 comments

Acute Effects of Fasting on Cognitive Performance: A Systematic Review

https://psycnet.apa.org/fulltext/2026-76741-001.html
1•PaulHoule•11m ago•0 comments

The Rucking White Paper (Beta) (2018)

https://blog.goruck.com/rucking-training/the-rucking-white-paper-beta/
1•wslh•14m ago•0 comments

The Formula for Financial Success

https://himanshusinghbisht.substack.com/p/the-ultimate-formula-for-financial
1•gilfoyle_7•14m ago•0 comments

Title: Ask HN: Scheduling stateful nodes when MMAP makes memory accounting a lie

1•leo_e•15m ago•0 comments

Symbolica 1.0 released: Symbolic mathematics in Rust

https://symbolica.io/posts/stable_release/
2•adamnemecek•17m ago•0 comments

Amazon Leo: High-Speed Internet Wherever You Call Home

https://leo.amazon.com/
1•koolba•17m ago•3 comments

The Two Happiest Days for a Boater (2013)

https://www.financialfinesse.com/2013/06/11/the-two-happiest-days-for-a-boater/
1•mooreds•19m ago•0 comments

Field Report: Coding in the Age of AI with Cursor

https://drezil.de/Writing/coding-age-ai.html
1•eric-burel•22m ago•0 comments

Trump Weighing Advanced Nvidia Chip Sales to China, Lutnick Says

https://www.bloomberg.com/news/articles/2025-11-24/trump-weighing-advanced-nvidia-chip-sales-to-c...
2•donohoe•22m ago•0 comments

Show HN: A Curated, Vetted Directory of AI Tools for Engineers

https://www.aithings.dev
1•irere123•24m ago•0 comments

Result is the most boring sum type

https://blog.ploeh.dk/2025/11/24/result-is-the-most-boring-sum-type/
1•linhns•24m ago•0 comments

Americans Are Microdosing Obesity Drugs, Driven by 'Thin Is in' Marketing Blitz

https://www.bloomberg.com/news/features/2025-11-24/ozempic-and-other-glp-1s-are-now-being-markete...
1•helsinkiandrew•25m ago•2 comments

Andy Weir: Amazon chose to spoil 'Project Hail Mary' surprise in trailers

https://www.polygon.com/project-hail-mary-trailer-alien-andy-weir/
2•randycupertino•27m ago•1 comments

Cheat codes for being an engaging public speaker

https://katecatlin.substack.com/p/cheat-codes-for-being-a-fun-public
1•mooreds•27m ago•0 comments

In Conversation: Sam Altman and Jony Ive with Laurene Powell Jobs [video]

https://www.youtube.com/watch?v=bkCe6gpNutU
1•thm•28m ago•0 comments

Contex – semantic context routing for AI agents

https://github.com/cahoots-org/contex
2•cahoots•29m ago•1 comments

Aramco and Pasqal make history with Saudi Arabia's first quantum computer

https://www.pasqal.com/newsroom/aramco-and-pasqal-make-history-with-saudi-arabia-first-quantum-co...
1•donutloop•30m ago•0 comments