v0.1.4 - Apache 2.0 - runs locally

Your agent already knows
what you were working on.

ContextOS is an MCP server that gives AI coding agents persistent memory across sessions. Stop re-explaining your codebase every morning.

Install in 30 seconds → View on GitHub
claude - contextos-test
you → What was I working on?

workspace contextos-test · branch master · 1 uncommitted file
decision outbox pattern for Kafka writes (importance 0.8)
last seen 3 commits ago · 19 days

No tool call made. Context injected at session start.
How it works

Memory that works before you ask.

ContextOS injects your workspace context into every Claude Code session automatically. The agent knows the state of your project before you type a word.

01 - Store

Save what matters

Tell ContextOS about decisions, gotchas, todos, and notes during your session. It stores them with tags, importance scores, and timestamps.

02 - Inject

Auto-hydration on connect

When Claude Code connects, ContextOS assembles the current workspace context and injects it via the MCP initialize handshake. No tool call needed.

03 - Recall

Hybrid search when you need more

Use the recall tool for deeper digs. Vector search plus BM25, merged with Reciprocal Rank Fusion and reranked by recency and importance.

What's included

Everything runs locally.

No cloud, no API keys, no telemetry. One binary.

🧠

Bundled ONNX embeddings

all-MiniLM-L6-v2 ships inside the binary. No API key required. Also supports Ollama and OpenAI if you prefer.

🔍

Hybrid search

Vector search + BM25 keyword search, merged via Reciprocal Rank Fusion, reranked by recency and importance.

Auto-hydration

Context injected on every MCP initialize. The agent knows your workspace before the first message.

🗄️

Local SQLite per workspace

One database per repo root, stored at ~/.contextos/. Nothing leaves your machine.

🔀

Git-aware context

Current branch, recent commits, and uncommitted file count are included in the injected context automatically.

📦

Self-contained binaries

Windows, Linux, macOS Intel and Apple Silicon. No .NET install required. 118 MB, one file.

One command.
Then open Claude Code.

The installer downloads the right binary, registers it with Claude Code, and runs a selftest to confirm everything works.

  • Downloads the right binary for your platform
  • Extracts to a permanent location
  • Registers with Claude Code automatically
  • Runs a selftest to confirm it works
  • No admin rights required
curl -fsSL https://raw.githubusercontent.com/
aftabkh4n/contextos/main/install.sh | bash

Then open Claude Code in any git repo and ask: "What was I working on?"

Manual install → View source →
Honest about v0.1.4

What it isn't yet.

Known limitations

View on GitHub →

Apache 2.0 · Built by Aftab Bashir