Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

docker-optimizer: complete rewrite with a smaller prompt and smaller toolset#20

Merged
samalba merged 3 commits into
dagger:mainfrom
samalba:dockerfile-optimzer2
Mar 11, 2025
Merged

docker-optimizer: complete rewrite with a smaller prompt and smaller toolset#20
samalba merged 3 commits into
dagger:mainfrom
samalba:dockerfile-optimzer2

Conversation

@samalba
Copy link
Copy Markdown
Contributor

@samalba samalba commented Mar 8, 2025

This is a complete rewrite of the initial implementation of the dockerfile-optimizer agent.

The new version implements a better pattern that aims for better results in the optimization, leaving less control to the LLM, reducing the randomness in result. There is a simple eval done with wagoodman/dive to assess the Dockerfile optimization and calling the LLM in a loop as needed.

This also shows a better example of leveraging the Dagger API while calling the LLM only when needed (which also has access to the API via the Workspace).

samalba added 3 commits March 7, 2025 17:13
…toolset

Signed-off-by: Sam Alba <216487+samalba@users.noreply.github.com>
Signed-off-by: Sam Alba <216487+samalba@users.noreply.github.com>
Signed-off-by: Sam Alba <216487+samalba@users.noreply.github.com>
@samalba samalba marked this pull request as ready for review March 11, 2025 17:07
@samalba samalba merged commit 9021b43 into dagger:main Mar 11, 2025
@samalba samalba deleted the dockerfile-optimzer2 branch March 11, 2025 17:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant