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

推荐订阅源

Recent Announcements
Recent Announcements
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
小众软件
小众软件
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
A
About on SuperTechFans
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
B
Blog RSS Feed
G
Google Developers Blog
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)

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
I got tired of Agents forgetting everything, so I built a...
Ashwani Jha · 2026-05-08 · via DEV Community

Ashwani Jha

Every AI agent I built had the same problem: it forgot everything the moment the conversation ended.

Not because the LLM is bad. Because there was no memory layer wiring things together. So I'd ship a chatbot, watch users re-explain their context every session, and quietly die inside.

I spent a few months building extremis to fix this.

Here's the part that matters most.

One import change

# Before
import anthropic
client = anthropic.Anthropic(api_key="sk-ant-...")

# After
from extremis.wrap import Anthropic
from extremis import Extremis

client = Anthropic(api_key="sk-ant-...", memory=Extremis())

Enter fullscreen mode Exit fullscreen mode

That's it. Every client.messages.create() call now automatically recalls relevant past context before the LLM call, and saves the conversation after. Your application code doesn't change at all.

Works with OpenAI too:

from extremis.wrap import OpenAI
client = OpenAI(api_key="sk-...", memory=Extremis())

Enter fullscreen mode Exit fullscreen mode

What makes it different from just storing messages in a database?

Most memory systems are cosine search — the most similar memory wins. That's the wrong metric. Similar ≠ useful.

extremis adds RL scoring. Every recalled memory can receive a +1 or -1 signal. Positive ones rank higher over time. Negative ones fade — with 1.5× weight, the same asymmetry human threat-learning uses.

results = mem.recall("what does the user prefer?")

# After using these memories in your response:
mem.report_outcome([r.memory.id for r in results], success=True)

# Next recall — confirmed-useful memories surface first

Enter fullscreen mode Exit fullscreen mode

Every result also tells you why it ranked there:

"similarity 0.91 · score +4.0 · used 8× · 3 days old"

Enter fullscreen mode Exit fullscreen mode

No black box. Fully debuggable.

It also has a knowledge graph

Vectors answer "what's related to this topic?" The graph answers "who does Alice work for?":

from extremis.types import EntityType

mem.kg_add_entity("Alice", EntityType.PERSON)
mem.kg_add_relationship("Alice", "Acme Corp", "works_at")
mem.kg_add_attribute("Alice", "timezone", "Asia/Dubai")

result = mem.kg_query("Alice")
# → works_at Acme Corp, timezone: Asia/Dubai

Enter fullscreen mode Exit fullscreen mode

Claude Desktop (zero code)

pip3.11 install "extremis[mcp]"

Enter fullscreen mode Exit fullscreen mode

Add two lines to claude_desktop_config.json, restart Claude Desktop, and you get 10 memory tools automatically. No Python code at all.

Try it

pip3.11 install extremis
extremis-demo    # shows everything working in ~20 seconds

Enter fullscreen mode Exit fullscreen mode

Happy to answer questions about the RL scoring design, the knowledge graph, or anything else in the comments.