Skip to content

Memory for VS Code and MCP agents

Neither you nor your AI agents will lose context

SecondCortex records what you open, run, and decide in VS Code, strips secrets on your machine, and turns it into memory any MCP agent can query. Ask why the retry limit dropped to 3 and get the branch, the commit, and the reason.

> search_memory("retry limit")
{
  "file": "processor.ts",
  "branch": "feat/payment-v2",
  "decision": "retry 5 → 3",
  "why": "backoff storm at load",
  "evidence": ["a3f4b2c"]
}
Install free for VS Code ↗

Free and MIT licensed

Backed by

  • Claude for Startups
  • Microsoft for Startups
  • AWS Activate
  • Top 10Microsoft AI Unlocked

[01]The problem

Your agents start every session from zero

The reason behind a line of code lives in a closed tab, a cleared terminal, or a teammate on leave. So you paste context into chat again, and the agent still guesses.

context.diff−3 +3

Before: explain the codebase again at the start of every chat

Before: git blame tells you who changed it, never why

Before: incident triage across three tools and 40 minutes

After: agents call search_memory and get the decision

After: every function carries its branches and reasoning

After: the incident timeline rebuilds itself in 30 seconds


[02]Features

What it remembers, and what you get back

Five things SecondCortex does with the context it captures. All of them read from the same memory.

Hover any function to see why it exists

Decision archaeology reads git history and your captured sessions, then shows the branches you tried, the approach you dropped, and the commit that settled it.

Secrets never reach memory

API keys, JWTs, bearer tokens, and private keys are stripped inside the extension before a snapshot is stored.

Pick up last week's branch in one step

Files, terminal, and git state come back after you approve the plan. A simulator checks for unstashed changes and conflicts first.

Incident triage in 30 seconds

A team timeline of edits, commits, deploys, and alerts replaces 40 minutes of digging across three tools.

Stop pasting context into chat

Claude Code, Cursor, and Copilot call search_memory and get_function_context directly, scoped to your project.

Your code already knows why it looks this way. Now you and your agents never forget it.


[03]How it works

Three steps from keystroke to recall

Capture and scrubbing run inside the extension, so secrets are gone before anything is stored.

  1. [01]

    Capture

    The extension snapshots open files, terminal commands, git state, and diagnostics, debounced so you keep decisions, not keystrokes.

    eventCapture.ts
  2. [02]

    Scrub and store

    The semantic firewall strips secrets on your machine. Clean snapshots are embedded and written to per user memory.

    semanticFirewall.ts
  3. [03]

    Recall

    Ask in VS Code or from any MCP agent. The retriever ranks your history and your team's by meaning and returns the decision with its evidence.

    retriever.py

Works with Claude Code · Cursor · GitHub Copilot · Codex · PicoClaw


[04]Live demo

Ask your second cortex

This demo runs on five sample memories from a two person team. Click a memory or ask a question in plain English.

memory / team namespace● 5 snapshots
Try

retriever · awaiting query

Click a memory on the left or ask a question. Answers come from personal and team memory, with the evidence attached.


[05]Proof

The numbers so far

  • 41,536Snapshots indexedMemory store
  • 1,536dEmbedding dimensionsVector space
  • 15+Tools for agentsMCP server
  • ~2sTypical retrievalQuery latency
  • Top 10Overall finishMicrosoft AI Unlocked

[06]FAQ

Questions developers ask first

What does SecondCortex capture?

Open files, the active file, terminal commands, git branch and diff state, code comments, diagnostics, and function signatures. Snapshots are debounced, so you get a history of decisions rather than a keystroke log.

Do my code or my secrets leave my machine?

The semantic firewall runs inside the extension and strips API keys, JWTs, bearer tokens, and private keys before anything is stored. If you want zero network calls, run the fully local stack with ChromaDB and Ollama from the offline setup guide.

Which AI agents can use the memory?

Any MCP client. Claude Code, Cursor, GitHub Copilot, and Codex connect to the SecondCortex MCP server and call tools such as search_memory and get_function_context.

How is this different from git blame or git log?

Git records what changed. SecondCortex also keeps what surrounded the change: the files you had open, the commands you ran, the branches you tried and abandoned, and the comments you wrote while deciding.

Can it change my workspace without asking?

No. A restore starts as a plan you approve. Before anything runs, the simulator checks for unstashed changes, branch conflicts, and running processes, and it blocks the restore if a risk is unresolved.

Does it work offline?

Yes. The offline setup guide runs storage on ChromaDB and models on Ollama, both on your machine, with no cloud dependency. Read the offline setup guide →

How much does it cost?

Nothing. The extension is free on the VS Code Marketplace and the source is MIT licensed on GitHub. View the source on GitHub →

Does it work for teams?

Team Cortex shares decisions across developers with team scoped isolation. The hosted team backend is offline while we rebuild it, and you can self host the backend from the repository today.

Build with context. Ship with confidence.

Install the extension and SecondCortex starts building memory from your next session.

Install free for VS Code ↗
  • Free
  • MIT licensed
  • Secrets stripped locally
  • Runs fully offline

Team Cortex

Backend offline
Team Cortex is unavailable
The SecondCortex API is not deployed right now. Use the VS Code extension locally — it captures context on your machine with no cloud backend required.
Install ExtensionOffline SetupBack to Home