aide-memory

io.github.aide-memory由 GitHub 帳號 aide-memory 發布v0.6.3更新於 Oct 24, 2026

Persistent memory layer for AI coding agents — your agent remembers what you taught it.

發布方自己的服務:Memory.fit

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

為 AI 程式開發助理提供的本機持久記憶層,可跨工作階段與跨工具擷取、依路徑限定並召回專案知識。

可以做什麼
依偏好、技術事實、區域脈絡、團隊準則四種分層儲存、更新與刪除記憶,以 glob 路徑限定範圍,並區分個人與共享記憶。搜尋與列出已存記憶,支援關鍵字搜尋及可選的語意搜尋。匯入既有記憶,並依檔案路徑召回相關脈絡。透過編輯器掛鉤自動擷取知識:辨識修正、定期提示反思、工作階段開始時注入重要記憶。將專案目錄下的 JSON 記憶檔提交到 Git,與團隊同步。
適用情境
當你反覆向程式開發助理說明慣例、決策或某塊程式的背景知識,或希望在某個編輯器擷取的脈絡能帶到另一個編輯器、並分享給同一程式區域的同事時適用。適合希望依路徑精準召回、而非整份規則檔始終注入的 Claude Code 與 Cursor 使用者。
執行需求
以本機 stdio 程序執行,從 npm 安裝;需要 Node.js 18 或更新版本以及 npm 或 npx。不需 Docker、外部資料庫、API 金鑰或雲端帳號。初始化會安裝編輯器掛鉤並寫入專案設定檔;可選的語意搜尋使用 Transformers.js 或 Ollama。
安裝前請注意
初始化會安裝六個編輯器掛鉤,可能提示助理儲存記憶,也可能因依檔案召回而阻擋,請確認啟用了哪些掛鉤。記憶會寫入專案檔案,共享記憶需提交到 Git,推送前請檢查擷取內容。預設會向 PostHog 傳送匿名使用計數,可用 AIDE_TELEMETRY=off 關閉。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 aide-memory,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

aide-memory

Auto-captured, auto-recalled, path-scoped memory for AI coding agents and teams.

Website: https://aide-memory.dev

Docs: https://aide-memory.dev/docs

Install: npm install -g aide-memory && aide-memory init


The problem

Coding with agents has made developers significantly more productive. But it's created a new kind of friction.

You explain how the feature you're building ties into the rest of the system, the way you like to structure your code, the patterns to follow in this area. The agent gets it. You ship great work together. Next session, it's a blank slate. You re-explain the same things.

Critical decisions being made during conversations aren't being captured. Preferences, corrections, area knowledge, guidelines. So much valuable context doesn't persist, doesn't flow to the next session, to a different tool, or to a teammate's agent when they pick up work in the same area.

Rules files (CLAUDE.md, .cursorrules) help, but they have real limits:

  • No unified convention or structure. A team guideline, a personal preference, an area decision, and a stack fact all blur into one file. The whole file gets injected on every turn, even when most of it might not be relevant to the area the agent is working in.
  • Corrections don't make it back. What you teach the agent in conversation doesn't make it back into the rules file on its own.
  • Tool-specific. What you teach your agent in Claude Code doesn't carry to Cursor unless you copy the file over manually.
  • Unscoped recall. The whole file lands in context, or nothing does. There's no prompt for the agent to pull a relevant subset based on the file it just opened.

aide-memory fills these gaps. It sits alongside your rules files, not above or below. Rules files for static, always-on guidance. aide-memory for the dynamic, scoped knowledge that grows with the codebase.


How it works

Capture happens automatically

Six hooks fire across the session lifecycle, installed by aide-memory init:

  • UserPromptSubmit: detects corrections ("no, use X instead") and prompts the agent to store them scoped to the code area
  • Stop: periodic reflection ("anything worth remembering?") on a tunable schedule picks up decisions and findings
  • SessionStart: injects top preferences, guidelines, and priority-always memories so the agent starts with context
  • PreToolUse: before the agent reads or edits a file, checks if relevant memories exist for that path and prompts recall
  • PostToolUse: records what was recalled so re-reads don't re-prompt
  • PreCompact: clears session tracking before context compaction so post-compact reads re-prompt cleanly

Recall is scoped

Memories attach to code areas via glob scopes (src/components/dashboard/**, packages/api/**). When the agent opens a file, aide-memory matches the path against stored scopes and surfaces what's relevant to that area.

Four layers organize the knowledge:

LayerWhat it capturesExample
preferencesHow a contributor likes to work"Prefer modular component structure, separate concerns into smaller files"
technicalFacts not obvious from code"Dashboard data fetching uses React Query with stale-while-revalidate"
area_contextDecisions tied to code areas"Settings panel uses progressive disclosure; new sections follow the expand/collapse pattern"
guidelinesTeam-wide principles"Mock external calls at the network boundary in tests, not at the function boundary"

Recall ranks area_context first (most specific), then technical, then preferences, then guidelines. Scoped memories rank above project-wide ones.

Git-synced for teams

Memories are JSON files under .aide/memories/. Commit, push, pull. A post-checkout git hook rebuilds the local cache after git pull so your teammate's agent picks up your context on their next file read. Personal preferences (preferences/personal/) are gitignored. Team conventions travel with the repo.

Cross-tool

Claude Code and Cursor read the same .aide/memories/ directory. A memory captured in one tool is available in the other. Codex, Copilot, and Windsurf get a rules template at launch; deeper integration may come based on user feedback.


Quick start

bash
# 1. Install and initializenpm install -g aide-memoryaide-memory init
# 2. Restart your editor so the MCP server registers#    Claude Code: start a fresh session#    Cursor: Cmd+Q, reopen, enable in Settings > MCP
# 3. Store a memoryaide-memory remember "Dashboard uses skeleton loading, not spinners" \  --layer area_context --scope "src/components/dashboard/**"
# 4. Recall context for a pathaide-memory recall src/components/dashboard/
# 5. Share with your teamgit add .aide/memories/git commit -m "Capture dashboard conventions"git push

Full walkthrough: https://aide-memory.dev/docs/quick-start


What's in the box

  • 7 MCP tools: aide_recall, aide_remember, aide_update, aide_forget, aide_search, aide_memories, aide_import
  • 13 CLI commands: init, recall, remember, update, forget, search, list, stats, recall-log, config, sync, migrate, cleanup
  • 6 hooks wired into the editor at init
  • 4 typed memory layers with personal/shared split for preferences
  • FTS5 keyword search plus optional semantic search via Transformers.js or Ollama

Tunable

aide-memory ships with defaults you can adjust:

  • How often the agent gets prompted to reflect and store context
  • How specific a scope needs to be before a memory surfaces per-file vs session-start-only
  • How much context gets injected at session start
  • Which hooks are active (disable per-file blocking, turn off correction detection)
  • Personal vs shared preferences (gitignored or committed, configurable per-project)

aide-memory init seeds .aide/config.json with all public settings. Full reference: https://aide-memory.dev/docs/configuration


Privacy

Memory content stays on your machine. Anonymized usage counts (event type, hashed machine ID, platform, Node version) ship to PostHog by default so we can see which features are used. Disable with AIDE_TELEMETRY=off.


Editor support

EditorStatus
Claude CodeReference adapter. Start a fresh session after init so the MCP server registers.
CursorFull hook + MCP wiring. Cmd+Q and reopen after init, then toggle aide-memory ON in Settings > MCP.
Windsurf, Codex, CopilotRules template at launch. Deeper integration may come based on user feedback.

Per-editor details: https://aide-memory.dev/docs/supported-editors


Requirements

  • Node.js 18 or later
  • npm or npx

No Docker. No external databases. No API keys. No cloud accounts.


License

Free to use. See LICENSE for terms.


Documentation

Full docs: https://aide-memory.dev

來源:README.md,提交 ccde82f

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.6.3最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。

其他 Memory 整合