High-performance local web client, reverse-engineered gemini.google.com session bridge, SQLite FTS5 conversation store with DAG branching, and OpenAI-compatible local API server (/v1/chat/completions, /v1/models).
-
Authorized Gemini Web-Session Bridge (
backend/app/bridge/)- Authenticates against
gemini.google.comusing your authorized session cookies (__Secure-1PSID,__Secure-1PSIDTS) or automatic local Chromium/Chrome/Edge/Brave profile extraction. - Extracts
SNlM0eCSRF tokens, executesbatchexecuteRPCs (otAQ7b,MaZiqc,hNvQHb,CNgdBe), parses length-prefixedStreamGeneratechunks (with incremental UTF-8 frame decoding and thinking-trace separation), uploads multimodal files viacontent-push.googleapis.com, and rotates session cookies viaRotateCookies. - Encrypts stored session credentials locally using native Windows DPAPI (
CryptProtectData/CryptUnprotectDatainbackend/app/storage/vault.py) with AES-256-GCM fallback.
- Authenticates against
-
Lag-Free Virtualized Local Web UI (
frontend/src/)- Custom viewport virtualizer (
VirtualChatList.tsx) with O(log N) binary-search offset indexing, synchronous layout measurement + singletonResizeObserverdynamic height propagation, and scroll anchoring. - Off-main-thread Web Worker syntax highlighting (
highlight.worker.ts) and Shadow DOM style/token encapsulation (CodeBlock.tsx,MathBlock.tsx), maintaining ~83–106 total document DOM nodes and 0 main-thread long tasks (>50ms) even on 500–1,050 message threads with 100+ code blocks and LaTeX formulas.
- Custom viewport virtualizer (
-
Local SQLite WAL Storage, DAG Branching & Instant FTS5 Search (
backend/app/storage/)- Multi-connection reader pool + serialized write lock over SQLite WAL mode.
- Full-text search (
FTS5with BM25 ranking, snippet highlighting, single-flight request coalescing, and generation-epoch cache invalidation) delivering ~19ms P99 latency across 1,000+ conversations under 100-client concurrency. - Tree-structured message branching (
parent_idDAG), sibling navigation (< 1/2 >), message editing with fork regeneration, and Markdown/JSON conversation export.
-
OpenAI-Compatible Local API Proxy (
backend/app/openai/)- Exposes
GET /v1/modelsandPOST /v1/chat/completions(bothstream: trueSSE andstream: false, plus base64/URL vision attachments) routed through your authorized Gemini account.
- Exposes
-
Google Flow Educational Video Studio (
backend/app/bridge/flow.py,backend/app/api/flow.py,FlowStudioDrawer.tsx)- Integrates with
https://labs.google/fx/tools/flow(Veo 3.1) to synthesize multi-scene educational storyboards, per-scene visual prompts, voiceover narration scripts, camera motion directives, synchronized WebVTT (.vtt) / SubRip (.srt) subtitle tracks, and assembled.mp4video lessons.
- Integrates with
-
AGY Mission Control — 4-Tier Golden Stack Hub (
backend/app/bridge/mission_control.py,backend/app/api/mission_control.py,MissionControlDrawer.tsx)- Unites the 4-Tier (
L1 -> L2 -> L3 -> L4) ecosystem inside a single real-time command center:- P10–P50 Golden Stack Bus: Single-process priority hook multiplexer (
0.06msaverage 5-slot in-memory dispatch) with re-entrancy guard,P30Agile V Self-Grading Bias enforcement, andP505-Gate OSS pre-push auditing. - LSRPC Plugin Manager: Context-safe plugin discovery and live
config.jsonstate toggling keyed by install directory (dir). - ISO 9001:2015 Gate Controller: Finite-state progression (
SPEC -> TEST_DESIGN -> SYNTHESIS -> VERIFICATION -> RELEASE) with locked test SHA-256 tamper detection. - Brain Memory & Child Testbench Telemetry: Cross-session artifact search (
[label](conversation://<id>)) and live ingestion ofchild_session_reports.jsonlhandoffs.
- P10–P50 Golden Stack Bus: Single-process priority hook multiplexer (
- Unites the 4-Tier (
.\start.ps1- Backend API & OpenAI Proxy:
http://127.0.0.1:8000 - Local Web UI:
http://127.0.0.1:5173
- Start Backend Server:
python -m uvicorn backend.app.main:app --host 127.0.0.1 --port 8000
- Start Frontend UI:
cd frontend npm run dev -- --host 127.0.0.1 --port 5173
- Open
http://127.0.0.1:5173and click ● Auth (top right) to open the Session & Credentials modal. - Either click Auto-Extract from Browser (extracts cookies from local Chrome/Edge/Brave profile) or paste your
__Secure-1PSIDand__Secure-1PSIDTScookies fromgemini.google.comDevTools (Application -> Cookies). - To use with external IDE plugins or OpenAI SDK clients:
- Base URL:
http://127.0.0.1:8000/v1 - API Key:
local-gemini(any non-empty string) - Models:
gemini-2.5-pro,gemini-2.5-flash,gemini-2.0-flash-thinking
- Base URL:
- 4-Tier Master E2E Suite (383 tests):
python tests/e2e/runner.py
- Backend Integration Suite:
python -m pytest backend/tests -v
- Playwright Headless UI & 100Hz Streaming Benchmarks:
cd frontend npx playwright test
- iso9000-agentops — ISO 9001:2015 / Agile V Multi-Agent Quality Pipeline & Benchmark Suite
- agy-lsrpc-bridge — Language Server ConnectRPC Bridge, Plugin Validator & Scaffolder
- agy-golden-stack — Unified In-Process P10..P50 AgentOps & Hook Multiplexer Bus