feat(antigravity-cli): add supervised background task skill - #31
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a self-contained Antigravity CLI skill so supervising agents can delegate bounded work, inspect progress, and continue the same conversation without waiting in a foreground terminal. Native AGY can report
SUCCESSand exit 0 after a permission denial or print timeout; the client collects both output channels and classifies these outcomes before reporting completion.Changes
start,status,wait,reply,cancel, andclose, with UTF-8 prompt files/stdin and ASCII-safe JSON output. Each turn uses official streaming JSON and resumes its exact conversation ID in a fresh AGY process.--add-dir; inherit authentication, models, and permissions unless explicitly overridden. Document effort selection, authorized edit modes, artifact targets, result verification, and visible failures.Validation
uv run --python 3.12 -m unittest discover -s tests -v: 77 tests passed, including all 20 existing Grok tests.uv run --python 3.12 scripts/sync_agent_runtime.py --checkuv run --python 3.12 scripts/update_readme_skills.py --checkgh skill publish --dry-rungit diff --checkpassed.uv run --python 3.12 scripts/package_skill.py antigravity-cli: ZIP contents and standalone imports verified.claude-sonnet-4-6override verified file creation/readback, exact conversation recovery, blocked permissions, and cancellation. The final version wrotereadiness.txt, read it back, recalled its marker in a subsequent process, and closed cleanly.Selected JSON fields from the final live CLI test:
{"status":"completed","closed":false,"turn":1,"text":"VERIFIED\n","error":null,"denied_actions":[]} {"file_matches":true} {"status":"completed","closed":false,"turn":2,"text":"AGY_READY\n","error":null,"denied_actions":[]} {"status":"completed","closed":true,"turn":2,"text":"AGY_READY\n"}Boundaries
This is supervised delegation, not an OS sandbox. AGY does not expose programmatic headless approvals; denied tools remain explicit failures requiring an appropriate scoped permission or workflow change. Cancellation stops the task's process tree and does not undo prior actions. There is no automatic prompt retry, authentication switch, or provider fallback. Each reply pays CLI startup cost so trailing diagnostics and process exit can be checked reliably.