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 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.


@tanaikech
tanaikech / submit.md
Last active June 26, 2026 07:25
A Developer’s Guide to Agent Hooks in Antigravity CLI

A Developer’s Guide to Agent Hooks in Antigravity CLI

Core operational flow of the Antigravity CLI hooks subsystem, detailing lifecycle interception, out-of-band validation, and the execution response cycle.

Motivation

To be quite honest, "Hooks"—the shell commands we trigger at specific points when generative AI agents process tasks—were something I used blindly for a long time. Whenever colleagues asked me about them, I realized I lacked any real confidence in explaining how they actually work. However, when I migrated from Gemini CLI to the new Antigravity CLI, I noticed that the hooks system carried over. This felt like the right moment to stop guessing and finally develop a precise, deep understanding of the mechanism. I went back to the basics to analyze exactly how hooks operate under the hood and how we can use them effectively in the Antigravity environment. My goal is to demystify hooks so we can write them with confidence, an

@tanaikech
tanaikech / submit.md
Last active July 8, 2026 12:45
Orchestrating Google Workspace with Antigravity CLI: A High-Performance Agentic Framework

Orchestrating Google Workspace with Antigravity CLI: A High-Performance Agentic Framework

Abstract

This article explores the integration of Google Workspace with the Antigravity CLI, the high-performance successor to the legacy Gemini CLI. This integration is critical because it bridges the gap between low-latency, local agent execution and cloud-native enterprise productivity platforms. We demonstrate this framework by evaluating five core developer tools—the Google Workspace CLI, gas-fakes, ggsrun, GASADK/GoogleApiApp, and goodls—and mapping their capabilities into distinct local, hybrid, and cloud execution layers. Our analysis reveals how this unified architecture streamlines complex, multi-step agentic workflows while optimizing resource consumption, establishing a blueprint for next-generation workspace automation.

Introduction

The official release of the Antigravity CLI (agy) represents a significant paradigm shift, establ

@tanaikech
tanaikech / submit.md
Last active June 9, 2026 06:20
The 1-Second Timeout Hack: Running Infinite Parallel Workloads Natively on Google Apps Script

The 1-Second Timeout Hack: Running Infinite Parallel Workloads Natively on Google Apps Script

Infographic

Abstract

This paper presents a serverless architecture that overcomes the stateless nature and 6-minute execution limit of Google Apps Script (GAS). By configuring a 1-second immediate timeout in UrlFetchApp loopback calls, an orchestrator dispatches background tasks and terminates immediately. This design frees up the caller's execution quota while the target Web App runs to completion in an isolated container. Combined with a transactional Google Sheets state machine, this design supports self-perpetuating parallel MapReduce runs and multi-turn, state-hydrated generative AI agent networks without external compute infrastructure.

Introduction