Troubleshooting
Fixes for common PentAGI problems — a flow that fails on its first model call, tool-call parser errors, macOS installer warnings and stalled small models.
Start with the logs of both sides of a connection: docker compose logs -f pentagi for PentAGI and the logs of your model backend or proxy.
A flow fails with "failed to select primary docker image via llm call"
The first thing a flowflowOne run of PentAGI: a goal, the tasks created from your messages, and everything the agents did along the way. does is ask the model to choose a Docker image, through the simple agent typeagent typeThe role an agent plays, such as pentester, coder or searcher. Model settings are chosen per agent type.. This error almost always points at the model backend, not at Docker:
- Check the PentAGI logs and your model backend's logs.
- Verify the base URL, API key and model name are correct and reachable from the container.
- This call sends no toolstoolWhat an agent acts through: a built-in capability such as the terminal, the isolated browser or web search, or a program in the sandbox such as nmap, metasploit or sqlmap., so it fails on the connection, the key or the model, not on tool calling: check that the
simpleagentagentAn AI agent of PentAGI: a model with its own prompt, settings and tools that does one kind of work in a flow, such as testing, writing code or searching the web.'s model answers a plain chat request. A missing tool-call parser shows up later, once agents start calling tools.
Tool-call parser errors with self-hosted models
PentAGI drives agents with tool callstool callA request from the model to run one of the agent's tools, such as a terminal command or a web search., so a custom backend must return valid OpenAI-style tool-call JSON. Symptoms of a missing or mismatched parser include Failed to parse tool call arguments as JSON, flows that stop after a few steps, and tool calls that loop without converging.
- Enable the tool-call parser and chat template recommended for the model you serve in llama.cpp, SGLang or vLLM.
- Validate the providerproviderA service or server that gives PentAGI its language models, such as OpenAI, Anthropic or a local Ollama. with the
ctesterutility before running a full flow. - Update PentAGI: recent builds sanitize malformed arguments so one bad response no longer stalls a flow.
macOS flags the installer
The macOS builds are signed and notarized. If macOS still warns about the installer, do not override it with Open Anyway: delete the file and download the archive for your CPU again from the official links — darwin/ for Intel, darwin/ for Apple silicon. Never reuse an archive from an unofficial source.
Smaller models get stuck
Enable execution monitoring and task planning and give the adviser agent a stronger model or a higher reasoning setting.
Still stuck?
Ask in Discord or open an issue with the relevant log lines.
Last updated on