Contex – semantic context routing for AI agents
Mood
informative
Sentiment
neutral
Category
tech_discussion
Key topics
Ai
Routing
Semantic Context
Open Source
Discussion Activity
Light discussionFirst comment
N/A
Peak period
1
Hour 1
Avg / period
1
Based on 1 loaded comments
Key moments
- 01Story posted
Nov 24, 2025 at 12:16 PM EST
10h ago
Step 01 - 02First comment
Nov 24, 2025 at 12:16 PM EST
0s after posting
Step 02 - 03Peak activity
1 comments in Hour 1
Hottest window of the conversation
Step 03 - 04Latest activity
Nov 24, 2025 at 12:16 PM EST
10h ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
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!
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.