Skip to main content

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.

PyPI CI Docker

ChangelogLicense

Build Agent Demo

✨ Key features

🧩 Description
LLM-driven Dockerfile Uses OpenAI (GPT-4o* 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 image 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hello_build_agent-0.5.5.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hello_build_agent-0.5.5-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file hello_build_agent-0.5.5.tar.gz.

File metadata

  • Download URL: hello_build_agent-0.5.5.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hello_build_agent-0.5.5.tar.gz
Algorithm Hash digest
SHA256 83fb6e70a6563a1f933729f46d3c76b3c787ce41dca2c791fbf9a8e95169215b
MD5 c9d91ddac63dca7793798a4f52afff7b
BLAKE2b-256 e230897cd5228524ccfa450e8f7f25b1798834af246de6e73ded555a0c0697e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for hello_build_agent-0.5.5.tar.gz:

Publisher: ci-cd.yml on x0iv/hello-build-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hello_build_agent-0.5.5-py3-none-any.whl.

File metadata

File hashes

Hashes for hello_build_agent-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a42b1ef91ba0d01a4decabe7c0d771376cd86bbbca4fdbc9fc6f47f25fe5b259
MD5 5a492c97aaaebdf79a8e99f00fdca8aa
BLAKE2b-256 953a5e13be31340b778c57c2113345413174a33e8a183a55b244b89a57bc9bab

See more details on using hashes here.

Provenance

The following attestation bundles were made for hello_build_agent-0.5.5-py3-none-any.whl:

Publisher: ci-cd.yml on x0iv/hello-build-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page