deja-vu: Retroactive Memory for AI Coding Agents

This repository profile is provided by osrepos.com, an open source repository discovery platform.

deja-vu: Retroactive Memory for AI Coding Agents

Summary

deja-vu is a powerful local-first tool that provides retroactive memory for AI coding agents, indexing past coding sessions from various agents, even those from before installation. This Go binary allows agents to recall relevant information without needing an LLM or embeddings by default. It enhances agent performance by providing context at the point of action, preventing repeated mistakes and improving efficiency.

Repository Information

Analyzed by OSRepos on September 2, 2026

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

deja-vu is a unique, local-first memory tool designed for AI coding agents. It tackles the common problem of agents forgetting past solutions or re-debugging issues already resolved. Unlike many memory solutions that start empty and record forward, deja-vu begins by indexing the session history your agents, such as Claude Code, Codex, Cursor, and many others, have already written to disk. This includes months of data from before you even installed it.

Built as a single local Go binary, deja-vu provides powerful recall capabilities without requiring an external LLM or embeddings by default, though semantic recall is an optional feature. It ensures your agents have access to their collective past, improving efficiency and preventing repetitive work.

Why Use deja-vu and its Benefits

deja-vu offers a comprehensive set of features to enhance your AI coding agent's memory and productivity:

  • Retroactive Search: Search gigabytes of your past coding sessions, including history from before deja-vu was installed. Natural-language queries are supported, with time acting as a hint, not a filter.
  • Cross-Agent Recall: A solution found in one agent, like Codex, can be recalled by another, like Claude, through the MCP recall tool. This creates a unified memory layer across all your supported agents.
  • Survives Compaction: While agents might compact their own history, discarding most commands, deja-vu preserves the full context, including decisions and commands, ensuring nothing is lost.
  • Recall at the Point of Action: deja-vu provides context precisely when it's needed. It can recall prior decisions before an agent edits a file or runs a command, and suggest solutions for errors immediately after a command fails.
  • Indexes the Work, Not Just the Talk: Beyond just conversations, deja-vu indexes the actual work performed, such as files opened, commands executed (with exit status), and exact code changes, which are often discarded by summaries.
  • Rejected Decisions: Mark decisions you reverted with deja promote <id> --state rejected --note "why". This ensures future recalls show that a particular approach was tried and rejected, along with the reason.
  • Staleness Awareness: When recalling a session, deja-vu can report if files touched in that session have changed since, providing crucial context about the current relevance of the old solution.
  • Sync and Handoff: Easily move your memory between machines with deja sync ssh laptop without relying on cloud services. You can also package live context to continue work in a different agent using deja handoff --to codex.
  • Redaction: Sensitive information, including API keys, tokens, and private key blocks, is automatically stripped at index time, making your local memory cache safe to keep and share.
  • Work Visualization: The deja stats --card command can draw a heatmap of your agent sessions directly in the terminal or generate an SVG for your profile README, offering insights into your agent's activity.

Installation

Getting started with deja-vu is quick and straightforward. The recommended installation method for macOS and Linux is via a simple curl command:

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

The first command installs the deja binary. The deja install --auto command then wires MCP recall into every agent it finds, turns on session-start recall where supported, and builds the initial index of your existing agent history.

For Windows users, Scoop is the recommended method:

scoop install deja-vu

Other installation options include brew install deja-vu, go install github.com/vshulcz/deja-vu/cmd/deja@latest, or trying it without installation using npx @vshulcz/deja-vu "query".

Examples

Once installed, you can immediately start querying your agent's collective memory:

  • Search your history:
    deja "jwt refresh token"
    
    This command searches across all your agent histories for relevant sessions, providing snippets of what was discussed and decided.
  • Understand file changes:
    deja blame <path>
    
    Find out which sessions discussed a specific file, what decisions were made, and why.
  • Get a markdown digest for your prompt:
    deja ctx <query>
    
    This provides a Markdown summary of the best-matching session, ready to be piped directly into an agent's prompt.
  • Find solutions for errors:
    deja fix <error>
    
    Discover what commands or actions were successfully run after encountering a specific error in the past.
  • Identify recurring issues:
    deja friction
    
    See errors that have appeared in three or more separate sessions, helping you identify persistent problems.

Links

For more detailed information, documentation, and to contribute, please visit the official resources:

Related repositories

Similar repositories that may be relevant next.

Declarative Agents: Profile-Driven LLM Agent Runtime in Go

Declarative Agents: Profile-Driven LLM Agent Runtime in Go

September 13, 2026

Declarative Agents by Nokia Bell Labs offers a profile-driven runtime and design patterns for building tool-augmented LLM agents. It allows defining agents, their tools, states, and transitions via YAML profiles, eliminating the need for code changes for workflow alterations. This Go-based framework promotes flexible and dependable agent development.

GoLLM AgentsDeclarative Programming
DeclarAgent: Declarative Runbook Executor for Safe AI Agent Workflows

DeclarAgent: Declarative Runbook Executor for Safe AI Agent Workflows

September 12, 2026

DeclarAgent is an innovative declarative runbook executor specifically designed for AI agents. It enables agents to validate, dry-run, and safely execute multi-step YAML workflows. This tool provides a structured, auditable, and secure way for LLM agents to interact with real CLI workflows, enhancing their operational safety and reliability.

GoAI AgentsAutomation
tunnel-client: Securely Connect Private MCP Servers to OpenAI Services

tunnel-client: Securely Connect Private MCP Servers to OpenAI Services

September 2, 2026

The `tunnel-client` is an OpenAI-developed client that enables secure connections between private or localhost Model Context Protocol (MCP) servers and OpenAI services like ChatGPT, Codex, and AgentKit. It allows developers to integrate their internal MCP servers without exposing them to the public internet, ensuring enhanced security and operational control. This tool is ideal for scenarios requiring secure access from private networks to OpenAI's powerful AI models.

GoOpenAIChatGPT
Agent-Sandbox: Enterprise-Grade Sandbox for AI Agents on Kubernetes

Agent-Sandbox: Enterprise-Grade Sandbox for AI Agents on Kubernetes

August 28, 2026

Agent-Sandbox provides an easy-to-use, enterprise-grade sandbox platform for AI Agents. It allows agents to securely run untrusted LLM-generated code, perform browser and computer use, and deploy websites with multi-session and multi-tenant isolation. This self-hosted solution wraps a robust Kubernetes foundation behind a simple RESTful API, making it accessible for developers.

agentai-sandboxkubernetes-native

Source repository

Open the original repository on GitHub.

8 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️