How to install packages in Agent Mode? #6325
Replies: 1 comment
|
Host packages are not visible inside the Agent container. The current image is based on The durable solution is to add docker compose up -d --build --force-recreate odysseus
docker compose exec odysseus unzip -vCommit that Dockerfile change in a fork or maintained branch so updates remain reproducible. A temporary installation is possible: docker compose exec --user root odysseus sh -lc "apt-get update && apt-get install -y --no-install-recommends unzip && rm -rf /var/lib/apt/lists/*"That survives a restart of the same container but is lost when it is rebuilt or recreated. Do not give Agent Mode permanent root access; bake approved tools into the image instead. For ZIP extraction specifically, Python is already present and may be enough without another package: python -m zipfile -e archive.zip destination/The project itself uses Python |
Uh oh!
There was an error while loading. Please reload this page.
In Agent Mode, the LLM will run some commands such as
python,ls, and etc.But from time to time, there are packages that are not installed.
For example
unzip. Which fails with the messageI do have

unzipinstalled in my host, but it is missing in the docker container.How to install missing packages for the Agent to use?
All reactions