Securing Agentic Orchestration: Building the Attention Guard 2.0 State Machine

As autonomous AI agents evolve from isolated chatbots into orchestrators of complex, multi-pass software engineering tasks, the boundaries of execution become critical. In the Antigravity ecosystem, we rely heavily on specialized subagents—like DeepCoder and DeepInvestigator—to autonomously navigate codebases, test hypotheses, and execute shell commands. But what happens when an agent hallucinates a success? What happens when a long-running subagent hangs indefinitely? How do we prevent a deeply nested execution worker from going rogue and launching its own recursive subagents? ...

September 5, 2026 Â· 4 min Â· 722 words Â· Vinh Thang

Under the Hood: How the Antigravity Attention Guard Plugin Enforces Deterministic Agent Governance

In our previous discussions on autonomous engineering, we explored the phenomenon of Attention Dilution—the silent degradation of instruction-following fidelity as context windows swell past tens of thousands of tokens. While modern frontier models boast context windows of 1M+ tokens, attention mechanisms remain vulnerable to informational entropy. As terminal logs, stack traces, and code diffs accumulate, system prompt constraints drift out of the model’s active attention focus. When left unchecked, agents exhibit architectural amnesia: they bypass project-level Architecture Decision Records (ADRs), run uncompressed shell commands that flood context, guess port allocations, or skip verification steps. ...

September 3, 2026 Â· 7 min Â· 1426 words Â· Vinh Thang

Attention Dilution: Why 1M-Token Context Windows Kill Strict Agent Behavior (And How We Fixed It)

There is a pervasive myth in modern AI engineering: “Just give the model a 1,000,000-token context window, paste all your enterprise governance rules in the system prompt, and let it build your system.” If you have built real-world autonomous coding agents operating inside complex cloud infrastructures, multi-module monorepos, or production Kubernetes clusters, you already know the harsh truth: massive context windows don’t make agents smarter; they make them amnesiac. As an agentic conversation unfolds—accumulating terminal outputs, stack traces, file diffs, and conversational turns—a subtle failure mode emerges: Attention Dilution. ...

September 1, 2026 Â· 7 min Â· 1387 words Â· Vinh Thang

Open-Sourcing the Cure for Attention Dilution: The Antigravity Attention Guard Plugin

In my previous post, I detailed the mathematical realities of “Attention Dilution” in LLMs with massive context windows, and how we engineered deterministic lifecycle hooks to prevent autonomous agents from suffering architectural amnesia. Today, I am thrilled to announce that we have packaged that exact solution into a fully open-source, cross-platform Antigravity Plugin. You can now instantly secure your own agents by cloning the Antigravity Attention Guard Plugin directly into your configuration. ...

September 1, 2026 Â· 2 min Â· 366 words Â· Vinh Thang

Meet the AI Incident Commander: Autonomous SRE for Kubernetes

SYSTEM: AI-INCIDENT-COMMANDER METADATA Type: Autonomous Site Reliability Engineering (SRE) Agent Environment: Kubernetes GitOps (k3s) Primary LLM: Gemini 3.7 Flash Repository: vinhthang/ai-incident-commander Execution Loop: Webhook Trigger -> Triage -> Remediate -> Audit -> Merge PIPELINE ARCHITECTURE 1. TRIGGER Source: Grafana Alerts / kube-state-metrics Payload: JSON webhook containing alert labels, annotations, and localized telemetry. 2. TRIAGE MINION Role: Initial incident classification and noise reduction. Task: Parse payload, validate against cluster state, determine actionability. Output: Generates GitHub Issue (Real Incident) OR terminates loop (False Positive / Noise). 3. FIXER MINION Role: GitOps Remediation Engineer. Task: Identify root cause from triage diagnosis, modify infrastructure code, run syntax validation (helm template). Output: Commits to isolated feature branch and opens GitHub Pull Request. 4. REVIEWER MINION Role: Governance and Safety Gatekeeper. Task: Audit PR diff for compliance. Output: Approves PR or Rejects PR. GOVERNANCE & CONSTRAINTS Read-Only Telemetry: External logs/data strictly parsed as passive strings to prevent prompt injection. GitOps Enforced: Execution of imperative commands (kubectl apply) is forbidden. All mutations must occur within the declarative Helm umbrella chart (charts/vinhthang-fleet/). Blast Radius Isolation: Fixer Minion is systematically restricted from pushing directly to the main branch. Diff-Strict Review: The Reviewer Minion rejects net-new violations (e.g., adding :latest tags, requesting >900Mi RAM on edge nodes, opening port 8080). Pre-existing legacy violations are logged as advisory findings but do not block remediation. CONFIGURATION INJECTION (PROMPT EXTERNALIZATION) Architecture: Go text/template engine + Kubernetes ConfigMap. Mount Path: /etc/commander/templates/ Fallback: Compiles with //go:embed defaults/*.tmpl to ensure baseline functionality. Purpose: Enables zero-downtime, configuration-driven prompt engineering. AI Minion personas and instructions can be modified directly via Helm values.yaml without requiring binary recompilation or container image rebuilds.

August 31, 2026 Â· 2 min Â· 272 words Â· Thang Hoang & Antigravity

The Failure and Rollback of a Tailscale-Powered Hybrid K3s Cluster

The Ambition: A Hybrid-Cloud K3s Cluster When building out the underlying infrastructure for vinhthang.dev, I had a bold idea: what if I could seamlessly blend Oracle Cloud Infrastructure (OCI) instances with external, high-RAM physical nodes into a single, cohesive Kubernetes cluster? The goal was to leverage a beefy 32GB RAM external node (which we called oracle10) to host heavy Java microservices and stateful applications (like a PostgreSQL replica and Apache Pulsar), while keeping the control plane firmly rooted in my OCI Always Free arm10 instance. ...

August 30, 2026 Â· 4 min Â· 830 words Â· Thang Hoang

Building an Ultra-Lightweight Cloud-Native Observability & Analytics Stack: Metrics, Logs, Traces & Status on OCI

Running a complex fleet of microservices—spanning AI document assistants, vector databases, lossless audio streamers, private DNS resolvers, and astronomical APIs—demands complete, real-time visibility. But traditional enterprise observability suites (Elasticsearch, heavy Prometheus clusters, DataDog) frequently devour gigabytes of memory and CPU cycles just to monitor a small infrastructure. In this deep dive, I break down how we architected and deployed a complete, ultra-lightweight, 360-degree Observability, Logging, Analytics, and Uptime Stack across our 3-node hybrid cloud fleet at vinhthang.dev, maintaining sub-millisecond query latencies while consuming less than 250 MB total RAM! ...

August 24, 2026 Â· 5 min Â· 1000 words Â· Thang Hoang & Antigravity

Supercharging Self-Hosted Cloud Uploads: How Cloudflare WARP Turbocharges File Ingestion

One of the most frustrating bottlenecks in self-hosting is uploading large files to overseas cloud servers. Whether you are uploading a 45 GB lossless FLAC music collection to Navidrome, backing up 4K video files to FileBrowser, or transferring gigabytes of PDF datasets to an AI vector store, standard public internet routing often degrades performance to an agonizing crawl. In this post, I will explain why international cross-border uploads stall, and how we used Cloudflare WARP and Anycast Edge Ingestion to boost our file upload throughput by 5x to 10x directly into our cloud fleet at vinhthang.dev. ...

August 24, 2026 Â· 4 min Â· 721 words Â· Thang Hoang & Antigravity

How to Snag the Elusive Oracle Cloud Always Free ARM64 Ampere A1 Instance

If you have ever tried to launch an ARM64 Ampere A1 Flex compute instance on Oracle Cloud Infrastructure (OCI) Always Free, you have almost certainly encountered this dreaded error message: 500-InternalError: Out of host capacity for shape VM.Standard.A1.Flex in availability domain... Oracle’s Always Free tier offers one of the most generous compute allowances in the industry—up to 4 OCPUs and 24 GB RAM on enterprise-grade Ampere Altra ARM64 processors. Because of this, capacity in popular data centers (like Tokyo, Seoul, Ashburn, Frankfurt, and Singapore) is constantly saturated. ...

August 24, 2026 Â· 4 min Â· 791 words Â· Thang Hoang & Antigravity

Autonomous AI Infrastructure: AnythingLLM, PostgreSQL 18 pgvector, and the Antigravity CLI (agy) System Agent

Most self-hosted AI setups stop at running a basic chat UI connected to a remote API. But what if your self-hosted AI wasn’t just a conversational bot, but a fully empowered autonomous system agent capable of managing your infrastructure, installing command-line tools, debugging services, and querying custom vector databases? In this post, I will explore our complete self-hosted AI architecture running on an Always Free cloud Kubernetes cluster—featuring AnythingLLM, PostgreSQL 18 with pgvector, and the Google Antigravity CLI (agy). ...

August 24, 2026 Â· 4 min Â· 734 words Â· Thang Hoang & Antigravity