Try Studio
In Browserno installDesktop Mac AppDesktop Windows AppiPhone AppAndroid App
GitHub & Skills
Download Skill for ClaudeDownload Skill for OpenAI Codex
For
Myself — personal twinMy company — team memory
Docs Overview Edit on GitHub

Second Brain Link Documentation

Turn your data exports — 24 sources, from LinkedIn, Facebook, Instagram, Google, X and GitHub to your company's Slack, Notion, Jira and Salesforce — into a private, local, AI-queryable second brain. This page covers everything: install, build, reference, and how it all works.

Introduction

Your life is scattered across platforms — connections on LinkedIn, friends on Facebook, follows on Instagram, contacts and calendar in Google, code on GitHub, taste on Spotify. Each gives you a data export, and each sits dead in a zip. Second Brain Link pulls them into one structured knowledge vault your AI can think with — and the same person across two networks becomes a single, richer note.

  1. You download your own data archive(s) — from one network or several. They're yours; each platform provides them on request.
  2. Second Brain Link runs 100% locally, detects which source(s) you've given it, and transforms them into one clean Obsidian vault: people, companies, your voice, your career intent, your interests, and how the algorithms categorize you.
  3. You point Claude (or Codex) at the vault. Now you have a digital twin that knows your whole history across platforms and can reason, plan, and draft from it.

Nothing is uploaded. No account, no server, no telemetry. The output is plain Markdown files you fully own — delete it, fork it, grep it.

Why it's different

  • Local-first and private by construction. The transform makes zero network calls; your data never leaves your machine.
  • Privacy is in the code, not a policy. Contacts' emails and phone numbers are stripped at parse time; message bodies are never imported — only a "how often / how recently" signal.
  • You own the output. Plain Markdown, no lock-in.
  • MIT licensed, free, no catch.

Using the app — 3 steps

However you open Second Brain Link — the Studio web app or the desktop app — the flow is the same. A short wizard walks you through it on first launch; here it is in full.

1

Install the skill & run your AI locally

Add the Second Brain skill to Claude Code or OpenAI Codex and run it on your own machine — it does the building and reasoning. Cloud run — paid, coming soon

Grab the skill straight from the repo: Claude skill · OpenAI skill.

2

Add your sources & (re)seed the vault

Download your data exports — any of the 24 supported sources (LinkedIn, Facebook, Instagram, Google, X, GitHub, Spotify… or company-side Slack, Notion, Salesforce…) — then upload them in Studio and run the build. Studio seeds — or re-seeds — your vault from the fresh data, fully on your machine.

3

Connect your assistant

Use Claude Code / Codex locally, or paste your Anthropic / OpenAI / … API key in Studio's Assistant settings. Either way, calls go straight to the provider — your keys and notes never pass through us.

The local, open-source flow is free forever. Hosted cloud seeding & vault storage are an optional paid add-on — see pricing.

Second Brain Studio — web & desktop

Studio is the friendly front door to your brain: a live workspace where you browse the knowledge graph, read & edit notes, and chat with an AI that reasons over everything. It runs locally — your API keys and data stay on your machine.

Open the web app

  • Go to the Studio web app — nothing to install. It opens your vault right in the browser.
  • First run shows the 3-step wizard above. Drop in your export zips to seed the vault, then open the graph, notes, or chat.

Install the desktop app

  • Download for your platform: macOS · Windows.
  • The desktop app is the same Studio in a native window — better for working offline and keeping a vault open alongside Obsidian.

Where to go for what

Vault & Graph

Explore people, orgs, places and posts. Filter, search, and click any node to open its note.

Assistant (chat)

Ask in plain language; it cites the notes it used. Add your API key in Assistant settings, or route through local Claude Code / Codex.

Sources

Upload new export zips any time and re-run the build to refresh your vault with the latest data.

Second Brain Mobile — iOS & Android

The native mobile app is the whole pipeline in your pocket: it unpacks your exports and builds the brain entirely on-device — no account, no backend, nothing uploaded. Explore the knowledge graph, browse your sources, and talk to your twin wherever you are.

Get the app

  • Download on the App Store (iPhone) · Get it on Google Play (Android) — on the App Store and Google Play.
  • Onboarding walks you through it: pick your sources → import the export zips on the phone → the brain builds locally in about a minute.

Where to go for what

Twin (chat)

Talk to your brain in plain language — warm intros, meeting prep, reconnects. On iPhone the AI runs on-device via Apple Intelligence; on Android (or older iPhones) bring your own key, stored in the phone's keychain.

Brain (graph)

A native, GPU-rendered 3D graph of everyone you know and everything they connect to — search it, filter it, tap into any node.

Sources

Import LinkedIn, Facebook, Instagram and Google exports on the phone; add a newer archive any time to refresh. Everything stays on the device.

Privacy: the mobile app has no account and no cloud — the brain is built and stored only on your phone. If you use a cloud AI key, only your question and the few notes it cites go to that provider, directly.

Quick start

From zips to a working brain in about a minute of compute. You'll need Claude Code or OpenAI Codex, Python 3.8+, and (recommended) Obsidian. No other dependencies.

Download your data ~5 min per platform

Each platform hands you an export on request — pick JSON where asked:

LinkedInCSV
  1. Settings & Privacy → Data Privacy
  2. Get a copy of your data
  3. Choose the larger archive

Can take up to 24h · link valid ~72h

FacebookJSON
  1. Settings → Your information
  2. Download your information
  3. Format: JSON
InstagramJSON
  1. Accounts Center → Your information and permissions
  2. Download your information
  3. Format: JSON
GoogleTakeout
  1. Open takeout.google.com
  2. Deselect all
  3. Select Contacts, Calendar, YouTube, Maps, Profile

These four are the richest starting points — but the engine reads 24 sources: X, WhatsApp, GitHub, YouTube, Strava, Reddit, Spotify and TikTok on the personal side, plus 12 company sources from LinkedIn Page and Slack to Notion, Jira, Salesforce and Zendesk. Drop in whatever you have; it detects and merges them all.

Organize by entity 1 folder per person/company

Rename your-name to your actual name — the folder name becomes your brain — then unzip each export into its source subfolder. One source is fine; several get merged.

data/
data/ ├── personal/jane/linkedin/ · facebook/ · instagram/ · google/ └── company/acme/linkedin_company/ · google_workspace/ · slack/

Personal + company exports in one run build sibling vaults — plus a _correlations/ brain linking people across them. Everything under data/ is git-ignored.

Install the Agent Skill one command

Run this

install — Claude Code + OpenAI Codex
git clone https://github.com/vicovan/second-brain-link && cd second-brain-link python3 packaging/build_skill.py all --install # Claude Code → ~/.claude/skills/ · OpenAI Codex → ~/.agents/skills/

Restart your agent — the second-brain-link skill loads at startup. Verify with ls ~/.claude/skills/second-brain-link/.

Claude.ai / Claude Desktop: upload dist/claude/second-brain-link.skill under Settings → Capabilities → Skills (enable Code execution).

Build your brain ~60 s · zero AI cost

Say this to your agent

"Build my second brain from the exports in data/ — profile them first, show me the planned structure, then build with --full."

Building a Company Brain instead? Same thing:

"Build our Company Brain from the exports in data/company/acme/ — and emit the GBrain format too."

Under the hood the skill runs the deterministic engine for you — zero AI tokens for the build itself:

what the AI runs for you
# one brain per entity under data/ (+ _correlations/) python3 engine/scripts/build_vault.py data -o vault --full # then your goals — deterministic, re-runnable python3 engine/scripts/analyze.py vault/personal/<you>-brain \ --goals fundraising,bd,jobsearch,datamining,personalization \ --graph-config vault/.obsidian/graph.json

Open it and start asking Obsidian · Claude Code · Codex

  • Open the vault folder in Obsidian — start at Home.md; _STRUCTURE.md maps every folder; Graph view colors every note by source.
  • Work it inside Obsidian with the Claudian plugin (Claude Code in a side panel) or Obsidian Copilot (vault-wide Q&A + generated /commands).
  • Or point Claude Code / Codex at the folder from a terminal and give it a goal — e.g. "who are my warmest paths to a Series A investor?"

Supported sources

Give it one source or a combined archive with several — it detects and merges them all. Unknown files are summarized, never dropped. For the full connector directory — what each source contributes, where it maps in the brain, and the roadmap — see the Sources page.

Personal sources — a digital twin

LinkedInCSVmost complete

Profile, positions, skills, connections, companies, recommendations, posts/comments, job applications, algorithmic inferences, ad profile, search history.

  1. linkedin.com → Me → Settings & Privacy → Data privacy
  2. Get a copy of your data → choose the larger archive (everything)
  3. Partial archive in ~10 min; the full one within 24 h — use the second email's link

Import folder: linkedin · download link valid ~72 h

FacebookJSON

Friends → people, posts/comments → voice, liked pages → interests, ad-interests/predictions → the algorithmic mirror, check-ins → places, message signal (no bodies).

  1. accountscenter.facebook.com → Your information and permissions
  2. Download your information → Facebook profile
  3. Format JSON · media quality low · range All time — ready within hours

Import folder: facebook

InstagramJSON

Profile, followers/following, posts & captions, topics/interests, message signal.

  1. Same Accounts Center flow — choose the Instagram profile
  2. Format JSON

Import folder: instagram

Google Takeoutmixed

Contacts → people, Calendar → events, YouTube subscriptions → interests, Maps → places, Profile → identity.

  1. takeout.google.com → Deselect all
  2. Select Contacts, Calendar, Maps (your places), Saved, Location History, My Activity, Chrome, YouTube, Photos
  3. Export once — large exports arrive as several Takeout N zips; drop them all in together

Import folder: google

X / TwitterJS

Tweets & replies → voice, follows → people, likes → interests, lists, note-tweets, DM signal, ad data → the mirror.

  1. x.com → Settings → Your account → Download an archive of your data
  2. Re-verify, then wait 24–48 h for the email → download the ZIP

Import folder: x — unzip so the data/*.js files are inside

WhatsAppTXTsignal only

Exported chats → per-person message signal (frequency + recency grades relationship strength). Message text is never read.

  1. Per chat: open chat → ⋮ → More → Export chat → Without media
  2. Save the .txt — repeat for the chats that matter

Import folder: whatsapp

GitHubJSON

Repos → projects, stars → interests, followers/following & orgs → people and organizations, issue/PR activity.

  1. github.com → Settings → Account → Export account data → Start export
  2. Email link arrives in hours — extract the tar.gz first

Import folder: github

YouTubeTakeout

Subscriptions & playlists → interests, watch/search history → the algorithmic mirror, your comments → voice.

  1. takeout.google.com → Deselect all → YouTube and YouTube Music only
  2. In options keep history / subscriptions / playlists / comments — untick videos

Import folder: youtube · inside a full Takeout the google source handles it

StravaCSV/GPX

Activities → places & routines, clubs → organizations, followers → people — where you actually train.

  1. strava.com → Settings → My Account → Download or Delete Your Account
  2. Download Request → email ZIP

Import folder: strava

RedditCSV

Posts & comments → voice, subreddits & multireddits → interests, friends → people, PM signal.

  1. reddit.com/settings/data-request → full GDPR export
  2. Email link — typically <48 h, up to 30 days

Import folder: reddit

SpotifyJSON

Listening history & library → taste, playlists, artist follows, marketing inferences → the mirror. Tick "Extended streaming history".

  1. spotify.com/account → Security & privacy → Download your data
  2. Tick Extended streaming history (the default alone is thin)
  3. Email links (account ~5 days, extended up to 30) — drop both zips' contents together

Import folder: spotify

TikTokJSON

Follows → people, likes & hashtags → interests, watch/search history → the mirror, your comments → voice.

  1. App → Profile → ☰ → Settings → Account → Download your data
  2. Format: JSON (machine-readable) — ready in days; download within 4 days

Import folder: tiktok

Company sources — a Company Brain

LinkedIn CompanyCSV

Org profile, employees, followers, company posts.

  1. Page admin → Analytics / Settings
  2. Export the employee list, followers, posts and analytics reports (per-report CSVs — no single ZIP)

Import folder: linkedin_company

Google Workspacemixed

Directory users → employees, shared calendars → events, shared drives → projects.

  1. admin.google.com → Directory → Users → Download users (CSV)
  2. Calendars / drives via org Takeout or Google Vault

Import folder: google_workspace

SlackJSON

Members → people, channels → projects, messages → signal only (no bodies).

  1. Workspace admin → <workspace>.slack.com/services/exportExport (public channels; all paid tiers)
  2. Private channels / DMs need an Enterprise-Grid compliance export

Import folder: slack

NotionMD+CSV

Workspace export → knowledge pages & databases, page authors → people, teamspaces → structure.

  1. Workspace owner → Settings → Export all workspace content
  2. Markdown & CSV, include subpages → email link (large spaces take hours)

Import folder: notion

ConfluenceXML

Space exports → the knowledge layer, page authors & contributors → people.

  1. Space admin → Space settings → Export space
  2. XML (full fidelity; HTML also parses) → ZIP

Import folder: confluence

JiraCSV

Issues → projects, components & ownership, assignees/reporters → people — answers "who owns this?".

  1. Issue navigator → filter the project(s) → Export → CSV (all fields)
  2. Repeat per 1000-row page if large

Import folder: jira

SalesforceCSV

Accounts → customers, contacts & leads → people, opportunities → the pipeline (one note per deal), campaigns, cases → support.

  1. Setup → Data Export Service → Export Now (or schedule)
  2. Email link — expires in 48 h → CSV ZIP(s)

Import folder: salesforce

HubSpotCSV

Contacts, companies, deals & tickets → people, customers, pipeline and support — with owners preserved.

  1. Per object: Contacts / Companies / Deals / Tickets list → Export → CSV, all properties
  2. Keep the hubspot-… filenames

Import folder: hubspot

ZendeskCSV/JSON

Organizations & requesters → customers and people, ticket signal → support themes.

  1. Admin Center → Account → Requests to export data (Zendesk support enables it once)
  2. JSON/CSV → email

Import folder: zendesk

Email archiveMBOXheaders only

Any .mbox archive → people & message signal from headers. Bodies are never read.

  1. Gmail: Takeout → Mail → MBOX (or Google Vault org-wide)
  2. Outlook PST: convert first — readpst -o out/ archive.pst → drop the .mbox

Import folder: email — a personal Takeout containing Mail is deliberately NOT auto-imported; place the mbox here on purpose

Microsoft 365EMLheaders only

Purview eDiscovery results → directory people + mail signal, headers only.

  1. Purview compliance portal → eDiscovery → Content search
  2. Export results (needs the eDiscovery Manager role) — .eml + results CSV

Import folder: microsoft365

Microsoft TeamsCSVsignal only

Purview message report → per-person collaboration signal. Bodies are never read.

  1. Purview eDiscovery message report (CSV/JSON) for the teams in scope

Import folder: teams

That's 24 sources — 12 personal, 12 company — every one detected automatically. Anything else with a data export is usually just a JSON mapping away, and files no source claims are rescued by the universal harvester, summarized in _COVERAGE.md — never dropped.

How it works

Every network changes its export format over time and across regions. A hardcoded converter breaks the moment that drifts — so Second Brain Link detects, adapts, builds, then verifies it left nothing behind:

01Detect + profile

Which source(s)? Reads every file & column → schema map.

02Adapt

Optimizes the mapping to your actual export schema.

03Build

Normalizes all sources into one vault, in seconds.

04Verify

Coverage report; loops if gaps remain.

  1. Detect + profile. Identifies the source(s) in your archive, reads every file and column, and writes a schema_map.md — each file classified, each column typed, with privacy-safe samples. It also draws a mindmap and designs the brain structure.
  2. Adapt. Each source is a declarative JSON mapping (engine/mappings/sources/<name>.json). Files no mapping claims are rescued by a universal harvester and flagged in _COVERAGE.md under "Needs a mapping". Only genuine unknowns need your AI — it reads the schema map (never your raw data) and proposes a mapping.
  3. Build. A deterministic, dependency-free Python engine writes the entire unified vault in seconds with zero AI cost, merging people who appear in more than one source.
  4. Verify (+ correlate). _COVERAGE.md reports how much of your export was used; _SUMMARY.md gives seed counts. Anything unrecognized lands in 99-uncategorized/ — nothing is silently dropped. Multiple entities get a _correlations/ brain linking them. Once built, asking the brain runs graph-grounded retrieval — see How the AI answers.

Self-adapting: the skill fixes itself

Platform exports drift — new files, renamed columns, regional variants, format changes between the export you took last year and the one you took today. The skill is built to absorb that drift on your machine, using the AI only on the residual:

  1. Schema map first. The profiler reads every file and column in your archive and writes schema_map.md (PII-safe — column names only). Known shapes route to sources; unknowns are flagged, never guessed at.
  2. Declarative mappings, not hardcoded parsers. Most sources are JSON mappings under mappings/sources/. When your export has an extra field or a renamed file, the AI extends the mapping — or drops a mapping_overrides.json beside your data — instead of waiting for a code release. A mapping override wins over the built-in adapter.
  3. The harvester rescues the rest. Files no source claims go through a universal shape recognizer (people / places / posts / interests / message signal), so data lands in the brain even before a proper mapping exists. They're listed in _COVERAGE.md under "Needs a mapping" — the self-improvement backlog.
  4. Self-heal on failure. If a build errors, the engine writes a structured _ERROR.md naming the script, the file and the line. The AI applies the smallest fix, mirrors it, and re-runs — no human debugging session required.
  5. The ratchet. Every adjustment is durable: the extended mapping keeps working on your next export, and _DATA_POINTS.md's field-by-source matrix shows exactly which new cells lit up.

This is why the honest pitch is deterministic core, AI on the residual: the build itself costs zero tokens, and intelligence is spent only where your export genuinely differs from the known world.

Identity resolution

If "Sam Patel" is a LinkedIn connection, a Facebook friend, and a Google contact, you don't get three notes — you get one, tagged sources: [linkedin, facebook, google], with company and role filled in from whichever source knew it.

10-people/Sam-Patel.md
--- type: person sources: [linkedin, facebook, google] company: "[[Cedarpay]]" strength: strong last_contact: 2026-05-14 ---

People who appear across multiple networks are surfaced as your strongest multi-context relationships. Matching is conservative by design — a wrong merge is worse than a miss (sharper fuzzy matching lands in v1.2).

The vault it builds

A layered, Obsidian-native vault. _STRUCTURE.md is the map — it documents what every folder and file is, so you (or an agent) always know where things live.

your-vault/
your-vault/ ├── Home.md 🏠 start here — map of content + example prompts ├── CLAUDE.md how the agent navigates + privacy rules ├── 00-me/ identity — who the twin speaks as ├── 10-people/ one note per person (emails/phones stripped) ├── 15-organizations/ employers, targets, vendors ├── 20-reputation/ recommendations + endorsements ├── 30-voice/ posts, comments, interests ├── 40-career/ applications, preferences, saved jobs ├── 50-mirror/ how the algorithms see you ├── 60-learning/ · 70-services/ · 80-search/ · 85-places/ ├── 90-synthesis/ the payoff: network-map, positions-i-hold, target-companies, positioning-gaps ├── 99-uncategorized/ unrecognized files, summarized — never dropped ├── _quarantine/ sensitive files — intentionally NOT imported ├── _STRUCTURE.md · _SUMMARY.md · _COVERAGE.md └── 95-goals/ · Dashboard.md · _DATA_POINTS.md · _GRAPH.md ← analyze.py

Obsidian-native by construction

  • The graph is real. Filenames equal titles, so [[Acme Cloud]] resolves to the actual note — open Graph view and you literally see your network.
  • Properties work. Valid YAML frontmatter with native Properties: type, strength, ISO dates; wikilinks in properties are quoted so backlinks resolve.
  • Tags & filters. Every note carries source/<name> + type tags so the graph and search filter cleanly by where each fact came from.
  • One brain per entity. Multiple identities/companies each get their own vault, plus a _correlations/ brain with works_at edges between them.

Owner mode (--full): the default build is privacy-safe. For your own brain on your own machine, --full keeps everything — emails, phones, every extra column — still 100% local.

How the AI answers — spreading activation

When you ask your brain a question, the query flows through the graph, not just over its text. Retrieval is deterministic, client-side, and makes zero network calls — the brain fires before the model speaks.

01Seed

Lexical match: note titles & aliases (weight 1.0), body keywords (0.5).

02Spread

Personalized PageRank over your typed, weighted edges — works_at, correlated, attended… Damping 0.85, 20 iterations.

03Pack

Top-activated notes + the typed links among them become the context pack.

04Answer

The model answers from the pack and cites the notes it used.

  1. Seed. Your words, matched directly against note titles, aliases and body keywords. The notes that match become the input activations — nothing hidden, nothing inferred.
  2. Spread. Activation propagates along your real links — the typed, weighted edges the engine built from your exports. That's why an old note two hops away from your question still surfaces: the graph carries it there. This is spreading activation, the textbook cognitive-science model of memory recall, computed as Personalized PageRank.
  3. Pack. The top-activated notes, plus the typed relationships among them, become a plain-text context pack — something you could open and read yourself.
  4. Answer. The model must answer from the pack, and the answer cites the notes it used. No pack, no claim.

Why you can trust the animation

The Neural view — the layered view, your vault's layers as columns — animates the wave, and every number in it is real: seed pulses, arrival order and brightness all come from the retrieval run. An edge only lights if it genuinely connects two activated notes. No fake cascades, no fake ML.

The anatomy it fires through

Studio renders every vault as tissue, at every scale — the same anatomy the wave travels:

  • Cells — real sub-clusters computed from the link graph: each cell is a genuine hub note plus the notes that actually link to it. Deterministic — same vault, same anatomy.
  • Membranes & tissue — soft outlines around cells and smooth blobs around regions delimit the structure without hiding anything.
  • The halo — notes with no links yet hold a seat on the rim, visible until the graph grows around them.
  • Cells that open — hover names a cell, click opens it in place, “only this” isolates it. Counts are always honest: showing N of M.

At 25,000 notes

Big vaults stream metadata first: the full anatomy renders and searches instantly, and note bodies load on demand the moment you open one. 100% of notes stay visible and discoverable — nothing is sampled away.

Direction — grounded search: in v2, the same activation pack seeds outward web research, so new knowledge arrives already connected to your graph. Roadmap, not shipped.

Goals & dashboards

A brain is only useful once pointed at a goal. After building, just tell your agent what you want the brain for:

"Point my brain at my goals: I'm fundraising for <thesis> and job-hunting — build the goal workspaces and color the graph."

The skill runs the analyzer for you — deterministic and re-runnable in seconds (it reads frontmatter, no rebuild):

what the AI runs for you
python3 engine/scripts/analyze.py vault/personal/<you>-brain \ --goals fundraising,bd,jobsearch,datamining,personalization \ --thesis "<what you raise for>" --icp "<who you sell to>" \ --graph-config vault/.obsidian/graph.json

It writes:

  • 95-goals/<goal>.md — ranked tables answering the goal, each ending in a ready-to-run AI prompt. Built-ins: fundraising, bd, jobsearch, datamining, personalization.
  • Dashboard.md — live Dataview tables: warm/dormant ties, network-by-company, a by-source breakdown.
  • _DATA_POINTS.md — every node type + relation + a field-enrichment-by-source matrix + a "mineable questions" catalog.
  • _GRAPH.md + --graph-config — colors the global graph by source and type (merges into .obsidian/graph.json, preserving your settings).
  • copilot-prompts/ — one-click /commands for Obsidian Copilot: /warm-intro, /investor-paths, /reconnect, /job-fit, /mine, /for-me.

Obsidian integration

Two ways to put an AI directly in your vault — both install from Settings → Community plugins:

Obsidian Copilotretrieval

Semantic Vault QA across all notes, plus the generated /commands. Best for instant retrieval and one-shot questions.

Claudianagentic

Claude Code itself in a side panel, with your brain as its working directory. Best for multi-step reasoning, drafting, and writing back into the vault.

The answer can be an artifact, not just a chat reply. Because the agent can write into the vault, ask for the output as a file: a .canvas board of your warmest investor paths, a live Dataview dashboard of dormant contacts, a note comparing 50-mirror/ to how you describe yourself. Whatever it generates follows the builder's conventions, so it's instantly first-class in the graph.

One honest limit: the export is a snapshot — sharp on your history, blind to this week. Re-export periodically and update in place with --refresh (or Studio's Update reseed) — your edits are kept. Hosted, scheduled always-fresh sync is on the roadmap.

CLI reference — under the hood

You normally never type these — you prompt the skill and it runs the engine for you (and adapts the commands to your export). They're documented for transparency, for self-hosters, and for the AI itself: the engine is plain Python and every command also runs without the Agent Skill installed.

commands
# every entity under data/ → one brain each + _correlations/ python3 engine/scripts/build_vault.py data -o vault # a single source folder → a single brain python3 engine/scripts/build_vault.py \ data/personal/<you>/linkedin -o vault/my-brain # preview detection without writing anything python3 engine/scripts/build_vault.py data --dry-run # goals + dashboard + graph colors (after building) python3 engine/scripts/analyze.py \ vault/personal/<you>-brain --goals jobsearch # build + install the Agent Skill for both providers python3 packaging/build_skill.py all --install

Flags

FlagWhat it does
--fullOwner mode — keep your own emails/phones and quarantined personal files (still 100% local)
--emit obsidian|gbrain|bothOutput target — Obsidian vault (default) and/or a GBrain repo
--subject person|companyWhat the brain is rooted on (00-me/ vs 00-org/)
--provider claude|openaiWhich in-vault guide to write (CLAUDE.md vs AGENTS.md)
--mappings <dir>Override or add declarative JSON source mappings
--dry-runPreview detection without writing
--doctorPreflight check

Each output dir must be new or empty — the builder never clobbers existing notes.

Adding a source

Anything with a data export can become part of the brain. In order of preference:

  1. A declarative JSON mapping engine/mappings/sources/<name>.json: a detect block plus records[] that locate arrays and pluck fields via a tiny selector language into canonical col.add_* verbs. No Python, no engine edit. A mapping wins over a same-named Python adapter and can ship via --mappings <dir>.
  2. A Python adapter — only for bespoke cross-file logic: one file in engine/scripts/sources/personal/ or …/company/ (set SUBJECT="company" for company sources). Auto-discovered, no registry edit.
  3. An output target — one emitter file in engine/scripts/emitters/.

Either way the builder, privacy rules, Obsidian/GBrain output, and cross-source merging all work unchanged. Files no mapping claims are caught by the universal harvester and listed in _COVERAGE.md under "Needs a mapping" — your cue to add a rule for precision.

Project layout

second-brain-link/
second-brain-link/ ├── data/ ⬇ drop your exports here (git-ignored) ├── vault/ ⬆ your generated brains land here (git-ignored) ├── engine/ the shared, provider-neutral engine │ ├── scripts/ profile_export.py · build_vault.py · analyze.py │ │ ├── emitters/ obsidian (default) · gbrain │ │ └── sources/ personal/ + company/ adapters (auto-discovered) │ ├── mappings/ declarative JSON: sources/<name>.json │ └── references/ blueprint.md — the full data model ├── providers/ thin manifests: claude/SKILL.md · openai/SKILL.md ├── packaging/build_skill.py assembles engine + manifest → dist/ └── dist/ second-brain-link.skill per provider

One provider-neutral engine does the work; thin per-provider manifests ship it as a cross-model Agent Skill (the Agent Skills open standard).

Privacy model

  • Zero network calls in the core transform — verifiable in engine/scripts/.
  • Third-party PII stripped at parse time — across every source, contacts' emails and phones never become notes.
  • Message bodies never written — only a per-person count + last-contact date, which grades relationship strength.
  • Sensitive files never importedLogins, Receipts, Security Challenges, ImportedContacts and friends stay in your original archive, listed in _quarantine/.
  • The schema map redacts sensitive columns and masks any email/phone in samples.

Never commit your vault to a public repo — the generated .gitignore guards against accidents. Full write-up: the privacy model.

Roadmap

v0

LinkedIn → vault: full local transform, Obsidian-native

shipped
v0.5

Multi-source: Facebook, Instagram, Google — one merged vault

shipped
v0.7

Personal and company; GBrain emitter; --full owner mode

shipped
v0.8

Cross-model (Claude + Codex); multi-entity + _correlations/; JSON mappings + harvester

shipped
v1

24 sources: X, WhatsApp, GitHub, YouTube, Strava, Reddit, Spotify, TikTok + Notion, Confluence, Jira, Salesforce, HubSpot, Zendesk, Email, Microsoft 365, Teams; offline geocoding; company-named vault layout; --refresh re-import

shipped
v1.5

Always fresh: --refresh re-import shipped — update the brain in place from a newer archive, your edits kept (hosted scheduled sync lands with Cloud)

shipped
v1.2

Sharper entity resolution: stable IDs + precision-biased fuzzy matching

planned
v2

The agentic ops layer — the brain that acts: meeting prep, drafting in your voice, reviving dormant relationships

next

Contributing

The most valuable contribution right now: run it on your real export and open an issue if any file or column didn't map cleanly — the schema_map.md it generates is exactly what we need to see. Parser robustness across the long tail of real accounts is how this gets great.

Created and maintained by Adrian Vicovan. Questions? Use our contact form.