Supaknowledge

Your agents learn on the job. Your team decides what sticks.

Supaknowledge is an open-source knowledge factory built on Supabase. Agents read your team's knowledge over MCP and flag what's wrong. A curator drafts the fix with citations, a person approves it, and every agent gets the fix.

Try the demo
npm i -g @supaknowledge/cli

The loop

Knowledge stays correct because the agents that use it report what's wrong, and people decide what changes.

  1. 01

    Agents flag what's wrong

    Agents search and read knowledge through the MCP server. When a query fails or a fact is missing, they call flag_knowledge with what they saw.

    › search_knowledge("monthly revenue")
    › run_query(select sum(revenue_usd) …)
    ✗ column "revenue_usd" does not exist
    › flag_knowledge("incorrect", "renamed to revenue_usd_net")
  2. 02

    It lands in Studio, live

    The flag shows up in the review inbox as it happens, with the agent, the concept and a suggested fix.

    Studio inbox with a new flag: column revenue_usd does not exist, renamed to revenue_usd_net, from revenue-report-agent
  3. 03

    The curator drafts a fix

    A background curator turns flags, agent traces and sources into a proposal: a diff with a citation for every change.

    A curator proposal: a split diff that renames revenue_usd to revenue_usd_net and cites the flag
  4. 04

    A person approves it

    Review it like a pull request. Every change becomes a revision, verified by the person who approved it.

    The proposal approved by Fiona Park, with the message: Applied. The knowledge is updated and verified by you.
  5. 05

    Every agent gets the fix

    The next search returns the reviewed revision, for every agent connected to the space.

    › search_knowledge("monthly revenue")
      data/bigquery/revenue  revision 2, human reviewed
    › run_query(select sum(revenue_usd_net) …)
    ✓ query succeeded

Studio

The review app that ships with Supaknowledge. It runs on your Supabase project and shows each person only what row level security lets them see.

New in 0.1

  • Remote MCP serverClaude Code, Cursor and any MCP client sign in with OAuth 2.1 through Supabase Auth. Headless agents use API keys.
  • CuratorTurns flags, agent traces and sources into proposals with a citation for every change. Bring your own model.
  • Live review inboxFlags and proposals appear as they happen, and you see who else is reviewing.
  • Knowledge graphConcepts, links and citations, filtered by kind, open flags and staleness.
  • AskQuestion an agent that uses the same tools and permissions as yours, then correct it or flag the answer.
  • Schema driftSource syncs compare database snapshots and flag knowledge that mentions a dropped or renamed column.
  • Supabase MCP serverErrors from execute_sql and apply_migration become traces the curator learns from.
  • EvalsRun the same agent on a fixed task set before and after a curator run and compare.
  • Monthly recapWhat changed, who flagged it and how long fixes took, ready to paste into Slack.
  • kf deploy --loginSign in with Supabase, pick or create a project, and deploy everything in one command.
Full changelog

Built entirely on Supabase

Every part runs on a Supabase primitive, so it works with supabase start on a laptop or on your own Supabase project.

PartSupabase
Knowledge, revisions, flags, proposals, audit logPostgres with row level security
Semantic and keyword searchpgvector and full-text search in one SQL function
Embeddings, no API keygte-small in the Edge Runtime
Agent interfaceRemote MCP server on an Edge Function
Sign-in for people and MCP clientsAuth, including the OAuth 2.1 server
CuratorQueues, Cron and an Edge Function
Source connectorsEdge Functions, Storage, and Vault for tokens
Live inbox and review presenceRealtime
Deploy from the CLIManagement API and OAuth for integrations
Architecture

Get started

Try the demo

Browse, search and flag the fictional Acme knowledge without an account, or connect your MCP client to it.

Open the demo

Deploy to your Supabase project

Sign in with Supabase, pick or create a project, and kf runs the migrations, secrets and Edge Functions.

$ git clone https://github.com/alvarofc/supaknowledge
$ cd supaknowledge && npm install && npm run build:cli
$ npx kf deploy --login
Deploy guide