Skip to main content

hello-build-agent

Autonomous DevOps side-kick
Clones any public repo, indexes docs to Qdrant, asks an LLM to craft the optimal Dockerfile, then builds, self-repairs and logs every step.

PyPI CI Docker GHCR

Changelog • License

Demo


✨ Key features

🧩 Description
LLM-driven Dockerfile Uses OpenAI (gpt-4o-mini* by default) to propose a minimal, working Dockerfile based on real file-tree analysis.
Self-healing loop If the image fails to build, the agent feeds the error back to the LLM → receives a patch → retries ― until success or user input.
Qdrant ingestion & search README and file-tree chunks are embedded and stored in Qdrant; you can query them later (query_qdrant).
Quota guards Two env-controlled limits: QUOTA_TOKENS, QUOTA_FAILS ― agent pauses and asks the human before overspending.
Live Rich logs Timestamp · action · comment · token-counter, neatly aligned and colourised.
CI/CD ready GitHub Actions → PyPI wheel + Docker Hub & GHCR images on each vX.Y.Z tag.

* Change the model with the MODEL env var or --model CLI flag.


🚀 Quick start

./quickstart.sh

build_logs/ and workspace/ are mounted on the host for inspection.


🛠️ CLI flags & env vars

CLI flag / env Default Purpose
--docker-host / DOCKER_HOST tcp://dind:2375 Where to talk to Docker daemon
--qdrant-url / QDRANT_URL http://qdrant:6333 Qdrant instance
--model / MODEL gpt-4o-mini OpenAI model name
QUOTA_TOKENS 10000 Ask human after this many tokens
QUOTA_FAILS 3 Ask human after N consecutive build errors
DISABLE_HITL false true → fully autonomous, no prompts

🧭 Architecture (90 sec overview)

CLI ─┬─ SystemPrompt (strict JSON contract)
     │
     ├─ loop.py  (LLM ↔ actions ↔ tracker/logs)
     │     ├─ tracker  ─── prints Rich log & enforces quotas
     │     ├─ actions  ─── clone, ingest, build, …
     │     └─ logger   ─── file logs (.log) for post-mortem
     │
     └─ docker_io.py  ── minimal, tail-aware build helper

📜 License

This project is distributed under the MIT License (see LICENSE).


Made with ❤️ & LLM-powered automation.

Metadata

Release files for hello-build-agent 0.5.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hello-build-agent 0.5.6
File Size Uploaded
hello_build_agent-0.5.6.tar.gz 1.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for hello-build-agent 0.5.6
File Interpreter ABI Platform
hello_build_agent-0.5.6-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / hello_build_agent-0.5.6.tar.gz

Download URL hello_build_agent-0.5.6.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
33147e6ef2bf6ef55965508955a95616060063afdde1c86a01030c61eb5df1d9
BLAKE2b-256 checksum
How to use checksums
b2c35263849ab5b4022b892e0f34b43c6f64551687ea592f7c26ff336c1b1d40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 21, 2025.

Transparency log

Release files / hello_build_agent-0.5.6-py3-none-any.whl

Download URL hello_build_agent-0.5.6-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b687c93b1a7eaf8e8d135b10f9bdc6cfb4a3764b0c93225a4a803110f4fd782e
BLAKE2b-256 checksum
How to use checksums
78344c1c8fe8867c3185e8a7538f2510d7a67356ba560fb182d95f2082b9ec3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 21, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.6 This release

2 release files

0.5.5

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page