Skip to main content

agypywpr

agypywpr runs a one-shot Google Antigravity CLI task with temporary permission rules. It backs up ~/.gemini/antigravity-cli/settings.json, augments the permission lists, runs agy, and restores the original settings afterward.

Installation

Antigravity CLI must already be installed and authenticated as agy.

python3 -m pip install agypywpr

Run a prompt from a UTF-8 file:

agypywpr run --prompt-file prompt.txt --permissions-file permissions.json

Arguments after -- are passed to agy:

agypywpr run --prompt-file prompt.txt -- --model gemini

The default timeout is 30 minutes. Use --timeout SECONDS to override it.

Permission file

The permission file contains an additive fragment. Existing settings are not replaced.

{
  "permissions": {
    "allow": ["command(git)", "write_file(src/)"],
    "deny": ["command(sudo)"],
    "ask": ["command(*)"]
  }
}

Rules are deduplicated within each list. Antigravity evaluates conflicting rules using its documented precedence: deny, then ask, then allow.

Recovery

The wrapper uses a lock, a mode-0600 recovery journal, and atomic settings writes. If the process is forcibly killed, inspect the settings and run:

agypywpr restore

The current release targets Linux and macOS. The completion behavior for background Antigravity subagents is under compatibility testing because AGY's headless completion protocol is not documented.

Development

.venv/bin/python -m pip install --editable '.[dev]'
.venv/bin/python -m unittest discover -s tests -v

Build the wheel and source distribution from the repository root:

.venv/bin/python -m build

Publishing

Releases are published from GitHub through PyPI Trusted Publishing (OIDC). Configure a protected pypi GitHub Environment and register the repository's pending Trusted Publisher on PyPI before creating a release tag.

Metadata

Release files for agypywpr 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agypywpr 0.1.0
File Size Uploaded Provenance
agypywpr-0.1.0.tar.gz 7.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agypywpr 0.1.0
File Interpreter ABI Platform
agypywpr-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / agypywpr-0.1.0.tar.gz

Download URL agypywpr-0.1.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cadd3def7f0835b40005c54617a1f184c548afb4ca14030d1986f5b498996538
BLAKE2b-256 checksum
How to use checksums
122a520e9fd0a2155bc2ffc1d6f5eb32687a7b40d50c90a6b1891761f6cebd5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / agypywpr-0.1.0-py3-none-any.whl

Download URL agypywpr-0.1.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0ea424ce357005756a9dc9b218f0b1e6661059df1d33d3a7abcc72c530fd23c
BLAKE2b-256 checksum
How to use checksums
fde55b80ed92f3a00bc8a9cf7d49e708b52acd18c302e1827bc72ffbd082512a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Security for agypywpr 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agypywpr-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page