Antigravity Task: FileGeek "Knowledge OS" Final Reengineering
Plans a UI overhaul into a Bento Grid layout, a theme/font engine, and stable multi-provider AI routing for FileGeek.
What this file does
Plans a UI overhaul into a Bento Grid layout, a theme/font engine, and stable multi-provider AI routing for FileGeek.
When to use it
- Redesigning a file viewer with a modular Bento Grid dashboard
- Adding a dynamic theme and font selection engine
- Stabilizing AI routing across multiple providers
- Removing legacy features like Research Notes
Assumes this stack
Antigravity Task: FileGeek "Knowledge OS" Final Reengineering
Objective: Transform FileGeek into a high-density "Knowledge Operating System" by reengineering the UI into a modular Bento Grid architecture, establishing a dynamic theme/font engine, and stabilizing multi-provider AI routing.
1. Layout Overhaul: The Bento Grid & Discovery Dashboard
- Main Layout Refactor (
MainLayout.js):- Replace the current
react-resizable-panelswith a CSS Grid Bento Layout. - The Canvas (Center):
- Active State: Display the
FileViewer. - Discovery Dashboard (Empty State): When no file is selected, show a dashboard with Bento-style cards for:
- Mastery Heatmap: Visual progress of known vs. remaining flashcards.
- Session Pulse: Total interactions and active session duration.
- Resource Inventory: Recent documents and generated artifacts.
- Active State: Display the
- Activity Stream (Right): Merge
ChatPanelandArtifactPanelinto a single unified "Reasoning Log".
- Replace the current
- Warp-Inspired Input: Move the chat input to a Floating Command Bar at the bottom-center of the screen with a
//command prefix.
2. Branding & Aesthetic (Brutalist Design)
- Theme & Font Engine:
- Context Update (
ThemeContext.js): Refactor to support CSS Variable Injection for themes and fonts. - Settings Update (
SettingsContent.js): Add an// APPEARANCEsection with dropdown menus for:- Theme:
BRUTALIST_DARK(Default),PAPER_WHITE,SOLARIZED. - Typography:
JETBRAINS_MONO(Default),INTER_SANS,OPEN_DYSPLEXIC.
- Theme:
- TopBar Integration: Add a
PaletteIcontoTopBar.jsfor quick-swapping presets.
- Context Update (
- Brand Realignment: Globally replace all "JM Solutionss" branding with FileGeek and enforce the Geek Green (
#00FF00) accent color.
3. Feature Cleanup & Workflow Stabilization
- Remove Legacy Features: Strip all logic and UI components related to "Research Notes" and
HighlightsContextfromMainLayout.js,TopBar.js, andCommandPalette.js. - AI Routing Stability (
ai_service.py):- Implement Lazy Client Loading for OpenAI and Gemini clients.
- Ensure
answer_with_toolsdynamically selects the provider based on themodel_overridestring without requiring server re-initialization.
- Performance Hardening: Ensure
PdfViewer.jsuses Virtual Scrolling to maintain 60fps performance on documents exceeding 100 pages.
4. Workflow Enhancements
- Agentic Transparency: Implement "Thinking Blocks" in the chat stream to display real-time status updates (e.g.,
[VECTOR_SEARCHING...],[GENERATING_QUIZ...]). - Active Recall Integration: Add a toggle in the
TopBarfor Socratic Mode, forcing the AI to provide page-referenced hints instead of direct answers.
Execution Order:
- Clean: Remove the Research Notes system.
- Structure: Implement the Bento Grid and the Warp-style Discovery Dashboard.
- Personalize: Deploy the Theme/Font selection engine.
- Optimize: Finalize the AI routing and PDF virtualization.
What's inside
4 sections, 10 subsections, 1 execution order list, 0 code examples
Change this for your project
- Replace
JM Solutionsswith your own branding - Replace
Geek Green (#00FF00)with your accent color - Replace
BRUTALIST_DARK,PAPER_WHITE,SOLARIZEDwith your theme names - Replace
JETBRAINS_MONO,INTER_SANS,OPEN_DYSPLEXICwith your font choices
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Worth borrowing
- Using a Bento Grid for empty-state discovery dashboard
- Lazy client loading for AI providers to avoid re-initialization
- Thinking blocks in chat stream for agentic transparency
Related Documents
Totem — Development Rules
Defines team-wide conventions for a pnpm monorepo: branch strategy, commit rules, tooling, and a mandatory knowledge-search workflow before coding.
MechCAD-MLLM
Proposes a MLLM + dual-decoder architecture for mechanical CAD generation, combining Drawing2CAD and CAD-GPT ideas.
Prompt Generator
Generates Stable Diffusion and Flux prompts via Qwen3-8B on Ollama, with a Gradio UI and CLI.
Agent Instructions
Defines a three-layer architecture (directive, orchestration, execution) for AI agents that self-anneal errors and update living SOPs.