Skip to content

Commit 360515f

Browse files
docs: add 'how it works' Mermaid diagram (#5)
1 parent 697832e commit 360515f

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,35 @@ That's it. Your AI now has persistent memory.
3333

3434
fbrain is intentionally minimal infrastructure. Three pieces:
3535

36+
This diagram shows the default profile-building flow: agents try local sources in order, synthesize context inside the current AI session, and write plain Markdown into the shared vault. Claude Code, Cursor, Codex, and OpenCode then read the same three-tier context folder without needing a hosted fbrain service.
37+
38+
```mermaid
39+
flowchart TD
40+
Gmail["Gmail (MCP)"] -. fallback .-> LinkedIn["LinkedIn (browser/PDF)"]
41+
LinkedIn -. fallback .-> SelfDescribe["User self-describe"]
42+
Gmail --> Evidence["Selected evidence"]
43+
LinkedIn --> Evidence
44+
SelfDescribe --> Evidence
45+
Evidence --> Session["Local LLM session<br/>no external API needed"]
46+
47+
Session --> Shareable["shareable/<br/>context-card.md"]
48+
Session --> Internal["internal/<br/>profile markdown"]
49+
Session --> Vault["vault/<br/>git-crypt encrypted"]
50+
51+
Shareable --> Claude["Claude Code"]
52+
Internal --> Claude
53+
Vault --> Claude
54+
Shareable --> Cursor["Cursor"]
55+
Internal --> Cursor
56+
Vault --> Cursor
57+
Shareable --> Codex["Codex"]
58+
Internal --> Codex
59+
Vault --> Codex
60+
Shareable --> OpenCode["OpenCode"]
61+
Internal --> OpenCode
62+
Vault --> OpenCode
63+
```
64+
3665
### 1. The vault — a structured folder
3766

3867
Plain Markdown files in a tiered folder structure:

0 commit comments

Comments
 (0)