PulseAugur
中
实时 16:49:24
English(EN) MEMORY.md did nothing for my local Claude Code: 7/45 with it, 7/45 without. One hook made it 32/45

自定义记忆召回钩子提升了 Claude Code 本地设置的准确性

一位用户发现,在回答关于其个人工作的问题时,本地 Claude Code 设置中的默认记忆处理性能显著不佳。通过实现一个自定义召回钩子,该钩子仅选择性地将相关记忆片段(最多 2,400 个字符)附加到每个提示中,准确率从 45 个正确答案中的 7 个提高到 45 个中的 32 个。该钩子利用本地嵌入模型 (BGE M3-Embedding) 和关键词搜索来更好地检索上下文,其性能优于主要链接文件而非提供直接事实的默认索引。 AI

影响 展示了改进的记忆检索如何显著提升本地 LLM 设置在特定任务上的性能。

排序理由 用户开发的工具/技巧,改进了现有的本地 LLM 设置。

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

自定义记忆召回钩子提升了 Claude Code 本地设置的准确性

本文如何被排名

Signal score
29 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
用户开发的工具/技巧,改进了现有的本地 LLM 设置。
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

完整方法见我们的编辑标准。

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · JustJinoIT ·

    MEMORY.md 对我的本地 Claude Code 无效:使用它时 7/45,不使用时 7/45。一个钩子使其达到 32/45

    <p>On the same MLX server and the same 4B model, changing only how Claude Code's memory reaches the model took correct answers from 7 to 32 out of 45.</p> <p>claude-code-local is a popular way to run Claude Code on local models on a Mac. I wanted to know whether it is the right s…