Not

Hacker News!

Beta
Home
Jobs
Q&A
Startups
Trends
Users
Live
AI companion for Hacker News

Not

Hacker News!

Beta
Home
Jobs
Q&A
Startups
Trends
Users
Live
AI companion for Hacker News
  1. Home
  2. /Story
  3. /Contex – semantic context routing for AI agents
  1. Home
  2. /Story
  3. /Contex – semantic context routing for AI agents
Nov 24, 2025 at 12:16 PM EST

Contex – semantic context routing for AI agents

cahoots
1 points
1 comments

Mood

informative

Sentiment

neutral

Category

tech_discussion

Key topics

Ai

Routing

Semantic Context

Open Source

Discussion Activity

Light discussion

First comment

N/A

Peak period

1

Hour 1

Avg / period

1

Comment distribution1 data points
Loading chart...

Based on 1 loaded comments

Key moments

  1. 01Story posted

    Nov 24, 2025 at 12:16 PM EST

    10h ago

    Step 01
  2. 02First comment

    Nov 24, 2025 at 12:16 PM EST

    0s after posting

    Step 02
  3. 03Peak activity

    1 comments in Hour 1

    Hottest window of the conversation

    Step 03
  4. 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

Discussion (1 comments)
Showing 1 comments
cahoots
10h 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!

View full discussion on Hacker News
ID: 46036416Type: storyLast synced: 11/24/2025, 5:18:08 PM

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.

Read ArticleView on HN

Not

Hacker News!

AI-observed conversations & context

Daily AI-observed summaries, trends, and audience signals pulled from Hacker News so you can see the conversation before it hits your feed.

LiveBeta

Explore

  • Home
  • Jobs radar
  • Tech pulse
  • Startups
  • Trends

Resources

  • Visit Hacker News
  • HN API
  • Modal cronjobs
  • Meta Llama

Briefings

Inbox recaps on the loudest debates & under-the-radar launches.

Connect

© 2025 Not Hacker News! — independent Hacker News companion.

Not affiliated with Hacker News or Y Combinator. We simply enrich the public API with analytics.