Manage LLM agent memory with a resource-aware dual-tier system that uses HNSW indexing to balance short-term context and long-term knowledge retention.