<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>안티그래비티 &#8211; WONIZZ.LOG</title>
	<atom:link href="https://blog.wonizz.com/tag/%ec%95%88%ed%8b%b0%ea%b7%b8%eb%9e%98%eb%b9%84%ed%8b%b0/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.wonizz.com</link>
	<description>AI 자동화를 직접 굴려 본 개발자의 실무 교훈</description>
	<lastBuildDate>Fri, 27 Nov 2026 00:08:30 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>

<image>
	<url>https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/08/wz-siteicon-512.png?fit=32%2C32&#038;ssl=1</url>
	<title>안티그래비티 &#8211; WONIZZ.LOG</title>
	<link>https://blog.wonizz.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">152411368</site>	<item>
		<title>[AI 코딩] 안티그래비티 사용법, agy 로 버그 3개 찾기 13초</title>
		<link>https://blog.wonizz.com/2026/10/07/antigravity-how-to-use/</link>
					<comments>https://blog.wonizz.com/2026/10/07/antigravity-how-to-use/#respond</comments>
		
		<dc:creator><![CDATA[워니즈]]></dc:creator>
		<pubDate>Wed, 07 Oct 2026 00:58:06 +0000</pubDate>
				<category><![CDATA[AI & LLM]]></category>
		<category><![CDATA[agy]]></category>
		<category><![CDATA[AI코딩]]></category>
		<category><![CDATA[antigravity]]></category>
		<category><![CDATA[안티그래비티]]></category>
		<category><![CDATA[터미널CLI]]></category>
		<guid isPermaLink="false">https://blog.wonizz.com/?p=4212</guid>

					<description><![CDATA[<p>The standard Lorem Ipsum passage, used since the 1500s<br />
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
<p>Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"</p>
<p>1914 translation by H. Rackham<br />
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"</p>
<p>Section 1.10.33 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."</p>
<p>1914 translation by H. Rackham<br />
"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains."</p>
<p>안티그래비티 사용법을 2026-10-03 빈 폴더에서 agy 1.2.12 로 직접 따라 했습니다. 버그 3개 찾기 13초, 33줄 스크립트 받기 8초, 8줄 셸 스크립트 한국어 설명 33초와 파일 쓰기가 거부된 곳, 확인하지 못한 요금까지 상황별로 정리했습니다.</p>
<p>The post <a rel="nofollow" href="https://blog.wonizz.com/2026/10/07/antigravity-how-to-use/">[AI 코딩] 안티그래비티 사용법, agy 로 버그 3개 찾기 13초</a> appeared first on <a rel="nofollow" href="https://blog.wonizz.com">WONIZZ.LOG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The standard Lorem Ipsum passage, used since the 1500s<br />
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
<p>Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"</p>
<p>1914 translation by H. Rackham<br />
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"</p>
<p>Section 1.10.33 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."</p>
<p>1914 translation by H. Rackham<br />
"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains."</p>
<div class="box-4212-steps" style="border:2px solid #2563eb;border-radius:8px;padding:14px 18px;margin:0 0 24px;background:#f1f5ff">
<strong>안티그래비티 사용법, 3단계로 먼저 보면 이렇습니다.</strong>
<ol>
  <li><strong>설치 확인</strong> 터미널에 <code>agy --version</code> 을 쳐서 버전이 나오는지 봅니다(이 글은 1.2.12 기준, 설치 과정은 다루지 않았습니다)</li>
  <li><strong>폴더로 이동</strong> 시험할 작업 폴더로 <code>cd</code> 로 들어갑니다</li>
  <li><strong>한 줄 입력</strong> <code>agy -p "할 일"</code> 을 보냅니다. 권한이 거부되면 요청 문장을 바꿔 다시 보냅니다</li>
</ol>
</div>

2026-10-03 새벽 빈 폴더에서 안티그래비티 CLI(<code>agy</code>)로 안티그래비티 사용법을 상황별로 따라 해 보니, 버그 3개는 13초, 33줄 코드는 8초, 8줄 셸 스크립트 설명은 33초 만에 답이 왔습니다. 그런데 처음 보낸 요청 두 번은 권한 거부로 아무것도 남기지 않았고, 종료 코드는 0이었습니다.

안녕하세요? 정리하는 개발자 워니즈입니다. IDE 가 아니라 터미널용 Antigravity CLI 로 해 본 안티그래비티 사용법을 상황별로 정리했고, 이번 시험을 위해 새로 가입한 서비스는 없습니다.

<ul>
  <li><strong>무엇을 했나</strong> 안티그래비티 사용법의 기본은 작업 폴더에서 <code>agy -p "할 일"</code> 한 줄을 보내는 것이고, 저는 agy 1.2.12 로 세 상황에 요청 아홉 개를 보냈습니다</li>
  <li><strong>결과 숫자</strong> 읽고 답하는 일(버그 3개 13초, 설명 33초)은 바로 됐고, 파일 쓰기와 명령 실행은 거부돼 요청 문장을 바꾼 뒤에야 결과가 나왔습니다(8초, 33초)</li>
  <li><strong>누구에게 쓸모</strong> 터미널에서 AI 에게 버그 찾기와 코드 설명을 맡겨 보려는 개발자, 그리고 그 결과를 스크립트로 받으려는 분께 맞습니다</li>
</ul>

<figure class="wp-block-table">

<table><thead><tr><th>상황</th><th>막힌 요청</th><th>통한 요청</th><th>걸린 시간</th></tr></thead><tbody><tr><td>디버깅</td><td>없음</td><td>&#8220;고치지 말고 문제와 고칠 방법만&#8221;</td><td>13초</td></tr><tr><td>새 기능</td><td>&#8220;현재 폴더에 만들어 줘&#8221;(write_file 거부)</td><td>&#8220;파일은 만들지 말고 코드만 출력&#8221;</td><td>8초</td></tr><tr><td>코드 공부</td><td>&#8220;실행하지는 마&#8221;(command 거부)</td><td>&#8220;터미널 명령은 쓰지 말고 파일 읽기만&#8221;</td><td>33초</td></tr><tr><td>기본 모델</td><td>429 오류(종료 코드 3)</td><td><code>--model claude-sonnet-4-6</code></td><td>5초</td></tr></tbody></table>

</figure>

<h2 id="s1">1. 안티그래비티 사용법, 세 가지를 시켜 보니 몇 초 걸렸을까?</h2>

짧게는 8초, 길게는 33초였습니다. 2026-10-03 05:13~05:17 KST, macOS 27.0 arm64 와 agy 1.2.12 로 <code>/tmp</code> 아래 새 폴더 세 개에서만 돌렸고, 시간은 명령 앞뒤 <code>date +%s</code> 의 차이입니다. 이날 기본 모델이 429 로 끝나 세 상황 모두 Claude Sonnet 4.6 으로 돌렸습니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/01-chart.png?w=1200&#038;ssl=1" alt="안티그래비티 사용법 시험에서 보낸 요청 9개의 걸린 시간을 초 단위 막대로 비교한 그림, 만들기 거부와 실행마 거부 두 요청도 14초·7초로 표시된다" />
<strong>권한이 거부돼 아무것도 만들지 못한 두 번도 종료 코드는 0이었습니다.</strong> 이 안티그래비티 사용법을 스크립트로 옮긴다면 종료 코드가 아니라 결과 파일이나 답 내용으로 성공을 판정해야 합니다.

<h2 id="s2">2. 디버깅할 때 버그 3개를 찾게 하려면?</h2>

파일이 있는 폴더에서 범위를 묶어 묻습니다. 22줄짜리 <code>orders.py</code> 에 흔한 실수 셋을 심어 두고 파일은 고치지 말고 문제가 있는 함수와 고칠 방법만 알려 달라고 보내자 13초 만에 셋 다 줄 번호와 함께 짚었고, 빠진 것도 지어낸 것도 없었습니다. 답 뒤에도 파일은 그대로였습니다.

<figure class="wp-block-table">

<table><thead><tr><th>함수</th><th>심어 둔 문제</th><th>agy 가 짚은 줄</th></tr></thead><tbody><tr><td>average_price</td><td>빈 목록이면 0으로 나눔</td><td>5번 줄, ZeroDivisionError</td></tr><tr><td>add_tag</td><td>기본값 <code>tags=[]</code> 를 호출끼리 공유</td><td>8번 줄, 가변 기본 인자</td></tr><tr><td>page</td><td>끝 인덱스에서 1을 더 뺌</td><td>15번 줄, off-by-one</td></tr></tbody></table>

</figure>

<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/04-diagram-2.png?w=1200&#038;ssl=1" alt="orders.py 에서 agy 가 짚은 버그 3개를 함수 이름과 줄 번호로 정리한 카드 그림(average_price 5번 줄, add_tag 8번 줄, page 15번 줄), repro.log 응답을 다시 그린 것으로 실제 터미널 캡처는 아니다" />
가변 기본 인자 설명은 <a href="https://docs.python.org/3/tutorial/controlflow.html#default-argument-values" target="_blank" rel="noopener">파이썬 공식 튜토리얼의 기본 인자 값 절</a>과 같았습니다. 다만 버그 위치를 제가 미리 아는 파일이었고, 실제 코드에서 무엇을 놓치는지는 이 기록으로 말할 수 없습니다.

<h2 id="s3">3. 새 기능을 만들 때 &#8216;만들어 줘&#8217; 대신 무엇이라고 해야 하나요?</h2>

&#8220;코드만 출력해 줘&#8221; 입니다. &#8220;현재 폴더에 wordcount.py 를 만들어 줘&#8221; 는 14초 뒤 아래 문구만 남기고 끝났고 폴더는 비어 있었습니다.

<blockquote>
a tool required the &#8220;write_file&#8221; permission that headless mode cannot prompt for, so it was auto-denied.
</blockquote>

<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/05-diagram-1.png?w=1200&#038;ssl=1" alt="같은 폴더에서 '만들어 줘'는 write_file 권한 자동 거부로 끝나고 '출력해 줘'로 문장만 바꾸자 성공한 결과를 좌우로 비교한 그림(repro.log 응답을 다시 그린 것)" />
&#8220;파일은 만들지 말고 코드만 출력&#8221; 으로 바꾸자 8초에 33줄이 왔고, 저장해 돌리니 동작했습니다. 그런데 시험 글에서 Apple 과 <code>banana.</code> 를 다른 단어로 세어 apple 을 3회로 냈습니다. <code>-c</code> 로 대화를 이어 대소문자와 문장부호를 떼게 하자 8초에 37줄 코드가 왔고 사람이 센 값(apple 4회, banana 3회)과 같아졌습니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/06-chart.png?w=1200&#038;ssl=1" alt="wordcount.py 첫 코드와 고친 코드를 같은 시험 글에 돌린 결과를 막대로 비교한 그림, apple 이 3회에서 4회로 바뀐 막대가 강조돼 있다" />
오류 없이 도는 코드의 빈틈은 사람이 일부러 까다로운 입력을 넣어야 보였습니다. 테스트를 통과했는데 틀렸던 비슷한 일은 <a href="https://blog.wonizz.com/2026/09/27/vibe-coding-reality-selftest-real-data/">테스트는 통과했는데 261편 중 6편만 맞았다</a>에 적었습니다.

<h2 id="s4">4. 코드 공부할 때 실행 권한 거부를 피하려면?</h2>

쓸 도구를 직접 적습니다. 8줄짜리 <code>backup.sh</code> 를 &#8220;줄마다 설명, 실행하지는 마&#8221; 로 물었더니 7초 만에 command 권한 거부로 끝났고, &#8220;터미널 명령은 쓰지 말고 파일 읽기만&#8221; 을 앞에 붙이자 33초 만에 8줄 전부를 한국어로 풀었습니다. <code>-c</code> 로 &#8220;처음 돌리기 전 조심할 점 세 줄&#8221; 을 묻자 14초 만에 가장 위험한 줄을 짚었습니다.

<blockquote>
7번째 줄의 <code>-delete</code> 때문에 <code>~/backups/</code> 안에 있는 7일 이상 된 <code>.tar.gz</code> 파일이 모두 즉시 삭제됩니다.
</blockquote>

<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/07-diagram.png?w=1200&#038;ssl=1" alt="backup.sh 설명을 받기까지 보낸 세 번의 요청 흐름도, 실행하지는 마(거부, 7초) 다음 파일 읽기만(8줄 설명, 33초) 다음 조심할 점 묻기(14초) 순서를 로그 값으로 다시 그렸다" />
<code>-c</code> 는 앞 대화의 파일을 기억했고, <code>--output-format json</code> 은 <code>status</code> 와 <code>response</code> 를 따로 줘서 스크립트로 받기 편했습니다(출력은 부록). 권한을 어디까지 열지는 <a href="https://blog.wonizz.com/2026/08/03/ai-agent-permission-recovery-cost/">AI 에이전트 권한 설계</a>에서 다룬 적이 있습니다.

<h2 id="s5">5. 안티그래비티는 무료인가요, 그리고 안 되는 것은?</h2>

요금표와 무료 범위는 이번에 공식 문서로 확인하지 못했습니다. 안티그래비티 사용법을 따라 하다 보면 먼저 한도 오류를 만날 수 있습니다. 기본 모델과 제미나이 모델 두 개는 &#8220;Individual quota reached. Please upgrade your subscription to increase your limits.&#8221; 로 끝났고, Claude 와 GPT 쪽 모델로 바꾸자 5초 만에 답했습니다. <code>/usage</code> 화면에는 모델 묶음마다 주간 한도와 5시간 한도 행이 따로 있었습니다(비율 값은 가림). 가격은 <a href="https://antigravity.google/" target="_blank" rel="noopener">Google Antigravity 공식 사이트</a>에서 확인하셔야 합니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/02-diagram-2.png?w=1200&#038;ssl=1" alt="agy /usage 화면 구조를 보여 주는 카드 그림, Gemini 모델과 Claude·GPT 모델 묶음마다 주간 한도 행과 5시간 한도 행이 따로 있다는 것만 나타내고 비율 값은 가렸다" />
같은 날 <code>agy models</code> 목록 14개에 제미나이 4 는 없었습니다(3.8 Flash ~ 3.1 Pro). 설치, IDE, 제미나이 모델로 같은 세 상황, 파일 쓰기 허용 규칙은 다루지 않았습니다(부록 표).
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/03-diagram-2.png?w=1200&#038;ssl=1" alt="agy --version 으로 1.2.12 를 확인하고 agy models 로 14개 모델을 나열한 뒤 제미나이 4 가 목록에 없다는 것을 로그 값으로 다시 그린 흐름도(실제 터미널 캡처가 아니라 repro.log 수치를 옮긴 그림)" />
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/08-diagram.png?w=1200&#038;ssl=1" alt="같은 목적의 요청이 문장 하나를 바꾸자 거부에서 성공으로 바뀐 두 쌍(만들기 요청/출력 요청, 실행 마/읽기만)을 카드 네 개로 나란히 비교한 그림" />
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/09-diagram.png?w=1200&#038;ssl=1" alt="읽고 답하는 요청은 바로 성공하고, 쓰거나 실행하는 요청은 문장을 바꿔야 결과가 나온다는 갈림길을 좌우로 비교한 그림" />

<h3>필자의 결론</h3>

<blockquote>
안티그래비티 CLI 는 기본 권한 그대로 두고, 파일을 읽거나 코드를 답으로 받는 일에만 씁니다.
</blockquote>

<blockquote>
&#8220;만들어 줘&#8221; 대신 &#8220;코드만 출력&#8221;, &#8220;실행하지는 마&#8221; 대신 &#8220;파일 읽기만&#8221; 이라고 쓰면 거부가 결과로 바뀌었습니다.
</blockquote>

<blockquote>
오늘은 최근 고친 버그가 있던 파일 하나를 빈 폴더에 복사하고 &#8220;고치지 말고 줄 번호와 이유만&#8221; 물어 보세요.
</blockquote>

안티그래비티 IDE 와 CLI 를 둘 다 써 보신 분은, 같은 요청을 IDE 에서는 권한을 어떻게 묻던가요?

<h2 id="s6">부록: 재현 명령과 출력</h2>

<ol>
  <li><strong>시작 명령.</strong> 이 맥에는 agy 가 이미 깔려 있고 로그인돼 있었습니다(설치는 범위 밖).</li>
</ol>

<pre class="wp-block-code"><code class="language-bash">agy --version
agy models
cd /tmp/agy-howto-1003/new
agy -p "ok 라고만 답해" --model claude-sonnet-4-6</code></pre>

<ol>
  <li><strong>보낸 요청 아홉 개</strong>(순서대로).</li>
</ol>

<figure class="wp-block-table">

<table><thead><tr><th>상황</th><th>보낸 요청(요지)</th><th>걸린 시간</th><th>종료 코드</th><th>결과</th></tr></thead><tbody><tr><td>확인</td><td>기본 모델로 &#8220;ok 라고만 답해&#8221;</td><td>6초</td><td>3</td><td>429 오류, 답 없음</td></tr><tr><td>확인</td><td>같은 요청, Claude Sonnet 4.6</td><td>5초</td><td>0</td><td>ok</td></tr><tr><td>디버깅</td><td>orders.py 버그를 고치지 말고 알려 달라</td><td>13초</td><td>0</td><td>심어 둔 버그 3개 모두 찾음</td></tr><tr><td>새 기능</td><td>현재 폴더에 wordcount.py 를 만들어 달라</td><td>14초</td><td>0</td><td>파일 쓰기 권한 거부, 파일 없음</td></tr><tr><td>새 기능</td><td>파일은 만들지 말고 코드만 출력</td><td>8초</td><td>0</td><td>33줄 코드, 저장해 돌리니 동작</td></tr><tr><td>새 기능</td><td>대소문자와 문장부호를 정리하도록 고쳐 달라</td><td>8초</td><td>0</td><td>37줄 코드, 세는 값이 바로잡힘</td></tr><tr><td>코드 설명</td><td>backup.sh 를 줄마다 설명, 실행하지는 마</td><td>7초</td><td>0</td><td>명령 실행 권한 거부, 답 없음</td></tr><tr><td>코드 설명</td><td>터미널 명령은 쓰지 말고 파일 읽기만</td><td>33초</td><td>0</td><td>8줄 모두 한국어 설명</td></tr><tr><td>코드 설명</td><td>처음 돌리기 전 조심할 점 세 줄</td><td>14초</td><td>0</td><td>삭제 범위 경고 포함 3줄</td></tr></tbody></table>

</figure>

<ol>
  <li><strong>orders.py 직접 실행</strong>(Python 3.14.7). 빈 목록이면 <code>ZeroDivisionError: division by zero</code> 도 따로 확인했습니다.</li>
</ol>

<pre class="wp-block-code"><code>$ python3 orders.py
2000.0
['new']
['new', 'sale']
[10, 11, 12, 13, 14, 15, 16, 17, 18]</code></pre>

<ol>
  <li><strong>JSON 출력</strong>(대화 식별값은 가림). 두 글자 답에도 입력이 10,194 토큰이었고, <code>duration_seconds</code> 는 0.92초인데 명령 전체는 4초였습니다.</li>
</ol>

<pre class="wp-block-code"><code>$ agy -p "ok 라고만 답해" --model gpt-oss-120b-medium --output-format json
{"conversation_id":"(가림)","status":"SUCCESS","response":"ok\n","duration_seconds":0.922087,"num_turns":1,"usage":{"input_tokens":10194,"output_tokens":25,"thinking_tokens":0,"cache_read_tokens":0,"total_tokens":10219}}</code></pre>

<ol>
  <li><strong>확인하지 못한 것.</strong> 요금표와 등급 차이(공식 요금 문서를 열지 않음), 설치 과정, IDE 사용법, 제미나이 모델로 같은 세 상황(이날 429), 파일 쓰기 허용 규칙과 전부 허용 플래그(기본값으로만 진행), <code>--effort</code>, <code>--mode</code>, <code>--sandbox</code>(도움말만 봄), 다른 폴더 대화 직후의 <code>-c</code>, 같은 요청을 다시 보냈을 때 같은 답인지.</li>
  <li><strong>곁가지.</strong> 시간은 초 단위 벽시계라 표의 5초는 실제로 4초대에서 5초대 사이였을 수 있습니다. 규칙 파일 없이도 한국어 요청에는 한국어로 답했습니다. 규칙 파일이 안 읽히는 증상은 <a href="https://blog.wonizz.com/2026/09/19/agents-md-not-loaded/">AGENTS.md 안 읽힐 때 해결 방법 총정리</a>에, 다른 AI 코딩 도구의 무료 범위는 <a href="https://blog.wonizz.com/2026/09/20/cursor-free-limit-check/">커서 AI 무료 한도 총정리, 공식 문서 기준</a>에 있습니다. <code>agy changelog</code> 의 1.2.15 항목에는 크레딧 잔액 부족 문구와 권한 요청 우회 방지 수정이 있었지만, 설치된 1.2.12 기준으로 썼습니다.</li>
  <li><strong>출처.</strong> 직접 재현 2026-10-03 05:13~05:17 KST, macOS 27.0 arm64, agy 1.2.12, <code>/tmp</code> 아래 빈 폴더 세 개, 권한 기본값. <code>agy --help</code>, <code>agy models</code>, <code>agy changelog</code>, <code>agy -p "/usage"</code> 출력은 같은 날 같은 환경.</li>
</ol>

<h2 class="wp-block-heading">함께 보면 좋은 글</h2>
<ul class="wp-block-list"><li><a href="https://blog.wonizz.com/2026/10/03/antigravity-cli-errors/">[AI 코딩] 안티그래비티 오류 7가지, 로그인 안됨과 권한 거부 해결</a></li><li><a href="https://blog.wonizz.com/2026/10/29/vibe-coding-tools-compare/">AI 바이브코딩 툴 셋, 왜 하나만 18초나 걸렸을까</a></li><li><a href="https://blog.wonizz.com/2026/10/10/n8n-install-docker/">n8n 설치, 도커로 30초에 받고 2초 만에 떴다</a></li><li><a href="https://blog.wonizz.com/2026/10/04/claude-code-agent-roles/">[AI 코딩] 클로드 코드 멀티 에이전트, 거짓 6건 뒤 나눈 역할</a></li><li><a href="https://blog.wonizz.com/2026/10/09/ai-agent-build-claude/">[AI 코딩] AI 에이전트 만들기, 고쳤다는데 파일은 그대로였던 일</a></li></ul>

<p class="wp-block-paragraph">AI 도구로 초안을 만들고 직접 실행, 검증한 내용입니다.</p>
<p>The post <a rel="nofollow" href="https://blog.wonizz.com/2026/10/07/antigravity-how-to-use/">[AI 코딩] 안티그래비티 사용법, agy 로 버그 3개 찾기 13초</a> appeared first on <a rel="nofollow" href="https://blog.wonizz.com">WONIZZ.LOG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.wonizz.com/2026/10/07/antigravity-how-to-use/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4212</post-id>	</item>
		<item>
		<title>[AI 코딩] 안티그래비티 오류 7가지, 로그인 안됨과 권한 거부 해결</title>
		<link>https://blog.wonizz.com/2026/10/03/antigravity-cli-errors/</link>
					<comments>https://blog.wonizz.com/2026/10/03/antigravity-cli-errors/#respond</comments>
		
		<dc:creator><![CDATA[워니즈]]></dc:creator>
		<pubDate>Fri, 02 Oct 2026 23:06:25 +0000</pubDate>
				<category><![CDATA[AI & LLM]]></category>
		<category><![CDATA[agy]]></category>
		<category><![CDATA[AI코딩]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[안티그래비티]]></category>
		<category><![CDATA[터미널오류]]></category>
		<guid isPermaLink="false">https://blog.wonizz.com/?p=3938</guid>

					<description><![CDATA[<p>The standard Lorem Ipsum passage, used since the 1500s<br />
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
<p>Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"</p>
<p>1914 translation by H. Rackham<br />
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"</p>
<p>Section 1.10.33 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."</p>
<p>1914 translation by H. Rackham<br />
"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains."</p>
<p>안티그래비티 CLI agy 1.2.13 을 macOS 에서 직접 돌리며 낸 오류 7가지를 원문 메시지 그대로 모았습니다. 명령 못 찾음, 로그인 안됨, 모델 선택 안됨, 503, 파일 쓰기 권한 거부와 종료 코드 0, 한국어 답변을 증상별로 고치는 방법을 정리했습니다.</p>
<p>The post <a rel="nofollow" href="https://blog.wonizz.com/2026/10/03/antigravity-cli-errors/">[AI 코딩] 안티그래비티 오류 7가지, 로그인 안됨과 권한 거부 해결</a> appeared first on <a rel="nofollow" href="https://blog.wonizz.com">WONIZZ.LOG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The standard Lorem Ipsum passage, used since the 1500s<br />
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
<p>Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"</p>
<p>1914 translation by H. Rackham<br />
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"</p>
<p>Section 1.10.33 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."</p>
<p>1914 translation by H. Rackham<br />
"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains."</p>
터미널에서 안티그래비티 CLI 를 불렀더니 로그인 안됨이나 권한 거부 같은 오류가 떠서 어디부터 고쳐야 할지 막막했던 적 있으신가요?

안녕하세요? 정리하는 개발자 워니즈입니다. 이 글은 필자가 2026-09-29 에 macOS arm64 와 agy 1.2.13 으로 안티그래비티 CLI 를 직접 돌리며 낸 오류 7가지를 원문 메시지 그대로 적고 증상별로 고친 방법을 정리합니다.

<blockquote>
<strong>한 줄 요약</strong> 안티그래비티 CLI 오류는 대부분 PATH 와 첫 로그인과 모델 이름에서 나왔고 오류 문구가 고칠 방향을 알려 줬습니다. 가장 위험했던 것은 헤드리스 모드에서 파일 쓰기가 거부됐는데도 종료 코드가 0 으로 끝나는 경우였습니다.
</blockquote>

<ul>
  <li><strong>바로 고칠 것</strong> <code>command not found</code> 는 PATH 문제였고 <code>authentication timed out</code> 은 대화형 첫 로그인으로, <code>requires --effort</code> 는 <code>--effort high</code> 로 풀렸습니다</li>
  <li><strong>스크립트라면</strong> 종료 코드만 보지 말고 출력 문구와 결과 파일로 성공을 판정해야 권한 거부를 놓치지 않습니다</li>
  <li><strong>macOS 함정</strong> 허용 규칙을 <code>/tmp</code> 로 적으면 걸리지 않았고 실제 경로인 <code>/private/tmp</code> 로 적어야 걸렸습니다</li>
</ul>

목차

<ol>
  <li><a href="#s1">안티그래비티 CLI 오류 7가지, 직접 재현하니 무엇이 나왔나요?</a></li>
  <li><a href="#s2">터미널에서 agy 를 못 찾을 때</a></li>
  <li><a href="#s3">안티그래비티 로그인 안됨, 60초 뒤 authentication timed out</a></li>
  <li><a href="#s4">로그에 not logged into 가 찍히면 다시 로그인해야 할까?</a></li>
  <li><a href="#s5">안티그래비티 모델 선택 안됨, 오류 문구 세 가지</a></li>
  <li><a href="#s6">503 서버 오류는 다시 돌리면 지나가나요?</a></li>
  <li><a href="#s7">에이전트가 파일을 못 쓸 때와 종료 코드 0</a></li>
  <li><a href="#s8">안티그래비티 한국어 답변 받는 법</a></li>
  <li><a href="#s9">안티그래비티 CLI 로 안 되는 것과 확인 못 한 것</a></li>
  <li><a href="#s10">정리: 누구에게 맞고 누구에게는 굳이인가, 그리고 운영자 의견</a></li>
</ol>

<h2 id="s1">1. 안티그래비티 CLI 오류 7가지, 직접 재현하니 무엇이 나왔나요?</h2>

필자가 직접 낸 안티그래비티 CLI 오류는 일곱 가지였고 그중 네 가지(모델 선택, 503, 권한 거부, 한국어 답변)는 고친 뒤 다시 돌려서 풀린 것까지 확인했습니다. PATH 와 로그인은 오류와 안내문까지만 봤습니다. 시험은 2026-09-29 17:33~17:41 KST 에 macOS 27.0 arm64 와 <code>~/.local/bin/agy</code> 에 깔린 agy 1.2.13 으로 했고, 새로 설치한 것과 같은 상태는 빈 HOME(<code>/tmp/agy-fresh/home</code>)을 만들어 재현했습니다.

안티그래비티 CLI 는 터미널에서 <code>agy</code> 한 단어로 부르는 명령인데요, 옵션 없이 띄우면 대화형으로 돌고 <code>-p</code> 를 붙이면 한 번 묻고 답을 받은 뒤 끝나는 헤드리스 모드로 돕니다. 이 글의 오류 대부분은 사람이 옆에서 답해 줄 수 없는 헤드리스 쪽에서 나왔고 데스크톱 IDE 는 설치하지 않아서 다루지 않습니다.

권한 규칙 시험은 settings.json 을 백업한 뒤 규칙 한 줄만 넣고 매번 되돌렸고 에이전트에게 파일을 쓰게 한 시험은 전부 빈 임시 폴더에서 돌렸습니다. 증상은 구글 자동완성에서 안티그래비티 뒤에 붙는 오류, 안됨, 한국어 갈래를 보고 그 갈래에 맞는 것을 골랐는데 결과를 한 표로 먼저 모으면 아래와 같습니다. 이 글의 터미널 이미지는 그날 남긴 재현 로그의 원문 출력을 터미널 모양으로 옮긴 것입니다.

<figure class="wp-block-table">

<table><thead><tr><th>증상</th><th>원문 문구(일부)</th><th>종료 코드</th><th>고친 방법</th><th>확인</th></tr></thead><tbody><tr><td>터미널에서 agy 를 못 찾음</td><td><code>zsh:1: command not found: agy</code></td><td>127</td><td><code>~/.local/bin</code> 을 PATH 에 추가</td><td>설치기 경고문까지</td></tr><tr><td>로그인 안됨</td><td><code>Error: authentication timed out.</code></td><td>1</td><td>대화형 <code>agy</code> 로 한 번 로그인</td><td>시간 초과까지</td></tr><tr><td>로그에 not logged into</td><td><code>You are not logged into Antigravity.</code></td><td>0</td><td>답변과 종료 코드로 판단</td><td>정상 실행 2회</td></tr><tr><td>모델 선택 안됨</td><td><code>requires --effort (available: low, high)</code></td><td>1</td><td><code>agy models</code> 로 이름 확인, <code>--effort high</code></td><td>정상 답변</td></tr><tr><td>서버 503</td><td><code>UNAVAILABLE (code 503)</code></td><td>1</td><td>20~30초 뒤 재실행</td><td>2회 모두 통과</td></tr><tr><td>파일 쓰기 권한 거부</td><td><code>so it was auto-denied</code></td><td>0</td><td><code>write_file(/private/tmp/...)</code> 허용 규칙</td><td>파일 생성</td></tr><tr><td>영어로 답함</td><td>영어 질문에 영어 답</td><td>기록 없음</td><td>작업 폴더 AGENTS.md</td><td>한국어 답</td></tr></tbody></table>

</figure>

일곱 가지 가운데 스크립트로 안티그래비티를 부르는 분이 가장 먼저 알아야 할 것은 여섯째 줄이었습니다. 빈 폴더에서 파일 하나를 만들라고 시켰더니 아래처럼 거부 문구가 나왔는데 종료 코드는 0 이었고 파일은 생기지 않았습니다(2026-09-29, macOS 27.0 arm64, agy 1.2.13 실측).

<pre class="wp-block-code"><code>$ cd /tmp/agy-try; agy -p "현재 폴더에 hello.txt 파일을 만들고 내용으로 hi 한 줄을 써라. 끝나면 done 이라고만 답해"
jetski: no output produced — a tool required the "write_file" permission that headless mode cannot prompt for, so it was auto-denied. Add an allow-rule under permissions.allow in settings.json (e.g. write_file(<target>)). Alternatively, re-run with --dangerously-skip-permissions to auto-approve all tools.
rc=0, hello.txt 없음</code></pre>

<strong>직접 확인 1.</strong> 종료 코드만 보고 성공을 판정하는 스크립트라면 파일이 하나도 생기지 않은 이 실행을 성공으로 기록하게 됩니다. 실패인데 성공 신호가 나오는 이 경우는 7절에서 고친 방법과 함께 다시 다루고 나머지 여섯 가지는 겪은 순서대로 적어 두겠습니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/09/01-screenshot-1.png?w=1200&#038;ssl=1" alt="안티그래비티 CLI 가 빈 폴더에서 write_file 권한을 자동 거부하고 종료 코드 0 으로 끝난 터미널 화면" />

<h2 id="s2">2. 터미널에서 agy 를 못 찾을 때</h2>

<code>zsh:1: command not found: agy</code> 가 나오면 agy 가 깔린 <code>~/.local/bin</code> 이 지금 셸의 PATH 에 없는 것입니다. 필자는 PATH 를 <code>/usr/bin:/bin</code> 만 남긴 새 셸을 <code>env -i HOME=/tmp/agy-fresh/home PATH=/usr/bin:/bin /bin/zsh -f -c 'agy --version'</code> 으로 띄워서 이 오류를 냈고 종료 코드는 127 이었습니다.

같은 조건에서 <code>agy install</code> 을 돌리면 안티그래비티 설치기가 먼저 이 문제를 알려 주는데 경고문 첫 두 줄은 아래와 같았습니다.

<blockquote>
Warning: /tmp/agy-fresh/home/.local/bin is not present in your active PATH.
</blockquote>

<blockquote>
To use the &#8216;agy&#8217; CLI globally, please manually add it to your shell profile:
</blockquote>

경고문이 권하는 대로 셸 설정 파일에 PATH 한 줄을 넣고 새 셸을 열면 됩니다. zsh 를 쓰는 macOS 기준으로는 아래 세 줄이고 마지막 줄은 제대로 잡혔는지 보는 확인용입니다.

<pre class="wp-block-code"><code class="language-bash">echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
agy --version</code></pre>

<strong>직접 확인 2.</strong> 필자가 확인한 것은 오류와 설치기 경고문까지이고 빈 HOME 에 이 줄을 넣은 뒤 다시 돌려 보는 것은 하지 않았습니다. cron 처럼 셸 설정 파일을 읽지 않는 환경에서는 PATH 한 줄이 먹지 않을 수 있으니 그런 곳에서는 <code>~/.local/bin/agy</code> 를 절대 경로로 부르는 편이 덜 헷갈립니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/09/02-screenshot-1.png?w=1200&#038;ssl=1" alt="안티그래비티 CLI PATH 가 빠진 새 셸에서 command not found 오류와 설치기 PATH 경고문이 함께 보이는 터미널 화면" />

<h2 id="s3">3. 안티그래비티 로그인 안됨, 60초 뒤 authentication timed out</h2>

안티그래비티 로그인 안됨 증상은 로그인을 한 번도 하지 않은 환경에서 헤드리스 모드(<code>-p</code>)부터 부를 때 나왔습니다. 빈 HOME 으로 <code>HOME=/tmp/agy-fresh/home agy -p "ok 라고만 답해" --print-timeout 45s < /dev/null</code> 을 돌리자 로그인 주소를 한 번 보여 준 뒤 기다리다가 종료 코드 1 로 끝났습니다.

<blockquote>
Authentication required. Please visit the URL to log in:
</blockquote>

<blockquote>
Waiting for authentication (timeout 60s)...
</blockquote>

<blockquote>
Or, paste the authorization code here and press Enter:
</blockquote>

<blockquote>
Error: authentication timed out.
</blockquote>

<blockquote>
error: authentication failed or timed out
</blockquote>

로그인 주소는 accounts.google.com 의 OAuth 주소였고 돌아올 곳은 antigravity.google 의 oauth-callback 이었는데, 주소에 붙은 식별값은 이 글에서 가렸습니다. 브라우저는 자동으로 열리지 않았고 필자가 <code>--print-timeout 45s</code> 를 줬는데도 안내문의 대기 시간은 <code>timeout 60s</code> 로 찍혔습니다.

고친 방법은 순서를 바꾸는 것입니다. 처음 한 번은 옵션 없이 대화형 <code>agy</code> 를 띄워 로그인을 끝내고 그다음부터 <code>-p</code> 를 쓰면 됩니다. 필자의 원래 환경은 이렇게 로그인이 끝나 있어서 같은 <code>-p</code> 명령이 바로 답을 돌려줬습니다.

<ul>
  <li><strong>SSH 로 붙은 원격 맥</strong> 안내문에는 주소를 다른 기기의 브라우저에서 열고 받은 코드를 붙여 넣는 길이 있지만 필자는 새 인증을 만들지 않으려고 끝까지 가지 않았습니다</li>
  <li><strong>표준 입력을 막은 스크립트</strong> 필자 시험처럼 <code>< /dev/null</code> 로 입력을 막아 두면 코드를 붙여 넣을 자리가 없으니 결국 시간 초과로 끝납니다</li>
</ul>

<strong>직접 확인 3.</strong> 필자가 확인한 것은 로그인 대기와 시간 초과 문구와 종료 코드 1 까지이고, 코드를 붙여 넣어 안티그래비티 로그인을 마치는 경로가 실제로 끝까지 되는지는 확인하지 못했습니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/09/03-screenshot-1.png?w=1200&#038;ssl=1" alt="안티그래비티 로그인 안됨 증상, 빈 HOME 에서 agy -p 가 로그인 주소와 60초 대기 안내 뒤 타임아웃하는 화면(OAuth 식별값 가림)" />

<h2 id="s4">4. 로그에 not logged into 가 찍히면 다시 로그인해야 할까?</h2>

아니요, 답변이 정상으로 오고 종료 코드가 0 이라면 다시 로그인할 필요가 없었습니다. 필자 환경에서 <code>agy -p</code> 가 정상 답변을 돌려준 실행 직후에 <code>grep -c "You are not logged into Antigravity" ~/.gemini/antigravity-cli/cli.log</code> 를 돌렸더니 58줄이 나왔고 <code>E</code> 로 시작하는 줄은 32줄이었습니다.

58줄을 문구별로 나누면 아래 세 종류였고 모두 <code>errorreport.go:224]</code> 에서 찍혔습니다.

<ul>
  <li><strong>15줄</strong> <code>error getting token source: You are not logged into Antigravity.</code></li>
  <li><strong>13줄</strong> <code>failed to get load code assist response: error getting token source: You are not logged into Antigravity.</code></li>
  <li><strong>2줄</strong> <code>Failed to poll ListExperiments: error getting token source: You are not logged into Antigravity.</code></li>
</ul>

같은 로그에는 <code>.gemini must be an absolute path: path is not absolute, falling back to default</code> 라는 줄도 한 번 있었는데 이것도 답변에는 영향이 없었습니다. <code>cli.log</code> 는 실행할 때마다 <code>log/cli-YYYYMMDD_HHMMSS.log</code> 로 새로 걸리는 링크였고 17:33:46 과 17:40:51 두 정상 실행 모두 같은 58줄이 찍혔습니다.

<strong>직접 확인 4.</strong> 이 줄이 왜 찍히는지 내부 동작은 확인하지 못했습니다. 다만 정상 실행 두 번에서 매번 같은 수로 나왔으니 로그의 이 줄만 보고 안티그래비티에 다시 로그인하기보다는 답변이 왔는지와 종료 코드로 판단하는 편이 맞다고 봤습니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/09/04-screenshot-2.png?w=1200&#038;ssl=1" alt="정상 실행 뒤에도 안티그래비티 cli.log 에서 not logged into 줄이 58줄 세어지는 grep 결과 화면" />

<h2 id="s5">5. 안티그래비티 모델 선택 안됨, 오류 문구 세 가지</h2>

안티그래비티 모델 선택 안됨 오류는 문구가 셋으로 갈렸고 셋 다 종료 코드 1 이었습니다. 일부러 없는 이름을 넣은 경우와 effort 를 빼먹은 경우와 그 모델에 없는 effort 를 준 경우입니다. 어느 쪽인지는 문구 끝부분만 읽어도 가려졌습니다.

<figure class="wp-block-table">

<table><thead><tr><th>넣은 옵션</th><th>원문 문구(끝부분)</th><th>원인</th><th>고친 방법</th></tr></thead><tbody><tr><td><code>--model gemini-9-pro</code></td><td><code>model gemini-9-pro is not recognized as a known model or custom model in settings</code></td><td>없는 모델 이름</td><td><code>agy models</code> 로 정확한 이름 확인</td></tr><tr><td><code>--model gemini-3.1-pro</code></td><td><code>--model gemini-3.1-pro requires --effort (available: low, high)</code></td><td>pro 는 effort 필수</td><td><code>--effort high</code> 또는 <code>low</code></td></tr><tr><td><code>--effort medium</code></td><td><code>gemini-3.1-pro has no "medium" effort (available: low, high)</code></td><td>모델마다 effort 값이 다름</td><td>문구의 available 값 중에서 고름</td></tr></tbody></table>

</figure>

첫 번째 오류는 문구 뒤에 <code>Available models:</code> 목록을 함께 보여 주고 <code>agy models</code> 로도 같은 목록을 볼 수 있습니다. 필자 환경에서는 14개가 나왔고 <code>gemini-3.8-flash-high</code> 부터 <code>claude-sonnet-4-6</code>, <code>claude-opus-4-6-thinking</code>, <code>gpt-oss-120b-medium</code> 까지 들어 있었는데 이 목록은 환경에 따라 다를 수 있습니다.

effort 를 문구가 알려 준 값으로 바꾸자 바로 답이 왔습니다(2026-09-29, 같은 환경 실측).

<pre class="wp-block-code"><code>$ agy -p "ok 라고만 답해" --model gemini-3.1-pro --effort high
ok   (rc=0)</code></pre>

<strong>직접 확인 5.</strong> 화면에 보이는 이름을 그대로 넣은 <code>--model "Gemini 3.1 Pro (High)"</code> 도 종료 코드 0 으로 받아졌습니다. 이름을 외우기 어렵다면 <code>agy models</code> 목록의 이름을 복사해 쓰는 편이 오타로 첫 번째 오류를 다시 밟지 않는 길이었습니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/09/05-screenshot.png?w=1200&#038;ssl=1" alt="안티그래비티 모델 선택 안됨 오류, requires --effort 문구와 agy models 목록이 함께 보이는 터미널 화면" />

<h2 id="s6">6. 503 서버 오류는 다시 돌리면 지나가나요?</h2>

필자가 겪은 두 번은 모두 20~30초 뒤에 같은 명령을 다시 돌리자 지나갔습니다. 모델에 요청이 간 실행 12번 가운데 2번이 503 으로 끝났고 17:38 경과 17:40 경에 한 번씩 나왔는데 문구는 아래 두 가지였습니다.

<blockquote>
error: failed to send message: send failed; already reported to the user: Eligibility check failed: failed to get load code assist response: UNAVAILABLE (code 503): The service is currently unavailable.
</blockquote>

<blockquote>
error: Eligibility check failed: UNAVAILABLE (code 503): The service is currently unavailable.
</blockquote>

문구 그대로 안티그래비티 쪽 서비스가 잠시 응답하지 않은 경우라서 필자 쪽 설정에서 고칠 곳은 없었고 기다렸다가 다시 돌리는 것 말고는 할 수 있는 일이 없었습니다. 스크립트로 부른다면 출력에 <code>code 503</code> 이 있을 때만 짧게 몇 번 다시 시도하고 그래도 안 되면 멈추게 두는 편이 무한 재시도를 피하는 방법입니다.

<strong>직접 확인 6.</strong> 503 은 종료 코드 1 로 끝나서 스크립트가 실패로 알아챌 수 있었습니다. 문제는 다음 절의 권한 거부인데요, 그쪽은 실패인데도 종료 코드가 0 이라서 같은 방식으로는 잡히지 않았습니다.

<h2 id="s7">7. 에이전트가 파일을 못 쓸 때와 종료 코드 0</h2>

헤드리스 모드는 사람에게 권한을 물어볼 수 없어서 파일 쓰기 같은 도구 권한을 자동으로 거부했고 그러면서도 종료 코드는 0 이었습니다. 1절의 거부 문구가 이 경우인데 문구 안에 <code>Add an allow-rule under permissions.allow in settings.json (e.g. write_file(<target>))</code> 라는 해결 방향이 이미 들어 있습니다.

필자는 문구가 알려 준 두 길과 편집 허용 모드까지 차례로 시험했고 같은 요청을 다섯 가지 조건으로 돌린 결과는 아래 표와 같았습니다(2026-09-29 실측).

<figure class="wp-block-table">

<table><thead><tr><th>조건</th><th>출력</th><th>종료 코드</th><th>hello.txt</th></tr></thead><tbody><tr><td>옵션 없음, <code>/tmp/agy-try</code></td><td>거부 문구</td><td>0</td><td>없음</td></tr><tr><td><code>--mode accept-edits</code></td><td>같은 거부 문구</td><td>0</td><td>없음</td></tr><tr><td>허용 규칙 <code>write_file(/tmp/agy-try2)</code>, <code>/tmp/agy-try2</code> 에서 실행</td><td>같은 거부 문구</td><td>0</td><td>없음</td></tr><tr><td>허용 규칙 <code>write_file(/private/tmp/agy-try2)</code></td><td>done</td><td>0</td><td>hi</td></tr><tr><td><code>--dangerously-skip-permissions</code>, <code>/tmp/agy-try</code></td><td>done</td><td>0</td><td>hi</td></tr></tbody></table>

</figure>

이 표에서 가장 먼저 볼 곳은 종료 코드 열입니다. 파일을 만든 두 번과 만들지 못한 세 번이 모두 0 으로 똑같이 끝났습니다. 편집 허용 모드인 <code>--mode accept-edits</code> 로도 거부 문구가 그대로 나왔으니 헤드리스에서 파일을 쓰게 하려면 허용 규칙을 넣거나 전부 허용 플래그를 쓰는 두 길만 남았습니다.

<h3>허용 규칙은 /tmp 가 아니라 /private/tmp 로</h3>

macOS 의 <code>/tmp</code> 는 <code>/private/tmp</code> 로 가는 링크라서 안티그래비티 허용 규칙은 실제 경로로 적어야 걸렸습니다. 필자 맥에서 <code>/tmp</code> 의 실제 경로를 파이썬 <code>os.path.realpath</code> 로 찍어 보면 <code>/private/tmp</code> 가 나왔고 같은 폴더를 가리키는데도 <code>/tmp</code> 로 적은 규칙은 걸리지 않았습니다.

필자 환경에서 settings.json 은 <code>cli.log</code> 와 같은 <code>~/.gemini/antigravity-cli/</code> 폴더에 있었습니다. 원래 들어 있던 설정은 그대로 두고 아래처럼 허용 규칙 한 줄만 더하면 됩니다.

<pre class="wp-block-code"><code class="language-json">{
  "permissions": {
    "allow": ["write_file(/private/tmp/agy-try2)"]
  }
}</code></pre>

작업 폴더의 실제 경로가 헷갈릴 때는 그 폴더에서 <code>pwd -P</code> 를 돌려 나온 값을 규칙에 쓰면 됩니다. 필자가 확인한 링크 경로는 <code>/tmp</code> 하나뿐이라서 홈 폴더 아래 다른 심볼릭 링크에서도 같은 일이 생기는지는 확인하지 못했습니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/09/06-diagram-vs.png?w=1200&#038;ssl=1" alt="안티그래비티 허용 규칙을 /tmp 로 적으면 거부되고 /private/tmp 로 적어야 write_file 이 통과하는 경로 비교 다이어그램" />

<h3>전부 허용 플래그는 빈 폴더에서만</h3>

<code>--dangerously-skip-permissions</code> 는 거부 문구가 설명하는 그대로 모든 도구를 자동 승인하는 플래그입니다. 파일 쓰기 하나를 풀려고 이 플래그를 켜면 그 폴더에서 에이전트가 하는 모든 도구 호출이 확인 없이 돌아가기 때문에 필자는 비워 둔 시험 폴더에서만 썼습니다.

에이전트에게 권한을 어디까지 줄지는 DevOps 카테고리의 <a href="https://blog.wonizz.com/2026/08/03/ai-agent-permission-recovery-cost/">AI 에이전트 권한 설계</a> 에서 되돌릴 수 있다는 믿음이 권한을 넓히는 함정으로 다룬 적이 있습니다. 허용 규칙 한 줄은 폴더 하나만 열고 전부 허용 플래그는 모든 도구를 여니 같은 문제를 풀어도 여는 범위가 크게 다릅니다.

<h3>스크립트는 종료 코드 대신 무엇을 봐야 하나요?</h3>

출력 문구와 결과 파일을 함께 봐야 합니다. 이번 시험에서 나온 신호를 스크립트가 판정할 기준으로 옮기면 아래 표처럼 됩니다. 종료 코드가 같은 0 이어도 첫 두 줄처럼 성공과 실패로 갈리니, 안티그래비티 실행 결과는 문구와 파일까지 봐야 제대로 가려집니다.

<figure class="wp-block-table">

<table><thead><tr><th>종료 코드</th><th>출력에 보이는 문구</th><th>판정</th><th>할 일</th></tr></thead><tbody><tr><td>0</td><td><code>auto-denied</code> 또는 <code>no output produced</code></td><td>실패</td><td>허용 규칙 추가</td></tr><tr><td>0</td><td>결과 파일 있음</td><td>성공</td><td>다음 단계 진행</td></tr><tr><td>1</td><td><code>code 503</code></td><td>일시 실패</td><td>20~30초 뒤 몇 번만 재시도</td></tr><tr><td>1</td><td><code>authentication timed out</code></td><td>실패</td><td>대화형으로 로그인</td></tr><tr><td>1</td><td><code>invalid model selection</code></td><td>실패</td><td>모델 이름과 effort 확인</td></tr><tr><td>127</td><td><code>command not found</code></td><td>실패</td><td>PATH 또는 절대 경로</td></tr></tbody></table>

</figure>

<strong>직접 확인 7.</strong> 허용 규칙을 <code>/private/tmp/agy-try2</code> 로 적은 실행과 전부 허용 플래그를 켠 실행은 둘 다 <code>done</code> 을 답하고 hello.txt 에 <code>hi</code> 를 남겼습니다. 테스트는 통과했는데 결과는 틀렸던 경험은 AI 코딩 카테고리의 <a href="https://blog.wonizz.com/2026/09/27/vibe-coding-reality-selftest-real-data/">테스트는 통과했는데 261편 중 6편만 맞았다</a> 에서도 다뤘는데, 성공 신호와 실제 결과를 따로 봐야 한다는 교훈이 여기서도 그대로 통했습니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/09/07-diagram-steps.png?w=1200&#038;ssl=1" alt="안티그래비티 CLI 실행 결과를 종료 코드, 출력 문구, 결과 파일 순서로 보고 성공과 재시도와 실패를 가르는 판정 흐름도" />

<h2 id="s8">8. 안티그래비티 한국어 답변 받는 법</h2>

작업 폴더에 AGENTS.md 를 두고 한국어로 답하라는 규칙 한 줄을 넣으니 영어 질문에도 한국어로 답했습니다. 빈 폴더에서 <code>agy -p "In one sentence, what does git stash do?"</code> 를 물었을 때는 아래처럼 영어로 답이 왔습니다.

<blockquote>
<code>git stash</code> temporarily shelves your uncommitted changes (both staged and unstaged) and reverts your working directory to match the <code>HEAD</code> commit,
</blockquote>

같은 폴더에서 <code>printf '# 규칙\n\n모든 답변은 한국어로 한다. 명령어와 코드는 원문 그대로 둔다.\n' > AGENTS.md</code> 로 규칙 파일을 만든 뒤 똑같이 물었더니 답이 한국어로 바뀌었습니다.

<blockquote>
<code>git stash</code>는 커밋하지 않은 작업 트리의 변경 사항을 임시 보관소에 저장하고, 작업 디렉터리를 최근 커밋(HEAD) 상태로 되돌려 놓는 명령어입니다.
</blockquote>

규칙에 명령어와 코드는 원문 그대로 두라고 적어 둔 덕분에 <code>git stash</code> 와 HEAD 는 영어 그대로 남았습니다. agy 바이너리의 안내문에는 규칙 파일 경로가 GEMINI.md, AGENTS.md, <code>.agents/rules/*.md</code> 로 나오는데 필자가 시험한 것은 AGENTS.md 하나뿐입니다.

<strong>직접 확인 8.</strong> AGENTS.md 를 넣었는데도 안티그래비티가 규칙을 따르지 않는다면 파일 위치와 이름부터 봐야 하는데요, 그런 증상은 AI 코딩 카테고리의 <a href="https://blog.wonizz.com/2026/09/19/agents-md-not-loaded/">AGENTS.md 안 읽힐 때 해결 방법 총정리</a> 에서 따로 정리해 두었습니다.
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/09/08-screenshot.png?w=1200&#038;ssl=1" alt="AGENTS.md 를 넣기 전 영어 답과 넣은 뒤 한국어 답을 나란히 보여 주는 안티그래비티 CLI 화면" />

<h2 id="s8b">안티그래비티 로그아웃과 권한 허용, 어디서 바꾸나요?</h2>

본문 시험은 2026-09-29 에 agy 1.2.13 으로 했습니다. 이 절은 2026-11-06 에 같은 컴퓨터의 agy 1.5.1 에서 <code>agy --help</code>, <code>agy help login</code>, <code>agy help logout</code>, <code>agy changelog</code> 를 읽어 확인한 것이고, 로그아웃과 허용 모드를 새로 눌러 재현한 것은 아닙니다.

<ol>
  <li><strong>로그아웃은 하위 명령이 아닙니다.</strong> <code>agy help logout</code> 과 <code>agy help login</code> 은 둘 다 <code>unknown subcommand</code> 로 답했습니다. 변경 기록에는 1.2.4 에서 인증 오류 안내에 <code>/logout</code> 과 <code>/login</code> 을 실행하라는 문구를 넣었다고 적혀 있어서, 대화형 화면 안의 슬래시 명령으로 쓰는 것으로 읽힙니다. 1.1.26 기록에는 <code>/logout</code> 이 토큰을 파일 저장소에서 바로 지운다는 내용이 있습니다.</li>
  <li><strong>권한을 미리 푸는 길은 세 가지가 도움말에 있습니다.</strong> <code>--mode</code>(accept-edits, auto, plan 중 선택), <code>--dangerously-skip-permissions</code>(모든 도구 권한 요청을 묻지 않고 승인), <code>--sandbox</code>(터미널 제한을 켠 채 실행)입니다. 이 중 필자가 7절에서 돌린 것은 <code>--mode accept-edits</code> 와 <code>--dangerously-skip-permissions</code> 이고, 편집 허용 모드는 헤드리스에서 파일 쓰기를 풀지 못했습니다. 나머지는 도움말 설명만 읽었습니다.</li>
  <li><strong>한 번 허용한 동작은 대화 전체에 적용됩니다.</strong> 변경 기록 1.4.6 에 대화에서 동작을 허용하면 메인 에이전트와 하위 에이전트 모두에 적용된다고 적혀 있습니다. 여러 줄 명령의 항상 허용 규칙이 먹지 않던 문제는 1.4.9 에서 고쳐졌다고 합니다.</li>
</ol>

<h2 id="s9">9. 안티그래비티 CLI 로 안 되는 것과 확인 못 한 것</h2>

이번에 풀지 못했거나 확인하지 못한 것을 그대로 남깁니다. 같은 증상을 찾아 들어온 분이 여기서 헛걸음하지 않도록 무엇을 안 봤는지까지 적어 두는 편이 낫다고 봤습니다.

<ol>
  <li><strong>헤드리스는 권한을 묻지 못합니다.</strong> <code>-p</code> 로 부른 에이전트는 사람에게 확인을 받을 수 없어서 허용 규칙에 없는 도구를 자동으로 거부했고 편집 허용 모드도 파일 쓰기를 풀지 못했습니다</li>
  <li><strong>거부돼도 종료 코드는 0 입니다.</strong> 이번 시험에서 권한 거부는 세 번 모두 0 으로 끝나서 종료 코드만으로는 실패를 알 수 없었습니다</li>
  <li><strong>503 은 사용자 쪽에서 막을 수 없었습니다.</strong> 필자가 할 수 있었던 일은 기다렸다 다시 돌리는 것뿐이었습니다</li>
  <li><strong>not logged into 줄의 원인은 모릅니다.</strong> 정상 실행에서도 매번 58줄이 찍혔고 왜 찍히는지는 확인하지 못했습니다</li>
</ol>

아래 네 가지는 이번에 확인하지 못한 항목입니다.

<figure class="wp-block-table">

<table><thead><tr><th>항목</th><th>상태</th><th>이유</th></tr></thead><tbody><tr><td>IDE(데스크톱 앱) 설치와 실행 오류</td><td>확인 못 함</td><td>이 맥에 IDE 를 설치하지 않았다</td></tr><tr><td>코드 붙여넣기로 로그인 완료</td><td>확인 못 함</td><td>새 인증을 만들지 않으려고 끝까지 가지 않았다</td></tr><tr><td>모델 오류 때 exit 3 과 AGY_ERROR 줄</td><td>확인 못 함</td><td>1.2.10 변경 기록에 있는 항목이지만 재현하지 못했다</td></tr><tr><td>GEMINI.md 와 <code>.agents/rules</code> 규칙 파일</td><td>확인 못 함</td><td>AGENTS.md 만 시험했다</td></tr></tbody></table>

</figure>

IDE 에서 나는 안티그래비티 오류를 찾으셨다면 이 글은 CLI 만 다루니 <a href="https://antigravity.google/" target="_blank" rel="noopener">Google Antigravity 공식 사이트</a> 의 안내를 먼저 보시는 편이 빠릅니다. 버전이 바뀌면 문구와 동작이 달라질 수 있는데 이 글에 옮긴 원문 문구는 로그아웃과 권한 절(agy 1.5.1 도움말, 2026-11-06)을 빼면 전부 agy 1.2.13 에서 나온 것입니다.

<h2 id="s10">10. 정리: 누구에게 맞고 누구에게는 굳이인가, 그리고 운영자 의견</h2>

이 글이 가장 쓸모 있는 쪽은 안티그래비티 CLI 를 SSH 나 스크립트에서 <code>-p</code> 로 부르는 분인데요, 로그인 시간 초과와 권한 거부와 503 이 모두 이 경로에서 나왔고 그중 권한 거부는 종료 코드 0 이라 모르고 지나가기 쉬웠습니다. 증상 문구를 검색해 들어오셨다면 1절 표에서 자기 문구를 찾고 해당 절로 바로 가시면 됩니다.

굳이인 쪽은 IDE 만 쓰시는 분입니다. 필자는 IDE 를 설치하지 않아서 그쪽 오류는 한 줄도 다루지 못했고 대화형 <code>agy</code> 로만 쓰는 분이라면 헤드리스처럼 권한을 자동으로 거부당하지는 않을 테니 7절의 함정은 밟을 일이 드물 것 같습니다. 대화형에서 권한을 묻는 화면은 이번에 따로 확인하지 않았습니다.

안티그래비티 CLI 를 새로 깐 날이라면 필자가 겪은 순서를 거꾸로 밟지 않도록 아래 네 가지를 차례로 보는 편이 시간을 아낍니다.

<ol>
  <li><code>agy --version</code> 이 새 셸에서 도는지 보고 안 되면 PATH 에 <code>~/.local/bin</code> 을 넣습니다</li>
  <li>옵션 없이 대화형 <code>agy</code> 를 띄워 로그인을 한 번 끝낸 뒤에 <code>-p</code> 로 넘어갑니다</li>
  <li><code>agy models</code> 로 쓸 모델 이름을 확인하고 pro 계열이면 <code>--effort</code> 값을 함께 줍니다</li>
  <li>파일을 쓰게 할 폴더는 <code>pwd -P</code> 로 실제 경로를 확인해 허용 규칙에 적습니다</li>
</ol>

이번에 일곱 가지를 직접 내 보면서 필자가 가장 크게 느낀 것은 오류 문구가 대부분 해결 방법을 이미 품고 있었던 반면 종료 코드는 그만큼 믿을 수 없었던 일이었습니다. <code>requires --effort (available: low, high)</code> 는 넣을 값을 알려 줬고 권한 거부 문구는 settings.json 의 어느 키에 무엇을 넣을지까지 알려 줬는데, 같은 실행의 종료 코드는 성공을 말하고 있었으니 운영자로서는 문구 쪽을 믿어야 했습니다.

<h3>필자의 결론</h3>

<strong>스크립트에서 안티그래비티 CLI 를 부를 때 필자는 종료 코드 대신 출력 문구와 결과 파일로 성공을 판정하기로 정했습니다.</strong> 파일 쓰기 권한은 <code>pwd -P</code> 로 확인한 실제 경로의 허용 규칙 한 줄로만 열고, <code>--dangerously-skip-permissions</code> 는 비워 둔 시험 폴더에서만 씁니다. 503 은 출력에 <code>code 503</code> 이 보일 때만 20~30초 간격으로 몇 번 다시 돌리고 그래도 안 되면 멈추게 둡니다.
<h2 class="wp-block-heading">함께 보면 좋은 글</h2>
<ul class="wp-block-list"><li><a href="https://blog.wonizz.com/2026/10/14/claude-code-install-errors/?from=3938">[AI 코딩] 클로드 코드 설치 오류, 깔았는데 명령을 못 찾은 일</a></li><li><a href="https://blog.wonizz.com/2026/10/16/claude-code-gate-exit-code/?from=3938">클로드 코드 테스트 게이트 exit 1 대 2, 통과한 쪽과 막은 쪽은 무엇이 달랐을까</a></li><li><a href="https://blog.wonizz.com/2026/11/25/claude-code-auto-approve/?from=3938">클로드 코드 자동 승인, 다섯 모드 중 끝까지 한 건 둘뿐</a></li></ul>
<p class="wp-block-paragraph">여러분의 스크립트는 안티그래비티가 낸 종료 코드만 보고 성공을 판정하고 계신가요?</p>
<p>The post <a rel="nofollow" href="https://blog.wonizz.com/2026/10/03/antigravity-cli-errors/">[AI 코딩] 안티그래비티 오류 7가지, 로그인 안됨과 권한 거부 해결</a> appeared first on <a rel="nofollow" href="https://blog.wonizz.com">WONIZZ.LOG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.wonizz.com/2026/10/03/antigravity-cli-errors/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3938</post-id>	</item>
	</channel>
</rss>
