How it works
Your graph is a small database on your Mac. Nothing is uploaded unless you share it. The AI sees only your question and your schema (the names of your node types and their properties), plus, when you build, what you write or attach.
In plain English
- Your graph lives on your Mac. Each project is a folder with a database file in it. There’s no account, no cloud copy and no sync.
- The AI never reads your graph. When you ask a question, the AI gets the question and the names of your node types, properties and relationship types. It writes a database query; the query runs on your Mac.
- There’s no API key. The AI works through the Claude or ChatGPT subscription you already have, using the Claude Code or Codex app on your Mac.
- Search by meaning runs on your Mac too. The model is downloaded once and nothing you write is sent anywhere.
- Sharing is the one exception, and only when you choose it.
| What leaves your Mac | |
|---|---|
| Your graph | Nothing |
| Asking in plain English | Your question and your schema (node type and property names). Never the graph’s contents |
| Building with AI | What you write or attach, your schema, and (only if you turn it on) the names and node types of existing nodes |
| Search by meaning | Nothing |
| Searching names and text, and your own queries | Nothing |
| Link previews | The link’s address, to that site |
| Share to the Web | A read-only copy of that project, when you choose it |
The rest of this page is technical.
The project folder
Every project is a folder inside the app’s sandbox container:
~/Library/Containers/app.syncretic.Syncretic/Data/Library/Application Support/Syncretic/
Models/
embeddinggemma-2-Q8_0.gguf the embedding model, shared by every project (310 MB, downloaded once)
Projects/<uuid>/
project.json name, the schema as drawn, and the schema the database currently has
graph.lbug the LadybugDB database: every node and relationship
layout.json positions on the canvas, which nodes are pinned, which are shown
history.json questions asked, the Cypher that answered them, routing decisions
embeddings.json + embeddings.vec passages and their vectors, for vector search
titles.* every node's title as a vector, for duplicate spotting
previews/ link thumbnails and metadata
notes/, attachments the project's notes and their pictures, videos and drawings
conversations Build with AI conversations, one file each
publish.json where the project was shared, if it wasSettings › Storage › Show in Finder opens the Projects folder. An export (<name>.syncretic.json) is plain JSON: the schema, every node and relationship with its properties, and the layout. Vectors aren’t exported; they’re rebuilt on import.
The database
The graph is stored in LadybugDB, the maintained fork of the Kuzu embedded graph database: one in-process engine, one file, no server. Every query in the app, yours or the AI’s, runs in its dialect of Cypher (see Write queries yourself). Reads and writes use prepared, parameterised statements, and the log is checkpointed into the file when a project closes.
How the schema becomes tables
| In the schema | In the database |
|---|---|
| A node type Free energy principle | CREATE NODE TABLE FreeEnergyPrinciple(id STRING PRIMARY KEY, …) |
| A relationship type relates to between Concept and Concept, and Concept and Source | CREATE REL TABLE RELATES_TO(FROM Concept TO Concept, FROM Concept TO Source, id STRING, …) |
| A Text, Link or Enum property Year published | a STRING column year_published |
| A Number property | a DOUBLE column |
| A Boolean property | a BOOLEAN column |
Every node and relationship gets an id, a UUID the app generates. What makes a string column a Link or an Enum lives in project.json, not in the database.
No finalize step
The project keeps two copies of the schema: the one you’re drawing and the applied one the database has. After every edit, if the drawn schema is valid, the app works out the difference and runs it:
| You | The app runs |
|---|---|
| add a node type | CREATE NODE TABLE with its columns |
| add a property | ALTER TABLE … ADD |
| rename a node type or property | ALTER TABLE … RENAME |
| change a Text to an Enum or back | nothing: both are STRING |
| add a pair of node types to a relationship type | the relationship table is rebuilt with the new pair and its rows copied across |
| delete a node type, property or pair | DROP, after asking when data would go |
| set or change a default | an UPDATE filling nodes without a value (or still holding the old default) |
| rename an enum option | an UPDATE rewriting the stored word |
Graph view and Ask always work against the applied schema, so you can’t query a column that doesn’t exist yet.
Edits wait while the schema has issues (the capsule says Not saved yet and lists them on hover): a node type or property without a name, duplicate property names in a node type, two node types resolving to the same identifier, a property named id, a relationship type connecting nothing. When the last issue is fixed, everything pending applies.
Anything that would delete values asks first, and ends “This can’t be undone.” Undo stops where going back would delete data added since, and a lossy change clears the undo history. A property’s kind is fixed once the graph holds a value for it (Text ↔ Enum excepted).
Names to identifiers
Display names are free-form; the database names are derived from them. You only ever see the display name in the app.
| Display name | Identifier | Rule |
|---|---|---|
free energy principle, freeEnergy principle | FreeEnergyPrinciple | node tables are PascalCase; camelCase is split into words |
relates to | RELATES_TO | relationship tables are UPPER_SNAKE |
contains | CONTAINS_ (shown as CONTAINS) | a Cypher keyword gets a trailing underscore, in the database only |
Year published | year_published | properties are snake_case |
2nd edition | _2ndEdition | a leading digit gets an underscore |
ārjavam | Arjavam | accents are folded; only ASCII letters and digits survive |
Two node types that resolve to the same identifier are a validation issue, and the schema waits until it’s fixed.
The AI route
Syncretic never holds an API key. Each AI call is one non-interactive run of the command-line tool for your subscription, with a structured-output request so the answer comes back as JSON the app can check:
- Claude through Claude Code, signed in to a Claude Pro or Max plan. Models: Opus, Fable, Sonnet, Haiku; efforts Low to Max.
- ChatGPT through Codex, signed in to a ChatGPT Plus, Pro, Business or Enterprise plan. Models: whatever Codex lists in its own model cache.
Two models are set in Settings: one that writes queries and builds, and one that routes questions in Auto search. The tool reports which model actually answered, and the meta line under each answer shows it.
A question goes out as the question plus the schema rendered as text (node tables and columns, relationship tables and the pairs they connect, each node type’s title column) and the dialect notes. Not a single node. The reply is {cypher, explanation}. The query passes a keyword guard (no CREATE, MERGE, SET, DELETE, DROP, ALTER, CALL and the like, and no multiple statements), then runs in a read-only transaction with a 500-row cap. Errors go back for up to two repairs. The same question on the same schema reuses the saved query.
Auto first asks the routing model which strategy fits (when there are embedded properties to consider), then runs that flow. The route is saved with a fingerprint of the routing prompt and reused.
Search by meaning
Mark a text property as embedded and its values are split into passages (about a paragraph, sentence-packed to roughly 1,000 characters, with a one-sentence overlap) and turned into vectors by EmbeddingGemma 2, Google’s 270M-parameter text embedding model, in 8-bit (Q8_0), running through llama.cpp with Metal. The node’s title is embedded with each passage. The weights are a one-time 310 MB download from Hugging Face (Apache 2.0); the engine loads on first use and is released after three minutes idle.
The vectors live in a sidecar (embeddings.json + embeddings.vec), not in the database, so queries never see chunk rows. They’re keyed by record id and property id, with a hash of the model, title and text, so renaming a property keeps its vectors. A reconciler keeps the index in step: on open, after every edit, when the schema changes and when the model finishes downloading, it works out what’s missing or stale and a background pass fills it in, saving as it goes. The top bar shows “Embedding 12 of 340” meanwhile. Search is brute-force cosine similarity with Accelerate, under a millisecond for thousands of passages.
What the AI sees when building
Sent with every build message:
- Your message, with each link replaced by the text of the page (fetched and extracted on the Mac first), and each attached file’s text (PDF, text, HTML, Markdown) or picture (fit within 1,568 px, as JPEG).
- The schema: every node type with its properties and their kinds, its title property, and every relationship type with its pairs, in the names you see.
- Earlier turns that came to something: your messages, the summaries, and what you did with each draft.
- The open draft, if there is one, so a follow-up revises it.
- With Existing nodes on: the names and node types of your nodes (all of them up to a limit; in a larger graph, only those your message seems to mention, found on the Mac by name and by meaning), so relationships can point at them by id.
Never sent: node contents beyond those names, your notes, your history, other projects.
The model returns a structured draft: nodes (each with a ref, a type and string-valued properties), relationships (type, from, to, by ref or existing id), changes (remove or update, each with a read-only Cypher query that finds the records) and a summary. The app checks the draft against the schema, matches titles against existing nodes (exactly and by similarity, using the title index), runs the change queries to find their targets, and shows it all for review. Nothing is written until you add it, and adding is one undoable step.
Other AI apps (the MCP bridge)
A small helper, syncretic-mcp, ships inside the app bundle (not sandboxed). An AI app (the Claude app, Claude Code, Codex, Cursor…) starts it as an MCP server; it opens Syncretic if needed and relays messages to the running app over loopback. Proposals arrive in the Build panel as drafts for review, marked with the app that sent them. Setup is on Use with other AI apps.
All tools act on the project open in Syncretic.
| Tool | Arguments | Does |
|---|---|---|
list_projects | — | Each project’s id, name, whether it’s open, its node types; counts for the open one |
open_project | project (name or id) | Opens it in Syncretic |
create_project | name | Creates a new empty project and opens it |
get_shape | — | The schema in display names, then the database names for Cypher, the dialect notes, and counts |
search | text, by = words (default) or meaning, limit ≤ 200 (25) | By words: exact titles, then titles, then text, loosely matched. By meaning: vector search with a score and the matched passage |
run_cypher | query, limit ≤ 1000 (100) | Columns and rows; writes are refused with a pointer to propose_changes |
get_node | id | The node, every property, and up to 300 relationships with the node at the other end |
show_nodes | ids | Brings them onto Syncretic’s canvas and frames them |
propose_changes | nodes, relationships, changes, request, summary | Opens a draft in the Build panel; returns its id, waiting for review, counts, duplicates and what didn’t fit |
check_proposal | id | waiting for review, added, discarded, replaced or failed |
design_shape | types, relationships, request, summary | Adds node types, properties (text, number, link, boolean) and relationship types at once; undoable in Syncretic |
Property values in a proposal are strings; numbers, booleans and objects sent as JSON values are converted.
The code, in outline
The app is SwiftUI only, for macOS 26: App/, Shape/, Graph/, Ask/, Build/, Notes/, Embedding/, MCP/, Canvas/, Links/, Library/, DesignSystem/. Everything without UI lives in a unit-tested Swift package, SyncreticKit: the schema model and identifiers, the store and DDL builder, the Cypher guard, the AI client with its Claude Code and Codex transports, the query router, the graph builder and schema designer, the MCP protocol and tools, text chunking, the llama.cpp embedder, the vector index and reconciler, link previews, project files, force layout, arrangement geometry and licensing. The canvas layout is a force simulation (quadtree many-body, springs along relationships, collision) running off the main thread; nodes you drag are pinned.