I tried to make a memory system in Claude Code (make it behave like a human from the perspective of memory) using markdown files and indexing plus hooks. But, retrieval is not as good as a human and since keywords are ambiguous, it doesn't behave as intended.