惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
美团技术团队
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
V
V2EX
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
量子位
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
Jina AI
Jina AI
月光博客
月光博客
L
LangChain Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
[NEW] I spent 3 months teaching AI agents my codebase. Th...
Jessin Ra · 2026-06-15 · via DEV Community

Every morning for three months, the first thing I did was re-explain myself to my own tools.

Not the code. The code was fine. I mean everything around it: what we'd decided last Tuesday, why we'd ruled out that approach, what the sprint was actually about, how we structured things and why. The context that makes work feel continuous instead of like starting a new job every 24 hours.

Then one afternoon it tipped over. I watched my agent propose — in detail, with genuine confidence — the exact API structure I'd shot down two weeks earlier. Same reasoning, same blind spots. It had been part of our conversation. It just didn't remember.

I closed my laptop and took a walk.

This is my first time writing about this publicly, so bear with me.


Some context: I'm a backend engineer, about six years in, currently at one of the big tech companies. A few months before all this, leadership had decided we were going all-in on AI coding tools. The memo used words like "operational efficiency" and "headcount optimization." What it meant was: do more with less, and here's a tool to help you justify that.

And look — the tools earned it. Claude Code genuinely impressed me. Real code, fast, often better than what I'd have written in the same time. But there was a cost nobody had put a name to yet.

Every session was a first date.

Twenty minutes of re-orientation, then maybe an hour of flow, then the context window starts creaking and you're watching your agent lose the thread. Every. Single. Day. The productivity gains were real, but so was this invisible overhead. And it kept adding up.


I looked for solutions. CLAUDE.md and .cursorrules work great — until they don't. After a couple of months you've got a file full of contradictions and outdated decisions, and nobody's sure what's still true. Cloud memory products want a monthly subscription and your data on their servers. The self-hosted options I found felt like deploying actual infrastructure just to solve a workflow problem.

None of it did what I wanted. I didn't want a bigger context window. I wanted something that built an understanding of how I work and got better at it over time. Like a colleague who's been on the project for six months, not a contractor reading onboarding docs for the first time.

I couldn't find that. So I started building it.


The first version was a bucket. You save something, you find it later. Simple.

It worked, until it didn't. After a few weeks I had hundreds of notes and the useful ones were drowning in noise — old decisions I'd reversed, half-thoughts that never went anywhere, preferences I'd changed my mind about. The more I saved, the worse retrieval got. Exactly backwards.

Then I noticed something. When I watched the agent pull memories, it kept surfacing the same handful of things — and ignoring most of the rest. The stuff that was actually helping me kept getting used. The noise sat untouched.

That observation took me a while to act on. But when I did, it changed how the whole thing worked.

I built a feedback loop. Every time a memory gets retrieved, it gets rated — did this actually help? Useful ones score higher. Ones that get pulled but don't contribute start to sink. After enough misses, they quietly disappear. The system doesn't just grow. It filters itself.

Six months after that first painful afternoon, the tool I'm using every day barely resembles the bucket I started with. It's not just fuller. It's sharper — the things I verified last month sit higher than a passing thought from week one, and dead ends clean themselves up without me manually pruning anything.


Most of the rest came from things annoying me until I fixed them.

I added a dashboard when I couldn't tell what was even in the store. Auto-linking when I realized related memories should find each other — if I save something about our API conventions and something about our error-handling patterns, those should probably know about each other. Namespaces when I started running multiple agents and they kept stomping on each other's notes.

Nothing was planned. Every feature has a specific frustration behind it.

The benchmarks are decent — 96.6% recall in the top 5 results, 84.6% on the first result, at 33ms on an open-source embedding model anyone can run locally. No cloud, no proprietary model, no ongoing fees. But the number I actually track is simpler: does a session today feel better than a session from six months ago? Yes. A lot better.


One thing I didn't expect: the agents helped build it.

The same tools I was building memory for were also my primary collaborators building it. When search came back noisy, we tuned the weights together. When the tool schema felt clunky, they complained about it through how they used it — wrong calls, workarounds, weirdly phrased queries — and we fixed it. The product got shaped by the things that were breaking for them.

I still think that's a little strange. But it worked.


It's called Lorekeeper. Apache 2.0, runs locally.

pip install lorekeeper-mcp
lorekeeper setup
lorekeeper

Tell your agent to remember something. Come back tomorrow and ask for it. Then come back in a month and notice how differently it finds things.

That's the test I actually care about. Not the benchmark number — the feeling of working with something that knows your project. That's what I was trying to build when I took that walk.

Give it a try. See if it sticks.


GitHub: https://github.com/Jessinra/Lorekeeper
Docs: https://jessinra.github.io/Lorekeeper/
Apache 2.0. Built by agents, for agents.