Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

775 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doppl

Cortex

Cortex

Your personal operating model for AI: a local, cited model of how you work.

Every AI tool runs on a foundation model of the world. Cortex compiles a model of you and serves it to them. It turns your notes and AI-chat history into a typed, layered, cited model of your voice, preferences, decisions, and the graph of your world, then feeds it to Claude, ChatGPT, Cursor, and any MCP client. Your tools stop starting from zero and start reasoning with your judgment loaded in, on hardware you own.


University of Waterloo Faculty of Engineering Academic Research Sponsored by Composio MIT License


Download for macOS


macOS 13+ Notarized SwiftUI FastAPI SQLite + sqlite-vec MCP Works with Claude Local-first


How the operating model works

Approved memory goes in; a calibrated model of how you operate comes out. Five systems make that real:

  • It dreams. A bounded sleep-time consolidation pass runs while you are away: it resolves only contradictions that clear deterministic safety rules (your source memory stays authoritative and every decision is logged), and pre-warms verified hot-context packs so the next agent request is served from a checked cache, not a cold build.
  • It recalls associatively. Retrieval walks a trust-aware knowledge graph with bounded multi-hop recall, including a personalized-PageRank mode that surfaces what is connected to the query, not just lexically near it. Hops are budgeted and carry provenance.
  • It packs context as a protocol. The Contextual Memory Protocol fits a model-calibrated SMP envelope with a token-aware knapsack, then runs a per-session delta channel that never re-sends what an agent already holds (enforced invariants, measured savings). Retrieval fuses BM25, sqlite-vec KNN, temporal, and intent, reranks on-device, and cites or abstains.
  • It models judgment. Deterministic extractors and an LLM condenser build seven typed layers (voice, preferences, decisions, facts, episodic, entities, topics) into a whole-person map. Agents call GET /v1/agent-adaptation to load your calibration brief before they work. That is the Doppl thesis: a working model of how you operate, so delegation stops meaning re-explanation.
  • It compounds as an asset you own. Packs are sha256-addressed and replayable. The model lives as plain Markdown plus a rebuildable index on your Mac, vendor-portable, inspectable, and erasable in one act. Switch assistants and your model comes with you.

The loop

① Connect ② Review ③ Ask ④ Control
Bring in notes, an AI-chat export, or sign in and import your history Approve what's useful, archive the noise — memory stays trustworthy Ask with cited answers, or let a connected AI tool retrieve what you approved Keep reads, saves, exports, and every connection visible and revocable

How it works

flowchart LR
    subgraph SOURCES["Your sources"]
      A1["Local notes / Obsidian"]
      A2["ChatGPT · Claude · Perplexity · Notion"]
      A3["Files & exports"]
    end
    subgraph CORTEX["Cortex: your operating model, on your Mac"]
      B1["Review inbox<br/>(you approve)"]
      B2["Layered, cited memory<br/>SQLite + sqlite-vec"]
      B4["Profile + knowledge graph<br/>(how you work)"]
      B3["Context Assembly Engine<br/>(CMP)"]
    end
    subgraph TOOLS["Your AI tools"]
      C1["Claude Desktop · Cursor<br/>Windsurf · Zed · any MCP client"]
    end
    SOURCES --> B1 --> B2 --> B4 --> B3 --> C1
    C1 -. "cited retrieval" .-> B3
Loading

A native SwiftUI app bundles a local FastAPI engine on 127.0.0.1:8766. Ingested sources become typed, layered memory in a SQLite store (full-text + sqlite-vec vectors) that mirrors to a human-readable, Obsidian-style vault you own. When a tool asks, the Contextual Memory Protocol packs the smallest cited, model-calibrated context that answers the task.

Also inside

  • One-click connections. Write-and-relaunch MCP config for desktop tools, session-import for the web chat apps, drag-and-drop for exports. See docs/MCP_INTEGRATIONS.md.
  • Trust controls. Scoped, revocable per-tool permissions with redaction on by default. See docs/TRUST_CONTROLS.md.
  • Optional cloud sync. An end-to-end-encryption design for multi-device sync, opt-in and account-based; data stays local unless you turn it on. See docs/ACCOUNTS_ENCRYPTION_DESIGN.md.

Install

  1. Download the latest DMG → (macOS 13 or later).
  2. Open the DMG and drag Cortex into Applications.
  3. Launch it. It's Developer ID signed and notarized by Apple, so it opens with no warning.
  4. Point Cortex at a notes folder or import your AI chats, review your first memories, then connect a tool.

Cortex checks for updates on its own, so once you're on a recent build, new releases arrive automatically.

Build from source

# macOS app (SwiftUI)
./macos/build.sh

# Backend engine + test suite (Python 3.11+)
python3 -m venv .venv && source .venv/bin/activate
pip install -r backend/runtime-requirements.txt
python3 -m pytest backend/tests

# Retrieval-quality gate (deterministic, offline)
python3 scripts/retrieval_eval.py

See SETUP.md for the full development setup and docs/ARCHITECTURE.md for how the pieces fit together.

Documentation

Area Doc
System architecture docs/ARCHITECTURE.md
Contextual Memory Protocol docs/CMP_PROTOCOL.md · docs/PORTABLE_MEMORY_PROTOCOL_V2.md
The vault format you own docs/LOCAL_VAULT_FORMAT.md
Connecting AI tools (MCP) docs/MCP_INTEGRATIONS.md
Importing your sources docs/SOURCE_IMPORTS.md
Trust & privacy controls docs/TRUST_CONTROLS.md
Encryption & sync design docs/ACCOUNTS_ENCRYPTION_DESIGN.md · docs/CXE1_WIRE_FORMAT.md
Install & auto-updates docs/INSTALLER_AND_UPDATES.md

Privacy

Cortex is local-first: the default experience needs no account and no cloud. Cortex reads a source only after you connect it, records nothing ambient (no screen, no microphone), and shares context with an AI tool only within the scoped permission you grant. The optional Cortex Cloud tier (for multi-device sync) is described honestly in the app and on the site. Questions: sdoven@uwaterloo.ca or vamika_singhal@berkeley.edu.

Affiliations & sponsor

University of Waterloo
Built at the University of Waterloo
Faculty of Engineering
Research
An applied research project on
local-first personal operating models
Composio
Proudly sponsored by
Composio

License

Cortex is released under the MIT License, free to use, modify, and build on. © 2026 Doppl.


Cortex is your personal operating model for AI: the cited, local, portable model of how you work, that dreams while you rest and calibrates every tool you use.

The more you bring in, the more your tools act the way you would.

About

Cortex local-first personal memory app

Resources

Stars

703 stars

Watchers

25 watching

Forks

Releases

Packages

Contributors

Languages