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.txt --permissions-file permissions.json

Arguments after -- are passed to agy:

agypywpr run 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 1.0.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 1.0.0
File Size Uploaded Provenance
agypywpr-1.0.0.tar.gz 13.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 23.1 kB

Release files / agypywpr-1.0.0.tar.gz

Download URL agypywpr-1.0.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
21eb5e4d38299f3720a9a6dd47cbbd7a1dc172d9a3eca21b4e1fa4d11b3aed2c
BLAKE2b-256 checksum
How to use checksums
963eadb9514b99c48cdd9ab159a79cd871eee2c54d969d4f4608c8e28df388d2
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-1.0.0-py3-none-any.whl

Download URL agypywpr-1.0.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5647ea0eb27ea6f0af2807fa1b79667d6f33b4c559b038e949d7710d04a96e3b
BLAKE2b-256 checksum
How to use checksums
b9cfff9add7c7a7f1fbb2f3a372805fd79d312e03fe4acd0fcbfb25a9cab646d
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 1.0.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-1.0.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

1.0.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