agbrowse 문서

가이드

ChatGPT 코드 zip을 생성하고 다운로드 버튼 없이 회수합니다.

web-ai code는 ChatGPT 전용입니다. saved dev-agent context를 첨부하고 strict prompt를 보낸 뒤 sandbox zip을 provider download API로 회수해 검증합니다.

Plan 파일 요구사항

새 code artifact에는 반드시 PLAN.md 또는 00_plan.md가 있어야 합니다. 회수한 zip에 plan 파일이 없으면 code-mode pipeline이 fail-closed됩니다. 이 요구사항 이전에 만든 오래된 artifact에는 plan 파일이 없을 수 있습니다. code-extract로 여전히 회수할 수 있지만, 기존 conversation에 대해서는 plan-file contract가 강제되지 않습니다.

단일 artifact

agbrowse web-ai code \
  --vendor chatgpt \
  --model thinking \
  --effort medium \
  --prompt "여기에 설명한 앱을 만들어 주세요." \
  --output-zip ./result.zip

--output-zip을 생략하면 현재 작업 디렉터리에 code-artifact-<conversation>.zip으로 저장됩니다.

여러 artifact

agbrowse web-ai code \
  --vendor chatgpt \
  --model thinking \
  --effort medium \
  --multi-zip \
  --output-dir ./artifacts \
  --prompt "backend.zip과 frontend.zip을 만들어 주세요."

--multi-zip--output-zip은 같이 쓸 수 없습니다. 여러 zip 파일이 저장될 위치를 --output-dir로 지정합니다. --output-dir을 생략하면 현재 작업 디렉터리에 저장됩니다.

나중에 다시 회수

code-extract는 새 prompt를 보내지 않고 접근 가능한 ChatGPT conversation에서 기존 zip artifact를 다시 회수합니다. 네 가지 selector를 사용할 수 있습니다:

Selector사용법
--url전체 ChatGPT conversation URL
--conversationconversation ID만
--sessionagbrowse session ID (agbrowse로 만든 conversation인 경우)
(없음)현재 ChatGPT conversation 탭 사용
# URL로 회수
agbrowse web-ai code-extract \
  --vendor chatgpt \
  --url "https://chatgpt.com/c/<conversation-id>" \
  --output-zip ./result.zip

# session ID로 회수
agbrowse web-ai code-extract \
  --vendor chatgpt \
  --session "$SID" \
  --output-zip ./result.zip

# 하나의 conversation에서 여러 zip 회수
agbrowse web-ai code-extract \
  --vendor chatgpt \
  --url "https://chatgpt.com/c/<conversation-id>" \
  --multi-zip \
  --output-dir ./artifacts

extractor는 저장된 conversation JSON에서 /mnt/data/*.zip을 스캔하고 provider download URL을 생성해 page 내에서 cookie-bound payload를 가져온 후 zip을 검증하고 로컬에 저장합니다. 원래 conversation URL/session/현재 탭과 로그인된 ChatGPT browser profile이 필요합니다.