Cairn / Docs / Knowledge Graph

Knowledge Graph

A workspace-level view that surfaces every relationship between your projects, notes, tasks, and tags. Two visualisation modes, click-to-navigate, and full MCP access for AI research traversal.

What is the Knowledge Graph?

The Knowledge Graph is a workspace-wide view — not scoped to a single project. It maps every entity (projects, notes, tasks, tags) and every relationship between them: explicit links you've created, co-mentions detected automatically, shared tags, and more.

Unlike Idea Flow (which is a per-project freeform canvas), the Knowledge Graph is read-oriented — it helps you explore and understand what exists across your entire workspace. You can click any node to open a detail panel and navigate directly to the source.

Opening the Knowledge Graph

Click Knowledge Graph in the bottom section of the left sidebar (below the project list, above Settings). The keyboard shortcut is Cmd 6. The view loads all entities across all projects in the active workspace.

Knowledge Graph force-directed view showing workspace relationships
The force-directed graph view — clusters of related notes, tasks, and projects emerge naturally.

Visualisation modes

Switch between two modes using the mode selector in the toolbar:

Mode Description
Force graph A raw D3 canvas layout that stays responsive on large graphs. Nodes repel and edges act as springs, and each project's members are wrapped in a soft convex-hull outline (toggleable via the Hulls control). Best for exploring unknown structure.
Radial (sunburst) A drill-down sunburst: Workspace at the centre, projects and a shared Tags branch around it, notes and cards on the outer ring. Click a branch to drill in (rings expand with readable labels) and the hub or breadcrumb to zoom back out — smoothly animated both ways.
Looking for Timeline, Matrix, or Table?

These views moved to the Insights view (Cmd 7) in v0.7.4, alongside four new analytics canvases.

Navigating the graph

Filtering

Use the filter panel (toolbar, right side) to narrow what's shown:

Filters apply across both visualisation modes. The active filter state is preserved when you switch modes.

Auto-discovered relationships

In addition to explicit links you create (note-to-task links, MCP-created edges), Cairn automatically detects several types of relationships:

Tags appear as their own nodes in the graph with edges to all tagged entities — this is structural, not auto-discovered.

Auto-discovered relationships are shown with a dashed edge style to distinguish them from explicit links. Toggle them off via the relationship type filter if you want to see only your intentional connections.

Auto-discovery runs on load

Relationship detection runs when the Knowledge Graph view opens. It does not run continuously in the background. Re-open the view to pick up changes made since it was last loaded.

MCP tool reference

Two MCP tools expose the Knowledge Graph to AI clients and external scripts:

Tool Read / Write Description
get_knowledge_graph Read Returns the full workspace relationship graph as {nodes, edges}. Optional projectIds array to scope to specific projects. includeAuto flag (default: true) controls whether auto-discovered relationships are included.
get_neighbors Read N-hop breadth-first traversal from any node. Args: workspaceId, nodeId, depth (1–3). Returns all nodes and edges reachable within the specified number of hops. Useful for incremental research without loading the full graph.
Using get_neighbors for research

When an AI client needs to explore context around a specific note or task, get_neighbors with depth: 1 or depth: 2 is more efficient than loading the full graph. Start from a known node ID and expand outward only as needed.