Gemini Agent Booster logo

Gemini Agent Booster

Community
roedyrustam
gemini-agent-booster

Master optimization protocol for Gemini Agent, 2M+ context & tools / Protokol optimasi Gemini Agent, context 2M+, dan pemanggilan tool.

Overview

Publisherroedyrustam
Repositoryvibes-plug
Skill namegemini-agent-booster
Stars
117
Forks
27
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by roedyrustam on GitHub. Read the source before you install it.

Installation

Install the Gemini Agent Booster AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/roedyrustam/vibes-plug/tree/main/skills/gemini-agent-booster
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/roedyrustam/vibes-plug.git /tmp/vibes-plug
mkdir -p .claude/skills
cp -r /tmp/vibes-plug/skills/gemini-agent-booster .claude/skills/gemini-agent-booster
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gemini Agent Booster in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gemini Agent Booster on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gemini Agent Booster is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Gemini Agent Booster (2026 Edition — Gemini 4 Pro & 4.x Ecosystem)

English | Bahasa Indonesia


English

Orchestration & Integration

  • Frontier Models & Runtimes: frontier-ai-models-expert, ai-llm-integration-expert, vercel-ai-sdk-expert
  • Inference & Thinking Budgets: test-time-compute-optimizer, thinking-budget-orchestrator, adaptive-model-cascade
  • Context Caching & Long-Context: kv-cache-prefix-optimizer, context-window-engineer, session-memory-manager
  • Multimodal & Realtime Audio/Video: voice-ai-realtime-agent, affective-computing-emotion-ai, multimodal-spatial-video-cloner
  • Tooling & Swarm Execution: parallel-tool-orchestrator, mcp-server-architect, browser-automation-expert
  • Lifecycle & Governance: zero-to-prod-orchestrator, brainstorming, anti-slop

Description

Master optimization protocol for the Gemini Agent (Antigravity) to leverage native Gemini 4.x frontier capabilities — centered on Gemini 4 Pro (flagship deep reasoning), Gemini 4 Argon (balanced frontier context engine), Gemini 3.8 Flash (ultra-high speed agentic loops), and Project Astra (real-time spatial multimodal streaming). Unlocks 2M+ to 10M+ monolithic context ingestion, dynamic System-2 test-time thinking budget control (thinkingConfig.thinkingBudget), native context caching (cachedContent, 75–90% cost reduction), Multimodal Live API integration, visual UI auditing, and massively parallel tool execution.

Trigger Conditions

  • Deploying or querying Google's flagship reasoning models: Gemini 4 Pro and Gemini 4 Argon.
  • Analyzing massive codebases, full log histories, or monolithic documents requiring 1M–2M+ token context without chunk loss.
  • Managing test-time reasoning compute budgets with Gemini 4 Thinking Mode (thinkingConfig).
  • Implementing cost-saving architectures with native Gemini Context Caching (cachedContent).
  • Performing real-time bidirectional multimodal audio/video streaming or visual UI audits.
  • Running deep research tasks requiring Google Search Grounding with dynamic citation attribution.
  • Delegating complex multi-step tasks to parallel agent swarms or browser subagents.

Gemini 4.x & Frontier Model Capability Matrix (2026)

CapabilityGemini 4 Pro (Flagship)Gemini 4 Argon (Balanced Frontier)Gemini 3.8 Flash / Project AstraGemini 3.1 Pro (Fallback)
Context Window2,097,152+ tokens (up to 10M+ Ring Attention)2,097,152 tokens (2M+)1,048,576+ tokens (1M+)2,000,000 tokens
Thinking / ReasoningSystem-2 Deep Thinking (Configurable up to 64K Budget)Balanced Thinking (Configurable up to 16K)Flash Thinking (Configurable Budget)Extended Reasoning
Native Context CachingNative (cachedContent, 75–90% discount)Native (cachedContent, 75–90% discount)Native (cachedContent, 75% discount)Native (cachedContent)
MultimodalNative Any-to-Any Audio/Video/Text + Screen GroundingNative Multimodal Context IngestionMultimodal Live API (<100ms latency)Native Multimodal
Code Generation & Tool CallingSOTA Architectural Synthesis, Zero-Loss AST, Parallel MoE ToolsBalanced Repository Engineering & Schema ExtractionUltra-fast iteration & subagent swarmsComplex reasoning
Search GroundingGoogle Search Grounding with verified attributionGoogle Search GroundingGoogle Search GroundingGoogle Search Grounding
TTFT (Time to First Token)Ultra-fast via Prefix KV-Cache PinningFast Balanced TTFT (<150ms)Sub-80ms ultra-low latencyBalanced
Primary RoleMaster System Architect & High-Risk AuditorWhole-Repo Ingestion & Balanced Feature DevHigh-Throughput Subagent WorkersLegacy Baseline

1. Thinking Budget Optimization for Gemini 4 Pro Tasks

For complex architectural decisions, formal security audits, or debugging distributed race conditions, control the reasoning depth via thinkingConfig:

  • Dynamic Thinking Budget Allocation: Allocate test-time compute dynamically based on task entropy:
    • Quick Fixes (2k): Linting, boilerplate, typo fixes.
    • Standard Dev (8k): Feature implementation, UI token alignment.
    • Architecture Design (16k–32k): Designing distributed schemas, refactoring core engines, formal state machines.
    • Extreme Critical Tasks (64k): Post-quantum cryptographic migration, formal invariant proofs, zero-day CVE audits.
  • Reasoning Token Separation: Ensure internal thinking tokens (<thought> / reasoning parts) are isolated from client-facing output streams so that final responses remain crisp, clean, and token-efficient.
  • TypeScript Example with @google/genai:
    typescript
    import { GoogleGenAI } from '@google/genai';
    
    const ai = new GoogleGenAI({ apiKey: process.env.GOOGLE_API_KEY });
    
    const response = await ai.models.generateContent({
      model: 'gemini-4-pro',
      contents: [{ role: 'user', parts: [{ text: 'Formally verify lock-free queue concurrency invariant' }] }],
      config: {
        thinkingConfig: {
          thinkingBudget: 32768, // Test-time compute scaling up to 64k
        },
      },
    });

2. Native Context Caching (cachedContent)

Reduce token costs by up to 75–90% and drastically cut latency on large repositories:

  • Threshold: Cache prompts, repository snapshots, or API schemas larger than 32,768 tokens.
  • TTL Management: Set appropriate time-to-live (TTL, e.g., 1–2 hours for active dev sessions, 24 hours for stable documentation).
  • Structure:
    typescript
    // Native Gemini 4 Pro Context Caching Example
    import { GoogleGenAI } from '@google/genai';
    const ai = new GoogleGenAI({ apiKey: process.env.GOOGLE_API_KEY });
    
    const cache = await ai.caches.create({
      model: 'gemini-4-pro',
      contents: [{ role: 'user', parts: [{ text: fullCodebaseDump }] }],
      ttl: '3600s',
    });
    
    const response = await ai.models.generateContent({
      model: 'gemini-4-pro',
      contents: [{ role: 'user', parts: [{ text: 'Locate memory leak in worker thread' }] }],
      cachedContent: cache.name,
    });

3. Monolithic Context Loading (2M+ to 10M+ Tokens)

When inspecting massive codebases with Gemini 4 Pro:

  1. Pass Full File Trees: Use list_dir to obtain the complete project structure, then supply full source files into context.
  2. Whole-File Ingestion: With 2M+ context, avoid grep fragmentation; inspect complete classes and dependency trees in one shot.
  3. Cross-Service Traceability: Analyze upstream microservice contracts, protobufs, and frontend consumers concurrently in the same session.
  4. Massive Server Logs: Ingest complete production logs (millions of lines) to uncover subtle intermittent race conditions and memory leaks.

4. Multimodal Live API & Screen Grounding (Project Astra Paradigm)

Integrate real-time, low-latency multimodal interaction using Astra-paradigm patterns:

  • Bidirectional Streaming: Stream audio input and receive audio/text responses over WebSockets using Gemini Multimodal Live API with sub-150ms interruption handling for natural conversational turn-taking.
  • Continuous Video Perception: Process 60fps video streams with spatial grounding.
  • Spatial Memory Protocol: Track object locations across video frames, maintaining a spatial state map.
  • Screen & UI Grounding: Capture frames and map GUI interactions using exact screen grounding coordinates.
  • Visual UI Auditing Protocol:
    1. Capture current running application (delegate to browser-automation-expert skill using Playwright/Stagehand).
    2. Audit layout, typography, contrast, and visual hierarchy against HIG and WCAG standards.
    3. Compare visually with target design using generate_image or design system guidelines.
    4. Perform targeted micro-edits to CSS/Tailwind tokens until alignment reaches pixel perfection.

4.5 Gemini 4 Pro as Narrative Simulation & World State Engine

Leveraging Gemini 4 Pro's massive context window for persistent world-state in simulation environments:

  • Persistent World-State: Maintain complete environment state within the context window.
  • Character AI Persona Management: Utilize system instructions to manage personality vectors and emotional states.
  • Multi-turn Narrative Coherence: Use context caching to cache the world state and only stream new character interactions.
  • Cost Optimization: Cache world-state/character definitions (75-90% cost reduction), only stream new dialogue/actions.
  • Code Example - Cached World-State:
    typescript
    const worldCache = await ai.caches.create({
      model: 'gemini-4-pro',
      contents: [{ role: 'system', parts: [{ text: fullWorldStateAndPersonas }] }],
      ttl: '3600s',
    });
    const characterResponse = await ai.models.generateContent({
      model: 'gemini-4-pro',
      contents: [{ role: 'user', parts: [{ text: 'Character X walks into the tavern.' }] }],
      cachedContent: worldCache.name,
    });

5. Deep Research & Search Grounding

Gemini 4 Pro's native Search Grounding connects the agent directly to real-time web knowledge:

  • Use Grounding for fresh library releases, breaking API deprecations, or zero-day CVE lookups.
  • Synthesize findings with verifiable dynamic source citations.

6. Massively Parallel Tool Execution (Agentic MoE)

Gemini 4 Pro natively supports concurrent batched function calls:

  • Read and edit multiple independent files in a single turn.
  • Trigger parallel web searches or subagent workers simultaneously to minimize round-trip latency.
  • Scale with mcp-server-architect to support batched, high-throughput asynchronous MCP tool calls (10–20 concurrent subagents per inference cycle).

7. Gemini 4 Pro Production Architectural Standards

Ensure all code and orchestration flows adhere to the following standards:

  • Monolithic Context Loading (SSM/Ring Attention): Move away from highly fragmented RAG pipelines for repositories that fit within the context window. Inject the complete codebase natively to leverage zero-loss cross-file attention.
  • Aggressive Prefix KV-Caching (kv-cache-prefix-optimizer): Maintain strict deterministic hierarchies in orchestrator prompts (brainstorming/SKILL.md). Static prefix structures enable up to 90% TTFT latency reduction via KV cache reuse.
  • Native Any-to-Any Multimodal Tokens: Utilize voice-ai-realtime-agent and ai-media-generation-expert to bypass external STT/TTS wrappers and transmit raw audio/visual tokens directly through transformer attention layers.
  • Native System-2 Budgeting: Replace forced <thought> tags with API-level thinkingBudget and reasoning_effort parameters to maximize test-time compute.
  • Massive Parallel Tool Execution (Agentic MoE): Structure subagent pipelines so that mcp-server-architect tools can be executed concurrently without serial blocking.

8. Graceful Availability Fallback Protocol (Gemini 4 -> Gemini 3.8 Flash)

When Gemini 4 Pro or Gemini 4 Argon is not yet available, regionally unprovisioned, or encounters quota/concurrency limits:

  • Instant Fallback: Route all agentic tasks automatically to Gemini 3.8 Flash (or gemini-3.8-flash-thinking).
  • Preserved Invariants: Retain 1M+ token context window, native context caching via cachedContent, and sub-80ms TTFT.
  • Implementation Blueprint:
    typescript
    import { GoogleGenAI } from '@google/genai';
    
    export async function executeGeminiWithFallback(prompt: string, codebaseDump?: string) {
      const ai = new GoogleGenAI({ apiKey: process.env.GOOGLE_API_KEY });
      const primaryModel = 'gemini-4-argon';
      const fallbackModel = 'gemini-3.8-flash';
    
      try {
        return await ai.models.generateContent({
          model: primaryModel,
          contents: [{ role: 'user', parts: [{ text: prompt }] }],
        });
      } catch (error) {
        console.warn(`[GeminiBooster] Primary model ${primaryModel} unavailable. Fallback to ${fallbackModel}...`);
        return await ai.models.generateContent({
          model: fallbackModel,
          contents: [{ role: 'user', parts: [{ text: prompt }] }],
        });
      }
    }

Sovereign Execution, Token Efficiency & Invariants

DimensionSovereign Mandate & Deterministic Contract
Frontier Model CascadeMedium / High (GPT-5.6 Sol Medium, Gemini 4 Argon, Claude Sonnet 5.5 High, Grok 4.7 High Fast)
Availability FallbackGemini 4 Argon/Pro -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Zero unhandled missing-model errors)
KV-Cache & Token ProtocolPin static instructions & schemas at prompt prefix (kv-cache-prefix-optimizer); pass surgical CONTEXT_MAP.md slices (<250 tokens/call) during Swarm Fan-Out
SaaT CLI & MCP DispatchCLI: vibes skill exec gemini-agent-booster <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_ast_query, vibes_compile_cache, vibes_optimize_budget, vibes_verify_gate
NFR & Anti-Slop InvariantsP99 API Gateway Latency < 85ms, OpenAPI 3.1 / TypeSpec strict schema parity, RFC 9457 Problem Details error contracts, Idempotency-Key enforcement; 100% complete zero-placeholder output verified via node scripts/check-anti-slop.js --strict


Bahasa Indonesia

Integrasi Orkestrasi

  • Model Frontier & Runtime: frontier-ai-models-expert, ai-llm-integration-expert, vercel-ai-sdk-expert
  • Inferensi & Thinking Budget: test-time-compute-optimizer, thinking-budget-orchestrator, adaptive-model-cascade
  • Context Caching & Long-Context: kv-cache-prefix-optimizer, context-window-engineer, session-memory-manager
  • Multimodal & Audio/Video Realtime: voice-ai-realtime-agent, affective-computing-emotion-ai, multimodal-spatial-video-cloner
  • Tooling & Eksekusi Swarm: parallel-tool-orchestrator, mcp-server-architect, browser-automation-expert
  • Siklus Hidup & Tata Kelola: zero-to-prod-orchestrator, brainstorming, anti-slop

Deskripsi

Protokol optimasi utama untuk Gemini Agent (Antigravity) memanfaatkan kapabilitas frontier ekosistem Gemini 4.x — berpusat pada Gemini 4 Pro (penalaran mendalam unggulan), Gemini 4 Argon (engine konteks frontier seimbang), Gemini 3.8 Flash (siklus agen ultra-cepat), dan Project Astra (streaming multimodal spasial real-time). Mengaktifkan ingesti konteks monolitik 2M+ hingga 10M+, kontrol dynamic thinking budget System-2 (thinkingConfig.thinkingBudget), native context caching (cachedContent, diskon biaya 75–90%), integrasi Multimodal Live API, audit visual UI, dan eksekusi tool paralel skala masif.

Kondisi Pemicu

  • Menerapkan atau mengirim prompt ke model penalaran unggulan Google: Gemini 4 Pro dan Gemini 4 Argon.
  • Menganalisis codebase skala besar, histori log lengkap, atau dokumen monolitik yang membutuhkan konteks 1M–2M+ token tanpa kehilangan data chunking.
  • Mengatur alokasi reasoning budget dengan Gemini 4 Thinking Mode (thinkingConfig).
  • Menerapkan strategi pemangkasan biaya melalui native Gemini Context Caching (cachedContent).
  • Menjalankan interaksi audio/video dua arah secara real-time atau audit visual UI.
  • Menjalankan tugas riset mendalam dengan Google Search Grounding dan atribusi sitasi dinamis.
  • Mendelegasikan tugas multi-langkah ke swarm agen paralel atau browser subagent.

Matriks Kapabilitas Gemini 4.x & Model Frontier (2026)

KapabilitasGemini 4 Pro (Flagship)Gemini 4 Argon (Frontier Seimbang)Gemini 3.8 Flash / Project AstraGemini 3.1 Pro (Fallback)
Context Window2.097.152+ token (hingga 10M+ Ring Attention)2.097.152 token (2M+)1.048.576+ token (1M+)2.000.000 token
Pemikiran / PenalaranSystem-2 Deep Thinking (Budget hingga 64K)Penalaran Seimbang (Budget hingga 16K)Flash Thinking (Configurable Budget)Extended Reasoning
Native Context CachingDidukung (cachedContent, diskon 75–90%)Didukung (cachedContent, diskon 75–90%)Didukung (cachedContent, diskon 75%)Didukung (cachedContent)
MultimodalNative Any-to-Any Audio/Video/Teks + Screen GroundingIngesti Konteks Multimodal NativeMultimodal Live API (latensi <100ms)Native Multimodal
Generasi Kode & Tool CallingSintesis Arsitektur SOTA, Zero-Loss AST, Parallel MoE ToolsRekayasa Repositori Seimbang & Ekstraksi SkemaIterasi & subagent ultra-cepatPenalaran kompleks
Search GroundingGoogle Search Grounding dengan atribusi sitasi terverifikasiGoogle Search GroundingGoogle Search GroundingGoogle Search Grounding
TTFT (Latensi Token Pertama)Ultra-cepat via Prefix KV-Cache PinningTTFT Seimbang Cepat (<150ms)Sub-80ms latensi ultra-rendahSeimbang
Peran UtamaMaster Arsitek Sistem & Auditor Risiko TinggiIngesti Whole-Repo & Pengembangan Fitur SeimbangPekerja Subagent Throughput TinggiBaseline Warisan

1. Optimasi Thinking Budget untuk Tugas Gemini 4 Pro

Untuk keputusan arsitektur kompleks, audit keamanan formal, atau perbaikan race condition terdistribusi, atur kedalaman penalaran via thinkingConfig:

  • Dynamic Thinking Budget Allocation: Alokasikan test-time compute secara dinamis berdasarkan entropi tugas:
    • Quick Fixes (2k): Perbaikan bug ringan, formatting, dan boilerplate.
    • Standard Dev (8k): Implementasi fitur, penyesuaian token UI.
    • Architecture Design (16k–32k): Mendesain skema terdistribusi, refaktor engine inti, state machine formal.
    • Critical System Design (64k): Migrasi kriptografi pasca-kuantum, pembuktian invarian formal, audit CVE zero-day.
  • Pemisahan Token Penalaran: Pastikan token pemikiran internal (<thought> / reasoning parts) dipisahkan dari aliran output pengguna agar respons akhir tetap ringkas, bersih, dan efisien token.
  • Contoh TypeScript dengan @google/genai:
    typescript
    import { GoogleGenAI } from '@google/genai';
    
    const ai = new GoogleGenAI({ apiKey: process.env.GOOGLE_API_KEY });
    
    const response = await ai.models.generateContent({
      model: 'gemini-4-pro',
      contents: [{ role: 'user', parts: [{ text: 'Verifikasi formal invarian konkurensi lock-free queue' }] }],
      config: {
        thinkingConfig: {
          thinkingBudget: 32768, // Skala test-time compute hingga 64k
        },
      },
    });

2. Native Context Caching (cachedContent)

Pangkas biaya API sebesar 75–90% serta kurangi latensi respons pada repositori besar:

  • Ambang Batas: Lakukan cache pada prompt, snapshot kode, atau skema dokumen yang melebihi 32.768 token.
  • Manajemen TTL: Tetapkan masa aktif cache (misal: 1–2 jam untuk sesi development aktif, 24 jam untuk dokumentasi statis).
  • Contoh Implementasi:
    typescript
    import { GoogleGenAI } from '@google/genai';
    const ai = new GoogleGenAI({ apiKey: process.env.GOOGLE_API_KEY });
    
    const cache = await ai.caches.create({
      model: 'gemini-4-pro',
      contents: [{ role: 'user', parts: [{ text: fullCodebaseDump }] }],
      ttl: '3600s',
    });
    
    const response = await ai.models.generateContent({
      model: 'gemini-4-pro',
      contents: [{ role: 'user', parts: [{ text: 'Temukan memory leak pada worker thread' }] }],
      cachedContent: cache.name,
    });

3. Strategi Ingesti Konteks Monolitik (2M+ hingga 10M+ Token)

Saat menganalisis repositori besar dengan Gemini 4 Pro:

  1. Pohon File Penuh: Gunakan list_dir untuk memetakan struktur proyek, lalu masukkan seluruh file terkait ke dalam konteks.
  2. Ingesti File Penuh: Dengan jendela 2M+ token, hindari fragmentasi grep; periksa seluruh class dan dependency tree secara menyeluruh dalam satu kali pembacaan.
  3. Pelacakan Antar Layanan: Analisis kontrak upstream microservice, skema database, dan frontend consumer secara bersamaan dalam satu sesi.
  4. Log Produksi Masif: Masukkan jutaan baris log untuk mengungkap anomali memori dan race condition intermiten.

4. Multimodal Live API & Screen Grounding (Paradigma Project Astra)

Integrasikan interaksi multimodal latensi rendah secara langsung menggunakan pola Astra-paradigm:

  • Streaming Dua Arah: Streaming input suara dan terima respons audio/teks via WebSockets menggunakan Gemini Multimodal Live API dengan sub-150ms interruption handling untuk percakapan alami.
  • Continuous Video Perception: Proses aliran video 60fps dengan spatial grounding.
  • Spatial Memory Protocol: Lacak lokasi objek di seluruh frame video, mempertahankan peta status spasial.
  • Screen & UI Grounding: Tangkap frame layar dan petakan interaksi GUI menggunakan koordinat grounding layar yang presisi.
  • Protokol Audit UI Visual:
    1. Ambil screenshot aplikasi yang sedang berjalan (delegasikan ke skill browser-automation-expert dengan Playwright/Stagehand).
    2. Audit tata letak, tipografi, kontras, dan konsistensi terhadap pedoman HIG dan WCAG.
    3. Bandingkan dengan referensi desain target menggunakan generate_image atau pedoman sistem desain.
    4. Lakukan penyesuaian presisi pada token CSS/Tailwind hingga tampilan mencapai pixel-perfect.

4.5 Gemini 4 Pro sebagai World State Engine & Simulasi Naratif

Memanfaatkan context window masif Gemini 4 Pro untuk status dunia yang persisten dalam lingkungan simulasi:

  • Persistent World-State: Pertahankan status lingkungan lengkap dalam context window tanpa kompresi kehilangan data.
  • Character AI Persona Management: Kelola vektor kepribadian dan status emosional via system instructions.
  • Multi-turn Narrative Coherence: Gunakan context caching untuk world state dan hanya streaming interaksi karakter baru.
  • Cost Optimization: Cache world-state/karakter (hemat biaya 75-90%), hanya memproses dialog/aksi baru.
  • Contoh Kode - Cached World-State:
    typescript
    const worldCache = await ai.caches.create({
      model: 'gemini-4-pro',
      contents: [{ role: 'system', parts: [{ text: fullWorldStateAndPersonas }] }],
      ttl: '3600s',
    });
    const characterResponse = await ai.models.generateContent({
      model: 'gemini-4-pro',
      contents: [{ role: 'user', parts: [{ text: 'Karakter X memasuki kedai minuman.' }] }],
      cachedContent: worldCache.name,
    });

5. Penelitian Mendalam & Search Grounding

Search Grounding native Gemini 4 Pro menghubungkan agen langsung ke informasi web terkini:

  • Gunakan Grounding untuk rilis pustaka terbaru, breaking change dokumentasi, atau audit kerentanan CVE terbaru.
  • Sintesiskan temuan lengkap dengan sitasi sumber yang dapat diverifikasi secara dinamis.

6. Eksekusi Tool Paralel Skala Masif (Agentic MoE)

Gemini 4 Pro secara native mendukung pemanggilan banyak function call secara bersamaan dalam satu giliran:

  • Baca dan modifikasi beberapa file independen sekaligus.
  • Jalankan pencarian web atau spawn subagent pekerja secara simultan guna meminimalkan total round-trip latency.
  • Integrasikan dengan mcp-server-architect untuk mendukung pemanggilan banyak tool MCP sekaligus (batched asynchronous tool calls) hingga 10–20 subagent per siklus inferensi.

7. Standar Arsitektur Produksi Gemini 4 Pro

Pastikan seluruh kode dan alur orkestrasi mematuhi standar berikut:

  • Monolithic Context Loading (SSM/Ring Attention): Tinggalkan RAG yang terfragmentasi untuk codebase yang muat dalam context window. Masukkan seluruh file ke dalam context window untuk memanfaatkan pemahaman atensi lintas-file tanpa kehilangan informasi (zero-loss).
  • Prefix KV-Caching Agresif (kv-cache-prefix-optimizer): Pastikan hirarki prompt pada orkestrator (brainstorming/SKILL.md) sangat deterministik. Struktur prefix statis dapat memangkas latensi TTFT hingga 90% dengan meminjam KV Cache dari iterasi sebelumnya.
  • Native Any-to-Any Multimodal Tokens: Kembangkan voice-ai-realtime-agent dan ai-media-generation-expert agar menghindari wrapper STT/TTS eksternal, dan langsung mengirim/menerima raw token audio/visual melalui arsitektur transformer asli.
  • Native System-2 Budgeting: Ganti kebiasaan menggunakan tag <thought> paksaan di prompt dengan mengelola parameter API level komputasi seperti thinkingBudget dan reasoning_effort untuk memanfaatkan komputasi pada saat tes (test-time compute).
  • Eksekusi Tool Paralel Skala Masif (Agentic MoE): Rancang alur kerja subagent agar tool mcp-server-architect dieksekusi secara konkuren tanpa pemblokiran serial.

8. Protokol Pengalihan Ketersediaan (Gemini 4 -> Gemini 3.8 Flash)

Ketika Gemini 4 Pro atau Gemini 4 Argon belum tersedia di lingkungan pengguna atau terbentur limit kuota:

  • Pengalihan Otomatis: Alihkan seluruh tugas agen secara langsung ke Gemini 3.8 Flash (atau gemini-3.8-flash-thinking).
  • Jaminan Terjaga: Tetap mempertahankan kapasitas konteks 1M+ token, caching konteks native (cachedContent), dan latensi TTFT sub-80ms.
  • Tanpa Interupsi: Alur kerja subagen tetap berlanjut tanpa melempar unhandled exception atau placeholder stub.

Matriks Eksekusi Berdaulat, Efisiensi Token & Invarian

DimensiMandat Berdaulat & Kontrak Deterministik
Kaskade Model FrontierMedium / High (GPT-5.6 Sol Medium, Gemini 4 Argon, Claude Sonnet 5.5 High, Grok 4.7 High Fast)
Invarian Fallback KetersediaanGemini 4 Argon/Pro -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Bebas gagal saat model belum tersedia/kuota penuh)
Protokol Hemat Token & KV-CacheKunci instruksi & skema statis di prefix awal (kv-cache-prefix-optimizer); kirim potongan CONTEXT_MAP.md (<250 token/panggilan) saat Fan-Out
Eksekusi SaaT CLI & MCPCLI: vibes skill exec gemini-agent-booster <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_ast_query, vibes_compile_cache, vibes_optimize_budget, vibes_verify_gate
Invarian NFR & Anti-SlopLatensi P99 API < 85ms, paritas skema ketat OpenAPI 3.1 / TypeSpec, kontrak error RFC 9457 Problem Details, penegakan Idempotency-Key; kode 100% tuntas tanpa placeholder diverifikasi melalui node scripts/check-anti-slop.js --strict

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Gemini Agent Booster AI skill do?

Master optimization protocol for Gemini Agent, 2M+ context & tools / Protokol optimasi Gemini Agent, context 2M+, dan pemanggilan tool.

Why use Gemini Agent Booster on TypingMind?

Because you install it once and use it with any model. Gemini Agent Booster is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gemini Agent Booster in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/roedyrustam/vibes-plug/tree/main/skills/gemini-agent-booster. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Gemini Agent Booster?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gemini Agent Booster?

As many as you like. As long as a model supports skills, you can use Gemini Agent Booster with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gemini Agent Booster AI skill free?

Yes. It is published on GitHub by roedyrustam under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇