Autonomous build assistant that generates Dockerfiles, ingests repos into Qdrant, and self-heals via LLM.
Project description
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.
✨ 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hello_build_agent-0.5.6.tar.gz.
File metadata
- Download URL: hello_build_agent-0.5.6.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33147e6ef2bf6ef55965508955a95616060063afdde1c86a01030c61eb5df1d9
|
|
| MD5 |
9f9684de395229f35c7b5d38a3588468
|
|
| BLAKE2b-256 |
b2c35263849ab5b4022b892e0f34b43c6f64551687ea592f7c26ff336c1b1d40
|
Provenance
The following attestation bundles were made for hello_build_agent-0.5.6.tar.gz:
Publisher:
ci-cd.yml on x0iv/hello-build-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hello_build_agent-0.5.6.tar.gz -
Subject digest:
33147e6ef2bf6ef55965508955a95616060063afdde1c86a01030c61eb5df1d9 - Sigstore transparency entry: 245642086
- Sigstore integration time:
-
Permalink:
x0iv/hello-build-agent@0cef6ee656c4838fc328d7d2adfa1b801bb63503 -
Branch / Tag:
refs/tags/v0.5.6 - Owner: https://github.com/x0iv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@0cef6ee656c4838fc328d7d2adfa1b801bb63503 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hello_build_agent-0.5.6-py3-none-any.whl.
File metadata
- Download URL: hello_build_agent-0.5.6-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b687c93b1a7eaf8e8d135b10f9bdc6cfb4a3764b0c93225a4a803110f4fd782e
|
|
| MD5 |
8da4234fc77b7420ce5bfdaf94c5eff4
|
|
| BLAKE2b-256 |
78344c1c8fe8867c3185e8a7538f2510d7a67356ba560fb182d95f2082b9ec3b
|
Provenance
The following attestation bundles were made for hello_build_agent-0.5.6-py3-none-any.whl:
Publisher:
ci-cd.yml on x0iv/hello-build-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hello_build_agent-0.5.6-py3-none-any.whl -
Subject digest:
b687c93b1a7eaf8e8d135b10f9bdc6cfb4a3764b0c93225a4a803110f4fd782e - Sigstore transparency entry: 245642087
- Sigstore integration time:
-
Permalink:
x0iv/hello-build-agent@0cef6ee656c4838fc328d7d2adfa1b801bb63503 -
Branch / Tag:
refs/tags/v0.5.6 - Owner: https://github.com/x0iv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@0cef6ee656c4838fc328d7d2adfa1b801bb63503 -
Trigger Event:
push
-
Statement type: