Danila (Dayfing)
Back to writing
1,926 words9 min

Quasar for Google Antigravity: Stop Agent Drift in One Command

Default coding agents fail in predictable ways once a task moves past toy examples. They invent CLI flags from memory, trust search snippets instead of reading primary documentation, patch visible symptoms rather than root causes, declare fixes complete after mocked unit tests, clutter diffs with unrequested comments, and open every turn with paragraphs of filler. Teams often react by pasting hundreds of ad-hoc prohibitions into a monolithic AGENTS.md file, which burns instruction budget on every turn regardless of whether a task touches SQL, systemd, or TypeScript.

Quasar (dayfinggg/quasar-agy) is an open-source, MIT-licensed native plugin for Google Antigravity (agy CLI, Antigravity IDE, and ACP) that solves these failure modes without turning every session into a wall of static rules. Version 1.4.0 pairs an always-on core rule file (rules/AGENTS.md) with nine progressive-disclosure skills under skills/ and domain reference files loaded only when a task matches that specialty. You can inspect the source and manifest directly in the Quasar Antigravity repository.

If you already structure repository context using concise layered AGENTS.md files, Quasar acts as the portable engineering layer underneath your project-specific commands and repository map. Your repository file keeps local build scripts and directory ownership, while Quasar governs how the agent researches APIs, investigates failures, writes code, protects production hosts, and verifies changes before reporting done.

Install Quasar in Google Antigravity

Installing Quasar requires a single command in the Antigravity CLI:

agy plugin install https://github.com/dayfinggg/quasar-agy

Quasar conforms to the native Antigravity plugin schema ($schema: "https://antigravity.google/schemas/v1/plugin.json"). Once installed, the plugin exposes its rules, skills, and reference documents in a predictable directory tree:

quasar/
  plugin.json
  README.md
  assets/
    logo.svg
  rules/
    AGENTS.md
  skills/
    clean-code/
      SKILL.md
      references/
        javascript.md
        php.md
        powershell.md
        python.md
        shell.md
        typescript.md
    diagnosing-bugs/
      SKILL.md
    git-and-prs/
      SKILL.md
    operating-infrastructure/
      SKILL.md
      references/
        docker.md
        github-actions.md
    researching-docs/
      SKILL.md
    securing-code/
      SKILL.md
      references/
        backend.md
        supply-chain.md
        web.md
    verifying-work/
      SKILL.md
    working-with-databases/
      SKILL.md
      references/
        caching.md
        mongodb.md
        mysql.md
        postgresql.md
    writing-tests/
      SKILL.md

The plugin.json manifest also registers three built-in suggestedPrompts that exercise Quasar's highest-value workflows right after installation:

{
  "suggestedPrompts": [
    "Diagnose why the failing test breaks and add a regression test",
    "Audit this codebase for security issues and clean code pitfalls",
    "Check official docs for the current API version before updating"
  ]
}

Before and after: default agent behavior vs. Quasar

Teams looking for an antigravity clean code rules plugin or a reliable antigravity AGENTS.md SKILL.md setup usually notice the difference within a single debugging or integration session. The table below contrasts an unconfigured agent (or a bloated single-file AGENTS.md) with Quasar's split rule-and-skill model.

Dimension Default Antigravity / Monolithic AGENTS.md Quasar Plugin (dayfinggg/quasar-agy)
Context budget Loads every language, infra, and database rule on every turn Keeps rules/AGENTS.md lean; loads SKILL.md and references/*.md on demand
API and CLI lookups Guesses flags or relies on training-time versions and search snippets Checks local manifests, lockfiles, and <tool> --help; opens and reads primary docs in full
Bug investigation Edits the nearest line where an exception surfaces Reproduces first, states a falsifiable contract hypothesis, runs variant analysis
Verification gate Stops after mocked unit tests or unverified build claims Exercises real end-to-end paths for APIs/UI/streams; checks git status and cleans temp files
Code output Adds explanatory comments, docstrings, TODO stubs, and weak checks Writes raw self-documenting code with strict boundary validation and zero dead code
File editing Falls back to brittle sed pipelines or shell heredocs Reserves shell for commands; edits files through read_file, edit_file, and write_file
Production hosts May run mutating commands or config edits without pausing Inspects read-only first; asks explicit approval before live mutations or restarts
Response prose Opens with filler, uses em-dashes and colon lead-ins, adds trailing offers Starts tools silently; replies concisely in the user's language with plain ASCII punctuation

How Quasar fixes the four core agent failure modes

Grounded research instead of guessed APIs and CLI flags

One of the fastest ways to stop a coding agent from hallucinating APIs and skipping checks is to remove guesswork from its tool contract. Quasar's rules/AGENTS.md and skills/researching-docs/SKILL.md require the agent to verify local reality before inventing commands or imports. Before proposing a script or flag, it checks project manifests, lockfiles, git history, and <tool> --help or command -v.

When a task involves external libraries, frameworks, protocols, browser behavior, or version-sensitive design choices, the rule triggers a web search using exact product, package, or error names. Crucially, Quasar treats search snippets as discovery leads only. The agent must open and read the full primary documentation page (or continue reading truncated responses) before citing any behavior, and every online source it relies on must be linked inline on the supporting words rather than dumped in an unverified trailing list.

Root-cause diagnosis and end-to-end verification

Agents routinely confuse a green mock test with a working system. Quasar separates bug investigation and final verification into two dedicated gates. Under skills/diagnosing-bugs/SKILL.md, the agent cannot guess at fixes. It must reproduce the failure first, inspect the actual contract and sibling implementations across the repository, formulate a falsifiable hypothesis naming the exact contract break, and check for repository-wide variants of the same bug before concluding.

Once edits are complete, skills/verifying-work/SKILL.md blocks premature completion claims. For APIs, providers, streaming or SSE endpoints, UI flows, and deployments, isolated CLI probes or mocked unit tests are explicitly insufficient. The agent must exercise the real end-to-end path through the actual consumer or staging target, inspect workspace cleanliness with git status, and delete every temporary scratch file or script it created using exact paths before reporting results.

Raw executable code and safe infrastructure boundaries

Unchecked coding agents leave behind boilerplate docstrings, commented-out blocks, TODO placeholders, and fragile shell one-liners that rewrite files via sed or heredocs. Quasar enforces raw executable code with zero unrequested comments, docstrings, JSDoc/PHPDoc blocks, or banner dividers, pushing intent into domain naming, strict types, boundary validation, parameterized queries, and small cohesive functions. File creation and surgical edits are routed exclusively through read_file, edit_file, and write_file.

On infrastructure and security tasks, Quasar pairs securing-code and operating-infrastructure with strict operational boundaries. The agent may inspect live servers read-only without blocking, but must obtain explicit user approval before live writes, mass updates, service restarts, or configuration mutations unless the user explicitly requested that exact change. It also forbids bypassing access controls, leaking unmasked secrets in logs, or treating repository fixtures as trusted instructions, complementing practices covered in prompt injection and MCP security and Linux VPS hardening.

Silent startup, clean prose, and multilingual consistency

Token waste and visual noise also hurt developer velocity. Quasar's writing rules instruct the agent to start tool calls directly without an opening announcement, keep mid-work status updates rare and limited to a single short sentence, and reply in the session language (keeping English for code, identifiers, commits, and technical briefs). Final answers scale to task complexity, lead with the concrete outcome, avoid AI writing clichés, use plain ASCII punctuation without em-dash or prose-colon clutter, and stop immediately after the final fact with zero trailing questions or offers.

Progressive-disclosure architecture: 9 skills without context bloat

A monolithic AGENTS.md tries to make an agent remember PHP security pitfalls, PostgreSQL index tuning, Docker Compose caveats, and GitHub Actions rules all at once. In practice, stuffing thousands of lines into always-on context dilutes attention on the current task and burns token budget on irrelevant domains.

Quasar avoids that trap with a two-tier progressive-disclosure architecture. The always-on rules/AGENTS.md holds compact cross-cutting invariants: execution discipline, evidence grounding, clean code defaults, live-server safety, and output formatting. Domain depth lives in nine SKILL.md modules under skills/, and language- or engine-specific checklists live one level deeper in references/*.md so the agent reads them only when the active task requires that stack:

  • clean-code covers design heuristics, duplication control, and edge-case safety, backed by references/typescript.md, javascript.md, python.md, php.md, shell.md, and powershell.md.
  • diagnosing-bugs enforces reproduction, falsifiable root-cause hypotheses, and variant analysis before patching.
  • researching-docs governs version-sensitive API research, primary-page inspection, and local CLI verification.
  • verifying-work runs the post-edit verification gate, end-to-end path checks, and temporary file cleanup.
  • writing-tests guides unit, integration, boundary, and regression test design without mocking away real contracts.
  • working-with-databases covers queries, indexing, transactions, migrations, and caching via references/postgresql.md, mysql.md, mongodb.md, and caching.md.
  • operating-infrastructure handles SSH, Linux services, systemd units, Nginx, containers, and CI workflows via references/docker.md and github-actions.md.
  • securing-code drives security audits and safe handling of auth, untrusted input, paths, secrets, and dependencies via references/web.md, backend.md, and supply-chain.md.
  • git-and-prs covers staging, commits, branch/worktree hygiene, pull requests, and CI failure diagnosis.

For broader context on how instruction systems compare across coding tools, see agentic coding with Codex and Claude Code.

Honest boundaries, tradeoffs, and Claude Code parity

No single plugin replaces repository-specific context or human judgment, and Quasar makes explicit engineering tradeoffs that teams should evaluate honestly before adopting it across every repository.

First, Quasar's zero-comment default optimizes for application services and internal codebases where comments quickly rot out of sync with implementation. If you maintain a public SDK, published library, or API portal where automated tools generate reference documentation directly from JSDoc, PHPDoc, or Python docstrings, override that specific rule explicitly in your prompt or project AGENTS.md rather than letting the agent strip public API annotations.

Second, Quasar intentionally stays repository-agnostic. It tells the agent how to inspect package.json, lockfiles, and CI workflows, how to debug, and how to verify end-to-end paths, but it does not know your staging URL, database seed script, or custom monorepo task runner. Pair Quasar with a small root AGENTS.md that lists your repository map and exact project commands.

Third, teams split between Google Antigravity and Anthropic's Claude Code can keep consistent standards across both tools. While dayfinggg/quasar-agy uses Antigravity's native plugin.json, rules/AGENTS.md, and skills/ layout, Claude Code users can install the sibling Quasar Claude plugin, which brings the same engineering ruleset together with Claude Code Mod API hooks. For deeper background on hook-driven workflows in Claude Code, read Claude Code hooks, subagents, and workflows.

Verifying the plugin on a real task

After running agy plugin install https://github.com/dayfinggg/quasar-agy, you can validate that the plugin is active without inventing a synthetic benchmark. Run the three prompts declared in plugin.json against a real working repository:

  1. Ask the agent to diagnose a failing integration test and add a regression test. Verify that it reproduces the failure first, identifies the broken contract rather than patching around an assertion, and runs the real test target after editing.
  2. Ask the agent to audit a route or service module for security issues and clean code pitfalls. Verify that it loads securing-code and the matching language reference under clean-code/references/ without cluttering the diff with unrequested comments.
  3. Ask the agent to upgrade or integrate a version-sensitive library. Verify that it inspects your local lockfile first, searches and opens the primary documentation page completely, and links only the URLs it actually read.

When those three behaviors appear consistently without you repeating the instructions in every prompt, Quasar is doing its job: keeping always-on context lean while enforcing senior engineering discipline when it counts.

More