⚠️ Antigravity AI - Warnings, Risks & Common Errors

Last Updated: 2025-12-25

👋 Introduction

This manual documents critical risks, warnings, and common errors when using Antigravity AI for development on ComputerBas v2. For general usage and best practices, see the Antigravity AI Handleiding.


🛑 Critical Risks & Failure Warnings

1. CSP Violations (The Silent Breaker)

Risk: AI agents often default to "easy" solutions like inline styles (<div style="margin: 10px;">) or inline events (onclick=...).

Consequence: The site will BREAK visually or functionally because the Content Security Policy (CSP) actively blocks these.

Mitigation:

2. AI Hallucinations & Fabrication

Risk: The AI may invent function names, file paths, or confident-sounding facts that simply do not exist.

Consequence: Code crashes, 404 errors, or logical failures.

Mitigation:

3. Context Amnesia

Risk: Antigravity does not remember previous sessions unless explicitly told. It might undo a previous fix if it's not aware of the context.

Consequence: Regressions (re-introducing bugs that were already fixed).

Mitigation:

4. Destructive Commands

Risk: Running commands like rm or overwriting files without backing up.

Consequence: PERMANENT LOSS of work.

Mitigation:

5. "It Works on My Machine" (Simulation Fallacy)

Risk: The AI generates code that looks correct but hasn't been tested in the actual PHP/Apache environment.

Consequence: Syntax errors (white screen of death) or runtime crashes.

Mitigation:


⚠️ Common Errors & What NOT to Do

Error 1: Assuming User Doesn't Know Basic Troubleshooting

NEVER assume the user doesn't know basic troubleshooting.

Example Error (2025-12-25)

The Rule:


Error 2: Modifying Working Code Based on Assumptions

NEVER modify working code based on assumptions.

Example Error (2025-12-25)

The Rule:


Error 3: Not Investigating Before Acting

Order of Operations:

  1. Listen to the user's exact complaint
  2. If they rule something out, trust them
  3. Investigate the actual code
  4. Identify the real issue
  5. Fix ONLY that issue
  6. Don't add extras

📋 Summary of Rules

Trust & Respect

Code Changes

Testing & Validation

Session Management

User