kepta
Allows importing and exporting Obsidian vaults, converting Markdown notes with frontmatter and [[wiki links]] into KEPTA's knowledge graph.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π¬ Watch your knowledge grow
Every entry is a node, every connection an edge β real connections drawn solid, mere similarity dashed (tests/components/KnowledgeGraph.kanten-strich.test.tsx:121 counts the strokes in a frame without a similarity call, :132 counts them with one, and both read the painted frame, not the rule). The time slider replays eighteen months of a fictional advisory firm, and because every note carries a validity window, past moments show exactly what was true then (tests/engine.test.ts:260 queries the same store at a past day: the note written before it comes back, the one written after it does not). The two views are the same data: Force shows the landscape of topics, Tree shows the order in it. Both films were recorded on 18 September 2026 with npm run screenshots on an invented demo corpus (scripts/screenshots.mjs records them, scripts/demo-korpus.mjs builds the corpus) β no real data, no real people. Their build number cannot be recovered from this repository: its history starts on 1 October (281f5a1), two weeks after the recording, so the film shows an older surface than the one described here. The recorded stand of every picture lives in docs/bilder-manifest.json, and node scripts/pruefe-bild.mjs fails the README when a picture is older than the surface it illustrates.
The twelve pictures below are from 7 October, version 3.1.2, stand 3b7f33f β before the design-system wave that is landing now, and before the tier and licence wording in this file. They show the product's structure, not its current face. A re-shoot on the final surface is queued.
Today β since your last visit, and what needs a look | Activity β AI apps at work, live |
|
|
Dossier β a client on one page | Audit log β sealed and checkable |
|
|
Privacy shield β what a cloud AI would see | Connect your AI apps |
|
|
Index, grouped by kind β with a private note | Search stays ranked |
|
|
Editor β kind, | Settings β the system status board |
|
|
Force β the physics layout | Tree β the dendrogram |
|
|
The Force layout separates a dense base completely once it settles: 0 intersecting disc pairs at rest at 400, at 1 500 and at 3 000 notes, asserted in tests/lib/graphLayout.test.ts:2441-2486 β re-check with npx vitest run tests/lib/graphLayout.test.ts. That test is a field without a browser; the delivered view has its own number, measured 4 November at 20:49-20:59 MEZ on the installed 3.2.148 with node scripts/fps-laeufer.mjs (docs/belege/tag-0411/fps-3000-148-2049.log.txt, docs/belege/tag-0411/fps-3000-148-2052.log.txt, docs/belege/tag-0411/fps-3000-148-2054.log.txt, docs/belege/tag-0411/fps-400-148-2057.log.txt, docs/belege/tag-0411/fps-1500-148-2059.log.txt): 0 pairs at 400 (418 discs), 0 at 1 500 (528 discs) and 0 at 3 000 in three separate runs (621, 646 and 625 discs, deepest cut 0 world units each); an hour earlier the same instrument had reported, measuring the then-delivered 3.2.145, 1 pair at 3 000 (707 discs, deepest cut 11 world units) in docs/belege/tag-0411/fps-3000-1610.log.txt, and the difference between those two sentences is the rest-collision pass, which now keeps working for up to three seconds after the field comes to rest. The machine state printed in the same artefacts says why no millisecond there is claimed as a verdict (docs/belege/tag-0411/fps-3000-148-2049.log.txt, recorded by scripts/fps-laeufer.mjs). While it cools at 3 000 notes a few pairs still touch for a moment; tests/lib/graphLayout.test.ts:2483-2485 pins that funnel at β€ 40 pairs by step 250, β€ 40 again by step 310 and zero by step 380, so no sentence here says βnever overlaps" without naming the moment. What a frame costs at each size is timed in docs/graph-kosten.md, not claimed in this caption β a millisecond number is only worth the quiet machine that produced it (scripts/fps-laeufer.mjs and docs/belege/tag-0411/fps-3000-148-2049.log.txt). The Tree reads out the hierarchy: root β kind of knowledge β entity or tag group β note. The third view, Semantic, places the same notes by what their texts mean β no screenshot of it here yet (tests/rest-semantik.test.ts:70 and scripts/pruefe-bild.mjs).
Knowledge that has a date
Every memory carries a validity window, so the graph can be replayed: pull the time slider back, and every note that was not true yet at that moment dims β not deleted, simply not true yet (the active-set rule is held by tests/lib/graphTime.test.ts:102 β at a past moment only what already existed is admitted β and the slider's pull back into the past by tests/components/KnowledgeGraph.leiste.test.tsx:183, which reads the date field and refuses any stand beyond today). The same question works in search (asOf in the HTTP API and MCP) and in the editor, where every note shows its valid from / valid until (the HTTP leg is held by tests/server.test.ts:1436 β a note written after the asked moment stays out, the one before comes back β the MCP leg by tests/mcp-paritaet.test.ts:128, where today finds the note and 1970 does not, and the editor's two date fields are set and saved in tests/components/MemoryEditor.test.tsx:253). Firms use this for rates, mandates, contacts and anything that legally changes.
Related MCP server: memkeeper
π New here? Start with this
The problem. You use ChatGPT, Claude or something similar. You explain your project, your client, the way you like things done. The next day you open a fresh chat and it knows none of it (tests/mcp-rest-paritaet.test.ts:66 and tests/mcp-rest-paritaet.test.ts:80 hold the persistent store across sessions). So you explain it again. And again. Meanwhile the platform quietly keeps what you told it β in their cloud, tied to their service, on their terms.
What K3PTA is. A small program that runs on your own computer and remembers those things for you. Your assistants read it and write back to it through MCP β the open protocol that Claude Desktop, Cursor, Gemini CLI, Cline, Codex and many others speak. The knowledge lives in one encrypted file on your machine: since 2.11, AES-256 at rest, the key in your system keychain. Not a cloud. Not a service. A file β like a document you own.
What that looks like on an ordinary day. You tell your assistant to remember that your client bills quarterly. Two weeks later, in a brand-new chat with a different assistant, the answer is already right. You drop a PDF into a folder and your assistant can quote from it. A client changes address β and the old one stops coming back, because the new note supersedes the old instead of piling on top.
Is it for you?
You use AI assistants daily and keep repeating yourself β yes.
You handle client data, patient data or anything confidential β yes, especially you. This is the part the platforms cannot offer.
You are looking for a notes app to read and write by hand β probably not. K3PTA is built so your assistant uses it β and you supervise.
Do I need to be a developer?
To use the app β no. Download the file for your system, open it, done. It is an ordinary window: a list, a search box, a settings page. Which file do I need? tells you exactly which one to take.
To connect it to your assistants β one click. K3PTA finds the AI apps already installed on the computer and adds itself to their MCP settings. If your app is not on the list, the app shows you the exact block to paste β and anything that speaks HTTP has the REST API.
For the smarter search β optional. K3PTA searches perfectly well out of the box. Install Ollama β one free download β and it will additionally find notes that mean the same thing in different words.
Word | What it means here |
Agent | An AI program that can use tools instead of only answering β Claude Desktop, Cursor or Gemini CLI, for instance ( |
MCP | The open protocol such programs use to talk to tools. KEPTA speaks it, so your assistants can read and write your notes. |
SQLite | A database that is simply one file on your disk. Nothing to run, nothing to log into; you can copy it like a photo. |
Encryption at rest | The file is stored encrypted (AES-256, SQLCipher format). Whoever holds only the file holds nothing readable ( |
Keychain | Where your operating system keeps secrets. K3PTA stores the database key there, so there is no password to type ( |
Embedding / vector | Text turned into numbers, so a computer can tell that "car workshop" and "garage" mean nearly the same thing. |
BM25 / full text | Classic keyword search: it finds the words you actually typed. |
Knowledge graph | Your notes linked to one another, like |
RRF | The formula that merges the three searches above into one ranking. |
Local-first | Everything happens on your machine. No upload, no account, no telemetry (every foreign address in the shipped code is a user-chosen provider or a named exception β |
π― What it's for
One brain for every AI tool (
tests/mcp-rest-paritaet.test.ts:66andtests/mcp-rest-paritaet.test.ts:80). Claude Desktop, Cursor, Gemini CLI, Cline, Codex β anything that speaks MCP shares the same encrypted knowledge base, plus anything that only speaks HTTP through the REST API: one and the same store behind both doors, held bytests/mcp-rest-paritaet.test.ts:66(an agent writes withmemory_save, then the HTTP list and the HTTP search return that note) and:80(the window writes withPOST /api/memories, thenmemory_searchfinds it) β and kept honest by:93(a second, separate store must not show the note) and:116(two stores opened on one path must). What one assistant learns, the next already knows (tests/mcp-rest-paritaet.test.ts:66and:80, both directions, one store). The encrypted-at-rest half of that sentence is a different claim with its own cases:tests/nebendateien.test.ts:22puts nothing in plaintext on the plate and:41reads nothing back under a wrong key.Keep agents sharp instead of letting them rot. Every memory carries a type and a confidence score β the type is the rules' answer when nobody set one, never a silent fall-back to fact, and an unset confidence reads as 1 (
tests/core/notiz-drei-felder.test.ts:53,:67). The validity window is the one field a note really can lack: the row then holds null, and the reader decides β no start means the note's own creation date, no end means it never expires (:75reads both nulls back,:87and:121walk the time travel across that inferred start,:102holds an open end against a flagged one). Contradictions supersede each other and expired facts are marked, not silently served (tests/components/MemoryCard.test.tsx:47and:52read both marks off the rendered card,tests/engine.test.ts:268off the search hit)A second brain found by meaning. Ask "what do I cook with pasta" and the carbonara recipe comes back β once
ollama pull nomic-embed-texthas run. Without an embedding model, search stays lexical and still works. Measured caveat, September 2026, re-measured across the language border on 2026-11-03: that example works in English and does not work in German. On a four-note check (npm run embed:sprachtest,scripts/embed-sprachtest.ts, held bytests/embeddings.test.ts:298for the four bilingual note-and-question pairs and rank-one cosine scoring onnomic-embed-text) the default model answers 4 of 4 English paraphrase questions and 1 of 4 of the same questions translated into German. The implementation is not at fault β normalised cosine, 768 dimensions β the default model is English-centric. And switching the model does not fix it:bge-m3, the multilingual model this file used to recommend, answered 3 of 15 English questions over the German test corpus where the default model answers 4 of 15 (docs/belege/tag-0311/sprachuebergriff-bge-m3-1406.log.txt,docs/belege/tag-0311/sprachuebergriff-nomic-1406.log.txt), and it embeds German notes worse in the same run β 46.7 % against 73.3 % Hit@1 on the vector leg alone. The honest position is therefore: search in the language your notes are written in, and treat a question in another language as a lexical problem. That gap is measured, named, and open. Changing the default would also mean re-embedding every stored note, because each chunk is keyed to the model that produced it (tests/store.test.ts:129selects every chunk with a mismatched model for re-embedding,tests/engine.test.ts:115keeps foreign-model chunks out of vector scoring until they are re-embedded, andnpm run eval:sprachereruns both sides, held bytests/konkurrenz-sprachstufen.test.ts:93).Capture without friction. Drag in files (PDF/MD/TXT), clip URLs, watch an inbox folder, save chat answers β or let K3PTA read the documents already on your computer: opt-in, with a preview of exactly what would be imported before a single file is opened. Keys, credentials, browser profiles, keychains and system folders are never read, and that cannot be switched off (
tests/scan/regeln.test.tstries to open the barrier with a widened file-type list and is refused) β because an imported note is readable by every agent you connect over MCP.Obsidian bridge. Vault import and export (Markdown + frontmatter);
[[wiki links]]become graph edges.Private, provably. Everything lives in
~/.kepta/, encrypted on disk, no account, no telemetry (no unchosen foreign address travels in the shipped code βtests/keine-telemetrie.test.ts:73β and the licence route answers nothing, read or write,tests/keine-grenzen.test.ts:102). Every change to the knowledge base β and every call through the MCP door, its searches included β is written to a tamper-evident audit log you can check and export (tests/kette-deckt-nur-schreibwege.test.ts:55writes through HTTP and finds the entry,:72searches through the MCP door and finds the chain written). A plain HTTP read leaves no chain entry (:62): the log records what was done to your memory, not every glance.Research-grade knowledge graph that stays legible at thousands of nodes, duplicate review that shows you the pairs instead of just counting them, and a trash can with undo.
One-click assistant setup. Connect your AI apps under Settings β Connect AI apps using the MCP server bundled inside
K3PTA.app(tests/lib/einrichtung.test.ts:42), or talk locally viaPOST /mcp(protocol2026-07-28, 8 tools) and the HTTP API (tests/mcp.test.ts:58).
π§© Every feature
Create, edit and delete notes β trash instead of hard delete, with restore
Memory types:
semantic(facts),episodic(events),procedural(how-to),reference(imported documents). Assigned by rule when the caller says nothing β with a stated reason like "3 numbered steps found". Rules, not a model: they run offline, they are readable, and they are tested. Existing notes can be sorted afterwards from Settings β Data, with a preview firstScope:
user,agent,sessionβ separates who a memory belongs toPrivate notes β one switch in the editor: a private note is never shown to an AI app and never sent to a cloud model β in the app (
tests/mcp.test.tsrefuses it over MCP even when an agent asks by scope;tests/enterprise-api.test.tsreads the outbound cloud prompt and finds the note gone, counted asprivateNotes: 1) and in the source-available core, whose own MCP suite carries the same floor (tests/mcp.test.tsin DamianTodorovic/kepta: private notes, their graph edges, their duplicates and their pointers stay invisible to agents)Confidence 0β1, free-form tags, automatically extracted entities
Temporal validity:
valid_from/valid_to. Expired entries are marked, never quietly hidden (tests/engine.test.ts:78-83asks for an expired note, gets it back withexpired: true, and sees it ranked below the fresh one rather than missing)Supersede chains (
superseded_by): contradictions displace each other and the history survivesFiles by drag and drop: PDF, MD, TXT, JSON β chunked at 2000 characters. PDF text comes from pdf.js with the character maps for embedded fonts (shipped with the app, served locally), so a form reads as letters rather than glyph names. Files imported with an older extraction can be read again under Settings β Data β Re-read imported files β it counts first and writes only after you confirm (
tests/server.test.ts:556runs a dry preview without writing and applies the replacement only whenapply: trueis sent)URL clipper with SSRF protection: 16 literal notations refused before a byte is fetched β
tests/server.test.ts:1022holds the five IPv4 forms (decimal, hex, octal, IPv4-mapped IPv6, dotted with a port) andtests/server.test.ts:1031holds eleven more carried inside IPv6 addresses, including64:ff9b::7f00:1and2002:7f00:1::, which embed 127.0.0.1 in a form the gate let through until today, while the same case insists a genuinely public IPv6 target is still fetched; every DNS answer is checked too (tests/server.test.ts:1088), and so is every redirect hop, up to five, after which the clip answers 508 instead of showing a page (tests/server.test.ts:1111andtests/server.test.ts:1134); navigation lines,Skip to main contentand cookie banners are stripped on importAuto-learn (off by default): on request, K3PTA saves the key point of each chat answer as a node (tag
auto-learn). The first time an answer would have been learnable, it says so once β with a button to switch it on. Optional small extraction model, 45-second limit (src/lib/autolearn.ts:11), and both success and failure are reportedInbox folder watched and ingested automatically
Obsidian vault import: Markdown + YAML frontmatter,
[[wiki links]]become graph edgesImport your AI history: bring your ChatGPT or Claude data export here (Settings β Data management β Import your AI history): every conversation with at least one answer becomes a searchable note with its original date, tagged
chatgpt-import/claude-importβ so switching assistants doesn't mean starting over (tests/import-chat-api.test.ts:93andtests/import-chat-api.test.ts:110import ChatGPT and Claude exports into searchable notes with their date and tag). Importing the same export again updates instead of duplicatingMarkdown export to
~/.kepta/export/Device Sync β move a memory scope between your own devices as an AES-256-GCM-encrypted bundle (key derived from a passphrase, scrypt). Every transfer is recorded in a tamper-evident hash-chained ledger (
~/.kepta/sync-journal.jsonl): the inspectable proof of what moved between devices, without the content ever being readable in transit (tests/praxissync.test.ts:101finds no plaintext in a bundle and refuses a wrong passphrase and a tampered package;:120checks that every line chains its predecessor, so an edit stays visible)Migration from the previous version (
memories.json) β idempotent, with a backup
Hybrid retrieval: FTS5 BM25 + vector KNN + entity match, fused with Reciprocal Rank Fusion
Local reranking: a deterministic reranker (term coverage, phrase hits, title, tags) refines the fused ranking and is exposed as
rerankScoreβ no network, always on (tests/core/lokaler-rerank.test.tsscores with the embedding service stubbed dead, counts zero requests while doing it, and demands the identical number when the clock and the dice are wound forward)Time-travel search (
asOf): ask what was known at any moment β available in the HTTP API and MCPmemory_searchStopwords removed from the query in both German and English, so a note does not gain rank merely by containing with or die
Persistent embeddings via Ollama (
nomic-embed-text, held as the default bytests/embeddings.test.ts:166), computed by a background queue instead of re-embedding on every query (tests/embeddings.test.ts:229writes pending chunk vectors inEmbeddingQueue.tick, andtests/embeddings.test.ts:327verifies that a search afterwards embeds only the query text, not the stored chunks)Temporal weighting: expired Γ0.5, superseded Γ0.4
Meaning search can be switched off, and the result slider runs 5 Β· 10 Β· 20 Β· 50 Β· 100 Β· 250 Β· All β
tests/components/Dashboard.test.tsx:208drives all seven positions of the rendered control and reads each label back,tests/lib/treffer-stufen.test.ts:47counts the stops in the list that control is built from, and:76fixes where a number outside them lands: the smallest step, never "All", because a limit nobody chose must not quietly turn into "show everything". Switching the leg off leaves the keyword filter working (tests/components/Dashboard.test.tsx:196), and where the door sent more hits than the step shows, the strip names both numbers (tests/components/Dashboard.test.tsx:237reads "3 of 7 hits" off the search)Relevance first while you search β a grouped list turns flat and ranked as soon as there is a query, so the best hit is on top
One code path for the UI, the HTTP API and MCP β agents get exactly the quality you get
Eval harness:
npm run evalmeasures Hit@1 and Recall@5 (capped) against a fixed corpus β capped because the denominator ismin(5, relevant notes), not 5, so the figure says how much of the answer set arrived rather than how clean the five are.npm run ablationdivides by 5 and reports a real P@5 on the same corpus: two metrics, two names, never comparable (tests/eval-metrik.test.ts:37pins the capped divisor,:55pins the division by five and the P@5 name,:48fails any tool that says precision while computing recall). Both are cited line by line under "Why K3PTA?", where the runs themselves are kept in the repository.
Entities and relations from
[[wiki links]]and automatic extractionA concept in the picture is a shared one: a term that exists only because it repeats the title of the single note carrying it is an echo of your filing, not knowledge, and the graph leaves it out β the concept count is then the number of things your notes actually share (
tests/components/KnowledgeGraph.render.test.tsx:3840andtests/lib/graphLayout.begriffsaufnahme.test.ts:46drop single-note title echoes from the concept count)Three views β Force, the physics layout; Tree, a dendrogram from the root to the kind of knowledge to an entity or tag group to the note; and Semantic, the notes placed by a deterministic projection of their own vectors. Nodes glide from one view to another, and with reduced motion they jump
The Tree folds itself to fit its canvas: a base of a few hundred notes needs more rows than any screen holds, so the deepest groups step behind a
ΓNbadge, the line says how many notes are gathered, and one click opens everything again. How many rows a given tree shows is a property of that tree's shape β leaves, groups, types, root β not of its note count, and the figure this sentence used to name for "400 notes" had no run behind it in the repository, so it is gone rather than kept; what is asserted here is asserted bytests/lib/graphHierarchy.test.ts, which counts the visible rows of trees it builds itself and holds the fold to its frameThe semantic map says what it leaves out: how much of the difference its two axes carry, how many vectors the cap held back, and where the notes without a vector were parked. It is computed on the server, so no embedding ever travels into the view (
tests/rest-semantik.test.ts:70reads the raw HTTP body and refuses any word like embedding, vektor or vector in it)Force-directed layout on an unbounded canvas β nodes repel each other and follow when you drag their neighbours; the layout grows with the base instead of being squeezed into the window. What is asserted, not asserted-away: at rest no two discs intersect at 400, at 1 500 and at 3 000 notes in that test's field (
tests/lib/graphLayout.test.ts:2441-2486, brute force over every pair, no padding, no browser βnpx vitest run tests/lib/graphLayout.test.ts), and while the layout cools at 3 000 notes the funnel closes from β€ 40 pairs at step 250 to β€ 40 at step 310 and 0 at step 380. Frame cost per size is measured and recorded indocs/graph-kosten.mdwith its machine conditions; it is deliberately not quoted here. Repulsion is weighted against the link springs, not against nothing: on a 400-note base the topics stand apart as islands with white space between them, instead of petals touchingForces you can set β how hard the middle gathers, how hard notes repel, how long a link rests, how big the dots are. Turning a slider does not rebuild the world: the picture keeps its place and settles under the new forces, and one click returns the tuned defaults
Zoom, pan, draggable nodes, and fit-to-view that frames the whole graph β the whole graph includes the strip the legend takes at the bottom. At phone width a readability floor can decide the size instead of the frame; when it does, the button says so in its own title, and
tests/components/graph-fit-390-keine-verlust.test.tsx:73holds the one promise that survives both cases: a press never shows fewer of the 34 notes than the view before it (:88is the drift control that proves the count is read at one world, not two)Search counts its hits β how many notes match, and which one you are on. Enter jumps and pages, Shift+Enter goes back, Escape clears the word before it touches anything else
Time slider β shows what was known at a chosen point in time, now date-exact
Colour by memory type β or by where a note came from: a file, this computer, written here. The second channel switches itself off with the reason when the base holds only one kind of arrival; it never paints everything grey (
tests/components/KnowledgeGraph.render.test.tsx:3537finds the Provenance control disabled with a title that names the single kind and says there is nothing to tell apart, and:3546hands the channel back for two kinds and reads both colours off the canvas). Dot size by number of connectionsTells a real connection apart from mere similarity
Schema panel β what the store holds, counted: kinds of note, concepts, and every claim type by name (
tests/components/KnowledgeGraph.render.test.tsx:3416andtests/components/KnowledgeGraph.render.test.tsx:3430count note kinds, concepts and named claim types from the store). A row is a handle: everything the store does not claim through it steps backDouble-click opens the note
Duplicate detection by embedding similarity (β₯ 0.92), with a lexical fallback when Ollama is absent
Settings live in the encrypted data directory, not in browser storage β the desktop shell binds to a free port that changes on every launch, and
localStorageis keyed by origin, so anything kept there was gone after a restart (tests/lib/ai-settings.test.ts:48mirrors settings to/api/settingsandtests/lib/ai-settings.test.ts:76hydrates them back whenlocalStorageis cleared by a port change)Consolidation supersedes instead of deleting β nothing is lost
Episodic memories grow out of chat history
Today (β5) β what is new since your last visit and who added it (you, an import or which AI app), what changed, the open to-dos from your notes, what expires soon and what your AI apps did. Read straight from the local database: no AI involved, nothing leaves the computer (
tests/enterprise-api.test.ts:207builds the/api/briefingsummary straight from the store andtests/electron-haertung.test.ts:107keepsconnect-srcrestricted to this machine)Contradictions β two notes that name a different time, date, amount, percentage or quantity for the same thing appear side by side, the differing value in bold. Keep the newer, Keep the older (the other is marked as replaced, never deleted β
tests/enterprise-api.test.ts:215reads the replaced note back withsupersededByset, andtests/engine.test.ts:167counts both notes still active after a consolidation marks one) or Both are right (never asked again βtests/enterprise-api.test.ts:227settles a pair that way, reads the list back empty and shows that neither note was superseded). Careful on purpose: only facts and how-tos are compared, both sentences must share their meaningful words, notes from the same file stay out, and so do the parts of a split file (README β 5/17), a note's source line and ranges like2β4 days(tests/lib/widersprueche.test.ts:32exercises each of those exclusions without raising a false contradiction)Dossier (β6) β everything about a person, a project or a topic on one page: key facts, a timeline, how-tos, documents, open to-dos, contradictions and related topics. Copy as Markdown or Save as note
Connect in one click β K3PTA finds the AI apps already installed (Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Gemini CLI, Cline, Roo Code) and adds itself to their MCP settings, pointing to the server inside the app (no Node, no npm) β those eight names are the machine's own auto-connect list, not a copy of this sentence:
tests/lib/einrichtung.test.ts:140compares id for id and name for name, and:169reads this line out of README.md and fails if the paper names an app the code does not know, or the code knows one the paper hides. Zed, Codex CLI, Continue and every other MCP client get the exact snippet to paste (tests/lib/einrichtung.test.ts:117checks each snippet and:159that none of those four is ever offered a click). A backup of the old file sits right next to it, every other entry stays, and a file that is not plain JSON is never touched (tests/lib/einrichtung.test.ts:42checks the backup and the untouched neighbours,:61hands a commented file to the connector and gets refusal, not a rewrite)Live activity (β7) β which app is active right now and what it searched, saved or changed, with a message the moment it happens: Claude saved "β¦"
Audit log β every access to the knowledge base, by you, by each AI app and by scripts, with exactly the notes an app got to see (
tests/lib/pruefprotokoll.test.ts:80asserts per-note readers with times). Every entry is sealed with the SHA-256 of the one before it; Check integrity shows whether anything was changed, removed or cut off (tests/lib/pruefprotokoll.test.ts:36runs the integrity check,:39breaks the chain at an edited entry,:49on a truncated tail). Export as CSV, safe against spreadsheet formulas. A note's preview says which app read it and whenPrivacy shield β before a question goes to a cloud model, email addresses, phone numbers, IBANs, card numbers, passwords and keys become placeholders like
[EMAIL-1]; the answer shows the real values again, even while it streams. AI apps read notes without passwords, keys, card numbers and IBANs, and if one writes a note back, the real values stay. Private notes never reach an app or a cloud model β the same two checks apply here:tests/mcp.test.tsrefuses a private note at the MCP door even when an agent asks for it by scope, andtests/enterprise-api.test.tsreads the outbound cloud prompt and finds the note gone. Card numbers must pass the Luhn check and IBANs the mod-97 check; dates are never taken for phone numbers (tests/lib/schild.test.ts:39runs both validators head-on β one shifted IBAN digit and an all-zero card number fail;:34offers a date, a time, a version, an order number and a card with a bad check digit and finds nothing). Both protections are on by default (tests/lib/schild.test.ts:113reads the settings with no value and finds both on,:115feeds a broken file and finds both on), and every cloud request is in the audit log (tests/kette-deckt-nur-schreibwege.test.ts:92posts a cloud chat and finds exactly one chain entry written before the provider is asked,:95names it in the log)Managed deployment & central policies β IT deploys one
managed-settings.json(the macOS MDM path, since the app ships macOS only β the published names are counted indocs/belege/aussendung-0611/github-releases-0611.json; the Windows and Linux paths sit in the same reader and are driven one platform at a time intests/richtlinien.test.ts:197β or setKEPTA_MANAGED_CONFIG): a licence field in that file is ignored, because the downloadable app has no key left to validate (tests/richtlinien.test.ts:106keeps the policies,:122treats a key-only file as no policy), and central policies are enforced server-side, not just in the window βchat_cloud: denyallows local models only,machine_scan: denystops the scan,privacy_shield: force_onkeeps the shield on. No license server, no phone-home, no extra infrastructure β one file (tests/richtlinien.test.ts:106reads the local policy file while/api/licenseanswers404andtests/keine-telemetrie.test.ts:73verifies shipped endpoints). Settings β Organization shows what is managed and which policies are active. Details for procurement: SECURITY-ENTERPRISE.md
Protocol 2026-07-28, backwards compatible with 2025-06-18 and 2024-11-05. Two transports: stdio and Streamable HTTP (POST /mcp). All eight tools ship an outputSchema and return structuredContent (tests/mcp.test.ts:58 counts the eight, :61 requires the schema on every one, :102 reads a real structured result).
Write gate (opt-in). With KEPTA_WRITE_GATE=on, memory_save consults the local LLM before storing a new memory: ADD, UPDATE (rewrites the closest existing node instead of creating a duplicate), DELETE or NOOP. Without a reachable local LLM it always degrades to ADD β the gate can never block you (tests/engine.test.ts:333 runs it with the embedding service at 503 and still lands on ADD without asking the model; :360 feeds it a non-JSON answer and an unknown decision, and both degrade to ADD too).
Tool | Purpose |
| Hybrid retrieval with temporal weighting |
| Create, including type, scope and validity |
| Change an existing memory |
| Move to trash |
| Filter by type, scope, tags |
| Query entities and relations |
| Find and merge duplicates |
| Expire or supersede |
20 provider presets: Ollama, LM Studio, OpenAI, Anthropic, Gemini, Mistral, Groq, DeepSeek, xAI, Perplexity, Together, Fireworks, Cohere, Cerebras, HuggingFace, Novita, OpenRouter, GitHub Models, Azure, custom endpoint
Model discovery for Ollama and LM Studio in one click, no key required (
tests/components/chat-custom-verbunden.test.tsx:108andtests/lib/verbindung-lokal-ohne-schluessel.test.ts:12discover and connect local endpoints with an emptyapiKey)SSE streaming with a stop button, Markdown rendering
Source citations: every answer shows which memories it used (held by
tests/components/quellen-chips-und-teil-marke.test.tsx:82β sends a question through the streaming chat and asserts the sources row under the answer, all six first source titles plus the+2overflow for eight hits;tests/components/quellen-chips-und-teil-marke.test.tsx:101sends one that used no note and finds no sources row)Date-aware prompting β today's date and validity markers go into the context
Token budget visible
The chat exists to prove retrieval works. Day-to-day use runs through MCP.
Command palette (βK) for everything without the mouse
Tag filter with counts and multi-select
Light/dark and focus mode
Setup wizard with a themed starter pack
System status: detects local AI, checks storage, shows diagnostics
Activity (β7) with the live feed of your AI apps and the audit log; Today (β5) and Dossier (β6)
Duplicate review β every group side by side, one click to keep the richest copy or dismiss the pair for good (
tests/components/DuplicatesPanel.test.tsx:51renders both sides by name,tests/components/DuplicatesPanel.test.tsx:98keeps the richest copy in one batch call, andtests/components/DuplicatesPanel.test.tsx:176persists a dismissed pair across restarts). Cleaning up is a single request for the whole batch with one undo, not one request per note (which used to run into the write limiter and stop halfway without saying so)Scan this computer β opt-in, with a preview before anything is read. You choose the folders, untick file types and name folders to leave out; the dialog shows the rules that actually apply, read from the same source that enforces them. Settings can only narrow what is read, never widen it (
tests/scan/regeln.test.ts:190tries to talk the barrier into reading secrets by ticking file types and is refused;:199allows a smaller size cap and refuses a bigger one): keys, credentials, browser profiles, keychains and wallets stay blocked, the size cap stays capped, and roots outside your home folder are refused. HTML is turned into text before import, and content that carries no knowledge β markup scaffolding, repeated table rows β never becomes a note (tests/core/klassifikation.test.ts:112strips script, style and tags into readable text,:83rejects a table whose rows are all the same,:78rejects bare HTML line numbers)Knowledge list β a click opens a readable preview: the full text, the source as a chip, Copy text; the editor opens from there. Every card shows where it came from and which part it is β a label like
2/5, where the 5 is the number of parts that one file was split into, not a share of the store β and a file source opens in its default application (the part label is held bytests/components/quellen-chips-und-teil-marke.test.tsx:131β two files dropped in one import, a one-chunk note carries no part label and a multi-chunk note is stamped with its own chunk count, not the batch total). The list groups by file, by kind or by period, and Load more never cuts a group in half (tests/lib/gruppenfenster.test.tspins the window rule: a group that starts is shown whole, so a five-part file never appears as three)Text size β
100,115or130 %, under Settings β Display (tests/components/Settings-textgroesse-wirkt.test.tsx:36andtests/components/Settings-textgroesse-ohne-ueberlauf.test.tsx:55drive the display scale and its counter-width across those steps). These are the three settings values on the slider, not a measurement. The interface is English; German notes and German queries work as well as English ones
Area | Routes |
Memories |
|
Search & graph |
|
Import & export |
|
Inbox |
|
Chat |
|
Today & dossier |
|
AI apps, audit & privacy |
|
Team & organization |
|
MCP |
|
Device Sync |
|
System |
|
Machine scan |
|
There is no single-note GET (tests/doku-plattform.test.ts compares the method table with the routes the server registers and fails when the two drift apart). DELETE /api/memories/:id and POST /api/memories/:id/restore are the only methods on that path (tests/doku-plattform.test.ts:153 holds this table against the routes the server registers on that path, :155 sorts the ones that exist and refuses invented ones) β asking the door for one note by id answers 404, and that is the contract, not a bug to route around. A note's body arrives whole where it already does: one page of GET /api/memories, or a GET /api/memories/search hit β both carry the full content field, not a snippet. GET /api/memories/:id therefore stays unimplemented until a client needs a body it cannot already reach; until then this table names only the methods the server registers, and tests/doku-plattform.test.ts fails if the two drift apart.
All data in
~/.kepta/β one SQLite file that belongs to you (tests/core/store-verschluesselung.test.ts:76verifies the encrypted SQLite database file andtests/testkapsel.test.ts:107guards the.kepta/data paths)Encrypted on disk β and not added later: the first commit of this history sets it too (
281f5a1:src/core/store.ts:992), live today atsrc/core/store.ts:1938: SQLCipher 4 format, AES-256 with an HMAC over every page, a random 256-bit key kept in the macOS Keychain on the shipped app (the same code uses Windows DPAPI or the Linux Secret Service when you build it there) β no password to type. Your settings, the AI key included, live inside the encrypted file. What it covers and what it does not, and how to keep a copy of the key: SECURITY.mdThe server binds to
127.0.0.1only (deliberate override viaKEPTA_HOST) and answers this computer alone, on two checks inside one guard: theHostheader must name this machine, and a request that changes something may not come from another website (src/lib/herkunft.ts:50, mounted atserver/app.ts:170ahead of every router). A page whose name rebinds to 127.0.0.1 is refused before any handler runs (tests/herkunft.test.ts:76), a page under another name gets noAccess-Control-Allow-Originand so cannot read a byte back (tests/server-herkunft.test.ts:53), and one that simply posts a plain form β no preflight asked β cannot plant a note (tests/herkunft.test.ts:66). The app's own localhost origin keeps its body (tests/server-herkunft.test.ts:59) and a program that sends no Origin β curl, an MCP client, the Electron main β is not slowed (tests/server-herkunft.test.ts:65). The coverage is a census, not a spot check: every write route is read out ofserver/and attacked with a foreignOrigin, each one must come back 403 with the store still empty (tests/herkunft.test.ts:151), and the same file keeps the guard's bite by mounting the identical route before it, where the attack gets through (tests/herkunft.test.ts:171)SSRF protection in the URL clipper: 16 literal notations refused before any fetch (
tests/server.test.ts:1022,tests/server.test.ts:1031), every address a host resolves to checked (tests/server.test.ts:1088), and every redirect hop re-validated before it is fetched, five hops deep, then 508 (tests/server.test.ts:1111,tests/server.test.ts:1134)Content Security Policy in the Electron session,
nodeIntegrationoff, sandbox onHelmet and a global rate limiter, mounted before every router (
server/app.ts:200and:208); write routes carry a stricter limiter of their own (server/router/memories.ts:131), and bodies are size-capped where they are parsed (express.json({ limit: "1mb" }),server/app.ts:251)No account, no telemetry, no phone-home β and nothing to activate: the app validates no key, so there is no check of any kind to call home for (
tests/keine-grenzen.test.ts:102andtests/keine-grenzen.test.ts:116verify that the licence route answers404and nothing insrc/calls it). This is counted, not promised:tests/keine-telemetrie.test.tsreads every shipped file and finds 26 external addresses across 20 hosts, and each one is either a provider you chose from the presets or a named placeholder in a comment, a user-agent string or an SVG namespace β a plantedhttps://telemetryβ¦address would fail the testWith no AI configured, not a single byte leaves the machine (the Electron content-security-policy lets the window connect only to itself and this machine β
tests/electron-haertung.test.ts:107reads connect-src and refuses any foreign host).Privacy shield, private notes and the audit log β see Your AI apps above
ποΈ How it fits together
flowchart LR
subgraph Clients["Your AI apps β any of them"]
CD["Claude Desktop"]
CU["Cursor"]
GM["Gemini CLI Β· Cline Β· Codex<br/>Windsurf Β· VS Code Β· Zed Β· β¦"]
end
subgraph App["K3PTA β all on your machine"]
UI["Desktop app<br/>React 19 + Electron"]
SRV["HTTP API<br/>66 routes"]
MCP["MCP server<br/>stdio + POST /mcp"]
ENG["Retrieval engine<br/>one code path for all"]
ST[("SQLCipher AES-256<br/>~/.kepta/kepta.db")]
end
OLL["Ollama / LM Studio<br/>optional, local"]
CD & CU & GM -. MCP .-> MCP
UI --> SRV
SRV --> ENG
MCP --> ENG
ENG --> ST
ENG -. embeddings .-> OLLNo service in between, no account, no telemetry (tests/keine-telemetrie.test.ts:73 audits every shipped external address and tests/herkunft.test.ts:151 refuses foreign-origin writes across all routes). The server binds to 127.0.0.1 unless you set KEPTA_HOST yourself. Your memories are stored only in that encrypted SQLite file β there is no server of mine for them to reach (tests/core/store-verschluesselung.test.ts:76 verifies SQLCipher ciphertext on disk and tests/keine-telemetrie.test.ts:73 checks that only chosen provider presets exist in the codebase). The one path where data does leave is the app's optional chat: if you enter a key for OpenAI, Anthropic or another provider, what you send that provider goes to them β and the privacy shield makes sure it goes out without the personal details. It is off until you add a key. Nothing is sent by the app itself, and the store never syncs on its own: the device sync hands you an AES-256-GCM bundle and stops at that answer (server/router/sync.ts:40 returns it to the window, it posts it nowhere), tests/praxissync.test.ts:101 shows the bundle holds no plaintext and refuses a wrong passphrase and a tampered package, and :60 proves a full export carries every note rather than a page of them.
π How search decides
flowchart TD
Q(["Query"]) --> A["FTS5 Β· BM25<br/>lexical"]
Q --> B["Vector KNN<br/>persistent chunk embeddings"]
Q --> C["Entity match<br/>from the graph"]
A --> RRF["RRF fusion Β· k=60"]
B --> RRF
C --> RRF
RRF --> BO["Recency & confidence boost"]
BO --> T{"temporal state?"}
T -->|expired| X5["score Γ 0.5"]
T -->|superseded| X4["score Γ 0.4"]
T -->|valid| OKK["unchanged"]
X5 --> RET["Oblivion retention"]
X4 --> RET
OKK --> RET
RET --> OUT(["Top-k results"])One query, three searches: full text finds the words you typed, the vector search finds what they mean, the graph contributes notes connected to named entities. RRF merges the three rankings β it works on ranks, so one track cannot win simply by producing bigger numbers. A deterministic reranker (term coverage, phrase hits, title, tags) refines the result and is exposed as rerankScore. Without Ollama the vector track drops out and everything continues lexically. Search degrades; it does not break.
π K3PTA is free, and nothing in it is locked
There are two things in the world: K3PTA Core, free β the desktop app and the engine underneath it β and K3PTA Enterprise, memory for organizations, which exists only by agreement with Damian (tests/doku-zahlen.test.ts:338 holds the two-tier canon and tests/keine-grenzen.test.ts:72 runs the free app without limits). Source code and releases live in this public repository under BUSL-1.1.
No keys, no limits, no upgrade panel β the licence route answers neither read nor write, and nothing in the surface still calls it (
tests/keine-grenzen.test.ts:102,tests/keine-grenzen.test.ts:116). Every tool in the app runs without bound by a licence: chat, clipper, machine scan, dossiers, briefings, audit, Device Sync and all eight MCP tools, whichtests/mcp.test.ts:65lists by name and counts (memory_search, memory_save, memory_update, memory_delete, memory_list, memory_graph, memory_consolidate, memory_forget β eight, no ninth), whiletests/keine-grenzen.test.ts:72sends twelve chat messages in a row and:85saves a profile twenty-one times, both without a stop. The one bound that remains is local protection, not commerce, and it sits far above work on your own machine β chat 20/min, clipper 12/min, searches 240/min, writes 600/min, read offserver/helfer/limiter.ts:63-68and checked bytests/keine-grenzen.test.ts:140, which requires the limiter to name its number in the response headers. There is nothing to activate and nothing to buy inside the window, so the app also never asks for it β no key field, no counter, no trial clock, no "first day free" and no message about a limit (tests/keine-grenzen.test.ts:102-116: the license route answers nothing, no counter is written, and nothing in the surface still calls it). What is documented here is what runs.One number instead of the word "unlimited". The one bound that exists is a capacity brake on the local HTTP API: it stops taking new notes at
KEPTA_MAX_ACTIVEactive notes, default 5 000 (server/helfer/api-form.ts:46, held bytests/server.test.ts:162). That is a runaway-agent guard, not a paywall β one environment variable to raise, nothing in the window enforces it, and read, search, update, import and backup are not refused by it.What used to be here, and why it is gone. Until 3.1.4 the app metered some tools with daily limits, gave a sealed first 24 hours, and validated an optional key offline. It was never a lock β but it was counting, and counting needed places to hide the tally: an AES-256-GCM blob in the store's settings, two keychain entries under
app.kepta.plan, and atrial-anchorfile in a per-user directory that the finder hides (~/Library,%APPDATA%,.config) β all three read out of the commit immediately before the removal, indocs/belege/p147-0711/zaehler-vor-3-1-5.log.txt. K3PTA's promise is a memory that is yours without supervision, so the whole mechanism was removed rather than tuned: no route, no header, no anchor, no strings (tests/keine-grenzen.test.ts:92,tests/keine-grenzen.test.ts:102,tests/keine-grenzen.test.ts:107andtests/keine-grenzen.test.ts:116check that response headers,/api/license, store settings andsrc/carry none of them). The data of anyone who installed an earlier build is untouched; the fields simply stopped being read or written.Team memory is switched on by your organization, not by a plan. Team scopes and their roles come from one managed file (
managed-settings.json, delivered over MDM) and are enforced in the store: admins and members write toteam:*, viewers read, nobody else sees them. Without that file there is no team workspace β the app says so plainly instead of hiding a dead end (tests/team.test.ts:161returnsteam: nullonGET /api/teamandtests/components/TeamView.test.tsx:30renders the explanation namingmanaged-settings.json). Central policies (cloud chat off, computer scan off, privacy shield forced on) come from the same file and are documented in SECURITY-ENTERPRISE.md. Sold as roadmap, not built yet: SSO (SAML/OIDC), the workspaces UI and MDM enrolment.No plugin store, and that is not a lock (
tests/keine-grenzen.test.ts:102andtests/richtlinien.test.ts:106). K3PTA loads no third-party code, so there is nothing to approve, nothing to buy and nothing an organisation could switch off for you: the app's own features run the same in the free download as in a managed deployment (tests/richtlinien.test.ts:106andtests/keine-grenzen.test.ts:116). The choice is about code, not about money β a memory you can trust while it is unsupervised is the product, and an unreviewed plugin from elsewhere would read that memory. Settings says the same thing in the window, in one sentence.The data is never hostage (
tests/keine-grenzen.test.ts:102-116shows the licence route answers nothing, read or write, and no part of the surface asks it;tests/server.test.ts:327writes the store out as Markdown files). The knowledge base file stays on disk, encrypted, and readable by the source-available engine. There is no key that could revoke it: the licence route no longer answers and no part of the surface asks for it (tests/keine-grenzen.test.ts:102-116).
Enterprise β memory for a team, with tenant isolation, the sealed audit chain, the human review queue and point-in-time recovery β is shaped per organization and licensed by agreement: write to me on LinkedIn. There is no self-serve checkout anywhere, and there is no longer a key to issue for the app (tests/doku-zahlen.test.ts:332 refuses any self-serve tier wording and tests/keine-grenzen.test.ts:102 holds /api/license at 404).
Icon attribution
The icon series embeds glyphs from Solar (CC BY 4.0, by 480 Design) and Tabler Icons (MIT). Full list: THIRD-PARTY-NOTICES.md.
π§ The source-available core
The engine underneath this app is source-available β BUSL-1.1, published together with the desktop app at DamianTodorovic/kepta (each release converts to AGPL-3.0-or-later after four years): storage with encryption at rest, hybrid retrieval with the reranker, the MCP server with all eight tools, and the HTTP API for the memory endpoints (tests/core/boundary.test.ts:32, tests/core/store-verschluesselung.test.ts:76 and tests/mcp.test.ts:58). Same database format, same keychain key, one code path for the quality of search.
That is deliberate, not a giveaway: anyone who has to prove that nothing leaks should be able to read it rather than believe it. An auditable core is worth more than a promise. And if the vendor disappears one day, the customer keeps working with the core; with closed software that would be the end of the road. The app is the complete window on top β graph views, editor, clipper, machine scan, chat cockpit, Device Sync β for people who want the whole product rather than a protocol.
β‘ Getting started
Download the desktop app. Grab the macOS .dmg installer for your Mac from Releases (Apple Silicon or Intel), drag K3PTA.app into Applications, and launch it β the table below names the right .dmg for your Mac and says plainly what Windows and Linux do not get. First launch needs one extra approval because the app is not code-signed; First launch on macOS further down says how.
Connect your AI assistants in one click. Inside K3PTA, open Settings β Connect AI apps and connect Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Gemini CLI, Cline or Roo Code directly to the MCP server that ships inside K3PTA.app β no Node.js, no npm (tests/lib/einrichtung.test.ts:42 and tests/lib/einrichtung.test.ts:95). Zed, Codex CLI, Continue and other MCP clients receive a copy-ready JSON snippet pointing to /Applications/K3PTA.app (tests/lib/einrichtung.test.ts:117).
π¦ Which file do I need?
The desktop app is published only for macOS β Apple silicon and Intel, and every release that ships files ships both (docs/belege/aussendung-0611/github-releases-0611.json). No other platform has a downloadable app, and nothing here pretends otherwise (docs/belege/aussendung-0611/github-releases-0611.json and tests/doku-plattform.test.ts:67).
Your system | File |
Mac with Apple Silicon (M1βM4) |
|
Mac with an Intel processor |
|
Windows or Linux | No app file is published ( |
Every desktop installer carries its platform and architecture in the name β mac-arm64 or mac-x64; the checksum list SHA256SUMS.txt (and latest-mac.yml in earlier builds) carries no architecture, counted in docs/belege/aussendung-0611/github-releases-0611.json. On a Mac, if you are unsure: Apple menu β About This Mac β "Apple Mβ¦" means arm64, "Intel" means x64. Downloads ship as finished .dmg installers plus SHA256SUMS.txt.
π First launch on macOS
K3PTA is built without an Apple developer certificate, so the releases are not notarised. macOS quarantines the download and says the developer cannot be verified. The app is fine; what is missing is a certificate that costs 99 EUR a year.
What the release folder actually holds, which checksums cover it, and which parts of this first-launch story are measured rather than asserted are written up in docs/aussendung-und-ablage.md.
The fastest way through, and the one that works on every macOS version (docs/belege/aussendung-0611/beweisen-3-2-190-0611.txt and docs/aussendung-und-ablage.md:190):
xattr -dr com.apple.quarantine /Applications/K3PTA.appWithout the terminal: System Settings β Privacy & Security, scroll down to the message about K3PTA, click Open Anyway, and confirm with your password. Once, then never again.
Older guides say to right-click the app and choose Open. Apple removed that route in macOS 15 β on current systems it does nothing. Use one of the two above.
The app bundle itself is signed, ad-hoc. That is not notarisation and does not remove the warning, but it does decide which warning you get: macOS treats K3PTA as an ordinary unsigned app you can approve, rather than a damaged one it refuses outright.
π§ͺ Quality & tests
3919 tests (measured 2026-11-16), run with Vitest and v8 coverage β the cases a run actually executed, skipped ones not included. The coverage thresholds are a hard gate: a commit that falls below any of them fails the run β and so does a README that names the wrong number of tests. npm test writes that run's JSON report and node scripts/doku-check.mjs holds the README to exactly that number; tests/doku-zahlen.test.ts listens to the same report and refuses to compare when it cannot be trusted β missing, older than the suite, or written by a partial run β instead of checking a value out of the drawer.
Line references are machine-checked too. tests/anker-wache.test.ts opens every file:line witness in README.md, SECURITY.md, ROADMAP.md, .github/release-notes.md, docs/belege/REGISTER.md and docs/aussendung-und-ablage.md, requires the cited line to exist and to hold something, follows a short :165 back to the witness standing before it on the same line, and reads blob citations (113093c:server/helfer/planzustand.ts:101) from git history instead of today's tree. Its first run found four anchors in this README that showed nothing β one naming a .test.ts whose file is .test.tsx, and three blank lines, one of them where the SQLCipher pragma sits; a fifth and sixth joined as soon as the short form began to count; all six are repaired above, and tests/anker-wache.test.ts holds them since. One limit travels with the number: a short :165 with no file beside it on its own line cannot be attributed, so the guard counts those instead of guessing at a file β measured 2026-11-07 10:44 MEZ. The five outward sheets hold a ceiling of 29 such counts, one that may only fall; this repository's own work log holds a share of its anchors instead of a count, because that paper grows every stroke, and tests/anker-wache.test.ts:204 fails when the share of careless short forms grows rather than when the log gets longer.
npm run lint # typecheck (tsc) + ESLint β 0 errors required
npm test # 3919 tests (vitest)
npm run test:cov # tests + coverage gate + test count in the README
npm run eval # retrieval quality (Hit@1)Layer | Bar in | What it covers |
everything together | must not fall under 89 % of lines ( | core, browser logic, scan rules, server and every component |
| must not fall under 97 % of lines Β· must hold 100 % of functions (both in | data model, search, consolidation, MCP protocol |
| must not fall under 98 % of lines Β· must hold 100 % of functions (both in | what may be read, and what never is |
| must not fall under 92 % of lines ( | provider presets, profile, settings, sources, SSE, fetch client |
| must not fall under 84 % of lines ( | every component, the graph canvas included |
The server code lives in server/ β server/app.ts assembles the middleware chain and mounts the routers, server/router/ holds one module per feature area, server/helfer/ the shared helpers, and server.ts itself is only the entry point that ties it together (tests/doku-zahlen.test.ts:134 and tests/herkunft.test.ts:151). The routers and helpers count towards the overall coverage gate, and so does server.ts: its port-binding bootstrap is why the global gate sits a little under the core's. The three exclusions, read from vitest.config.ts, are the type declarations src/**/types.ts and **/*.d.ts plus the pdf.js browser glue src/lib/pdfText.ts β jsdom cannot drive a worker and a CMap URL, and the one test that reaches that import path mocks the module away (tests/components/Dashboard.test.tsx:17), so the glue is honestly outside the count rather than covered from behind. The gates sit a little below what is reached, so they can only move up (tests/doku-zahlen.test.ts:299 and vitest.config.ts). Tests live in tests/, mirroring the source layout. New features follow TDD (RED β GREEN β REFACTOR).
π§ Why K3PTA?
Obsidian is excellent for humans β but Markdown is not a memory: no types, no validity, no MCP (tests/core/notiz-drei-felder.test.ts:53, tests/engine.test.ts:78-83 and tests/mcp.test.ts:58). Mem0 and Letta are SDKs without a GUI. The platform memory is tied to one vendor's cloud. K3PTA is both and neither: an agent-native memory layer with a desktop app, local, encrypted, with a provable trail of who read what.
Every figure below is a run of this repository's own tools, kept whole next to the sentence that uses it β disagree with the numbers by rerunning them (scripts/zahlen-belege.mjs and tests/belege-siegel.test.ts:44).
npm run evalβ 58 notes, 45 queries and five categories β a split of 25 lexical, 10 paraphrase, 4 distractor, 3 graph and 3 temporal, held bytests/eval-korpus.test.ts:15and:27β in three legs: the naive substring search it replaced, the engine without vectors, and the engine with vectors, which is what actually ships. The first two run offline and deterministically; the third asks a local Ollama and says out loud when it cannot reach one. Its run of 2026-11-03 sits in the repository asdocs/belege/tag-0311/eval-drei-beine-1352.log.txt: Hit@1 71 % for the engine without vectors against 51 % for the v1 substring search, and 76 % once the vector leg joins. The status panel quotes the 71 % β Hit@1, 41 of the 45 queries of that corpus, drawn indocs/belege/tag-13-10/ablation-beine-1144.log.txt:10β because that branch of the panel is exactly the case where no embedder answers. Both tools now build this corpus from one file (scripts/eval-store.ts) β before 2026-11-03 each built its own, and the numbers were therefore not the same system.npm run ablationβ the same corpus, broken down per retrieval leg, the vector leg live on a localnomic-embed-text. Its run of 2026-10-13 sits in the repository asdocs/belege/tag-13-10/ablation-beine-1144.log.txt: on Hit@1, full fusion reaches 76 % where BM25 alone holds 71 %, and fusion answers every query of the corpus while BM25 alone leaves four unanswered. The eval's third leg, measured independently on 2026-11-03, lands on the same 76 % (docs/belege/tag-0311/eval-drei-beine-1352.log.txt, held against the surface bytests/doku-zahlen.test.ts:223).npm run eval:sprache(scripts/eval-sprachuebergriff.ts, held bytests/embeddings.test.ts:354) β the same 58-note corpus, 15 pairs drawn from its 45 queries, where only the language of the question moves: an English question over German notes, with the answer set inherited from the corpus rather than invented. Three legs, each measured in both languages, and the vector leg reported on its own so a fusion problem cannot be mistaken for a model problem. The runs of 2026-11-03 sit in the repository asdocs/belege/tag-0311/sprachuebergriff-nomic-1406.log.txtanddocs/belege/tag-0311/sprachuebergriff-bge-m3-1406.log.txt: English questions reach 26.7 % Hit@1 with the default model and 20.0 % withbge-m3, against 60.0 % for the same questions in German. This is where K3PTA is weaker than it should be, and the sentence is in the product instead of in a footnote.node scripts/verstaendlichkeit-im-fenster.mjsthennode scripts/wortschatz-zaehlen.mjsβ the words the surface actually asks a person to know, counted in a real browser window rather than in source: seven views plus the first-run screen, each read after the assistant is closed, with a hit-test proving nothing was measured behind an overlay. Its runs sit in the repository asdocs/belege/tag-0411/wortschatz-vor-3-2-138-2233.log.txtanddocs/belege/tag-0411/wortschatz-nach-3-2-139-0023.log.txt: 18 technical word families on the surface, 10 of them explained somewhere on the same screen and 8 left to guess (semantic, embedding, entity, sync, dossier, activity, endpoint, audit) β after 3.2.139, 17 families and 17 explained, 0 open, because one term left the interface altogether instead of being explained. An explanation counts only if the sentence names the word itself and runs longer than eight words: "A written brief on one subject" does not explain Dossier, "A Dossier is a written brief on one subject, built from the notes you saved" does (scripts/wortschatz-zaehlen.mjsanddocs/belege/tag-0411/wortschatz-nach-3-2-139-0023.log.txt). Two honest limits travel with the number: the word list is ours (39 families, in the script), and most of these sentences are reached by hovering, not printed.The two tools measure different things on purpose: the eval divides by
min(5, relevant notes), the ablation divides by 5. Neither number is comparable to the other, and neither is quoted as if it were.
The division of roles: the chat cockpit proves retrieval works β daily use runs through MCP. ROADMAP Β· CHANGELOG
K3PTA β built for focus. Keeps what matters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory for AI agents, for code, research and everyday life. Stale facts retire.
Shared memory for your AI agents. Every fact shows its source, and stale facts get replaced.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA local memory engine for AI agents. Stores conversation episodes, consolidates knowledge through a neuroscience-inspired lifecycle, and builds a personal knowledge graph β all in a local SQLite database.20MIT
- AlicenseAqualityCmaintenanceLocal-first memory for AI agents. On-device hybrid retrieval over a single SQLite file.164Apache 2.0
- AlicenseAqualityCmaintenanceEmbedded, local-first agent memory: facts extracted into a per-namespace SQLite file (vec0 + FTS5) with hybrid retrieval and point-in-time (time-travel) queries. ADD-only history over stdio β no server process, no cloud dependency.743 PyPI43Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to persist facts with tags, sources, and importance in a local SQLite database, retrieve them through hybrid BM25 plus embedding search weighted by retention decay, link or supersede related entries, and review everything in a read-only visual dashboard showing the memory graph and timeline.6MIT











