Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
PluginCẩn thậnQuy trình & bộ nhớ agentDễ cho người mới

deja-vu

vshulcz · vshulcz/deja-vu

Deja-vu cung cấp bộ nhớ bền vững cho Claude Code, Cursor và các tác nhân AI lập trình khác bằng cách lập chỉ mục lịch sử phiên cục bộ, cho phép nhớ lại ngay lập tức các giải pháp trước đây mà không cần lời nhắc rõ ràng.

Bộ nhớ cho Claude Code, Codex, Cursor và 35 coding agent khác, được xây dựng từ lịch sử phiên đã có trên đĩa của bạn. Tìm kiếm cục bộ, MCP và hooks, không LLM, một Go binary.

1.2k sao120Giấy phép: MITCập nhật 3 ngày trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Cho phép tác nhân AI của bạn nhớ lại cách nó đã sửa một lỗi tương tự trong phiên lập trình trước.
  • Ngăn các tác nhân gỡ lỗi lại các vấn đề bằng cách cung cấp cho chúng các giải pháp đã có từ lịch sử cục bộ.
  • Duy trì các mẫu và thực hành lập trình nhất quán giữa các tác nhân AI khác nhau bằng cách sử dụng bộ nhớ dùng chung.

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Trình cài đặt tải script từ xa và chạy thẳng bằng shell.install.sh
  • ●Yêu cầu quyền quản trị (sudo).install.sh

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Your coding agents stop re-debugging what you already fixed.

Claude Code, Codex, Cursor and 39 more agents already save every session to disk. deja indexes all of it, months back, and hands the part that matters to whichever agent is working now.

English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Español | Português | Français | Deutsch | Русский | Türkçe | हिन्दी

Nobody searched anything — the agent called deja itself. Two real runs against a synthetic corpus: nobody's history is published.

curl -fsSL https://raw.githubusercontent.com/vshulcz/deja-vu/main/install.sh | sh
deja install --auto

macOS and Linux; ten seconds to install, about ten to index · Windows, Homebrew, npm and the rest

Recall97.2% R@5 on LongMemEval-SMemPalace publishes 96.6%, agentmemory 95.2% Tokenshalf the tokens of agentmemoryon a task this machine had already solved Index time17.6 s to index 19,195 sessionsthe next of seven tools takes 72 s

I maintain deja-vu, so every driver, the corpus and the scoring rule are in this repository · the head-to-head, and how to re-run a row you doubt · every run

Docs · Benchmarks · How it compares · Building it into your tool

Found it useful? Star deja-vu on GitHub.

Search it yourself

deja with no arguments in a terminal opens a search over every agent's history. It starts on the sessions behind your uncommitted change, then the recent ones in this project, and the list narrows as you type.

  • ↑↓ picks a session, ↵ opens it at the match, n and N step through the matches, esc goes back. Inside a session, / finds a word and ] [ jump between the turns you asked.
  • The box takes filters: an agent with a colon (codex:), today, yesterday, week, month, and in:.
  • r resumes the session in the agent that wrote it. o continues it in any other agent, which starts with what the session asked, decided and left open.
  • tab switches between this project, all projects and Deleted, the sessions their agent deleted that deja still holds; R puts one back.
  • ? lists every key, ^k has the rest (copy the session id or project path, forget a session), q quits from the list; esc steps back and quits from an empty search box.

With DEJA_TUI=0 it prints the text summary instead, which is also deja brief. Piped, it prints what is indexed and which command to run next.

Highlights

  • Starts full. Months of history from before you installed it are searchable on day one: deja "connection pool exhausted" over gigabytes.
  • One memory, every agent. A fix found in Codex comes back in Claude Code, Cursor or opencode; all forty-two agents read the same index.
  • Nobody has to ask. Recall arrives at session start, before a file is edited or a command runs, and after a command fails.
  • Survives compaction. Over 43 measured compactions the summary kept 77% of the decisions and 0.2% of the commands; deja hands back the rest (how).
  • Indexes the work, not just the talk. The files each turn opened, the commands with their exit status, the exact spans an edit replaced.
  • Knows what held. deja promote <id> --state rejected marks a reverted decision, and every later hit says it was tried and why it was dropped; --state accepted takes the mark back.
  • Says when the ground moved. A hit reports 4 files this session touched have changed since, and stays quiet when it cannot tell.
  • Local and private. No model, no embeddings, no server. Keys and tokens are stripped as the index is built (privacy).
  • Moves with you. deja sync ssh laptop between machines, no cloud in between; deja handoff --to codex to continue in another agent.
  • One Go binary. macOS, Linux and Windows, through Homebrew, Scoop, winget, npm or go install.

Your own work, wrapped

deja stats --card draws it in the terminal; give it a filename and it writes an SVG for a profile README. To post it anywhere else, turn it into a PNG — that page converts it in your own browser.

The full feature reference lives in the docs.

Install

The two commands at the top are the whole install on macOS and Linux:

curl -fsSL https://raw.githubusercontent.com/vshulcz/deja-vu/main/install.sh | sh
deja install --auto

The script puts the binary in ~/.local/bin. If that directory is not on your PATH yet, the second command is not found in the same shell: run the next: line the script prints, which has the full path, or open a new shell once the PATH line is added.

Ten seconds to install, about ten to index, and it is useful. The second command wires MCP recall into every agent it finds, turns on session-start recall where the agent supports it, and builds the first index so the next session does not pay for it.

Start a new agent session and ask it something you worked on months ago:

have we dealt with jwt refresh rotation before? check your memory

It does not have to be asked, either — with auto-recall the agent already knows what you solved in that project when the session opens. To look for yourself, run deja.

Other ways to install, and what to do if you want less than all of it

brew install deja-vu, go install github.com/vshulcz/deja-vu/cmd/deja@latest, or npx @vshulcz/deja-vu "query" to try it without installing anything. Desktop apps that take MCP servers as bundles can open the .mcpb from the latest release; it carries the binary.

Claude Code, Cursor, Qwen and OpenClaw can take the same plugin bundle from their own marketplaces instead (Codex has a bundle of its own, in the table under Harnesses with a package of their own). Copilot CLI installs it too but takes only the skill, so use `deja install co

Xem mã nguồn trên GitHub