Brain Hub for AntigravityAn extension for VS Code and Google DeepMind Antigravity IDE to browse, search, resume, archive, and sync local Antigravity brain sessions. User Guide (English) | User Guide (Tiếng Việt) | Architecture & Developer Guide
Features1. Brain Hub Dashboard (
|
| Shortcut (Windows/Linux) | Shortcut (macOS) | Command ID | Description |
|---|---|---|---|
Ctrl + K Ctrl + D |
Cmd + K Cmd + D |
brainHub.openDashboard |
Open Brain Hub Dashboard |
Ctrl + K Ctrl + H |
Cmd + K Cmd + H |
brainHub.searchChat |
Open Quick Search across sessions |
Note: All keybindings can be changed or unbound in VS Code Keyboard Shortcuts (Ctrl + K Ctrl + S).
Commands Reference
The extension contributes the following commands:
| Command | Title | Description |
|---|---|---|
brainHub.openDashboard |
Open Dashboard | Opens the two-column dashboard webview |
brainHub.searchChat |
Search Chat History... | QuickPick search across sessions |
brainHub.openSettings |
Open Settings | Opens extension configuration in VS Code |
brainHub.syncNow |
Sync with GitHub (Pull & Push) | Runs git pull and git push on the brain repository |
brainHub.setupGitSync |
Setup GitHub Backup Repository... | Configures remote URL for the brain directory |
brainHub.checkGitStatus |
Check GitHub Sync Status | Shows current Git branch and uncommitted status |
brainHub.refresh |
Scan and Refresh Sessions from Disk | Rescans the brain directory and rebuilds cache |
brainHub.toggleWorkspaceFilter |
Filter Chat History by Current Workspace | Toggles workspace session filtering |
brainHub.toggleHideEmptySessions |
Toggle Hide Empty Chats (0-message sessions) | Toggles visibility of 0-message sessions |
brainHub.cleanEmptySessions |
Clean Empty Chat Sessions (0 messages) | Deletes 0-message session folders from disk |
brainHub.exportMarkdown |
Export to Markdown (.md) | Saves active session transcript to a .md file |
brainHub.exportAllWorkspaceSessions |
Batch Export Workspace Sessions to Markdown... | Exports all workspace sessions to a selected folder |
brainHub.exportProjectDocs |
Archive Project Docs & Logs (.docs/) | Copies plans, walkthroughs, and logs to .docs/ |
brainHub.openRichMarkdownPreview |
Open Rich Markdown Preview (Mermaid & KaTeX) | Opens custom preview with Mermaid & KaTeX support |
brainHub.openIdeMarkdownPreview |
Open with IDE Built-in Markdown Preview | Opens default VS Code markdown preview |
brainHub.openChat |
Open Chat | Opens session transcript in reader |
brainHub.copyResumePrompt |
Copy Resume Prompt | Copies session resume prompt to clipboard |
brainHub.copySessionId |
Copy Session ID | Copies session ID string to clipboard |
brainHub.openFolder |
Open Session Folder in Explorer | Opens session folder in OS file manager |
brainHub.deleteSession |
Delete Chat Session | Prompts to delete selected session folder |
Settings Reference
Configure in VS Code Settings (Ctrl + , $\rightarrow$ search brainHub):
| Setting | Default | Description |
|---|---|---|
brainHub.brainPath |
"" |
Primary path to brain/ directory (defaults to ~/.gemini/antigravity-ide/brain) |
brainHub.additionalBrainPaths |
[] |
Additional directories to scan alongside the primary brain folder |
brainHub.machineName |
"" |
Machine label for sessions created on this device (defaults to system hostname) |
brainHub.sessionSortBy |
"lastModified" |
Sort criteria: "lastModified" (last activity) or "createdAt" (creation time) |
brainHub.messageOrder |
"newestFirst" |
Message ordering: "newestFirst" or "oldestFirst" |
brainHub.autoSyncOnStartup |
true |
Runs Git sync when VS Code launches |
brainHub.autoSyncIntervalMinutes |
30 |
Interval in minutes for background Git sync (0 to disable) |
brainHub.backgroundScanIntervalMinutes |
5 |
Interval in minutes for background folder scan (0 to disable) |
brainHub.enableRealtimeWatcher |
true |
Watches brain folder for newly created or deleted session folders |
brainHub.autoRefreshOnWindowFocus |
true |
Triggers background scan when refocusing the IDE window |
brainHub.filterWorkspaceByDefault |
false |
Filters sidebar tree view by open workspace on load |
brainHub.hideEmptySessions |
true |
Filters out sessions with 0 messages |
brainHub.autoReloadOnLiveChat |
true |
Reloads viewer when the active session's transcript file changes |
brainHub.defaultToolsState |
"collapsed" |
Default collapse state for tool call details ("collapsed" or "expanded") |
brainHub.defaultAiStepsState |
"collapsed" |
Default collapse state for AI step groups ("collapsed" or "expanded") |
brainHub.defaultGroupExpansion |
"smart" |
Default expansion for time groups: "smart", "allExpanded", or "collapsed" |
brainHub.maxQuickSearchItems |
100 |
Maximum number of sessions indexed for Quick Search |
brainHub.autoOpenDashboardOnSidebarFocus |
true |
Opens Dashboard when clicking the Antigravity Activity Bar icon |
brainHub.archiver.defaultMode |
"askEachTime" |
Archive mode: "askEachTime", "safeDocsOnly", or "fullWithSanitization" |
brainHub.archiver.autoGitignore |
true |
Appends .docs/logs/ and .docs/scratch/ to workspace .gitignore |
brainHub.archiver.sanitizeSecrets |
true |
Redacts API keys, tokens, and credentials from archived transcripts |
brainHub.archiver.customSecretPatterns |
[] |
Additional regex patterns used by the secret sanitizer |
Documentation
Disclaimer
Brain Hub for Antigravity is an independent, unofficial open-source extension. It is not affiliated with, endorsed by, or sponsored by Google or Google DeepMind. "Antigravity", "Gemini", and related marks are trademarks of Google LLC or their respective owners, used here solely under Nominative Fair Use to describe compatibility and functionality.