Dan Brown / workshop
Back to projects

Context Router

A lightweight tool for routing the right context into an AI agent's prompt.

TypeScriptNode.jsVector search

Problem

Agents fail quietly when they're missing context, and stuffing everything into a prompt gets expensive and messy fast.

Approach

Built a small routing layer that scores and selects only the context relevant to the current task before it reaches the model.

Outcome

Shorter prompts, fewer irrelevant answers, and a system that's easy to extend as new context sources are added.

Lessons learnt

Relevance is a harder problem than retrieval. Getting the right five things beats getting all fifty.