Ali Brain • System Manual

Local-First Autonomous Knowledge Base • Version v2.8.125

Changelog Open Brain App

1. Architecture & Local-First Design

Ali Brain is an autonomous, serverless personal knowledge management system that runs entirely in your browser using standard web technologies. It stores your complete database directly on your local file system, providing instant load times, complete data ownership, and offline capability without relying on centralized databases or servers.

2. Multi-Computer Non-Destructive Sync

The synchronization engine ensures safe, concurrent multi-device usage over folder-sync tools like Dropbox, Google Drive, iCloud, or Syncthing. Rather than blindly overwriting entire files, Brain analyzes granular note timestamps to perform non-destructive merges, preserve simultaneous edits, and prevent accidental data loss.

Dirty-State Guard

Computers left open in the background never blind-save stale memory snapshots. If no local changes have been made on that device, auto-save timers will not touch or overwrite the file on disk.

Read-Before-Write 3-Way Merge

Before saving local modifications, Brain inspects the file on disk. If another computer wrote to the file, Brain reads and merges entries non-destructively using individual updatedAt timestamps.

Conflict Preservation

If the exact same note was edited concurrently on two computers, the newer timestamp becomes primary, and the older edit is cloned non-destructively as a [Conflict Copy] note so nothing is lost.

Deletion Tombstones

Deleted notes record a timestamped tombstone in the database (tombstones: { [id]: timestamp }). This prevents deleted notes from being resurrected by other computers. Tombstones older than 60 days are pruned automatically.

Live Focus & Background Pulling: Switching to the Brain tab (or while idle) automatically polls the disk file. When remote changes are detected, the workspace reloads and updates the view seamlessly.

3. Entry Types & Taxonomy Solo Filtering

The taxonomy and organization system categorizes your knowledge base into distinct functional entry types alongside multi-dimensional tags, categories, and projects. It provides instant filtering controls, drag-and-drop organization, and solo views to isolate specific subsets of notes rapidly.

Notes • Manual User Thoughts Txt • Dropped & Imported Text Seeds • AI Prompt Shortcuts (Gemini Gems) Prompts • AI Theme Reflection Notes Media • Videos & Audio (YouTube/Vimeo) Web • Scraped Web Pages, Articles & PDFs AI Chat • Archived AI Conversations
Core Filtering & Taxonomy Capabilities:
• Type Toggle: Click any entry type badge to toggle that type on or off in the list. Note that AI Chat is hidden by default to keep your note list uncluttered.
• Solo Filtering: Shift + Click any type to solo it — hiding all other types in a single click. Shift-clicking the active solo type again restores all default types.
• Multi-Dimensional Taxonomy: Filter notes by Projects, Categories, and Tags. Drag notes directly onto taxonomy items in the sidebar to assign them instantly.
• Taxonomy Management: Hover over any project, category, or tag in the sidebar to reveal a delete button that removes the taxonomy across all notes in the database.
• Pinning: Pin essential notes to keep them anchored at the top of the list for fast reference.
• Fast Search & Clear: Real-time text search filters across titles and note contents. An inline clear button and Escape shortcut instantly reset your query.
• Sort Toggle: A toggle at the top right of the entry list switches between date created and date modified order (newest first). Pinned notes always stay on top.
• Type-Colored Interface: The reader, editor and Focus Mode accent color follows the entry's type (Note amber, Txt grey, Media red, Web sky, Prompt green, AI Chat purple, Seed blue).
• Taxonomy & Entry-Type Separation: AI taxonomy generation and auto-tagging strictly separate structural document formats (notes, txt, media, web, prompts, ai chat) from domain topics to keep your taxonomy clean.

4. Inline Editing & Field Generators

The document editor delivers a seamless, in-place writing and curation workflow. Every individual component of a note can be edited directly without opening separate modal forms, while dedicated AI action triggers allow you to selectively regenerate or refine specific fields on demand.

Double-Click Inline Editing

Double-click any field — Title, Executive Summary, Answer Summary, or Takeaways — to edit it directly in place. Edits commit automatically on blur or Enter.

Targeted Field Generators & Auto-Metadata

Independent refresh buttons beside each section trigger Gemini AI to re-extract or suggest content for only that specific field (Title, Taxonomy, Summary, or Key Takeaways) without affecting the rest of the document. When a user saves a note's content edit for the first time (via Done, clicking outside, or exiting Focus Mode), the system automatically synthesizes all metadata fields in a single pass—generating a descriptive title (if untitled), an executive summary, key takeaways, and contextual domain taxonomies (projects, categories, and tags) together.

Unified Instruction Registry (Single Source of Truth): Both targeted individual field generators and the combined initial auto-generation pipeline share a canonical, DRY instruction registry (METADATA_FIELD_SPECS). Dynamic prompt construction, schema definitions, and sanitizers are maintained in one place, ensuring 100% prompt consistency and zero behavioral drift between single-field and multi-field synthesis.

In-Place Taxonomy Editor

Clicking the taxonomy badges in the note header opens an inline manager to add new tags, remove existing tags, or trigger AI auto-tagging.

Distraction-Free Focus Mode

Double-clicking note content or clicking Edit opens an inline textarea editor with a flush-right Edit button (which becomes Done while editing) and a Focus Mode button that appears only while editing. Activating Focus Mode launches a centered distraction-free writing window. Exiting Focus Mode (via Esc, backdrop click, or close button) returns to the inline editor without saving or ending editing; click Done (or press Esc in the inline editor) to save.

Workspace State Persistence: The open/collapsed states of sidebars and panels are persisted into your workspace file and restored automatically across sessions.

5. Content Ingestion & Media Scrubbing

The ingestion pipeline transforms raw web links, multimedia URLs, and pasted text into clean, structured knowledge entries. Ingested content is automatically sanitized, formatted into Markdown, and enriched with AI-generated metadata.

6. Gemini AI Synthesis & Theme Prompt Generator

The Theme Prompt Generator analyzes your notes to surface connections, contradictions, and open questions that prompt new reflection notes.

Filter-Scoped Candidate Pool: Draws with equal weight from whatever notes are currently visible in your list (based on active Entry Types, Projects, Categories, Tags, and Search filters) that have an Executive Summary or Key Takeaways.
Theme Prompt Pool Settings (in General Settings): Configured inside the Settings modal () under Theme Prompt Pool Settings:
  • Date Range (dateRangeMonths): Defaults to 2 months (adjustable from 1 to 24 months, or All Time). Restricts the pool to notes created or updated within that timeframe.
  • Pool Size (poolSize): Defaults to 10 notes (adjustable from 5 to 50 in steps of 5, with the final step set to All). Controls how many eligible notes are randomly sampled (or all sent when set to All) in the request.
Single-Pass Synthesis & In-Place Refresh: Sends only the Title, Date, Executive Summary, and Key Takeaways of the sampled notes in a single API call. The model isolates one specific idea from 1 or 2 notes, links them with [[kb-ref:ID]] citations, and asks one open-ended "Why" or "How" reflection question (capped at 50 words). A refresh icon (fa-rotate-right) sits next to the Write button on generated prompt cards to roll a new prompt in place without dismissing first.
Model & Default Temperature (1.0): Uses the Theme Prompts model configured in Settings (taskModels.prompts) with a fixed default temperature of 1.0 (Google's recommended default for Gemini 2.5 reasoning models and associative synthesis across disparate ideas).
Knowledge Provenance & User Perspective: Prompts strictly assume only manual Notes and Prompt replies represent user-generated content reflecting their own issues, projects, and personal knowledge. Web, media, and text documents are treated as external and contextual third-hand knowledge (articles, videos, secondary research). Seeds and AI chats are ignored.
Animated Top Placement Above Search Bar: When generated, theme prompts smoothly expand between the entry creation buttons and the search bar, transitioning the search bar and note cards downward. Dismissing or saving the prompt smoothly glides the list layout back into position.

7. Unified AI Assistant & Chat Modes

The AI Assistant lets you chat with either a single open note or your broader knowledge base.

8. Backlinks & Decimal Numeric IDs

Ali Brain implements a lightweight, bi-directional referencing and linking network. You can connect ideas across different documents seamlessly without relying on proprietary database graph structures or fragile absolute paths.

9. Settings & Workspace Management

Workspace settings give you comprehensive control over AI configuration, model assignments, API key rotation, and multi-file merges. All settings are stored locally within your browser and knowledge base file.

10. Keyboard Shortcuts & Gestures

Ali Brain is optimized for high-speed, keyboard-driven navigation, writing, and curation. Use these global shortcuts, editor keybindings, and gesture modifiers to navigate your knowledge base seamlessly without reaching for the mouse.

Global Navigation & Workspace Controls
Shortcut Action
Alt + ←  /  Cmd + [  /  Ctrl + [ Navigate backward in note selection history (triggers the floating on-screen Back button directly).
Alt + →  /  Cmd + ]  /  Ctrl + ] Navigate forward in note selection history (triggers the floating on-screen Forward button directly).
Cmd + Z  /  Ctrl + Z Undo note modification or deletion (active outside text input fields).
Cmd + Shift + Z  /  Ctrl + Shift + Z  /  Ctrl + Y Redo previously undone note modification or deletion (active outside text input fields).
Cmd + J  /  Cmd + L  /  Ctrl + J Toggle the contextual AI Assistant drawer for the active note (bypassed in Whole Brain chat mode).
Note Editing & Focus Mode
Shortcut Action
Escape In Focus Mode: return to the inline editor (keeps editing). In the inline editor: commits and saves changes immediately, triggers background metadata synthesis, and restores rendered Markdown view.
Tab Insert 2 spaces for text indentation inside note editor textarea without moving focus.
Enter Confirm and commit single-line inline edit fields (Title, Summary, Takeaway). In taxonomy inputs (Projects, Categories, Tags), commits the entered item.
, (Comma) In taxonomy input fields, immediately adds the typed tag, project, or category.
Escape In single-line inline edit fields, cancels editing and reverts to previous text.
AI Conversations & Search
Shortcut Action
Enter Submit message to AI (in both Whole Brain full-width chat and Current Entry assistant drawer).
Shift + Enter Insert newline in AI chat input boxes without submitting.
Escape When search bar is focused with an active query, clears the search text and resets the notes list.
Mouse & Click Modifiers
Gesture / Modifier Action
Right-Click / Secondary Click Entry Card Opens desktop context menu with quick options to Copy Reference ([Ref: ID]), Pin / Unpin Note, and Delete Note.
Shift + Click Entry Type Solo Filter: Instantly isolates that specific entry type (Notes, Prompts, Media, Web, AI Chat), hiding all others. Shift-clicking the active solo type restores all default types.
Cmd / Ctrl + Click Note Toggle multi-selection of notes in the sidebar list.
Cmd / Ctrl + Click Taxonomy Multi-select projects, categories, or tags in the sidebar to view notes matching multiple taxonomy filters.
Drag Note → Editor Drag any note card from the sidebar list into the editor to insert a bi-directional reference link ([[kb-ref:ID]]).
Drag Note → Taxonomy Drag note cards onto any sidebar project, category, or tag to assign taxonomy immediately.
Double-Click Text Field Initiate inline editing directly on note titles, summaries, or content body.