Skip to content

Instantly share code, notes, and snippets.

View tanaikech's full-sized avatar

Kanshi TANAIKE tanaikech

View GitHub Profile
@tanaikech
tanaikech / submit.md
Created August 12, 2026 06:54
Preventing Quota Crashes via Antigravity CLI Agent Hooks

Preventing Quota Crashes via Antigravity CLI Agent Hooks

Solving the LLM quota monitoring paradox with zero-overhead local Connect RPC agent hooks.


Abstract

Google Antigravity CLI users using Google OAuth face abrupt task failures when API quota hits 0%, while account switching triggers unrecoverable signature errors. Querying quota via LLM tool calls creates a paradox by consuming the very tokens being monitored. We resolve this with antigravity-cli-check-usage-plugin, a CLI Agent Hook running outside the LLM execution turn. Directly querying local Connect RPC endpoints, it monitors quota with zero token overhead and injects proactive warning banners when threshold limits are reached.

@tanaikech
tanaikech / submit.md
Created August 7, 2026 02:50
Before the Quake: How Antigravity CLI's AI Agents & IoT Data Predict Earthquakes

Before the Quake: How Antigravity CLI's AI Agents & IoT Data Predict Earthquakes

Published Paper: Unification Theory of Lithosphere-Atmosphere-Ionosphere Coupling via Acoustic-Gravity Waves (LAIC-AGW) and Quantitative Pre- and Post-Seismic Anomaly Verification Using Ultra-Dense IoT Weather Sensor Networks (ESS Open Archive)


Abstract

We announce the publication of our latest paper on ESS Open Archive, establishing the Unified LAIC-AGW Theory using ultra-dense IoT weather data. Executed on Antigravity CLI with Gemini 3.6 Flash using the autonomous R&D framework tanaike-lab, this project integrates 28,879 Netatmo observations with seismic moment tensors. We capture pre-seismic enthalpy anomalies (Δθe = 27.99 K) and acoustic-gravity waves, demonstrating a hours-long pre-seismic early warning framework. This marks the second successful milestone validating the performance and self-evolution of tanaike-lab.

@tanaikech
tanaikech / submit.md
Created August 3, 2026 07:14
Unlocking Infinite Automation: Integrating Google Apps Script with Gemini Spark

Unlocking Infinite Automation: Integrating Google Apps Script with Gemini Spark

Abstract

Gemini Spark, Google's 24/7 autonomous AI agent, seamlessly connects with Google Workspace. However, connecting to arbitrary external APIs requires extended integration. This article demonstrates how integrating Google Apps Script (GAS) as a Model Context Protocol (MCP) server or Webhook endpoint expands Gemini Spark's capabilities, enabling enterprise-grade workflow automation.

Introduction

Gemini Spark was officially announced at Google I/O 2026 on May 19, 2026, and its service in Japan began on July 16, 2026. Ref Gemini Spark is Google's first always-on AI agent that runs continuously in the cloud 24/7, even when your PC is closed, to complete tasks on your behalf. Unlike traditional Q&A-style chat AIs, it can autonomously execute complex workflows across multiple Google applications. Its core functionalities are bu

@tanaikech
tanaikech / submit.md
Created July 31, 2026 02:09
Inside the Virtual R&D Lab: How Human Imagination and AI Multi-Agents Shape the Future of Science

Inside the Virtual R&D Lab: How Human Imagination and AI Multi-Agents Shape the Future of Science

System Enforces Order, AI Accelerates Logic: Driving Next-Generation R&D Through Human-AI Co-Creation

Abstract

This case study presents the zero-to-one execution of an urban torrential rain fluid dynamics research project using Gemini and tanaike-lab on Antigravity CLI. By uniting system order, AI-accelerated logic, and clear human imagination, we demonstrate a next-generation R&D paradigm that draws new scientific realities out of the dark void.


@tanaikech
tanaikech / submit.md
Created July 19, 2026 05:46
Robust-GAP: Achieving Zero-Hallucination Causal Summarization in Hierarchical RAG

Robust-GAP: Achieving Zero-Hallucination Causal Summarization in Hierarchical RAG

fig1a


Abstract

This article introduces Robust-GAP, a hierarchical Retrieval-Augmented Generation (RAG) framework designed to eliminate semantic hallucinations and knowledge drift during multi-document log summarization. By combining dynamic causal graph extraction (DLCE), active topology verification (SGAV), and metadata provenance propagation (PAPP), the framework enforces strict citation traceability and prevents LLM-generated hallucinations.

@tanaikech
tanaikech / submit.md
Last active July 16, 2026 05:59
Troubleshooting: Infinite Loading Loop in Antigravity CLI v1.1.3 and Temporary Workaround

Troubleshooting: Infinite Loading Loop in Antigravity CLI v1.1.3 and Temporary Workaround

Today, on July 16, 2026, the Antigravity CLI was updated to version v1.1.3. Following this update, I encountered a critical issue: after entering any prompt, the execution state falls into an infinite loop. The status messages (such as "Loading...", "Generating...", and "Working...") cycle indefinitely, and no content is ever generated.

fig1

Is this issue isolated?

At this moment, it remains unclear whether this issue is isolated to my specific environment/account configuration or is a widespread bug affecting other users.

@tanaikech
tanaikech / submit.md
Last active July 15, 2026 03:37
Stop Your LLMs from Forgetting (Part 2): How a Graph-Anchor Pyramid Cures AI’s Relational Blindspots

Stop Your LLMs from Forgetting (Part 2): How a Graph-Anchor Pyramid Cures AI’s Relational Blindspots

Have you ever had a brilliant solution get completely crushed by a single comment on a technical blog post?

Just last week, on July 8, 2026, I published a post introducing the Pyramid Aggregator. It was a beautiful story of technical lineage: we took a string summation algorithm originally designed on October 13, 2016 (to optimize Google Apps Script) and applied it to modern Large Language Models (LLMs). By organizing document merging into a balanced, parallel tree topology, we successfully bypassed the AI's "Lost in the Middle" bias and achieved a 95% execution speedup using the Antigravity Python SDK.

The paper was archived on Zenodo, and the Medium article did great. But then, a reader dropped a comment that pointed out a massive, system-level blindsp

@tanaikech
tanaikech / submit.md
Created July 8, 2026 06:03
Stop Your LLMs from Forgetting: How a 2016 String Algorithm Solves AI's Biggest Memory Loss Problem

Stop Your LLMs from Forgetting: How a 2016 String Algorithm Solves AI's Biggest Memory Loss Problem

fig1a

Have you ever tried to read a massive pile of reports and summarize them in under 50 words? It’s hard. Now, imagine asking a cutting-edge Large Language Model (LLM)—like Gemini—to do it.

You might think AIs have perfect memories, but they don't. When forced to aggregate information from dozens of documents under strict length constraints, AIs suffer from severe "memory loss" biases. They either ignore the middle of your documents or completely forget the older information they read first.

In this article, we’ll introduce a simple yet powerful solution called Pyramid Aggregation. Intriguingly, this method is adapted from a 10-year-old string concatenation algorithm that was originally designed to make basic programming languages run faster. By applying it to modern AI, we solved the forgetting problem and achieved a **95% speed

@tanaikech
tanaikech / submit.md
Last active July 6, 2026 03:12
Investigation Report on Google Sheets PDF Generation Endpoints: `/export` vs `/pdf`

Investigation Report on Google Sheets PDF Generation Endpoints: /export vs /pdf

Background & Reference Gists

This document compiles the empirical architectural validation of the internal rendering pathways within the Google Sheets backend infrastructure. This investigation builds upon the foundations and reverse-engineering milestones established by the following developers:

@tanaikech
tanaikech / submit.md
Last active June 29, 2026 05:58
Exploring Sandboxing for AI-Generated Google Apps Script

Exploring Sandboxing for AI-Generated Google Apps Script

Native ggsrun Sandbox Execution Lifecycle Infographic

Abstract

Executing autonomous AI agent payloads in Google Workspace via the Apps Script API's scripts.run method introduces severe security risks. This article presents a novel sandboxing proposal designed specifically for the scripts.run method, using ggsrun as the orchestrator to execute code safely and efficiently. By performing in-memory token replacement and uploading a separate, alphabetically-prioritized guard file, this approach achieves robust API-level containment. Guided by ggsrun's automated backup and default rollback lifecycle (exe1), the remote environment is immediately restored, providing a clean, dependency-free security model for AI-driven Workspace automation.