Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I Give My AI Agent a Git Link and Get Back a Live App. Here's What It Does When the Build Breaks.

Описание и применение

Автоматизация цикла развертывания приложения: агент создает сервис, запускает сборку из репозитория, читает логи, исправляет ошибки, повторяет сборку и проверяет живой URL.

Задача

Automating the deployment loop for a Git-hosted app so an AI agent can build, detect failures, fix code, and redeploy without human intervention.

Результат

The agent can fully automate the deployment loop, handling failures by reading logs, applying fixes, and redeploying until the app is live.

Рабочий процесс

  • Create a service with placeholder image "pending" and port 3000 via POST /v1/services
  • Start a build from a git URL with source_type "git", source_url, and source_ref (commit SHA) via POST /v1/services/{svc}/builds
  • Stream the build output with GET /v1/services/{svc}/builds/{build}/logs?follow=true
  • When build fails, retrieve the full log with GET /v1/services/{svc}/builds/{build}/logs and status with GET /v1/services/{svc}/builds/{build}
  • Parse the last 40 lines of the log to identify the error
  • Fix the code (e.g., run npm install, commit lockfile), push to repo, and start a new build with the new SHA
  • After deployment success, check service status and URL with GET /v1/services/{svc} and request the URL to confirm it answers

Доказательства

agentic-hosting is a single program called ah that runs on your server. Agents talk to it over an HTTP API.

Источник

Create a service, the server's name for one app.

Источник

Start a build from a git URL.

Источник

Stream the build output.

Источник

If it fails, read the end of the log.

Источник

Fix the code, push, and build again.

Источник

When it's running, check the URL.

Источник

  • Дата записи: 2026-10-21T15:41:22.907Z