Back to articles
I Built a RAG-like Context Engine for Claude Code — Without Vector DB

I Built a RAG-like Context Engine for Claude Code — Without Vector DB

via Dev.to PythonLeo KIM

The Problem Claude Code reads your CLAUDE.md once at session start. But here's the thing — Vercel's engineering team found that skills-based retrieval was skipped in 56% of eval cases . The model simply didn't invoke them. I run Claude Code as my daily coding assistant across 26+ custom resources. After months of watching Claude forget rules, ignore conventions, and skip critical project knowledge, I built a system to fix it. The Solution: Context Feeder Context Feeder is a lightweight context injection engine that runs on Claude Code hooks. It doesn't ask the model what's relevant — it force-injects matched context on every message. No vector database. No embeddings. No cloud API. Just JSON tags + shell scripts. 🔗 GitHub : github.com/friends0485-cyber/context-feeder How It Works: 3-Stage Chain Your Message → Parser (keyword match against tags.json) → Counter (track frequency, assign rank: best/normal/worst) → Injector (check rank threshold, read file, output to Claude's context) Stage

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
0 views

Related Articles