GridAI Pro Code Studio Documentation
GridAI Pro is a next-generation autonomous AI software engineer, multi-format document intelligence engine, and industrial zero-cost AI gateway. Engineered with Google Antigravity IDE standards, GridAI combines Tier-1 High-Performance Free-Tier routing (1M token context) with Tier-2 Flagship Pro Escalation (DeepSeek R1, Claude 3.5 Sonnet, GPT-4o), multi-modal vision inspection, and universal document parsing across Web, Mobile, and Desktop environments.
β‘ Industrial Smart AI Gateway & Multi-Tier Cost Router$0.00 Base Cost
To sustainably power thousands of active users without incurring runaway API costs or sacrificing response quality, GridAI implements an enterprise Multi-Tier Smart AI Gateway (/lib/aiGatewayRouter.ts):
Zero-Cost High-Performance Engine
Fulfills 85β95% of daily requests (full React/Next.js components, API routes, refactoring, document analysis) at $0.00 USD cost with 1-Million token context:
nvidia/nemotron-3.5-lightning:free(1M context window)nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free(Multimodal vision + CoT)google/gemma-4-31b-it:free&gemma-4-26b-a4b-it:freecohere/north-mini-code:free&liquid/lfm-2.5-2.6b:free
Pro & Deep Reasoning Escalation
Automatically engages paid flagship models ONLY for heavy multi-file refactoring, deep algorithmic proofs, or when Tier-1 free pools are rate-limited:
deepseek/deepseek-r1(Deep step-by-step reasoning)qwen/qwen-2.5-coder-32b-instruct(Surgical SWE coding)anthropic/claude-3.5-sonnet&openai/gpt-4ogoogle/gemini-2.0-flash-001(High-speed vision & tool calls)
π§ Real-Time Output Sanitizer & <thinking> Block Formatter
Reasoning tokens emitted by open models are parsed in real time by sanitizeGatewayOutput and converted into structured Antigravity <thinking>...</thinking> blocks, ensuring a polished, enterprise-grade user experience on every response.
π Context-Aware Transcript & Large Log Parsing (1M Token Window)
When users paste massive conversation transcripts, multi-page logs, or huge codebase dumps with a short directive at the end (e.g. "what does line 42 mean?" or "fix this error"), GridAI's Attention Architecture isolates background reference material from active commands:
- Positional Recency Weighting: Tokens at the tail of the message are automatically recognized as active user tasks.
- Transcript & Timestamp Segmentation: Recognizes chronological time markers (
4:07 AM,4:24 AM) and quoted chat bubbles as historical reference. - Zero Context Truncation: With 1,000,000 tokens of active context, past turns and large stack traces are never dropped or omitted.
π°οΈ Autonomous Dynamic Model Discovery & Deprecation SentinelAuto-Pruning
AI models on global open routers frequently evolve, get renamed, or become deprecated without notice. To ensure 100% uptime and zero breaking changes, GridAI operates a continuous Live Model Auto-Discovery Sentinel (/lib/dynamicModelDiscovery.ts & /api/v1/models):
Live Catalog Auto-Discovery
Queries real-time model registries and catalogs to dynamically detect newly published high-performance open-weight models (Gemma, Llama, Nemotron, DeepSeek).
Automatic Deprecation Filter
Automatically parses deprecation headers, decommission notices, and degradation rates to prune sunset models from the routing pool before errors can reach users.
Zero-Cost Context Prioritization
Isolates verified $0.00 pricing tiers and ranks them by maximum context window (1M > 128k > 32k tokens) and multimodal vision capabilities with an in-memory SWR cache.
π Live Telemetry API: GET /api/v1/models
Developers can query GET /api/v1/models (or with ?refresh=true) to inspect live discovered model counts, active zero-cost pools, cache age, and sentinel health status in real time.
β‘ Real-Time Fluid Streamer & ChatGPT-Grade Audio PipelineZero Delay Output
To eliminate the sluggish character-by-character typewriter bottlenecks common in legacy AI wrappers, GridAI implements an enterprise Dynamic Token Burst Streamer & Non-Blocking Acoustic Engine (/dashboard/ChatGPTInterface.tsx & /lib/audioUtils.ts):
Dynamic Token Burst Sizing
Output chunk sizes dynamically adapt from 8 chars (short answers) to 120+ chars per tick (massive multi-file codebases), ensuring even 10,000-character outputs render in <1.2 seconds.
Non-Blocking Throttled Audio
Sound synthesis is completely decoupled from rendering. The 130ms acoustic throttle guard caps audio ticks at a pleasant cadence (~7 ticks/sec) without buffer saturation or stream stalls.
Harmonic Completion Chime
Upon generation completion, playStreamCompletionChime() synthesizes a gentle C5-E5-G5 harmonic sine wave cue confirming your AI response is ready.
π Universal Multi-Format Document Intelligence
GridAI features an industrial, serverless Document Engine (/api/v1/parse-document) capable of reading, decompressing, and extracting clean text and structural data from all standard file formats:
Microsoft Word Documents
Powered by mammoth. Extracts clean plain text, headings, list structures, policy provisions, and table contents from Word documents without XML noise.
PDF Documents & Policies
Powered by pdf2json and zlib stream inflation. Decodes custom CID /ToUnicode font character maps, strips TrueType font binaries (OS/2g, glyf) and ICC color profiles (HLino mntrRGB), producing 100% clean English text.
Visio Drawings & Diagrams
Parses Visio drawings (.vsdx, .vsd), SVG vector diagrams, and Draw.io charts. Extracts shape labels, text nodes (<Text>, <Shape>), process flow steps, and connector labels.
Notepad & Data Files
Full support for plain text (.txt), Markdown (.md), JSON (.json), CSV spreadsheets (.csv), log files (.log), XML, HTML, and YAML configuration files with control character sanitization.
π§Ύ 100.00% Verified Industrial OCR & Double-Entry Math Reconciliation
Image attachments, receipt scans, store invoices, and bill camera photos (.png, .jpg, .jpeg, .webp) are processed through GridAI's Industrial Vision Engine (reconcileReceiptData).
- Multimodal Vision Pipeline: Direct high-resolution vision OCR powered by
google/gemini-2.0-flash-001. - Double-Entry Bookkeeping Math Checksum: Verifies
Quantity Γ UnitPrice = LineTotalfor every single item and checksSubtotal - Discounts = Grand Total. - Multi-Pass Self-Healing Loop: Executes a secondary self-healing pass if math discrepancies or missing line items are flagged.
- Aisle-Categorized Supermarket Shopping Lists: Auto-groups items into 8 supermarket categories (Produce, Dairy, Meats, Bakery, Beverages, Snacks, Store Cupboard, Household).
- 1-Click Document Export: Instantly compiles itemized audit reports into downloadable PDF and DOCX formats.
πΉ Multimodal Social Video & Reel Intelligence (Facebook Reels, X/Twitter, TikTok, YouTube)
GridAI features an industrial Multimodal Media Resolver (mediaExtractor.ts) that automatically parses attached video and social media URLs (Facebook Reels, X/Twitter videos, TikTok, YouTube Shorts, and Instagram Reels).
- Link Detection & oEmbed Resolution: Detects social media links in user prompts and extracts author metadata, captions, thumbnails, and stream objects.
- Audio Speech-to-Text & Keyframe Analysis: Extracts spoken dialogue, narration audio, and visual keyframe thumbnails for Gemini Vision ingestion.
- Autonomous Action & Code Generation: If a video demonstrates a web application, code tutorial, or UI animation, GridAI automatically writes production code (
<write_file>) to build it directly in the workspace.
π¨ Multimodal Image Studio & 46-Feature Neural SynthesizerGemini 2.5 Flash + Flux & SDXL Turbo
GridAI Image Studio (/api/v1/generate-image) provides ChatGPT GPT-4o Vision + DALL-E 3 grade multimodal synthesis across 46 industrial style presets with zero-loss curve preservation, intelligent stroke inspection, and multi-model neural failover:
Full Preset Suite
Complete coverage from CAD Blueprints, Neon Lights, and 3D Avatars to Classical Oil, Watercolor, Cutaway Schematics, Paper Origami, Claymation, and Pop Art Stickers.
Multimodal Stroke Inspection
Powered by google/gemini-2.5-flash. Inspects arbitrary hand-drawn sketches (SVG vector lines), organic curves, spirals, characters, and photos to synthesize master prompts with zero hardcoded strings.
Resilient Multi-Engine Pool
Multi-tier failover routing across Flux Pro, SDXL Turbo, Flux Realism, and Master Diffusion with strict binary image header validation (0xFF 0xD8 JPEG / 0x89 0x50 PNG).
β¨ Curve-Preserving Geometric Synthesis & Unconstrained User Prompts
The engine dynamically adheres to what users draw and type without regex heuristics or laser tunnel hallucinations:
- Geometric Fidelity Directives: When a sketch with wavy curves or spirals is attached, neon light tubes, ink washes, or marble carvings are commanded along the exact drawn silhouette.
- Dynamic User Instruction Fusion: Freeform user modifications (e.g. "Neon colour effect", "in front of waterfall", "cyberpunk rain reflections") seamlessly fuse with the detected subject.
- Client Canvas Optimization: Automatic client-side canvas downscaling (max 800px, <80KB) ensures sub-second upload latency on both web and mobile.
- Clean State Isolation: Instant canvas and prompt isolation when toggling between style presets.
β‘ Credit Engine, $5/Mo Pro Tier & 100k Scaling Blueprint$5.00/mo Pro
π‘οΈ Non-Paid Free Tier
10 Pts / 6 Hours ($0.00)Free users operate on an automatic rolling quota system. Every 6 hours, non-paid user accounts are automatically replenished with +10 Free Credits. Free queries are serviced by high-throughput zero-cost engines (Groq LPUs, OpenRouter Free Pool, and Google AI Studio).
β GridAI Pro Member Plan ($5.00/Month)
700 Pts / Month + Automatic RolloverGridAI Pro is aggressively priced at $5.00 USD per month to maximize global accessibility. It includes 700 Pro Credits every billing cycle, priority GPU LPU allocation, deep reasoning engine access (DeepSeek R1 / Gemini Thinking), 8K Studio renders, and 1-click PDF/Word document exports.
π Automatic Unused Credit Rollover
Unused Pro credits at the end of your 30-day billing cycle never expireβthey automatically roll over to your next month:New Month Balance = Unused Rolled Over Credits + 700 New Pro Credits
β‘ Priority Developer Capabilities
- Unlimited multi-page PDF & CV parsing
- 1-Click DOCX and styled PDF export
- 8K Creative Studio across 33 Art Styles
- Autonomous Local Disk & GitHub Commits
π Two-Stage Growth Architecture (1,000 β 100,000 Users)
| Scale Target | Primary Compute Layer | Monthly OpEx | Estimated Net Margin |
|---|---|---|---|
| Phase 1: 1,000 Users | Groq LPUs + Gemini 2.0 Flash + OpenRouter Sentinel | $0 - $20 / mo | 95%+ (~$400/mo net) |
| Phase 2: 100,000 Users | Upstash Semantic Cache + BullMQ Queue + Sharded Pool | $500 - $1,500 / mo | 90%+ (~$30,000/mo net) |
π Real-Time Web Citations & ChatGPT Action Cards
Sources & References Footer
When GridAI conducts real-time web research or reads external documents, it automatically appends an interactive Sources & References horizontal scroll card bar at the bottom of the AI answer bubble. Tap any source card (e.g. wikipedia.org, reuters.com, github.com) to view the full reference link.
ChatGPT Home Action Cards
Starting a new session opens ChatGPT-style action cards for quick 1-tap workflows:
- π¨ Create Image & Vision: Visual design generation & photo analysis.
- π Write or Edit Document: Draft CVs, rewrite policies, and format text.
- π Web Search & Research: Deep web search and real-time news retrieval.
- π Analyze File / Document: Multi-format parsing for Word, Visio, PDF, and code.
β‘ Autonomous Workspace Engine & Local Disk Sync
GridAI features a zero-hesitation Autonomous Execution Engine capable of reading, inspecting, and writing files directly to your local computer hard drive (C:\...) or connected workspace folders:
Direct Local Hard Drive Access
Connect any physical folder (e.g. Virtual Machines or desktop directories) via the File System Access API or Desktop App. Code generated by GridAI writes directly to your local computer disk with zero confirmation delays.
Subfolder Directory Engine
Recursively indexes all subdirectories (e.g. Switch/, test/, Windows 11 x64/). Injects the full workspace relative path manifest and file contents into system context for comprehensive multi-folder audits.
Universal Developer Support
Full native support for .txt, .py, .c, .cpp, .java, .go, .rs, .sql, .yaml, .xml, .sh, .env, .svg, and empty folder initializations.
15 MB High-Res Image Analysis
Converts screenshots, UI wireframes, camera photos, and diagrams to Base64 Data URLs with up to 15 MB payload capacity for instant visual analysis by Gemini 2.0 Flash and GPT-4o Vision.
π Universal Document Intelligence & Binary Parsing SuiteNative Binary Stream
GridAI includes an enterprise document processing pipeline (/api/v1/parse-document and /api/v1/parse-pdf) capable of parsing multi-page complex binaries, resumes, spreadsheets, and technical documents with zero prompt requirements:
Native Stream PDF Extractor
Directly extracts structural text, candidate credentials, tables, and section headings from multi-page PDFs (e.g. Anusha_Thilakarathna_Professional_CV.pdf) with 100% character fidelity and zero token truncation.
- Raw binary buffer decompression with fallback resilience.
- Extracts 6,000+ characters in under 120ms.
- Preserves email, phone, certifications, and date chronology.
Office Document & Spreadsheet AST
Ingests Microsoft Word (.docx), Excel sheets (.xlsx), CSV tables, and Markdown files into normalized markdown AST representation.
- 1-Click DOCX refactoring and tailored CV exports.
- Spreadsheet formulas and table math verification.
- Automated styling with executive headers and callouts.
β‘ Zero-Prompt Intent Analysis
When users upload documents or images without typing a specific instruction, GridAI autonomously inspects the content structure and executes appropriate professional analysis:
π Industrial Platform Benchmark (GridAI vs. ChatGPT Plus vs. Antigravity IDE)
| Feature / Dimension | β‘ GridAI Pro Studio | π¬ ChatGPT Plus ($20/mo) | π€ Antigravity / Cursor IDE |
|---|---|---|---|
| Pricing | $0 Free Pool + $5.00/mo Pro | $20.00/mo flat | Free / $20.00/mo |
| AI Fleet & Models | DeepSeek R1/V3, Llama 3.3 70B, Qwen 72B, Liquid LFM | GPT-4o / o3-mini (OpenAI closed) | Claude 3.5 Sonnet / Gemini 2.0 |
| Failover Resilience | Zero-Fail Cascade across 6 providers | Single provider (down if OpenAI fails) | Single API key |
| Disk & Git Sync | π Direct Local Disk Sync (C:\) + GitHub Auto-Push | β Sandboxed cloud container only | π Direct Local Disk Sync + Terminal |
| Creative Image Studio | π¨ 40+ Styles, 8K Vector Engine, Inpaint, Dual Compare | πΌοΈ Basic DALL-E 3 only | β No creative studio |
| Document Intelligence | π Universal PDF, Word DOCX, Excel XLSX, OCR Extraction | π Basic file attachments | π Repo code inspection |
π‘οΈ Security Architecture & Local Device Credentials Memory
GridAI implements the same client-side security standards used by Google Antigravity and VS Code:
π Local Device Storage & Session Persistence
Your GitHub Personal Access Token (PAT), repository URL, and connected workspace folder name are stored strictly on your local device/computer inside origin-isolated browser localStorage or Electron OS SafeStorage.
- No Server Database Exposure: Tokens are never saved in 3rd-party tracking databases.
- Direct TLS Authorization: Git operations send
Authorization: Bearer github_pat_...headers directly tohttps://api.github.com. - Cross-Session Memory: Starting a New Chat automatically restores your connected workspace name and GitHub credentials.
π― Antigravity Structured Engineering Response Format
All technical responses, bug fixes, and code generation tasks follow Antigravity's structured engineering format:
π€ Antigravity-Grade Autonomous 4-Phase Agentic Protocol
GridAI implements the Google Antigravity 4-Phase Engineering Protocol, ensuring that all codebase operations follow strict inspection, formal planning, surgical execution, and automated self-healing loops:
Workspace Inspection & Technical Roadmap
Uses <list_dir>, <view_file>, and <search_code> to inspect active files and AST symbols. Scoped queries (e.g. "only analyze gridai-studio") isolate targeted directories without unrelated file dumps.
Output format: GitHub Flavored Markdown (GFM) comparison matrices, status badges, and technical blueprints.
Multi-Chunk Surgical Diff & Self-Healing
Applies surgical edits with <multi_replace_file_content> targeting non-contiguous code chunks in a single turn. Executes <verify_code> compiler diagnostics; upon error, the agent self-heals automatically.
<multi_replace_file_content path="src/app/page.tsx">
<chunk start_line="1" end_line="10">
<target>import OldHeader from './Old';</target>
<replacement>import NewHeader from './New';</replacement>
</chunk>
<chunk start_line="150" end_line="160">
<target>renderOldLayout()</target>
<replacement>renderUpgradedLayout()</replacement>
</chunk>
</multi_replace_file_content>Interactive Clarification Modal (ask_question)
When requirements are underspecified, the agent pauses and renders an interactive multi-choice popup dialog with radio/checkbox cards, Skip, and Submit β΅ buttons.
- Supports single-select radio and multi-select checkbox modes.
- Blocks execution until the user selects and submits their response.
- Injects
<tool_result tool="ask_question">back into the agent loop.
Implementation Plan & "Proceed" Gate
Complex tasks enter Planning Mode generating <create_plan>. Opens a dedicated plan viewer with a prominent Proceed to Execution button that unlocks file modifications only upon user approval.
Background Task Engine (manage_task)
Runs long processes in the background with task IDs (task-xxx). Features live log streaming, reactive status tracking, and a top header β‘ Tasks management HUD.
Model Context Protocol (/api/v1/mcp)
Full JSON-RPC 2.0 tool server implementation connecting external enterprise tool buses, GitHub bots, and IDE plugins directly into the GridAI agent execution pipeline.
POST /api/v1/mcp
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "multi_replace_file_content",
"arguments": { "path": "src/app/page.tsx", "chunks": [...] }
},
"id": 1
}Frontier Model Router Gateway
Races active frontier reasoning models in parallel to deliver sub-second response times without static template fallbacks:
- DeepSeek-Chat V3: High-speed general coding & AST analysis.
- DeepSeek-R1: Complex multi-step reasoning & architecture design.
- GPT-4o-mini: Rapid vision OCR & multimodal document processing.
- Qwen-2.5-Coder-32B: Surgical refactoring & syntax verification.
Google Antigravity-Grade Autonomous Execution Engine
GridAI Studio incorporates the full autonomous engineering protocols of Google Antigravity, replacing passive chatbot advice with direct, end-to-end task execution:
view_file β replace_file_content β verify_code β run_command) without stopping until the task is completely solved./api/v1/terminal)Executes real sandboxed shell commands directly in the cloud container, capturing stdout, stderr, and exit codes for browser web studio users.β‘ Complete In-Studio Autonomous Tool Suite Reference
| Tool XML Tag | Autonomous Execution Action | Platform Target |
|---|---|---|
<view_file path="..." /> | Inspects source files with start/end line slice support | Web & Desktop |
<search_code query="..." /> | Searches codebase for symbols, functions, and classes | Web & Desktop |
<replace_file_content path="..."> | Surgically replaces target blocks without whole-file rewrites | Web & Desktop |
<write_file path="..."> | Creates new files, components, and routes in workspace | Web & Desktop |
<run_command command="..." /> | Executes real shell commands via server-side /api/v1/terminal | Web & Desktop |
<verify_code path="..." /> | Verifies AST syntax and triggers autonomous self-healing loops | Web & Desktop |
commit_push (Git API) | Auto-commits to GitHub & triggers live Vercel/Render deployments | Multi-Cloud |
Autonomous Multi-Cloud CI/CD (GitHub + Vercel + Render)
When GridAI modifies or generates code, it seamlessly synchronizes the entire multi-cloud deployment pipeline under the hood:
- Atomic Git Database Commits: Pushes tree updates directly to
kosalabtw/gridai-professional-dex:mainvia/api/v1/git. - Automated Vercel Deployment: GitHub webhooks instantly trigger production builds, deploying updates live to gridai.studio/dashboard β.
- Automated Render Sync: Pings Render deployment hooks to hot-reload backend microservices and neural engine workers simultaneously.
- Zero Manual Terminal Burden: No manual
git pushor credential setup required from the user.
Industrial Engineering 3-Part Response Protocol
Every engineering solution, bug diagnosis, and refactor is deterministically structured according to institutional standards:
Zero-Trust User Authorization & Client Sandbox Isolation
GridAI implements multi-tiered security barriers ensuring strict owner isolation across public web, desktop, and mobile environments:
- Owner-Guarded Admin Infrastructure: All administrative endpoints (
/api/admin/*) enforce strict owner email verification (kosalabt@hotmail.com/kosala@gridai.studio) and master key validation, rejecting unauthorized visitors with403 Forbidden. - Mandatory Token Verification for Git Writes: Remote commit and pull request operations (
/api/v1/git) strictly require user-supplied Personal Access Tokens, preventing public visitors from writing to the private repository. - Client-Side Sandbox Isolation: Personal Access Tokens and session state reside strictly in your local device's isolated
localStorage, with 0 exposure to external visitors. - Hardware SSH Isolation: Local desktop operations execute directly through your physical machine's SSH key (
~/.ssh/id_rsa), ensuring zero external network exposure.
Antigravity 1-Click Quick Actions & Global Shortcuts
Execute complex engineering operations with 1-click floating action chips and universal keyboard shortcuts:
Auto-repair bugs
Architecture plan
Generate test suite
Git & Vercel push
β¨οΈ Ctrl+K / Cmd+K: Instant focus to Copilot Agent prompt
β¨οΈ Ctrl+B / Cmd+B: Toggle Explorer File Tree sidebar
β¨οΈ Escape: Dismiss any open modal or popover
Cross-Platform Native Deployment (v2.6.2)
πͺ Windows & macOS Desktop
Full local filesystem I/O, terminal command safety gates, resizable panel states, and automated Git Database API atomic commits.
π± Android & iOS Mobile
Touch-optimized AI interface, camera receipt OCR with double-entry math validation, and voice dictation support.
π§© VS Code & Linux
Official VS Code / Cursor IDE marketplace bundle and standalone Linux AppImage portable binaries.
β‘ Google Antigravity 2.0 Architectural Enginev2.6.2
GridAI incorporates 1:1 Google Antigravity autonomous capabilities, enabling complete visibility, interactive decision gating, multi-task background processing, and self-healing compiler loops:
π¬ Interactive Inquiries Modal (ask_question)
When the agent requires clarification or architectural design approval, execution pauses and renders an interactive choice modal with (Recommended) cards, multi-select checkboxes, and custom write-in inputs.
π Implementation Plan & Proceed Gate (create_plan)
Architectural plans are rendered in a structured blueprint drawer with User Review Required, Proposed Changes, and Verification Plan. Features an executable "Proceed" gate before modifying code.
β‘ In-Editor Side-by-Side Monaco Diff Mode
Toggles seamlessly between single-file code editing and native side-by-side / inline Diff mode. Highlights red/green line deletions and additions with line-level change counters.
βοΈ Background Task & Daemon Manager (manage_task)
Spawns and monitors long-running support daemons, background test runners, and recurring cron schedules (schedule) with live log streaming, CPU/uptime telemetry, and kill controls.
π‘οΈ Cyber Defense & Autonomous Security RemediationEnterprise Defense
In response to the growing wave of AI-driven cybersecurity threats, GridAI provides an industrial, zero-trust Perimeter & Workspace Security Auditor (/api/v1/security-audit) with 1-click autonomous remediation:
π Live Web Endpoint & OWASP Perimeter Scanner
Audits live domains and online APIs for Content-Security-Policy (CSP), Strict-Transport-Security (HSTS), X-Frame-Options clickjacking protection, wildcard CORS credential leaks, and cookie security flags (HttpOnly; Secure; SameSite).
β‘ 1-Click Autonomous Patch & GitHub Commit
For every discovered vulnerability, GridAI generates exact, production-ready code patches (e.g. Next.js security middleware, sanitization wrappers, parameterized queries). Clicking "Auto-Fix & Commit" immediately applies the patch and commits it to your GitHub repository.
π₯οΈ GridAI Studio Desktop & Antigravity 2.0 / IDE Parity (v3.0.0)v3.0.0 Parity
GridAI Studio Desktop is an autonomous, AI-first integrated development environment and desktop application built to match and exceed the capabilities of Google Antigravity 2.0 and Antigravity IDE:
Native Host Shell Runner
Executes native host commands via PowerShell / Bash with a 15MB buffer and live streaming logs directly inside the Monaco terminal.
Local Disk Workspace Sync
Open and bind any local folder (C:\Users\...) via native OS folder picker with recursive file tree hydration on launch.
Inline Command (Ctrl+I)
Press Ctrl+I anywhere in the editor to open a floating prompt HUD for surgical in-editor code refactoring.
π€ Autonomous 4-Phase Engineering Protocol
- 1. Research & Discovery: Inspects exact source lines (
<view_file>) and searches patterns across files (<search_code>). - 2. Implementation Planning: Generates Antigravity-style structured implementation plans (
<create_plan>). - 3. Surgical Code Modification: Applies targeted chunk replacements (
<replace_file_content>) without whole-file destruction. - 4. Autonomous Verification: Validates AST syntax (
<verify_code>) and runs build/test suites (<run_command>) with self-healing iterations.
π¨ Creative Image Studio & Inpainting Engine40+ Presets & Vision
The GridAI Image Studio combines multi-endpoint latent diffusion routing (Flux, Turbo, Sana, and Base64 Data URL synthesis) with interactive hands-on creative tools:
Industrial Creative Presets
Features specialized aesthetic formulas including Technical Blueprint CAD, Studio Ghibli/Shinkai Anime, 3D Pixar Characters, Die-Cut Vinyl Stickers, Sepia Journal Field Notes, Lapel Badges, Retro 80s Neon Synthwave, and Figma Mobile UI Mockups.
Interactive Smart Brush & Inpainting
Paint targeted mask overlays directly on generated artwork or reference sketches to add, replace, or refine specific objects without regenerating the entire composition.
Side-by-Side Style Comparison
Render two distinct artistic styles in parallel (e.g. Anime vs. Cyberpunk or Blueprint vs. 3D Avatar) to compare lighting, contours, and composition side-by-side.
3D Depth & Motion Parallax
Interactive perspective tracking reacts to mouse and touch movements, producing realistic 3D depth parallax, surface gloss, and cinematic presentation.
β‘ 4-Step Diffusion Sampler & Multi-Model Reliability
- Step 1: Text Prompt Encoding β Enriches user subjects with tailored aesthetic parameters and quality boosters.
- Step 2: Multimodal AI Vision Alignment β Analyzes uploaded photos or hand sketches in <1s to preserve subject identity and anatomy.
- Step 3: 45-Step Latent Diffusion β Races high-speed latent pipelines (Turbo / Flux) with automatic retry shields to prevent broken image timeouts.
- Step 4: 8K Upscaling & Base64 Delivery β Inlines valid Base64 data URLs to eliminate CORS issues and adblocker interference.
π± Mobile Multi-Touch Gestures, Pinch Zoom & Deep-Zoom LightboxNative Multi-Touch
Designed for responsive mobile touchscreens (iOS Safari & Android Chrome), GridAI features full Multi-Finger Pinch Zooming and an interactive Deep-Zoom Lightbox Inspector:
Native Pinch-to-Zoom
Configured with user-scalable=yes, maximum-scale=5.0, and CSS touch-action: pan-x pan-y pinch-zoom for fluid two-finger zooming and panning anywhere on mobile.
Deep-Zoom Lightbox
1-click fullscreen darkroom lightbox with dedicated οΌ / οΌ controls, 100% fit-to-screen toggle, and up to 500% high-resolution inspection.
Double-Tap Zoom Toggle
Quick double-tap gesture on any generated image card instantly switches between 100% overview and 200%β250% detail magnification with zero latency.
π Developer Cloud IDE, Live Sandboxes & Multiplayer Pair Programming
The GridAI Developer Cloud IDE provides a zero-setup, in-browser development environment powered by WebContainers, live sandbox previews, and real-time multiplayer pair programming:
1-Click Live Preview Sandbox
Execute Node.js, React, and Next.js applications directly in the browser via WebAssembly. Features Hot Module Replacement (HMR), device viewport emulation (Desktop, Tablet, Mobile), and 1-click shareable preview URLs.
Real-Time Pair Programming & Live Share
Collaborate with teammates in real time using CRDT-synchronized state (Yjs). Includes multi-cursor tracking, shared terminal outputs, and synchronized AI code synthesis across Web and Desktop instances.
π₯οΈ Desktop Native Architecture vs. Cloud Sandbox
On the GridAI Desktop App (Electron / Tauri), developers leverage full hardware capabilities:
- Native OS Processes: Spawns real local servers (
localhost:3000, Python, Rust, Docker) with multi-core CPU and GPU acceleration. - Encrypted Tunnels: 1-click Cloudflare & P2P tunnels broadcast local dev ports to temporary HTTPS endpoints for live mobile testing.
- Full Offline AI Routing: Continues local code indexing, AST parsing, and workspace editing without an active internet connection.
