본문으로 건너뛰기
Skillpedia
보안48k · #6247

agy-auto

하는 일

agy-auto는 Antigravity CLI(agy)를 위한 보안 시스템입니다. 매번 수동 권한 없이도 작업을 자동으로 실행할 수 있게 하며, 실행 전에 작업이 안전한지 확인합니다.

사용하는 경우

  • ✓agy가 감독 없이 백그라운드에서 작업하기를 원할 때.
  • ✓파일 접근이나 네트워크 등 agy가 실행할 수 있는 명령을 통제해야 할 때.
  • ✓agy와 함께 안전한 페어 프로그래밍 환경을 설정하는 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/agy-auto/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/agy-auto/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“agy-auto를 설정해서 작업을 감독 없이 안전하게 실행하려면 어떻게 해야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

agy가 실행하려는 모든 명령을 확인합니다. 먼저 알려진 위험한 명령을 차단하고, 단순하고 안전한 명령은 허용합니다. 확신이 없으면 AI 모델이 판단하거나, 특별한 코드를 사용해 사용자 승인을 요청합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

agy-auto — Antigravity Auto-Permission & Security Gate

Overview

agy-auto is a PreToolUse hook and security harness for Google Antigravity CLI (agy) that supports a reviewed unattended-execution policy without relying on --dangerously-skip-permissions. It passes every pending tool call through a multi-layered policy gate: deterministic hard-deny rules, deterministic fast-allow for workspace-scoped and read-only operations, an LLM classifier fallback (Gemini Flash Lite or local llama.cpp), and single-use scoped token approvals with Zero Ambient Authority.

When to Use This Skill

  • Use when running Antigravity CLI (agy) unattended or in background agent loops and you want automated tool permissions without exposing system files or credentials.
  • Use when you need granular, auditable controls over shell commands, file modifications, and network egress during agy workflows.
  • Use when setting up a secure pair-programming environment with Antigravity that reduces tool-call exposure within a verified workspace boundary.

How It Works

Step 1: Review, Pin, and Install agy-auto

[!IMPORTANT] Because agy-auto installs as an active PreToolUse hook on the permission evaluation path, never clone a mutable branch directly into your live plugin directory. Always clone to a temporary staging folder, pin an immutable release tag or commit SHA, and inspect the codebase before making the hook executable.

Option A: Native Antigravity Plugin (Recommended)

# 1. Clone into a temporary review directory and checkout an immutable release tag
git clone https://github.com/onkarbadve/agy-auto.git /tmp/agy-auto-review
cd /tmp/agy-auto-review
git checkout <verified-full-commit-sha>

# 2. Inspect hook.sh and engine/ files before deployment
less hook.sh
python3 -m unittest -v tests/test_engine.py

# 3. Once reviewed and verified, copy to the Antigravity plugin directory and set permissions
# Host activation requires explicit user approval, an existing-config backup,
# and a reviewed non-overwriting installation into the confirmed host path.

Only if the exact CLI/hook combination has been verified to fail closed on missing, failed and tampered hooks, and the user explicitly approves this host permission change, configure toolPermission: "always-proceed" in ~/.gemini/antigravity-cli/settings.json so hooks can gate tool calls:

{
  "toolPermission": "always-proceed"
}

Option B: Global Hook via Installer

# 1. Clone to an isolated location and pin release
git clone https://github.com/onkarbadve/agy-auto.git ~/.local/share/agy-auto
cd ~/.local/share/agy-auto
git checkout <verified-full-commit-sha>

# 2. Review and run the installer
chmod +x hook.sh
./install.sh                  # registers hook in hooks.json, sets always-proceed, runs smoke tests

Step 2: Policy Evaluation Layers

agy-auto evaluates each tool invocation through sequential layers (first match wins):

  1. Hard Deny: Immediately blocks recursive deletes outside workspace, credential reads (~/.ssh, .env, cloud tokens), git history rewrites (push --force, rebase), package publishing, system file writes (/etc, shell rc), and gate tampering.
  2. Fast Allow: Immediately permits parsed read-only commands (cat, grep, git status) and workspace-confined writes without invoking an LLM.
  3. Classifier: Ambiguous or grey-area commands fall through to an LLM classifier (a configured currently available provider model (verify pricing and private-context transmission), or a local llama.cpp / Ollama endpoint) that reviews the pending call against conversation context and fail-closes on timeout.
  4. Scoped Action Approval: If a command is denied or needs human judgment, the engine issues a single-use 6-character action token bound strictly to (tool, normalized_cmd, cwd). You approve it by replying > agy-approve <token> in chat. Conversational phrases like "yes" or "proceed" are ignored to prevent ambient authority leakage.

Before activation, test allowed and denied operations in disposable fixtures, including symlink/path escapes, shell expansions, network requests, missing hook, classifier timeout and token replay. A unit-test pass is not proof all host access is intercepted. Preserve a verified disable/rollback path. No model classifier is merge or policy authority.

Examples

Example 1: Approving a Blocked Command

…

자주 묻는 질문

`--dangerously-skip-permissions`는 무엇인가요?

Antigravity CLI의 옵션으로, 보안 검사를 모두 끕니다. agy-auto는 검사를 유지하는 더 안전한 대안입니다.

agy-auto가 차단한 명령은 어떻게 승인하나요?

agy-auto가 확신하지 못하는 명령은 승인 코드(예: ‘> agy-approve a1b2c3’)를 요청합니다. 채팅에 정확히 같은 코드를 입력하면 그 특정 명령을 한 번 실행할 수 있습니다.

agy-auto를 오프라인에서 사용할 수 있나요?

예, `policy.toml` 설정 파일을 수정하면 온라인 서비스 대신 llama.cpp나 Ollama 같은 로컬 AI 모델을 사용하도록 설정할 수 있습니다.

상세 정보

작성자의 원본 설명

Configure agy-auto PreToolUse security gate to run Antigravity CLI (agy) unattended with layered policy controls instead of --dangerously-skip-permissions.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#6247
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬