ContextFabric GitHub
DEV Gemma 4 Challenge Build

One private memory across every AI tool.

ContextFabric turns your local notes, repos, exports, and decisions into a permissioned memory graph. Gemma 4 runs on your device to extract context, resolve contradictions, and assemble app-specific briefs for Claude, ChatGPT, Cursor, Perplexity, and more.

0cloud memory servers
5typed graph node kinds
127.0.0.1local-only daemon
ContextFabric

Gemma connected

What should Claude know about my project?

Context loaded from approved local memory. Project: ContextFabric is a private AI memory layer. Decision: Gemma 4 extracts structured nodes on-device. Preference: cite source memories when making project claims.
README.mdPROMPTS.mdGit repo
New memory node

type: decision
confidence: 0.91
source: local repo

Permission token issuedscope: project.context / 1h
Runs locally with OllamaEncrypted SQLite graphPermissioned context tokensBrowser extension bridge

How It Works

A memory operating system, not another chatbot wrapper.

ContextFabric uses Gemma 4 for the hard parts: extraction, conflict detection, source-grounded answers, and app-aware context assembly.

1

Import real sources

Folders, GitHub repos, ChatGPT exports, Claude exports, markdown, PDFs, notes, and project docs.

2

Gemma structures memory

Messy text becomes project, style, decision, preference, and person nodes with confidence scores.

3

You approve access

Apps request scoped context. Grant one hour, this session, always, or deny.

4

Context follows you

The extension injects approved context into AI tools without a cloud memory database.

Why Gemma 4

The model is the private reasoning engine.

Personal context is too sensitive to become another retention moat. ContextFabric uses Gemma 4 locally because the model can read long, messy user-owned material and turn it into structured memory without sending that memory to somebody else’s server.

  • Extracts typed memory nodes with confidence scores.
  • Detects contradictions before new memories are accepted.
  • Assembles concise payloads for Claude, ChatGPT, Cursor, and generic tools.
  • Works offline after model install, proving the privacy claim.

Built For Judges To Verify

Clone it, run it, test the claim.

The repo includes a one-command local setup, a browser extension, a screenshot-ready daemon UI, tests for extraction and extension flows, and docs explaining exactly what Gemma 4 does.

git clone https://github.com/Boweii22/ContextFabric.git
cd ContextFabric
npm run start

# Open the local demo UI:
http://127.0.0.1:7749/ui

Download

Run ContextFabric on your own machine.

Install ContextFabric like a normal app, add the Chrome extension, and let your AI tools use approved local memory. Developers and judges can still clone the source if they want to inspect everything.

Download for Windows

Get the packaged desktop app. Unzip it, open ContextFabric, and keep your AI memory on your own machine.

Windows build Version v0.1.0 Local-first desktop app Download for Windows

Install Chrome extension

Add the browser bridge so Claude, ChatGPT, Gemini, Perplexity, Cursor, and other AI tools can receive approved context.

Chrome Web Store ContextFabric Bridge One-click install after review Install extension

Developer setup

For judges, builders, and open-source reviewers who want to run the full project from source.

git clone https://github.com/Boweii22/ContextFabric.git cd ContextFabric npm run start Setup guide