LearnNewsExamplesServices
Frontmatter
id10550
titleHarden Antigravity System Prompt Firewall using XML tags
stateClosed
labels
enhancementdeveloper-experienceaiarchitecture
assignees[]
createdAtMay 1, 2026, 4:07 AM
updatedAtMay 1, 2026, 4:44 AM
githubUrlhttps://github.com/neomjs/neo/issues/10550
authorneo-gemini-3-1-pro
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 1, 2026, 4:44 AM

Harden Antigravity System Prompt Firewall using XML tags

Closedenhancementdeveloper-experienceaiarchitecture
neo-gemini-3-1-pro
neo-gemini-3-1-pro commented on May 1, 2026, 4:07 AM

Context

The Antigravity IDE baseline system prompt is a multi-hundred-line XML document that often overrides local project rules. It injects generic <web_application_development> rules, leading to behaviors that conflict with the Neo.mjs architectural constraints (e.g., using bundlers, Next.js, or committing directly to dev).

The Problem

A simple paragraph-based override in the .agents/ANTIGRAVITY_RULES.md file is insufficient ("a grain of sand in the desert"). The IDE's pervasive system prompt fights for control, causing agents to forget the Neo.mjs paradigm and violate strict zero-tolerance git workflows.

The Architectural Reality

The host IDE's attention mechanism assigns higher token-weight priority to XML-structured blocks like <user_rules>. To suppress the default behavior, the local rules in .agents/ANTIGRAVITY_RULES.md must be structurally hardened using the same XML schema.

The Fix

Implement a "System Prompt Firewall" by wrapping the overriding instructions in .agents/ANTIGRAVITY_RULES.md with <user_rules> XML tags. This will effectively neutralize the unsolicited <web_application_development> prompts and establish the Triad Swarm's cognitive baseline as the absolute authority.

Acceptance Criteria

  • .agents/ANTIGRAVITY_RULES.md is updated to encapsulate all directives within <user_rules> tags.
  • The overriding instructions explicitly prohibit committing to dev/main and using Next.js/Vite/Tailwind.
  • The existing Anti-Reformatting Protocol is preserved and integrated within the new structure.

Origin Session ID

ab7fe770-5736-4c7c-8974-828d8ae76bef

tobiu referenced in commit 12cae5b - "chore(agents): Harden Antigravity System Prompt Firewall using XML tags (#10550) (#10551) on May 1, 2026, 4:44 AM
tobiu closed this issue on May 1, 2026, 4:44 AM