GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ContextCake/context-cake: ContextCake — federated knowledge for your AI harness.

BranchesTags
Open more actions menu

Latest commit

 

History

183 Commits
183 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
apps
apps
 
 
assets/brand
assets/brand
 
 
docs
docs
 
 
examples
examples
 
 
packages
packages
 
 
scripts
scripts
 
 
specs
specs
 
 
supabase
supabase
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.mcp.json
.mcp.json
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DCO
DCO
 
 
LICENSE
LICENSE
 
 
PRODUCT.md
PRODUCT.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
classify-context.mjs
classify-context.mjs
 
 
ingest.mjs
ingest.mjs
 
 
mcp-server.mjs
mcp-server.mjs
 
 
pack.mjs
pack.mjs
 
 
package.json
package.json
 
 
profile.mjs
profile.mjs
 
 
promote.mjs
promote.mjs
 
 
resolver.mjs
resolver.mjs
 
 
setup-knowledge.sh
setup-knowledge.sh
 
 
team-activity.mjs
team-activity.mjs
 
 
write.mjs
write.mjs
 
 

Repository files navigation

ContextCake, three cascading layers

ContextCake

Project context for AI tools, with its sources, dates and disagreements intact.

CI status Node.js 22 or later MIT license Model Context Protocol ready

Download app · Website · Live demo · Documentation

The ContextCake console resolving a layered decision: clicking the conflicting Primary database card opens the resolved answer, showing each section's source layer (personal, team, company) and the overridden company standard

Teams don't have one source of truth. They have a company policy, a team decision, a runbook and the personal note that explains the exception. Flatten those into one wiki and you lose both the detail and the disagreement. ContextCake keeps each scope in its own source and resolves them when an agent asks, so the answer comes back with where each part came from, how old it is, and who disagrees.

How it resolves

Personal · level 3   drafts, notes, local overrides
Team     · level 2   runbooks, decisions, system docs
Company  · level 0   organization-wide knowledge
                ↓ resolved section by section at read time
        one sourced answer, with dissent and dates attached
decisions/primary-db
  Engine   → SingleStore                  (team, updated 2026-05-12)
             company says Postgres        (company, updated 2026-06-01, newer)
  Backups  → Nightly snapshots            (inherited from company)

A team can override the database engine and still inherit the company backup policy. The higher layer wins each section, and the losing value stays visible with its date.

Quick start

git clone https://github.com/ContextCake/context-cake.git && cd context-cake
node resolver.mjs --manifest apps/playground/manifest.json --concept decisions/primary-db
npm run playground   # visual explorer at http://127.0.0.1:8790

Needs Node 22+. The source checkout needs no npm install: the core uses only Node built-ins. Configured remote sources may use the network. The signed Mac app and Linux package walk you through adding sources and connecting an AI client. For the standalone npm CLI, use the current installation instructions.

Connect an agent

claude mcp add contextcake -- node /ABSOLUTE/PATH/context-cake/mcp-server.mjs \
  --manifest /ABSOLUTE/PATH/context-cake/apps/playground/manifest.json

Agents get read tools (search, read_file, list_concepts, get_links, find_captures, whats_new). With --capture, they can also stage notes that a person approves before they're shared. See the MCP tools reference.

Caution

A manifest is a trust boundary. An mcp source can start the command it names with your user privileges. Only run manifests you trust. See the trust-boundary guide.

Sources

Kind What becomes a layer
files Any folder of Markdown or text: repo docs, an Obsidian vault, a wiki export
github A GitHub repo read over the API, no clone: CLAUDE.md, AGENTS.md, README.md, docs/**
okf-local A local OKF bundle with typed, dated frontmatter
mcp A trusted foreign MCP graph, translated into the same view

Design decisions

  • Storage stays separate; reading is unified. Each layer keeps its own source and permissions: repository membership for Git-backed layers, filesystem permissions for folders, and provider permissions for remote sources. No central graph database or per-node permission system.
  • Resolve sections, not documents. Replacing whole documents forces a team to copy every company policy it doesn't disagree with. Resolving by section lets it override only what it means to.
  • Show disagreement instead of hiding it. The first design merged silently and tracked staleness with content hashes and a shadow-detection subsystem. In June 2026 I cut all of that. Now each conflicting section carries the other layers' values and their last-updated dates, and a reader can see at a glance when the company version is newer than the team override. Authored updated dates still rely on authors keeping them accurate; git-backed sources without them use author history. If that turns out to bite, the fix is a read-time content fingerprint, kept as an alert and never as a resolution rule. Design notes.
  • A dependency-free core. The resolver, adapters and MCP server ship with no npm dependencies, so the part with access to your knowledge has no runtime npm dependency tree to install. Its vendored tokenizer assets still belong in the supply-chain review.

Repo layout

Path What it is
packages/core/ Resolver, source adapters, MCP server and write path (architecture)
apps/playground/ Local explorer for a cascade
apps/console/ React console for inspecting a resolved graph
apps/desktop/ Mac and Linux apps around the same engine, with native diagnostics and optional local Grafana on Mac
apps/site/ Website and documentation

Run npm test for the core. CONTRIBUTING.md has the checks for each app.

More

  • Concepts: layers, merge rules, provenance, conflicts
  • Capture and promotion: turning repo activity into reviewed knowledge
  • Team sync: a shared live layer for agent captures
  • Threat model and network egress

Contributing

Read CONTRIBUTING.md, keep packages/core/ dependency-free, and sign off commits with git commit -s (DCO, no CLA). Report security issues through private vulnerability reporting.

License

MIT

About

ContextCake — federated knowledge for your AI harness.

contextcake.com

Topics

aiai-agentsai-toolscascadeclaudeclaude-codeclicontextcontext-engineeringgitharnessknowledge-managementmcpteam-knowledge

Resources

Readme
MIT license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.