Skip to main content

Antigravity agent type plugin for mngr

Project description

imbue-mngr-antigravity

Plugin that registers the antigravity agent type for mngr.

Antigravity CLI is Google's terminal-based AI coding assistant, the successor to the legacy Gemini CLI. Google announced on 2026-05-19 that Gemini CLI is being replaced by Antigravity CLI, with the legacy request path turning off for paid-tier accounts on 2026-06-18. This plugin lets you run the new CLI (agy) as an mngr agent.

Usage

mngr create my-agent antigravity

Pass arguments to the agy command with --:

mngr create my-agent antigravity -- --help

Configuration

Define a custom variant in your mngr config (mngr config edit):

[agent_types.my_agy]
parent_type = "antigravity"
cli_args = "--add-dir=/extra/dir"

Then create agents with your custom type:

mngr create my-agent my_agy

auto_allow_permissions = true auto-approves every tool call without prompting, via agy's --dangerously-skip-permissions flag. (It is not a hook: agy's documented PreToolUse {"decision": "allow"} output does not actually gate the run_command confirmation dialog -- verified live against agy 1.0.3 -- so the flag is the only reliable mechanism.)

emit_common_transcript = true (default) starts a background worker that streams agy's per-conversation JSONL transcripts into events/antigravity/common_transcript/events.jsonl. mngr transcript <agent> reads from there.

Caveats

  • agy PATH shadowing: if the Antigravity 2.0 desktop app is installed, its bundled agy shim can shadow the standalone CLI in PATH. Remove the desktop app's bin/agy or override command with an absolute path to the Go binary.
  • Workspace symlink workaround: agy refuses to add any path with a dot-prefixed segment as a workspace (logs Failed to add workspace folder ... is hidden: ignore uri and falls back to the user's home dir). mngr's work_dir lives under ~/.mngr/worktrees/..., which trips this check. As a workaround, mngr_antigravity creates a per-agent symlink at /tmp/mngr_antigravity_workspaces/<agent_id> that targets the real work_dir, and launches agy with cwd set to the symlink. agy then sees the symlink path as its workspace (project: using project "/tmp/...") and the hidden-path error is suppressed. The symlink is recreated via ln -sfn on every launch; /tmp wipes are self-repairing. Symlinks aren't pruned when agents are destroyed (they're inert and small). Track the upstream agy bug report for when a flag-level fix lands; we can drop the workaround then.
  • First-launch trust dialog: each fresh work_dir would normally trigger Antigravity's "Do you trust this folder?" gate, which intercepts the first keystroke sent to the tmux pane and breaks mngr message. mngr_antigravity dismisses the dialog before launch by appending the agent's work_dir to ~/.gemini/antigravity-cli/settings.json::trustedWorkspaces. Because that file is shared user state, the write is gated:
    • mngr create --yes (mngr_ctx.is_auto_approve) or auto_dismiss_dialogs = true on the agent type: silent trust.
    • Interactive shell: mngr prompts via click.confirm before writing.
    • Non-interactive shell without either opt-in: provisioning raises UserInputError. Re-run with --yes or set auto_dismiss_dialogs = true.
  • Hooks (lifecycle marker): mngr_antigravity provisions a per-agent hooks.json and points agy at it with --add-dir (through a /tmp symlink, since agy rejects the dotted state-dir path -- same hidden-path rule as the workspace symlink). A PreInvocation/Stop pair maintains an active marker so the agent reports RUNNING while working and WAITING when idle (agy writes no such marker on its own). Verified live against agy 1.0.3 that hooks load and execute. Note: the in-TUI /hooks command writes to ~/.gemini/antigravity-cli/hooks.json, which the hook execution engine never runs -- that path is loaded only for the TUI's display/management view, while only ~/.gemini/config/hooks.json and per-workspace .agents/hooks.json are actually executed (antigravity-cli#49). mngr writes its own per-agent file under an --add-dir path and never relies on the TUI.
  • No readiness sentinel: readiness is still signalled purely by polling the rendered TUI banner. agy's hook events are execution-loop events (PreToolUse/PostToolUse/PreInvocation/PostInvocation/Stop) with no "input prompt ready" analog, so they can't replace the banner poll.
  • No permission-specific WAITING reason: agy exposes no permission-dialog hook event, and no hook fires while the agent is blocked at the dialog, so mngr can't currently flag why an agent is waiting (as mngr_claude does). With auto_allow_permissions = true there are no dialogs anyway; surfacing a permission-WAITING reason in supervised mode is left for a follow-up.

See the mngr agent types documentation for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imbue_mngr_antigravity-0.1.1.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imbue_mngr_antigravity-0.1.1-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file imbue_mngr_antigravity-0.1.1.tar.gz.

File metadata

  • Download URL: imbue_mngr_antigravity-0.1.1.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imbue_mngr_antigravity-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aaea625e0c6efb9053bf278490ed85c7a6ec7fad1e97be9725016c4e6aefa326
MD5 acff7b57745c87e3225ed3284569a848
BLAKE2b-256 57eeba2c76c8de1eace7112e07db07348940291b5c5b22b4d9afcbeeffdec88d

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbue_mngr_antigravity-0.1.1.tar.gz:

Publisher: publish.yml on imbue-ai/mngr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file imbue_mngr_antigravity-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for imbue_mngr_antigravity-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec8f94a111c6ae867db06578f7d96c63e77e61d940b7a9b2be0ca635577014b3
MD5 695b2ce16cfdef0c2a1daec2e98121f9
BLAKE2b-256 7b10e883625a61a862b017bd9a5a86e010a784b227e72b2d0b58307bfd4de4b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbue_mngr_antigravity-0.1.1-py3-none-any.whl:

Publisher: publish.yml on imbue-ai/mngr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page