The Vehicle Metaphor: Steering Rack, Cockpit Gauges & Pit Crew
In Module 1, we established that a raw Large Language Model is like an untrusted crate motor sitting on a wooden pallet: grounded in autoregressive next-token prediction (as laid out in Vaswani et al.’s original Attention paper), it produces massive probabilistic horsepower, but it has no transmission, no brakes, and zero native steering, simply fuel in and power out. In Module 2, we plumbed clean, filtered fuel lines using Google NotebookLM and configured custom driving rules using Gemini Gems.
Now, in Module 3, we install the Steering Rack, Cockpit Gauges, and Pit Crew:
+------------------------------------------------------------------------+
| THE AGENTIC COCKPIT & CONTROLS |
| |
| STEERING RACK & PLANNING MODE (GPS Route Planning): |
| * Before putting the vehicle in gear, survey the terrain, calculate |
| waypoints, and identify hazards (implementation_plan.md). |
| * Mechanical linkage translates Operator intent directly to wheel |
| direction across the entire codebase rather than random drifting. |
| |
| EXECUTION MODE (Putting Power to the Wheels): |
| * High-torque, multi-file edits, atomic search-and-replace, and |
| live terminal verification commands. |
| |
| COCKPIT GAUGES (Flight Telemetry & Context Monitoring): |
| * Continuous monitoring of token consumption, step budgets, linter |
| diagnostics, and tool execution return codes. |
| |
| SUBAGENTS (The Pit Crew): |
| * Specialized Mechanics handling telemetry lookups, lengthy builds, |
| or browser testing in parallel without crowding the Driver cabin. |
| |
| MCP SIDECARS (The Universal OBD-II Port): |
| * Standard diagnostic interface connecting the engine management |
| computer to external tools, databases, and operating systems. |
| |
| CUSTOM SKILLS (Modular Glovebox Service Manuals): |
| * On-demand procedural playbooks loaded only when diagnosing a |
| specific fault code, keeping baseline system memory clean. |
+------------------------------------------------------------------------+
- The Vehicle Metaphor: Steering Rack, Cockpit Gauges & Pit Crew
- The Vibe-Coding Philosophy: The IT Generalist as Orchestrator
- Schedule & Semester Pacing: The Mid-Module Checkpoint
- Module Overview & Objectives
- Section 3.1: The Autonomous Agentic Loop (Part A / Week 5)
- Mid-Module Checkpoint: Homework & Lab 3A
- Section 3.2: Deterministic Tooling & Custom Agent Customizations (Part B / Week 6)
- Hands-On Lab 3B: Authoring a Custom SecOps Triage Skill & Subagent Verification
- Module Discussion Questions
The Vibe-Coding Philosophy: The IT Generalist as Orchestrator
Ideal software engineering has always been a measured, disciplined craft. Building robust, maintainable systems requires deliberate architecture, clear abstractions, and rigorous testing. This is also an area where security, implemented as early as possible, is less expensive to implement (it still has a cost and delays that first-to-market movers hate, but it is only more expensive to implement from here onwards). At the same time, Practitioners in the server room, whether Systems Administrators, Security Analysts, or Generalist Engineers, frequently face immediate operational demands: broken firewall rules to fix, incoming vulnerability bulletins to triage, migration scripts to deploy, or legacy tools to modernize under tight maintenance windows.
This is where the concept of vibe-coding enters the conversation, when properly understood through an engineering lens:
- What Vibe-Coding Is Not: Vibe-coding is not closing your eyes, hitting tab repeatedly, and blindly pasting uninspected AI hallucinations directly into your core production systems. That is negligence, not engineering.
- What Vibe-Coding Actually Is (From Pair-Programmer to Product Manager):
- Early On (Pair-Programming with a Senior Engineer): In the beginning, approach the agent like sitting side-by-side with a tireless, highly knowledgeable Senior Programmer. You talk through problems out loud, bounce architectural ideas back and forth, and have the model write initial boilerplate, craft tricky regexes, or scaffold test fixtures while you scrutinize every line.
- As You Advance (The “People” Manager): As your workflows mature (popularized by Andrej Karpathy’s concept of vibe coding), your role shifts into that of a technical Project Manager or Product Lead directing planned generation (check out the CodePlan repository-level planning study). You define the roadmap, set explicit deliverables, establish target constraints, and break down complex initiatives into discrete tasks. You are no longer turning every individual screw by hand; you are directing the work. At a point, you become the full-fledged Product Manager, wholly responsible for that thing, what users want, and its lifecycle, even if you aren’t the most skilled in any one of those areas. I am loath to humanize GenAI, but much like a Manager needs to control resources to meet the needs of the business, the user of agentic AI needs to do the same.
- The Need to Call Out Flaws: Stepping into a Project Manager role does not mean you can afford to be technically ignorant. Quite the opposite: whether managing human Junior Engineers or autonomous AI tools, you must understand enough about systems, data structures, and failure modes to immediately spot flaws, detect hallucinations, and call BS on bad engineering before it ships to production.
- The Mechanic Mindset: An experienced shop Mechanic does not need to forge their own socket wrenches or cast their own aluminum cylinder heads from raw ore. They know how individual assemblies interact, select the right tools from their rolling toolbox, check tolerances, and verify real-world behavior under load. As an AI-augmented IT Generalist, your superpower is not memorizing obscure Python syntax or API quirks; your superpower is systems architecture, threat modeling, and verification discipline. You direct the plan, supervise execution, and own the final operational outcome (“Own the Output”).
[!NOTE] Personal Reflection: The “One-Shot” Myth & Discipline
In Developer forums and social media, you see endless chatter hyping the idea of “one-shotting” an entire application: the fantasy that you can type a single conversational sentence into a prompt box, walk away for five minutes, and come back to a fully functioning, enterprise-ready software platform.
That fantasy completely ignores how these tools actually function and what their mechanical limits are.
When you sit down to build something real, expect to experiment, iterate, and learn. Don’t get upset when the first pass isn’t flawless or when an agent takes a wrong turn on an edge case. That is not a failure; it is part of the engineering process.
A few hard truths from the server room:
- The Biggest Engine Isn’t Always the Best Tool: People assume you must always throw the heaviest, most expensive frontier flagship model at every step. In practice, the most powerful model may not be the most useful. A far more effective and practical strategy is model tiering (an approach popularized by FrugalGPT): use a top-tier reasoning model for high-level architectural planning, boundary definition, and route planning, and then hand off the execution to faster, smaller models (including local open-weight models running on your own metal) to write the boilerplate, format files, and run tests.
- Foundations Still Matter Immensely: Vibe-coding does not eliminate the need for foundational competence. Understanding how code actually works, systems thinking, architectural modularity, interface boundaries, and standard engineering practices like CI/CD (Continuous Integration and Continuous Deployment) remain essential. If you don’t understand how modular components connect or how automated test pipelines validate pull requests, you won’t know when the agent has designed a brittle, unmaintainable monolith.
- Lowering the Floor vs. Guiding the Work: What vibe-coding actually accomplishes is lowering the floor. It strips away the tedious mechanical friction, the syntax memorization, and the repetitive typing toil. But as the human in charge, you still have to be a strong, disciplined guide.
- Always Make a Backup (Git Branches as Agentic Airbags): When an agentic IDE enters execution mode, it can perform high-speed search-and-replace edits and wipe out dozens of lines in seconds (a frequent failure mode documented in SWE-bench evaluations). If you work directly on uncommitted files or without a backup, an unexpected hallucination or malformed regex leaves you with zero recovery options. Always commit your working baseline to git or spin up a dedicated scratch branch before handing an agent write permissions. If you didn’t back up the file… your only backup is whatever happens to be published on the web or saved in your shell history!
The daily churn is removed; the responsibility of setting realistic goals, defining the architecture, and verifying the output remains squarely on your shoulders.
Schedule & Semester Pacing: The Mid-Module Checkpoint
+------------------------------------------------------------------------+
| MODULE 3 SCHEDULE & MID-MODULE CHECKPOINT |
| |
| [ PART A: THE AUTONOMOUS LOOP ] (16-Wk: Week 5 | 8-Wk: Session 1) |
| * Section 3.1: Planning Mode, Execution Mode & Subagents |
| | |
| v |
| [ MID-MODULE CHECKPOINT & DELIVERABLE ] |
| * Homework / Lab 3A: Autonomous Refactoring & Walkthrough |
| | |
| v |
| [ PART B: CUSTOMIZATION ENGINEERING ] (16-Wk: Week 6 | 8-Wk: Sess 2) |
| * Section 3.2: Skills (SKILL.md), Rules (AGENTS.md) & MCP Sidecars |
| * Lab 3B: Custom SecOps Triage Skill & Subagent Verification |
+------------------------------------------------------------------------+
- 16-Week Schedule: Complete Section 3.1 during Week 5, submit the Lab 3A checkpoint refactoring deliverable before class, and complete Section 3.2 and Lab 3B during Week 6.
- 8-Week Schedule: Cover Section 3.1 in the first half of Week 3, execute the Lab 3A refactoring exercise during the mid-week lab session, and build custom skills and MCP integrations in Section 3.2 during the second half.
Module Overview & Objectives
Traditional AI coding assistants act merely as glorified autocomplete engines. In contrast, modern Agentic IDEs (such as Antigravity IDE) operate as autonomous collaborators capable of inspecting file systems, running terminal commands, delegating work to subagents, and executing multi-step workflows.
By the end of this module, Practitioners will be able to:
- Analyze the Autonomous Agentic Loop: Explain the Observe-Orient-Decide-Act (OODA) loop governing autonomous coding agents and contrast it with passive autocomplete and side-panel chat.
- Operate Planning Mode vs. Execution Mode: Implement structured implementation plans (
implementation_plan.md), audit atomic diffs, and verify completed refactoring operations (walkthrough.md) before touching production systems. - Manage Concurrent Subagents & Background Tasks: Delegate isolated subtasks (external research, lengthy compilation or build tasks, headless browser automation) to independent subagents to prevent context window bloat and attention degradation.
- Trace Agent Telemetry via Session Transcripts: Locate and analyze structured session logs (
transcript.jsonl) to trace agent tool execution, review model decision paths, and debug unexpected behavior. - Author Modular Workspace Customizations: Configure repository-level behavioral rules (
AGENTS.md), author reusable operational playbooks (SKILL.md), and integrate external tools via the Model Context Protocol (MCP).
Section 3.1: The Autonomous Agentic Loop (Part A / Week 5)
The Evolution of AI-Assisted Programming
To understand why agentic IDEs represent an architectural leap forward, we must trace how AI interaction models have evolved in modern software workflows:
- Gen 0: Deterministic Autocomplete (Static IntelliSense & ASTs):
- Mechanism: Static analysis engines, Abstract Syntax Trees (ASTs), and Language Server Protocol (LSP) daemons. When you type
my_object., the IDE queries the compiled symbol table in memory and displays a drop-down menu of valid methods, properties, and type signatures. - Limitations: Completely syntax-bound, deterministic, and blind to semantic intent. It can tell you what methods exist on an object, but it has zero capability to synthesize new logic, understand plain English instructions, or reason about architectural goals.
- Mechanism: Static analysis engines, Abstract Syntax Trees (ASTs), and Language Server Protocol (LSP) daemons. When you type
- Gen 1: Inline Neural Autocomplete (Statistical Tab-Completion):
- Mechanism: A lightweight neural model inspects the immediate text preceding your cursor and predicts the next 10 to 50 tokens. This was pioneered commercially in June 2021 by GitHub Copilot, powered by OpenAI’s original Codex model described by Mark Chen and the OpenAI team.
- Limitations: Zero understanding of your wider repository architecture, build system, or runtime environment. If you rename a database model in one file, Gen 1 autocomplete has no idea that five downstream scripts just broke. It is essentially an eager passenger trying to guess the next word you want to speak.
- Gen 2: Side-Panel Chat (The Overly Restricted Harness):
- Mechanism: A conversational model sits in a web browser tab or IDE sidebar (such as ChatGPT web, Claude web, or early Copilot Chat). The Developer highlights code, pastes it into the chat window with a prompt like “Why is this throwing an IndexError?”, receives a suggested fix, and manually copies the modified snippet back into the editor.
- Limitations: This design is fundamentally an execution harness bottleneck, a problem analyzed in Anthropic’s research on building effective agents. The underlying model might be a frontier reasoning engine with enormous intellectual capability, but because the harness strips away all deterministic tools (no direct file access, no terminal execution, no linter feedback), the Developer is forced to act as a human clipboard, manual data bus, and manual router, aka a meat proxy. It strands a high-horsepower engine inside a chassis with no drivetrain or wheels touching the ground. If the proposed snippet introduces a secondary bug, the Developer must manually paste the error back into chat, entering a slow, frustrating cycle.
- Gen 3: Autonomous Agentic Loops (Antigravity IDE, Claude Code, Cursor):
- Mechanism: The AI model is embedded inside an active execution harness equipped with deterministic tools: file search, file reading, atomic line replacement, terminal command execution, subagent orchestration, and Model Context Protocol (MCP) sidecars.
- Form Factors Across the Industry:
- CLI-First Terminal Agents: Anthropic Claude Code, Antigravity CLI (
agy), and open-source Aider run directly in your shell or SSH sessions, executing commands, editing files, and managing git branches. - Agentic IDEs: Google Antigravity IDE, Cursor, and Windsurf embed multi-file agentic loops, background codebase indexing, and visual diff editors directly into the coding environment.
- Autonomous Editor Extensions: GitHub Copilot Agent Mode and open-source extensions like Cline and Roo Code bring autonomous loops to standard IDEs.
- CLI-First Terminal Agents: Anthropic Claude Code, Antigravity CLI (
- Capabilities: Instead of waiting for you to copy and paste text, the agent autonomously reads project files, navigates directory trees, drafts architectural plans, applies modifications across multiple files, executes compiler and test suites in the terminal, analyzes error traces, and self-corrects until the system passes all verification checks.
[!NOTE] Course Tooling Focus & Transferable Architecture This course uses Google Antigravity (the Antigravity IDE and
agyCLI) as our primary hands-on platform because it provides fully transparent, inspectable local artifacts and session transcripts without corporate gateway restrictions. However, the architectural principles taught here are completely vendor-agnostic. Whether you deploy Antigravity, Anthropic Claude Code, Cursor, or GitHub Copilot Agent Mode, the fundamental mechanics of the OODA loop, planning mode, context window isolation, session telemetry, and deterministic tooling remain identical across platforms.
[!WARNING] The Hazard of Human Fatigue and “Rubber-Stamping” Because Gen 3 agentic harnesses possess real terminal execution and file modification privileges, human operational discipline is the only barrier separating productivity from catastrophic data loss. As an agent works through a complex task, it repeatedly pauses to request permission for terminal commands and file edits. Under heavy workloads, human Operators inevitably suffer from approval fatigue, blindly clicking “Proceed” without reading the proposed shell commands or atomic diffs.
In the Antigravity CLI (
agy), this temptation is encapsulated by the--dangerously-skip-permissionsflag, which auto-approves every terminal execution request without prompting. (Note that third-party CLI agents use alternative flags for this behavior, such as Aider’s--yoloor--yesflags, but in Antigravity the canonical binary argument is--dangerously-skip-permissions.) Never enable this flag on production workstations, domain-joined endpoints, or repositories containing uncommitted work. If an agent encounters an unexpected shell error or model drift while running in an unmonitored loop, it can recursively delete source trees (rm -rf), wipe database tables, or commit broken dependencies before the Operator can intervene. The Human-in-the-Loop safety gate must remain active at all times.
- The Defensive Solution: Granular Allowlists with Wildcards: Rather than resorting to reckless auto-approval flags to avoid fatigue, modern agentic harnesses allow you to configure local or project-level permission files (such as workspace settings or security policies). These configurations support fine-grained wildcard matching to auto-approve safe, idempotent inspection commands while keeping state-mutating actions strictly gated:
- Auto-Approved (Exploratory / Read-Only):
git status*,git diff*,git log*,pytest*- Human-Gated / Prompted (State-Mutating / Destructive):
git commit*,git push*,rm *,DROP*
+------------------------------------------------------------------------+
| THE AUTONOMOUS AGENTIC OODA LOOP |
| |
| [ Operator Prompt / Task Directive ] |
| | |
| v |
| +---> 1. OBSERVE (list_dir, grep_search, view_file, run_command) |
| | | |
| | v |
| | 2. ORIENT (Analyze AST, Call Graphs, Rules & Linter Output) |
| | | |
| | v |
| | 3. DECIDE (Formulate Plan, Select Tool, Draft Atomic Diff) |
| | | |
| | v |
| +---- 4. ACT (replace_file_content, write_to_file, Run Shell) |
| (Loop on Stderr / Test Failure) |
| | |
| v (Verification Passed) |
| [ Completed Deliverable & Walkthrough ] |
+------------------------------------------------------------------------+
The OODA Loop in Software Engineering
The autonomous agentic loop directly mirrors the military and systems engineering OODA Loop (Observe, Orient, Decide, Act), conceptualized in Col. John Boyd’s Discourse on Winning and Losing and examined in modern autonomous security systems by Barath Raghavan and Bruce Schneier:
- Observe (Gather Telemetry):
The agent queries its environment using deterministic inspection tools. It lists directory structures (
list_dir), searches for specific function declarations or error codes across the codebase (grep_search), inspects target file contents with line-number precision (view_file), and examines recent git history or build status via shell commands (run_command). - Orient (Synthesize Context & Constraints):
The agent evaluates its observations against its operational context, system prompts, repository behavioral rules (
AGENTS.md), and active skill playbooks (SKILL.md). It maps module dependencies, identifies cross-file references, accounts for language runtime constraints, and reviews recent linter feedback. - Decide (Formulate Next Action): The model determines whether it requires more information or is ready to make a change. If it is ready, it selects the single most appropriate tool call from its registered tool definitions and formulates the exact structured arguments, such as targeted line numbers and replacement chunks.
- Act (Execute & Inspect): The harness executes the tool call deterministically on the host environment. Crucially, the loop does not stop here: the harness captures the tool result (stdout, stderr, exit code, or updated file buffer) and injects it back into the model’s active context. The agent immediately loops back to Observe, evaluating whether the action succeeded or introduced a runtime regression.
Planning Mode vs. Execution Mode
In enterprise IT and security environments, an unguided autonomous agent with write permissions is an operational liability. If an agent misinterprets a prompt and immediately begins modifying dozens of files simultaneously, it can easily introduce breaking schema changes, destroy working configurations, or create subtle security vulnerabilities.
To prevent this chaos, agentic IDEs enforce a strict separation between Planning Mode and Execution Mode:
+------------------------------------------------------------------------+
| PLANNING MODE VS. EXECUTION MODE |
| |
| PLANNING MODE (Read-Only Exploration & Architectural Blueprint): |
| * Examples of Tools Allowed: find_by_name, grep_search, view_file |
| * Examples of Tools Blocked: replace_file_content, write_to_file |
| * Primary Deliverable: implementation_plan.md |
| * Human Gate: Requires explicit Operator review and sign-off before |
| a single byte of production code is altered. |
| |
| EXECUTION MODE (Systematic Modification & Automated Testing): |
| * Examples of Tools Allowed: replace_file_content, run_command |
| * Examples of Tools Blocked: Destructive / out-of-scope commands |
| * Action Pattern: Make atomic change -> run compiler/tests -> |
| inspect stderr -> self-correct if broken -> advance to next step. |
| * Primary Deliverable: walkthrough.md with verification proof. |
+------------------------------------------------------------------------+
1. Planning Mode Mechanics
When engaged in Planning Mode, the agent operates in an explicitly non-destructive, read-only posture:
- Non-Destructive Exploration: The agent has access to directory listing, file viewing, and pattern search tools, but all file-modification tools are disabled. It crawls the repository, traces data flows, examines configuration files, and maps out every component that will be impacted by the proposed change.
- The Implementation Plan Artifact (
implementation_plan.md): Rather than jumping straight to code, the agent outputs a comprehensive architectural plan containing:- User Review Required: Highlighting critical architectural decisions, potential breaking changes, or credential requirements that require human confirmation.
- Proposed Changes: An explicit inventory of every file to be created, modified, or deleted, tagged clearly with
[NEW],[MODIFY], or[DELETE]. - Open Questions: Clarifying ambiguities before execution begins (for example, whether to use SQLite WAL mode or standard rollback journal).
- Verification Plan: Step-by-step automated and manual tests that will prove the changes work as intended.
- The Human-in-the-Loop Sign-Off: The Developer inspects the implementation plan, suggests adjustments, refines constraints, and explicitly grants permission to proceed. Only after human sign-off does the agent transition into Execution Mode.
Collaborative Requirement Alignment: /grill-me & Industry Equivalents
One of the most persistent operational hurdles in AI-assisted programming is the Underspecified Prompt Dilemma. In real-world software engineering, humans rarely write exhaustive 50-line prompts outlining every edge case, data schema, error boundary, and protocol requirement. When an Operator simply types “Refactor this script to parse firewall logs and alert on bad DNS”, the prompt leaves dozens of foundational architectural questions unanswered:
- What port and transport protocol defines DNS traffic?
- Which upstream DNS resolvers are considered authorized baseline vs. rogue policy violations?
- Should the data structure use raw dictionaries, Pydantic schemas, or standard dataclasses?
- How should comments, dropped packets, and malformed lines be handled?
In older workflows, the model would either make silent, ungrounded assumptions (often resulting in code that breaks in production) or output generic boilerplate. Modern agentic platforms resolve this through Interactive Requirement Alignment (Socratic Prompting):
In Google Antigravity (IDE & agy CLI), this is activated via the /grill-me slash command, often paired with /plan (or toggled via Shift+Tab to cycle between Plan and Execution modes). Instead of forcing the Developer to draft an exhaustive technical specification upfront, the agent enters an interactive interview loop. It walks down each branch of the architectural design tree, asks clarifying questions one by one, provides recommended choices, and only drafts the implementation_plan.md once a shared understanding is reached.
The pattern of interactive requirement gathering and plan refinement is a core design standard across the modern agentic ecosystem:
| Platform | Feature / Command | Interaction Paradigm | Operational Purpose |
|---|---|---|---|
| Google Antigravity | /grill-me & /plan (or Shift+Tab) |
Socratic Interview & Plan Mode | The agent systematically interviews the Operator on design decisions, schemas, and edge cases before drafting implementation_plan.md. |
| Anthropic Claude Code | Interactive Clarification Loops | Terminal Q&A Prompting | Pauses execution when commands or requirements are ambiguous, prompting the user for decisions before generating bash/edit tool chains. |
| Cursor | Composer “Ask” & Plan Iteration | Multi-turn Chat Alignment | Clarifies user intent, inspects @codebase references, and refines scope before staging multi-file Composer diffs. |
| Aider | /architect Mode |
Architect / Editor Model Split | Dispatches an architectural reasoning model to discuss design choices and plan refactoring steps with the user before committing code changes. |
| GitHub Copilot Workspace | Specification Iteration (Spec Phase) | Task-to-Spec-to-Plan Funnel | Automatically generates a structured technical specification from a prompt/issue, allowing the user to refine requirements before generating the plan and code diff. |
2. Execution Mode Mechanics
Once approved, the agent transitions into Execution Mode to implement the blueprint:
- Atomic File Replacements: Rather than overwriting entire 500-line source files, which wastes tokens and risks wiping out unrelated logic, modern agentic IDEs use targeted replacement tools (
replace_file_content). The agent specifies exact line ranges (StartLine,EndLine), the preciseTargetContentto match, and the completeReplacementContent. This fine-grained editing pattern is modeled on the harness architectures evaluated in the SWE-bench benchmark. - Autonomous Error Recovery & Self-Correction:
If a modified script fails a syntax check or triggers an assertion error during test execution, the agent does not throw up its hands or require manual Developer intervention. It reads the traceback from
run_command, pinpoints the failing line, formulates a targeted fix, applies the patch, and re-executes the test suite until all assertions pass. - The Walkthrough Deliverable (
walkthrough.md): Upon completing the task, the agent generates a final artifact summarizing what was accomplished, providing clickable links to modified files, and embedding clean terminal logs proving that all automated tests executed successfully.
Subagents & Asynchronous Concurrency: The Pit Crew
One of the most persistent bottlenecks in LLM systems is Context Window Degradation. As an agent interacts with a codebase over dozens of turns, its context window fills with file listings, grep search dumps, terminal output, and intermediate thinking. As established in Module 1, when a context window becomes bloated, the model suffers from attention dilution and the Lost in the Middle effect documented by Stanford researchers Nelson Liu and colleagues: it forgets earlier constraints and begins hallucinating.
Antigravity IDE solves this using Subagents & Asynchronous Concurrency:
+------------------------------------------------------------------------+
| SUBAGENTS & ASYNCHRONOUS PIT CREW |
| |
| [ PRIMARY AGENT (COCKPIT DRIVER) ] |
| Context: High-Level Architecture & Active Plan |
| | | | |
| Spawn | Spawn | Spawn | |
| Scoped v Shell v Headless v |
| +-------------------+ +-------------------+ +----------------+ |
| | Subagent A: | | Subagent B: | | Subagent C: | |
| | Threat Intel | | Background Test | | Browser | |
| | Research | | Suite | | Automation | |
| | (Isolated Window) | | (Async Container) | | (DOM / UI) | |
| +---------+---------+ +---------+---------+ +--------+-------+ |
| | | | |
| Concise | Exit Code | UI | |
| Summary +-------------------> v <------------------+ |
| [ Return Synthesized Result ] |
+------------------------------------------------------------------------+
- Isolated Context Windows: When the primary agent needs to investigate an unfamiliar third-party API or read a 100-page specification, it does not pollute its main conversation buffer. It spawns a specialized subagent with an isolated, clean context window, tasks it with answering a specific question, and receives back a concise, synthesized answer.
- Background Task Execution: Lengthy tasks, such as compiling a large binary, running an extensive test suite, or building a Docker container, are sent to the background as asynchronous tasks. The primary agent can continue working or pause safely without locking up the user interface.
- Parallel Exploration: The primary agent can dispatch multiple subagents concurrently to explore alternative refactoring strategies or cross-reference separate vendor manuals simultaneously, slashing overall task completion time.
Transcript Logging & Session Replay: The Flight Data Recorder
When an autonomous agent runs multi-step loops across your project, you cannot treat it as an opaque black box. To tinker effectively with agentic workflows (understanding why an agent chose a specific tool, diagnosing why a test failed, or discovering where local state lives), you need complete visibility into every decision, prompt, and command.
Antigravity IDE implements this via structured JSON Lines transcript logging (transcript.jsonl). Transcripts are stored locally by conversation ID at:
- Linux / macOS:
~/.gemini/antigravity/brain/<conversation-id>/.system_generated/logs/transcript.jsonl(and CLI logs at~/.gemini/antigravity-cli/brain/<conversation-id>/.system_generated/logs/transcript.jsonl) - Windows:
%USERPROFILE%\.gemini\antigravity\brain\<conversation-id>\.system_generated\logs\transcript.jsonl(andtranscript_full.jsonl)
(Note: The sample JSON Lines block below is formatted for human readability; production disk transcripts log operational runner attributes including step_index, source, type, created_at, token accounting, and structured tool_calls.)
{"timestamp": "2026-09-03T14:35:10Z", "role": "user", "content": "Refactor legacy_log_triage.py to parse Windows Firewall logs and alert on unauthorized DNS resolvers."}
{"timestamp": "2026-09-03T14:35:12Z", "role": "assistant", "thought": "I need to inspect the existing script to understand data models and dependencies.", "tool_call": {"name": "view_file", "arguments": {"AbsolutePath": "/workspace/legacy_log_triage.py", "StartLine": 1, "EndLine": 50}}}
{"timestamp": "2026-09-03T14:35:13Z", "role": "tool", "tool_name": "view_file", "output": "import sys\n\ndef parse_line(raw_line):\n..."}
{"timestamp": "2026-09-03T14:35:16Z", "role": "assistant", "thought": "Legacy code uses naive whitespace splitting and crashes on # comments. I will generate an implementation plan first.", "tool_call": {"name": "write_to_file", "arguments": {"TargetFile": "/workspace/brain/implementation_plan.md", "Overwrite": true, "CodeContent": "# Implementation Plan..."}}}
- Execution Tracing & Inspection: Every user message, model reasoning step, tool invocation, terminal command, and tool output is recorded with ISO-8601 timestamps. If an agent produces an unexpected result or runs an erroneous command, you can inspect the exact prompt chain and reasoning that triggered it.
- Session Replay & Reproducibility: Because the complete interaction history is captured, Developers can replay agent sessions step-by-step, inspect how the agent responded to specific errors, and use past session transcripts to tune workspace behavioral rules and custom skills.
- Session Decoupling & Ephemeral State Management: The
brain/<conversation-id>/directory serves as an isolated, temporary staging sandbox. Intermediate deliverables (implementation_plan.md,walkthrough.md), one-off test scripts (scratch/), and raw execution telemetry reside here during the active session. This architecture prevents half-baked scripts or draft planning documents from polluting your production repository’sgit status. If a task is abandoned or pruned, this temporary scratchpad can be cleared without leaving residual clutter in the primary codebase.
Cross-Platform Parallels: Session Sandboxing Across Agentic Tools
The pattern of isolating ephemeral agent state under a unique session identifier is a core architectural standard across the modern agentic ecosystem:
| Platform | Session Identifier & Storage Location | Ephemeral Artifacts Stored | Operational Purpose |
|---|---|---|---|
| Google Antigravity | brain/<conversation-id>/ |
Transcripts (transcript.jsonl), scratch scripts, implementation plans. |
Sandboxes intermediate plans, scratch scripts, and flight telemetry away from project git trees. |
| Anthropic Claude Code | ~/.claude/sessions/<session-id>/ |
Raw JSONL prompt logs, bash execution history, token cost telemetry. | Powers session resumption (claude --resume) and keeps shell telemetry out of source trees. |
| Cursor | workspaceStorage/<hash>/ |
Composer snapshot trees, shadow workspace buffers, multi-file diffs. | Enables one-click rollback of multi-file edits before disk writes are finalized. |
| GitHub Copilot / OpenAI (Codex Lineage) | workspaceStorage/<hash>/chatSessions/ |
Copilot Edits session state, turn logs, working buffer diffs. | Preserves agentic chat sessions and tool approvals across IDE restarts. |
| Cline / Roo Code (Open-Source VS Code Agent) | globalStorage/.../tasks/<task-id>/ |
api_conversation_history.json, browser screenshots, UI checkpoints. |
Facilitates long-running task pauses/resumes and step-by-step task inspection and debugging. |
| Aider (Open-Source CLI Agent) | .aider.chat.history.md & git cache |
Chat markdown transcripts, automatic git commit/tag checkpoints. | Fuels instant /undo rollbacks without leaving untracked scratch files in the working tree. |
[!TIP] Field Notes from the Server Room Floor
- SOC Automation Parallels: An agentic IDE loop is conceptually identical to a modern SOAR (Security Orchestration, Automation, and Response) playbook engine. In a SOAR platform like Splunk SOAR or Cortex XSOAR, an alert triggers automated actions: enrich IP, check VirusTotal, query Active Directory, and open a ticket. An agentic IDE is simply a dynamic, software-aware SOAR engine operating across a codebase with a human-in-the-loop safety gate.
- The Danger of Unplanned Agentic Execution: Never let an autonomous agent operate in execution mode without an approved plan. In an enterprise repository, an agent attempting to “fix” a script might update shared dependencies, alter database schemas, or delete configuration files that break adjacent production services. Planning Mode is your preventative maintenance check before turning on the engine.
Mid-Module Checkpoint: Homework & Lab 3A
[!IMPORTANT] 16-Week Course Stopping Point: Deliver this assignment at the end of Week 5. In an 8-week course, complete during the mid-week lab session.
[!NOTE] Operational Guidance: Understanding Tool Access, Sandboxes & Autonomy
Security boundaries in agentic engineering are never purely black and white: they depend entirely on understanding what tools your agent possesses and what filesystem or network access is actually granted.
- Know Your Access Boundaries: Running inside Windows Subsystem for Linux (WSL) keeps package dependencies organized, but remember that WSL mounts host drives (
/mnt/c/) and shares host network routes by default. Similarly, tools like Hermes or Docker containers offer dedicated sandbox modes right on your local machine, but they are only as effective as the bind mounts and environment variables you configure. Always verify what directories, ports, and credentials an agent can touch before letting it run.- Calibrate Autonomy with Familiarity: There is certainly a place for fully autonomous solutions, but that level of trust comes only with hands-on familiarity that this course is designed to build. When starting out with new agentic harnesses or models, keep the Human-in-the-Loop permission gate active. Review proposed terminal commands and atomic diffs rather than blindly auto-approving them.
- Defensive Operational Habits: Whether you pair with an agent directly on bare metal or inside an isolated Virtual Machine (VM), build defensive muscle memory: work in dedicated git scratch branches so any bad change can be reverted instantly, keep secrets (
.env, private keys) quarantined away from project folders, and test new agentic skills in clean, low-stakes workspaces first.
Lab 3A Scenario: Windows Firewall DNS Telemetry Triage Refactoring
In this lab, you assume the role of a Systems Administrator inheriting a fragile, monolithic Python script (legacy_log_triage.py) used by your operations team to parse Windows Defender Firewall logs (pfirewall.log) and detect policy violations.
Your organization enforces a strict DNS policy permitting queries only to authorized resolver 8.8.8.8 over both standard UDP port 53 (governed by RFC 1035) and fallback TCP port 53 virtual circuits (per RFC 7766). Outbound queries to unauthorized resolvers such as 8.8.4.4 represent rogue DNS usage, policy violations, or potential exfiltration that must trigger a high-priority alert.
You will use Antigravity’s Planning Mode and slash commands (/plan, /grill-me) to audit the codebase, align on architectural decisions through an interactive design interview, generate an implementation_plan.md, approve the refactoring blueprint, supervise the agent as it autonomously refactors the script, and inspect the resulting walkthrough.md.
For the complete step-by-step walkthrough, starter source files, and sample firewall logs, refer to the standalone guide:
👉 Lab 3A Reference Guide: Windows Firewall DNS Telemetry Triage Refactoring
Lab 3A Objectives & Requirements
- Audit in Planning Mode: Execute non-destructive inspection tools (
view_file,list_dir) and generate animplementation_plan.mdwithout modifying any source files. - Schema & Logic Modernization: Refactor legacy dictionaries into typed dataclasses (
FirewallEntry), gracefully handle#header comments, alert on unauthorized outbound DNS queries to8.8.4.4:53(UDP/TCP), and eliminate bare exception handlers. - Automated Verification & Self-Correction: Supervise the agent in Execution Mode as it refactors
legacy_log_triage.py, runspython legacy_log_triage.py sample_pfirewall.log, inspects the output, and verifies that unauthorized DNS queries to8.8.4.4(UDP and TCP) are flagged while8.8.8.8is permitted.
Lab 3A Deliverables
Submit the following items to your Instructor or learning management system:
- 1. Implementation Plan: Copy of
implementation_plan.mdgenerated during Planning Mode. - 2. Refactored Source Code: Modernized
legacy_log_triage.py. - 3. Verification Execution Proof: Terminal output demonstrating execution against
sample_pfirewall.logcorrectly flagging the 2 unauthorized entries. - 4. Execution Walkthrough: Final
walkthrough.mdartifact showing verification proof. - 5. Session Transcript Excerpt: First 30 lines of
transcript.jsonlverifying planning mode compliance.
Section 3.2: Deterministic Tooling & Custom Agent Customizations (Part B / Week 6)
The Customization Hierarchy in Antigravity IDE
When working in an agentic IDE, you must manage how the model behaves across different contexts. You do not want enterprise compliance rules hardcoded into individual chat sessions, nor do you want project-specific database schemas cluttering your global IDE settings.
Antigravity IDE implements a two-tier customization hierarchy:
+------------------------------------------------------------------------+
| ANTIGRAVITY CUSTOMIZATION HIERARCHY |
| |
| GLOBAL CUSTOMIZATIONS (~/.gemini/config): |
| * Applies across all workspaces and projects on your workstation. |
| * Global Developer preferences, default frontier model selection, |
| cross-project API keys, and system-wide security thresholds. |
| |
| WORKSPACE CUSTOMIZATIONS (.agents/): |
| * Scoped strictly to the active repository root. |
| * Version-controlled via git alongside project code. |
| * Shared across your entire engineering team so all contributors |
| experience identical agent behavior and architectural guardrails. |
+------------------------------------------------------------------------+
my-enterprise-repo/
├── .agents/
│ ├── rules/
│ │ └── coding-standards.md # Workspace behavioral guardrails
│ └── skills/
│ └── soc-cve-triage/
│ ├── SKILL.md # YAML frontmatter + procedural instructions
│ └── scripts/
│ └── cve_validator.py # Local deterministic utility script
├── src/
├── tests/
└── AGENTS.md # Master workspace behavioral instructions
Authoring Custom Skills (SKILL.md)
A Skill in Antigravity IDE is a modular, on-demand operational playbook.
In Module 2, we authored custom Gemini Gems with monolithic system instructions. While effective for isolated web chat, loading every possible operational runbook into an agent’s active system prompt causes severe token bloat. If you work in a SecOps repository with 30 distinct incident response workflows (ransomware triage, phishing analysis, firewall updates, AWS IAM audit), loading all 30 playbooks into every conversation burns thousands of tokens per request and dilutes model attention.
Skills solve this by operating as on-demand procedural microservices:
---
name: soc-cve-triage
description: Standardize and prioritize incoming CVE vulnerability alerts, map CVSS scores to organizational impact, query CISA Known Exploited Vulnerabilities (KEV), and generate executive patch advisories.
---
# SOC CVE Triage Playbook
Use this skill when the Operator provides a CVE identifier, vendor security advisory, or vulnerability bulletin.
## Execution Workflow
1. **Identifier Extraction & Validation**:
* Extract CVE identifiers matching the [MITRE CVE syntax](https://www.cve.org/Resources/Media/Archives/OldWebsite/cve/identifiers/syntaxchange.html) format `CVE-YYYY-NNNN+`.
* Run local validator script `.agents/skills/soc-cve-triage/scripts/cve_validator.py` to confirm syntax.
2. **Severity Assessment**:
* Parse CVSS v3.1 base metrics and calculate severity per the [FIRST CVSS v3.1 Specification](https://www.first.org/cvss/v3.1/specification-document).
* Cross-reference against [CISA Known Exploited Vulnerabilities (KEV)](https://www.cisa.gov/known-exploited-vulnerabilities-catalog) criteria.
3. **Standardized Executive Advisory Output**:
* Render findings using the mandatory triage schema:
* Executive Summary (max 2 sentences).
* Threat Classification Table.
* Remediation Actions & Patch Timeline.
How Skill Discovery Actually Works
Notice the YAML frontmatter at the top of the file:
- When Antigravity IDE initializes a workspace, it scans
.agents/skills/*/SKILL.mdand indexes only thenameanddescriptionfields. - The full markdown body of the skill is not loaded into the active context window initially.
- When you prompt the agent: “Triage this new advisory for CVE-2026-44910”, the IDE compares your prompt against the indexed descriptions.
- Detecting a semantic match with
soc-cve-triage, the IDE dynamically loads the fullSKILL.mdplaybook into the context window for that specific turn. - Once the task concludes, the skill unloads, keeping your baseline context window clean, agile, and token-efficient.
Authoring Workspace Behavioral Rules (AGENTS.md / GEMINI.md)
While skills are loaded on-demand, Behavioral Rules are persistent guardrails that remain active across every turn in a workspace.
Placing an AGENTS.md (or GEMINI.md) file in your repository root sets the operational baseline for any agent interacting with that codebase:
# Workspace Behavioral Rules & Guardrails
## 1. Operating Stance & Architecture
* This repository contains security automation tooling. Prioritize reliability, deterministic parsing, and strict input validation over clever brevity.
* Always use Python 3.11+ type annotations (`typing`, `pydantic`).
## 2. Terminal Execution Restrictions
* NEVER run destructive terminal commands without explicit user sign-off (e.g., `rm -rf`, `git reset --hard`, `DROP TABLE`).
* Always run automated tests using `pytest -v tests/` before reporting completion.
## 3. Tool Selection & Code Modification
* When editing existing files, use atomic replacement tools (`replace_file_content`) with targeted line numbers. Avoid full-file overwrites unless explicitly directed.
* Format all command outputs, diffs, and verification steps in clean Markdown.
These rules enforce institutional discipline: even if a Junior Technician prompts the agent to “hurry up and push this change”, the agent’s persistent AGENTS.md instructions prevent it from skipping test suites or executing unauthorized destructive commands.
Standard Cockpit Controls: The Rules File Landscape
When you rent an automobile anywhere in North America, you climb into a left-hand drive vehicle. The steering wheel is on the left, the accelerator pedal is on the right, and the brake pedal sits in the middle. The manufacturer badge on the front grille changes (Ford, Toyota, Chevrolet), but the core operational controls and rules of the road remain universal.
The modern agentic coding ecosystem has converged on this exact same design principle for workspace guardrails:
| Platform | Configuration File | Placement | Operational Enforcement |
|---|---|---|---|
| Antigravity (IDE & CLI) | AGENTS.md (or GEMINI.md) |
Project root or .agents/rules/ |
Persistent coding standards, non-destructive shell rules, mandatory test execution. |
| Anthropic Claude Code | CLAUDE.md |
Project root | Project architecture, linting commands, formatting conventions, git workflow rules. |
| Cursor | .cursorrules (or .cursor/rules/) |
Project root | Framework idioms, library constraints, typing policies, naming conventions. |
| GitHub Copilot / OpenAI (Codex Lineage) | .github/copilot-instructions.md |
.github/ in repo root |
Repository coding standards, test runner preferences, architectural guidelines. |
| Windsurf (Codeium) | .windsurfrules |
Project root | Workspace context, language standards, testing requirements. |
| Aider (Open-Source CLI Agent) | CONVENTIONS.md |
Project root | Coding style guidelines, test runner flags, commit message specifications. |
Every major agentic platform looks for this plain Markdown rulebook in the root of the repository before turning the key. When you commit an AGENTS.md file to your team repository, you are establishing a standardized operational cockpit that keeps any agent, regardless of its vendor, bound to your organization’s engineering discipline.
Model Context Protocol (MCP): The Universal OBD-II Port
In the early days of autonomous agents, every AI framework implemented its own proprietary method for function calling. If you wanted an agent to query a PostgreSQL database, check a Splunk index, or open a GitHub issue, you had to write custom Python wrapper functions tailored specifically to that framework’s JSON schema.
The Model Context Protocol (MCP) is an open, vendor-neutral standard introduced by Anthropic and governed by the MCP Specification that standardizes how AI applications connect to external tools and data sources via JSON-RPC 2.0.
+------------------------------------------------------------------------+
| MODEL CONTEXT PROTOCOL (MCP) ARCHITECTURE |
| |
| HOST APPLICATION (Antigravity IDE / Claude Desktop): |
| * Acts as the MCP Client. Discovers tools, prompts, and resources |
| exposed by registered MCP servers. |
| |
| TRANSPORT LAYER (Standardized Communication): |
| * stdio: Local subprocess communication via standard input/output. |
| Enforces newline-delimited JSON-RPC messages; all diagnostic logs |
| and error traces MUST route to stderr to avoid stream corruption. |
| * SSE (Server-Sent Events) & Streamable HTTP: Remote network calls. |
| |
| MCP CORE PRIMITIVES: |
| * Tools: Model-controlled execution endpoints (tools/list, call). |
| * Resources: Application-controlled data endpoints (read-only logs). |
| * Prompts: User-controlled operational templates (workflow guides). |
| |
| MCP SERVERS (Deterministic Plug-In Sidecars): |
| * Filesystem Server: Granular directory access with sandbox limits. |
| * Git Server: Read/write commits, branches, and diffs. |
| * Database Server: Read-only SQL queries against SQLite/PostgreSQL. |
| * SecOps Server: Query VirusTotal, Shodan, or SIEM APIs via token. |
+------------------------------------------------------------------------+
[!NOTE] MCP Transports & Operational Nuances
- Standard Input/Output (
stdio) Transport: The host process launches the MCP server as a local child process. All communication occurs overstdinandstdoutusing newline-delimited JSON-RPC framing. Server developers must never print arbitrary debug strings or stack traces tostdout: doing so corrupts the JSON-RPC framing parser and causes the host client to sever the connection. All server diagnostics, metrics, and debug logs must be routed exclusively tostderr.- Server Configuration Flags (
--slim): In some MCP servers (such aschrome-devtools-mcp), configuration flags like--slimcan be passed in server startup arguments to streamline telemetry, stripping heavy DOM trees or screenshot payloads to preserve context tokens. Note that--slimis an MCP server configuration flag, not an Antigravity IDE or CLI flag.
Deterministic Tools vs. Probabilistic Hallucination
In Module 1, we established that Large Language Models are probabilistic next-token prediction engines, as Stephen Wolfram breaks down in his explanation of what ChatGPT is actually doing. They do not have an internal ALU (Arithmetic Logic Unit) or a real-time system clock, which is why external tool integration is fundamental to reliable systems, demonstrated in Meta’s foundational Toolformer research:
- If you ask an LLM to calculate the SHA256 hash of a 5MB executable in its head, it will hallucinate a random 64-character hexadecimal string with absolute confidence.
- If you ask an LLM to calculate the exact number of days between two dates across leap years, it will frequently make off-by-one errors.
- If you ask an LLM to evaluate a complex regular expression against 10,000 log lines, it will miss edge-case matches.
This is why deterministic tooling is non-negotiable in production engineering. An agent should never guess at tasks that a 3-line Python script or a standard CLI utility can solve deterministically.
Through MCP, the agent delegates computational tasks to proven deterministic tools:
- When the agent needs a hash, it invokes an MCP tool that calls Python’s
hashlib.sha256(). - When the agent needs open network sockets, it invokes an MCP tool running
Get-NetTCPConnectionorss -tulnp. - When the agent needs to query a threat feed, it invokes an MCP tool that issues an authenticated HTTPS request to an authoritative REST API.
The LLM provides high-level reasoning, intent classification, and multi-step synthesis; the deterministic MCP tools provide 100% mathematical accuracy.
Headless Browser Subagents
Beyond terminal commands and local files, modern agentic IDEs feature Headless Browser Subagents powered by browser automation frameworks like Playwright or Puppeteer.
When an agent needs to verify a web-based service, test an internal dashboard, or inspect visual layout changes, it can spawn a headless browser subagent:
- DOM Inspection & Interaction: The subagent navigates to local or staging URLs, clicks buttons, fills out authentication forms, and evaluates console error logs.
- Visual Regression Verification: The browser captures full-page screenshot artifacts, allowing the Developer to visually inspect UI components, layout shifts, or alert badge renders without leaving the IDE.
- SecOps Web Portal Triage: When triaging an incident involving an external phishing URL or public paste site, the agent can dispatch a quarantined, headless browser subagent to fetch the rendered DOM and take screenshots without risking drive-by malware execution on the Analyst’s primary workstation.
[!TIP] Field Notes from the Server Room Floor
- The Principle of Least Privilege for MCP Tools: Just as you would never give an entry-level Technician Domain Administrator credentials, never configure an MCP server with broader permissions than necessary, adhering to Jerome Saltzer and Michael Schroeder’s foundational paper on The Protection of Information in Computer Systems. If your agent only needs to query log entries from an operational database, configure the database connection with read-only
SELECTpermissions. Never grant an agentic sidecar rawDROP,ALTER, orDELETErights unless specifically required in a sandboxed test environment.- Keep Skills Modular & Decoupled: Avoid the temptation to build “Swiss Army Knife” skills that try to handle incident triage, code formatting, git commits, and documentation updates all in one file. Build small, single-purpose skills (
threat-intel-triage,pydantic-refactor,cisa-kev-lookup). Small skills load faster, consume fewer tokens, and reduce the chance of conflicting instructions.
Hands-On Lab 3B: Authoring a Custom SecOps Triage Skill & Subagent Verification
In this hands-on lab, you will author a production-grade custom skill in Antigravity IDE to automate the triage and formatting of incoming vendor vulnerability bulletins.
You will configure persistent workspace guardrails in AGENTS.md, construct a modular skill in .agents/skills/soc-cve-triage/SKILL.md with structured YAML frontmatter, wire a deterministic Python validator script (.agents/skills/soc-cve-triage/scripts/cve_validator.py), and test dynamic skill discovery against a live vulnerability advisory.
For the complete step-by-step walkthrough, sample advisories, helper scripts, and grading rubric, refer to the standalone guide:
👉 Lab 3B Reference Guide: Authoring a Custom SecOps Triage Skill
Lab 3B Objectives & Requirements
- Configure Master Workspace Rules (
AGENTS.md): Enforce repository-level operational guardrails, non-destructive terminal policies, and defanged indicators of compromise. - Author a Modular Custom Skill (
SKILL.md): Build a modular workspace skill with structured YAML frontmatter for on-demand discovery and context preservation. - Integrate Deterministic Helper Utilities: Author a local Python utility script (
cve_validator.py) to handle deterministic regex parsing and CVSS scoring rather than relying on probabilistic LLM attention. - Verify Dynamic Skill Discovery & Execution: Trigger the custom skill using an unformatted vulnerability advisory and verify that the IDE automatically discovers, indexes, and loads the skill playbook on demand.
Lab 3B Deliverables
Submit the following items to verify successful completion:
- 1. Custom Skill Spec (
SKILL.md): Valid YAML frontmatter (name,description), variable-length sequence regex, and full severity matrix including None (0.0). - 2. Deterministic Helper Script (
cve_validator.py): Python validator script returning structured JSON output with bounds checking. - 3. Master Rules (
AGENTS.md): Clean workspace rules enforcing non-destructive terminal operations and defanged IOCs. - 4. Executive Triage Deliverable: Rendered markdown report adhering strictly to the schema (Executive Summary, Matrix, Action Items).
- 5. Execution Verification Proof: Screenshot or transcript excerpt showing the agent calling the helper script and discovering the skill on demand.
Module Discussion Questions
- Context Management & Attention Dilution: How does Antigravity IDE’s subagent architecture protect the primary agent’s context window from degradation during long-running refactoring or build operations?
- Safety Gates in Enterprise Environments: Why is Planning Mode considered a mandatory architectural safety gate before granting an autonomous agent terminal execution permissions in corporate production networks?
- Modular Skills vs. Monolithic System Prompts: How do custom skills (
SKILL.md) embody a microservices design pattern compared to monolithic system instructions, and what impact does this have on token consumption and inference cost? - Deterministic Tooling vs. Probabilistic Reasoning: Why should an autonomous AI agent never be permitted to compute cryptographic hashes, evaluate complex regular expressions, or perform calendar date math using internal model attention weights?
- Session Transcripts & Observability: How do structured session transcripts (
transcript.jsonl) help Developers and system Tinkerers trace unexpected agent actions, debug tool executions, and verify how local state evolved?