Logo Antigravity Cli

Antigravity Cli

Cộng đồng
jacob-bd
antigravity-cli

Expert guide for Google's Antigravity CLI (agy), the official successor to Gemini CLI. Use when the user mentions 'agy', 'antigravity', 'antigravity cli', 'gemini cli replacement', 'gemini cli migration', or any task involving the agy command-line tool including running prompts, managing plugins, resuming sessions, or automating agy in scripts and CI/CD pipelines.

Tổng quan

Nhà phát hànhjacob-bd
Kho mãantigravity-cli-skill
Tên kỹ năngantigravity-cli
Sao
27
Bản fork
3
Tệp đi kèm
7
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 7 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được jacob-bd công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Antigravity Cli trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/jacob-bd/antigravity-cli-skill/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jacob-bd/antigravity-cli-skill.git \
  .claude/skills/antigravity-cli
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Antigravity Cli trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Antigravity Cli ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Antigravity Cli không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Antigravity CLI (agy) Skill

Targets agy v1.4.12.

Use this skill to guide AI coding agents, automate CI/CD pipelines, orchestrate multi-agent swarms, configure Model Context Protocol (MCP) servers, manage custom Markdown agents, and control workspace environments with the agy CLI.

Context: Gemini CLI Successor

The agy CLI is Google's official replacement for Gemini CLI. It is a compiled Go binary (instant startup, zero npm dependencies, embedded ripgrep), sharing the agent harness and runtime with the Antigravity IDE desktop application. It supports up to 512 tool calls per turn on Gemini models for deep multi-step agentic execution. Executable is typically at ~/.local/bin/agy (override with ANTIGRAVITY_CLI_ALIAS).

Complete Command-Line Flag Reference

Primary Command: agy [flags] [prompt]

FlagShorthandDescriptionAdded / Updated
--print-p, --promptRuns a single prompt non-interactively and prints the response.v1.0.0+
--input-format <fmt>Input format for print mode: text (default) or stream-json. stream-json reads NDJSON messages line-by-line from stdin for continuous multi-turn sessions. Requires --output-format stream-json.v1.1.15+
--output-format <fmt>Output format for print mode: text (default), json, or stream-json (strongly-typed NDJSON event stream).v1.1.8+
--json-schema <schema>Enforces a JSON schema on print mode output. Accepts an inline JSON schema string or a path to a schema file. Must have "type": "object" at the root; bare types fail at startup.v1.1.8+, v1.2.14+
--effort <level>Reasoning effort for the session: low, medium, high, xhigh, max.v1.1.5+, v1.2.11+
--disable-slash-commandsDisables automatic expansion of leading slash commands and skills in headless print mode (-p).v1.1.9+
--prompt-interactive-iRuns an initial prompt interactively in the TUI and continues the session.v1.0.0+
--continue-cContinues the most recent conversation in the current workspace (with parent/child directory fallback).v1.0.0+, v1.2.1+
--conversation <id>Resumes a specific conversation by its unique ID.v1.0.0+
--dangerously-skip-permissionsCRITICAL FOR AUTOMATION. Auto-approves all tool permission requests without interactive prompts. Since v1.3.2 it no longer auto-approves implementation plans in /plan mode; use Artifact Review in /config for that.v1.0.0+, v1.3.2+
--sandboxRuns terminal operations in a secure restricted sandbox.v1.0.1+
--agent <agent>Specifies a custom agent (Markdown or built-in) for the current CLI session. An unknown name makes headless -p runs exit 1 and list available agents; interactive sessions show an Agent Not Found warning and fall back to the default agent.v1.1.1+, v1.2.11+, v1.3.4+
--model <model>Model slug or identifier for the current CLI session. A base model name works without --effort (the CLI picks the model's default thinking level).v1.0.5+, v1.1.22+, v1.3.4+
--mode <mode>Sets agent execution mode: default (request review), accept-edits, auto (approves edits and safe commands, still prompts before irreversible actions), or plan.v1.1.0+, v1.3.5+
--print-timeout <dur>Timeout for print mode. Default is 0s (unlimited) — runs until the turn completes. When set, a mid-turn expiration returns partial output and exits 0 with a stderr warning.v1.1.28+, v1.2.6+
--add-dir <path>Adds a directory to the workspace scope (repeatable).v1.0.0+
--project <id|name>Explicitly sets the project ID or project name for the session.v1.0.12+, v1.1.18+
--new-projectCreates a new isolated project context for the session.v1.0.12+
--remote-controlInitiates a session-scoped remote connection on startup for remote following/control.v1.2.6+
--log-file <path>Overrides the CLI log file path.v1.0.0+

Complete Subcommands Reference

1. agy mcp (Model Context Protocol Management)

Added in v1.1.16+. Manage user-level ~/.gemini/config/mcp_config.json directly from the CLI without manual JSON editing:

bash
# List all configured MCP servers and their status
agy mcp list

# Add or update a stdio-based MCP server
agy mcp add fs npx -y @modelcontextprotocol/server-filesystem /path/to/work

# Add an stdio server with environment variables (repeatable -e)
agy mcp add --env GITHUB_TOKEN=ghp_xxx gh -- docker run -i ghcr.io/github/mcp

# Add an HTTP/SSE server with custom headers (repeatable -H)
agy mcp add --header "Authorization: Bearer sso_token" remote-api https://mcp.internal.net/sse

# Toggle server enablement
agy mcp disable remote-api
agy mcp enable remote-api

# Remove a server configuration
agy mcp remove fs

Notes:

  • URLs starting with http:// or https:// automatically infer --type http.
  • Use -- before the command if any argument begins with a dash -.
  • Plugin MCP servers are automatically namespaced as <plugin>_<server> to prevent name collisions (v1.2.2+).
  • MCP servers can mark a tool as always loaded by setting _meta: {"antigravity/alwaysLoad": true} on it in their tools/list response, so the agent gets it directly instead of discovering it on demand (v1.3.3+).
  • MCP tools/call requests include _meta["antigravity.google/root_conversation_id"] to correlate subagent calls back to the parent conversation (v1.4.4+).
  • On-demand MCP tool results up to 10 KB return directly inline without temporary file spills (v1.4.7+).
  • Plugin MCP servers can use variables in request headers (e.g. "Authorization": "Bearer ${TOKEN}"); they are resolved to your configured values (v1.4.0+).
  • If an MCP server process exits unexpectedly, /mcp marks it Error instead of Ready (v1.4.1+).

2. agy remote-control (Remote Daemon Management)

Added in v1.2.0+ and v1.2.6+. Manages the background Remote Control service registered with your operating system's service manager (systemd, launchd, or background process):

bash
# Register and start the background daemon
agy remote-control start

# Start with a custom machine name and session scope
agy remote-control start --name "devbox-chicago" --session

# Inspect running daemon status, active tunnel, and PID
agy remote-control status

# Stop and unregister the background service
agy remote-control stop

Inside interactive TUI:

  • Run /remote-control to open a session-scoped tunnel.
  • Run /remote-control off to tear down the active tunnel.

3. agy mic-serve (Audio Dictation Forwarding)

Forwards a local client microphone to an agy session running on a remote host (e.g. over SSH) for speech dictation: agy mic-serve --addr 127.0.0.1:4713 (v1.1.21+).

4. agy agent / agy agents

List and inspect available custom and built-in agents.

bash
# Human-readable list
agy agent

# Machine-readable list (agy agent rejects --output-format)
agy -p "/agents" --output-format json

5. agy models

List available models for the current sign-in credential or API key.

bash
# Human-readable list
agy models

# Plain list (agy models rejects --output-format)
agy models

6. agy plugin / agy plugins

Manage agent plugins (stored in ~/.gemini/config/plugins/):

bash
# List installed plugins (marketplace and imported) with version and enabled state
agy plugin list
agy plugin list --json

# Install from the official marketplace, another marketplace, or GitHub repo subpaths with branch resolution
agy plugin install <plugin-name>@antigravity-plugins-official
agy plugin install security-auditor@marketplace
agy plugin install github.com/owner/repo/plugins/analyzer@main

# Migrate legacy Gemini CLI extensions or Claude extensions
agy plugin import gemini
agy plugin import claude

# Enable or disable plugins (enablement state persists in config.json)
agy plugin enable <name>
agy plugin disable <name>

# Validate a plugin directory or its plugin.json
agy plugin validate ./my-plugin

# CI-friendly: fail on warnings and emit a machine-readable report
agy plugin validate ./my-plugin --strict --json

Notes:

  • agy plugin list --json (v1.3.4+): lists every installed plugin with version and enabled state.
  • agy plugin validate (v1.4.0+–v1.4.9+): validates plugins with the same rules the loader uses, checking plugin.json (syntax, fields, kebab-case name, author/homepage), skills, subagents, rules, hooks.json, sidecars, and context providers. Use --strict --json in CI.
  • agy plugin install (v1.4.8+): prints loaded skills, agents, rules, MCP servers, and hooks upon installation.
  • agy plugin import claude (v1.4.11+): imports Claude Code marketplace plugins, remote HTTP MCP servers, and .mcp.json.
  • Plugin auth.json supports "optional": true for API key providers to allow unauthenticated free-tier usage (v1.4.12+).
  • Inside the TUI, /plugin (v1.3.2+) opens the interactive manager.

7. agy install

Configures environment PATH and shell aliases: agy install [--dir <path>] [--skip-path] [--skip-aliases].

8. agy update & agy changelog

Update binary (agy update) or view release notes (agy changelog or agy -p "/changelog").

Agentic Automation & Headless Scripting (-p)

1. Headless Slash-Command & Skill Expansion

As of v1.1.9+, headless print mode (-p) automatically expands slash commands and installed skills rather than treating them as literal text:

bash
# Headless run that triggers the code-review skill
agy -p "/jbd-code-review-skill review the uncommitted diff" --dangerously-skip-permissions

To opt out and send leading slashes as literal text, pass --disable-slash-commands.

2. Zero-Turn Read-Only Command Queries

As of v1.1.11+ and v1.1.12+, running read-only slash commands in print mode emits machine-readable data without starting an agent turn, without consuming model quota, and without writing database records:

bash
# Check remaining quota in JSON format
agy -p "/quota" --output-format json

# Inspect token usage and costs
agy -p "/usage" --output-format json

# Check G1 credits balance
agy -p "/credits" --output-format json

# Export active permissions or installed skills
agy -p "/permissions" --output-format json
agy -p "/skills" --output-format json

Interactive-only commands (such as /clear) fail fast with a descriptive error rather than faking execution.

3. Bidirectional Continuous Streaming (--input-format stream-json)

As of v1.1.15+, scripts and test harnesses can maintain a persistent, multi-turn conversation over stdin/stdout using line-delimited NDJSON:

bash
# Launch persistent streaming runner
agy -p --input-format stream-json --output-format stream-json --dangerously-skip-permissions

Input protocol (one JSON object per line on stdin):

json
{"prompt": "Analyze main.go for performance bottlenecks"}
{"prompt": "Generate a patch fixing the memory allocation in WorkerPool"}

Output protocol (one envelope per line: {"event": "<name>", "<name>": {payload}}):

  • init: session metadata (cwd, permission mode, tools).
  • step_update: state (ACTIVE/DONE), step_type, incremental text_delta, tool_info (tool name, args, output), and subagent_info (conversation_id, log_uri).
  • result: final answer, status, and token accounting (input_tokens, output_tokens, thinking_tokens, cache_read_tokens).

4. Enforcing Structured Output Schema (--json-schema)

Use --json-schema to guarantee that the final response conforms to a JSON schema:

bash
agy -p "Extract all exported functions in auth.go" \
  --output-format stream-json \
  --json-schema '{"type":"object","properties":{"functions":{"type":"array","items":{"type":"string"}}},"required":["functions"]}' \
  --dangerously-skip-permissions

Validation rule (v1.2.14+): The root schema must have "type": "object". Plain text or bare types (string) immediately terminate execution with exit code 1.

5. Exit Codes & Structured Error Reporting

The agy CLI uses distinct exit codes to simplify automation error handling:

  • 0: Success, or graceful partial completion when --print-timeout expires.
  • 1: Startup configuration errors, invalid flags, malformed --json-schema, unknown --agent name in -p mode (v1.3.4+), or prompt blocked by hook (v1.4.11+).
  • 2: Print-mode usage errors, such as combining --print with --prompt-interactive (v1.3.4+).
  • 3: Fatal agent or model API error (v1.2.6+, v1.2.10+). When exit code 3 is returned, the CLI outputs a structured JSON error line on stderr:
    text
    AGY_ERROR: {"canonical_status": "RESOURCE_EXHAUSTED", "error_code": 429, "retryable": false, "error_id": "err_quota_exceeded"}

Completion Detection (v1.4.11+): Results in --output-format json and stream-json include finished_reason (print_timeout, interrupted, error) when a turn terminates early. The field is omitted entirely on clean, complete runs.

6. Non-Interactive Autonomous Decision Making

In headless -p runs:

  • Implementation plan reviews (--mode plan) settle without blocking (v1.1.28+). For unattended interactive plan approval, set Artifact Review in /config (--dangerously-skip-permissions no longer implies it since v1.3.2).
  • User confirmation questions (ask_question) auto-settle choices autonomously rather than hanging (v1.1.12+).
  • Subagent permission denials are handled strictly without attempting unauthorized workarounds (v1.2.15+).
  • Permission grants apply across the main agent and all subagents (v1.4.6+).
  • Questions asked by subagents and workflow agents are skipped in -p runs so the subagent can continue (v1.3.6+).
  • Context compaction in subagents preserves the parent agent's 10 most recent messages (v1.4.10+).

Delegating Work to agy (Host CLI Integration)

Coding assistants (Claude Code, OpenAI Codex, OpenCode, etc.) can delegate plan reviews, code reviews, and coding tasks to agy using headless print mode (-p).

Key mechanics:

  • Always pass --dangerously-skip-permissions to avoid hanging on interactive prompts.
  • Always scope the target directory with --add-dir . (or target path).
  • Use --mode plan for read-only plan/architecture reviews.
  • Omit --mode plan for code-writing tasks (agy will edit workspace files directly).
  • Capture structured outputs using --output-format json (result in .response).
  • Iterate on the same task using --conversation <id> with delta instructions.
  • A fired --print-timeout still exits 0 with status: SUCCESS and partial output: inspect finished_reason in JSON (v1.4.11+) or grep stderr for print timeout, then request final synthesis on the same --conversation <id>.

Read resources/delegation_playbook.md for complete delegation recipes, background execution patterns, error handling, and MCP/skill integration.

Custom Agents & Customization System

Custom agents are Markdown files with YAML frontmatter in .agents/agents/<name>.md (project) or ~/.gemini/config/agents/<name>.md (global), launched with agy --agent <name> or delegated to as subagents. Rules (GEMINI.md, AGENTS.md, .agents/rules/*.md) get a dedicated 20,000-token budget so they never evict skills, subagents, or MCP tools. Manifests (skills.json, rules.json, agents.json, plugins.json) are discovered across every .agents/ folder up to the Git root. Plugins can ship skills, rules, MCP servers, hooks, and subagents via a root agents.json. Hooks (hooks.json) support lastUserInput inspection (v1.4.7+) and terminationBehavior: "terminate" to gate turns before model calls (v1.4.11+).

Read resources/agents_and_customization.md for the full agent schema, frontmatter fields, subagent messaging (@<name>), manifest scanning rules, plugin authoring, and skill metadata/hot reloading.

Interactive Interface (TUI)

Key interactive features: modal Vim editing, /model <name> [prompt] one-shot switching, /config with ←/→ value cycling, alt+m opposite-send, /compact [message] on-demand compaction, /diff viewer (highlighting, folding, Commit Tree), artifact viewer with Kitty graphics, /copy, /resume grouping, /skills reload, and OSC 7501 terminal status (AGY_CLI_OSC7501).

Read resources/tui_reference.md for keybindings, display modes, verbosity levels, and viewer details.

Security, Sandbox & Permissions

Sandbox Rules (--sandbox)

  • Read-Only .git Access (v1.1.10+): The terminal sandbox grants read-only access to .git metadata, protecting Git history from unauthorized rewriting.
  • System Temporary Directories (v1.1.9+): Automatic read and write access is granted to system temp directories (/tmp, $TMPDIR) without permission prompts.
  • Artifacts and Scratch Directories (v1.2.10+): Sandboxed commands have full read/write access to conversation artifact and scratch directories.
  • URL Reading (v1.1.28+): URL fetch tools default to prompting for confirmation before fetching external web pages.
  • macOS Application Support (v1.3.3+): ~/Library/Application Support is blocked by default (apps keep credentials there); allow it explicitly in sandbox rules if needed.
  • Sensitive Credentials (v1.4.6+): Sandboxed commands cannot read or modify ~/.docker, ~/.kube, or ~/_netrc without explicit approval.
  • Google Domain Isolation (v1.4.9+): Approving general Google sites does not permit access to sensitive apps (mail.google.com, drive.google.com, console.cloud.google.com).
  • Non-Interactive VCS Editors (v1.3.6+): Agent commands set GIT_EDITOR, HGEDITOR, JJ_EDITOR to false and PAGER, GIT_PAGER, JJ_PAGER to cat, so git commit without -m fails fast instead of hanging.

Permission Allowlisting Rules

  • Subcommand Pinning: Permission suggestions for script runners (npm run <script>, go vet, repo status, jj config) pin the specific subcommand so approving one task does not open access to arbitrary scripts (v1.1.21+, v1.2.9+, v1.2.15+).
  • Compound Shell Commands (v1.1.8+): Exact chained commands (e.g. git fetch && git rebase) can be saved as allow-always rules. Multi-line script rules apply cleanly (v1.4.9+).
  • Rule Syntax: Rules match exact command prefixes by default. Opt into regex pattern matching by prefixing the rule with regex:.

Auto Mode (--mode auto, v1.3.5+)

Approves file edits and safe commands without asking; still prompts before irreversible actions. Commands that would leave the sandbox are reviewed by a separate agent first (v1.3.6+: allows the workspace's own format/lint/fix commands, blocks uploads of sensitive data; v1.4.7+–v1.4.9+: prompts less often for routine tasks).

bash
# Launch a session in Auto mode
agy --mode auto -i "Refactor the auth package and fix any lint errors"

Availability: macOS, Linux, and Windows 11 version 24H2+ (v1.4.4+).

Complete Environment Variables Reference

VariableDescriptionIntroduced
GEMINI_API_KEYDirect API key for Gemini API access without interactive sign-in (modelProvider: "gemini").v1.1.13+
GOOGLE_GEMINI_BASE_URLCustom endpoint URL when authenticating via GEMINI_API_KEY.v1.1.13+
USE_ADCSet to 1 to authenticate via Application Default Credentials.v1.0.11+
AGY_ADC_AUTHADC sign-in for Business accounts (Claude Opus/Sonnet 5.5 available; loads skills, rules, plugins, hooks correctly in v1.4.7+).v1.3.3+, v1.4.7+
ANTIGRAVITY_CLI_ALIASOverrides the detected binary executable name.v1.0.0+
CLI_GRAPHICSSet to kitty to force Kitty graphics protocol inside tmux or multiplexers.v1.2.10+
AGY_CLI_OSC7501on / off to force or disable OSC 7501 terminal status reporting (AGY_CLI_OSC7501_MESSAGES=brief for compact).v1.4.0+
AGY_CLI_HIDE_ACCOUNT_INFOSet to true to hide user email/plan in terminal header. Also: AGY_CLI_HIDE_LOGO, AGY_CLI_DISABLE_LATEX.v1.0.2+

Gemini CLI Flag Translation

Gemini CLIagy CLI EquivalentNotes
gemini -p "prompt"agy -p "prompt"Auto-expands leading slash commands and skills
gemini --yoloagy --dangerously-skip-permissionsComplete tool auto-approval
gemini --resume <id> / -cagy --conversation <id> / agy -cResumes session / continues recent
gemini -o stream-jsonagy -p --output-format stream-jsonNDJSON event stream with usage stats
gemini -m <model>agy --model <model>Explicit model selection
gemini --approval-mode planagy --mode planPlan mode; check finished_reason in output
gemini --approval-mode auto_editagy --mode accept-edits / --mode autoauto also approves safe commands
gemini extensions list|installagy plugin list|installManaged via plugin subsystem (agy plugin import gemini)

See resources/cheat_sheet.md for full migration comparison.

Troubleshooting & Failure Recovery

  • Headless Hangs (-p): Verify --dangerously-skip-permissions is passed. Without it, commands requiring authorization block silently on stdin.
  • Exit Code 3: Inspect stderr for AGY_ERROR: {...} JSON. Common causes include quota exhaustion (RESOURCE_EXHAUSTED), model rate limits (429), or invalid model slugs.
  • Exit Code 1 on --json-schema: Verify the root of the schema contains "type": "object". Non-object schemas are rejected immediately.
  • Persistent Workspace State: Remember that agy maintains internal workspace mappings. cd-ing into a directory does not automatically rebind the active project. Always pass --add-dir . or --project <id|name> when scoping is required.
  • Stale OAuth Credentials: If enterprise or Google Cloud tokens expire or encounter clock skew, run /logout and /login to clear cached tokens.
  • Subagent Deadlocks: Subagents respect permission boundaries. If a subagent lacks permissions in autonomous mode, it halts rather than attempting workarounds. Run with proper allowlisting in settings.json or pass --dangerously-skip-permissions.
  • Hung Model Requests: A model connection with no data for 5 minutes is canceled and retried (v1.3.6+), with at most 30 seconds between retries (v1.3.4+). Socket disconnects (laptop sleep, Wi-Fi change) are retried too (v1.4.1+).
  • Plan Not Auto-Approved: /plan waiting for review despite --dangerously-skip-permissions is intended since v1.3.2; set Artifact Review in /config.
  • Incomplete Headless Runs: In v1.4.11+, check finished_reason in --output-format json results. A run returning exit code 0 with finished_reason: "print_timeout" is partial. Resume on the same session via --conversation <id>.
  • Eligibility check failed at Launch: Fixed in v1.4.0; run agy update.
  • Plugin Doesn't Load: Run agy plugin validate <path> --strict for file and line level errors (v1.4.0+).
  • Plugin MCP Collisions: If two plugins define conflicting MCP server names, the CLI automatically namespaces them as <plugin>_<server>. Reference them using their prefixed identifier.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Antigravity Cli làm được gì?

Expert guide for Google's Antigravity CLI (agy), the official successor to Gemini CLI. Use when the user mentions 'agy', 'antigravity', 'antigravity cli', 'gemini cli replacement', 'gemini cli migration', or any task involving the agy command-line tool including running prompts, managing plugins, resuming sessions, or automating agy in scripts and CI/CD pipelines.

Vì sao nên dùng Antigravity Cli trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Antigravity Cli là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Antigravity Cli trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jacob-bd/antigravity-cli-skill/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Antigravity Cli?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Antigravity Cli với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Antigravity Cli với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Antigravity Cli có miễn phí không?

Kỹ năng này được jacob-bd phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇