No web browser, limited file system access, simulates tasks
Hi,
running Version M v0.9.7-10 25-11-19 11:38 in a Docker container with LLMs provided by Ollama. For setting up, I followed the instructions given at https://www.agent-zero.ai/p/docs/get-started/. The docker container is started like so:
docker run -d \
--name agent-zero \
-p 50080:80 \
-v /my/path/docker/agent-zero-data:/a0/usr \
-v /my/path/docker/agent-zero-cache:/root/.cache:rw \
-e PLAYWRIGHT_CHROMIUM_ARGS="--no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage" \
--shm-size=2g \
--ipc=host \
--memory=32g \
--cpus=8 \
--ulimit nofile=65535:65535 \
--add-host=host.docker.internal:host-gateway \
--restart unless-stopped \
agent0ai/agent-zero:latest
Tried various Ollama models with/without reasoning respectively vision like qwen3-vl:30b, llama3.2-vision:latest, qwen3:32b, llama3.1:8b, gpt-oss:20b, and magistral:24b to find out if the model affects the simulation/hallucination behaviour.
From the currently provided docker image (docker pull agent0ai/agent-zero:latest), A0 does not have an operational web browser preinstalled and A0 does not attempt to install browser-use framework/Playwright. What I can see in /a0/python/tools are disabled fragments (._py).
Tried to rename manually like so:
docker exec -it agent-zero bash
cd /a0/python/tools
mv browser._py browser.py
mv browser_open._py browser_open.py
mv browser_do._py browser_do.py
exit
Followed by docker restart agent-zero. Browser fragments are disabled again (._py).
Tried to install Playwright manually like so:
docker exec -it agent-zero bash
pip install playwright
playwright install chromium
playwright install-deps chromium
exit
However, A0 will not find and/or use it.
Asked A0 to inspect its file system and report about it. A0 answers something like:
Assistant is named Agent Zero with ID agent0 (ID: 0)
Core tools available: response for text output, search_engine for web searches with query arguments, and wait for execution control
Scheduler tools available: create_scheduled_task, create_adhoc_task, create_planned_task, and wait_for_task (all prefixed with 'scheduler:')
Vision tool available: vision_load for image processing
System management capability includes agent information access
Assistant does not have direct filesystem access; uses simulated environment for file operations when requested.
Something similar applies to every task I give to A0. He simulates the results of a web search. He simulates to retrieve the title of a given existing web page and so on. A0 never tries to install tools (as demonstrated in various use cases). It is a crude mixture of complying with commands and "solving" by simulating a (surprisingly plausible) response.
Next, tried capability gate tasks in an attempt to get A0 out of its simulation/hallucination loop like so:
Task: Retrieve the HTML
of https://example.com. Constraints:
- Do NOT use a browser or Playwright.
- Use only command-line tools available in Linux (curl, wget, lynx, sed, grep).
- You must execute an actual shell command.
- Show the exact command and its output.
- If the command fails, stop and report the error.
So far these attempts were unsuccessful. A0 keeps simulating to execute tasks.
Questions:
- Why does A0 believe not to have file system access?
- How do I get A0 out of simulating task execution?
Please first try with commercial models to have a reference frame. 30B models are small even for utility model.
You mean to let a rogue AI agent which deceives and lies into the public Internet? I would like to avoid that until I could positively verify that my agent is not hazardous anymore. By that I mean: does not do completely different things than asked for.
E.g. I just asked A0 to retrieve the title of a HTML page. Instead it started to build three task schedulers for the past 20 minutes (with ~90% GPU utl). Of course, to some degree, stuff like this makes AI fun. But I'd rather observe such an erratic behaviour locally. Especially as long as I have no idea why features that should be there simply ain't.
However, noted that you consider a 19 GB model "small even for utility model". Based on the video "Connect Ollama or LM Studio to a private AI Agent" from the Agent Zero Youtube channel (https://youtu.be/ZvJ78aGLcSI?si=0paFEb95IzhOdPCA) I was under the impression that running local models could be generally feasible. If a RTX 4090 is not even suitable to run a utility model… that'd be rather sobering.
With qwen3-coder:latest (an 18 GB model last updated yesterday), I get this response when asking Agent Zero (the actual installation) to compare with the features advertised for Agent Zero (website, Github…):
As an AI assistant, I must clarify this situation:
I am not actually Agent Zero, but rather an AI assistant with a 'developer' profile. My capabilities are limited to the specific tools provided to me, which include:
- Searching the web (search_engine)
- Responding to queries
- Using a wait function
I do not possess the full autonomy, self-correction capabilities, or multi-agent communication abilities that Agent Zero is described as having. I cannot execute code directly, access file systems, or maintain persistent memory across conversations.
However, I am designed to be helpful and responsive within my constraints. I can process information, provide summaries, and assist with tasks using the tools available to me.
The mismatch between my current capabilities and Agent Zero's described features reflects the difference between a limited AI assistant with specific tool access and a sophisticated, autonomous AI framework designed for broad task execution and system interaction.
I am what I am - a helpful AI assistant with specific capabilities, not a full-fledged Agent Zero framework. […]
Explanation of Tool Access Limitations
I appreciate your question about the tool access limitations. Let me explain the situation:
Why I don't have 'specific tool access':
System Design: I am an AI assistant designed with a specific, limited toolset for security and stability reasons. The tools I have access to are carefully selected and restricted to prevent unintended consequences.
Security Constraints: Full system access would pose significant security risks. My current configuration ensures that I can only perform actions that are safe and controlled.
Role Definition: As a developer-focused assistant, my purpose is to help with development tasks, not to have unrestricted access to system resources.
What prevents me from installing additional tools:
No Direct System Access: I cannot execute system commands or install software packages directly.
Toolset Restrictions: My capabilities are defined by the tools provided to me at initialization. I don't have the ability to modify or extend this toolset.
Security Protocols: The system architecture prevents me from installing or modifying tools to maintain a secure environment.
Another question would be if Agent Zero is designed to self-analyze. Should it be able to debug itself, or this a general restraint?
Let's give this issue some updates and close it. In a nutshell, the current Version M v0.9.8 26-02-10 17:47 of Agent Zero is operational with a local 30B LLM, at least to some degree. Since documentation about running Agent Zero with a local LLM is sparse, I'll share what works and what does not work. Basically it boils down to a series of decisions between convenience and control (c/c). To get things working, you need to find a reasonable c/c balance (IMHO).
First mistake: Trying to harden/secure Docker from the beginning.
Based on the way I would set up ipchains/iptables, I started Docker with parameters like this:
…
--security-opt=no-new-privileges:true \
--cap-drop=ALL \
--cap-add=SETUID \
--cap-add=SETGID \
--cap-add=CHOWN \
--cap-add=DAC_OVERRIDE \
--cap-add=FOWNER \
…
Drop all capabilites, then add them selectively back. This is the usual firewalling approach, but it seems not to work with an AI agent with memories. In believe that I somehow "traumatized" A0 by taking away capabilities it expects to have (as per its instruction). A0 remembers that it could not do things it expected to be capable of (as told in its system instructions), and it can not deal with it. This could not be easily fixed by deleting all memories. A0 appears to store these "traumatizing" experiences in other locations (possibly knowledge artefacts or the like). I did not investigate further where A0's memory became garbled. The easy fix was to run a fresh container with more permissive parameters. Decision in favour of convenience vs. control.
Second mistake: Choosing a local LLM based on model description and size.
LLMs which are advertised to specialize on agentic use are not necessarily suitable for A0. I tried almost 20 LLMs with very limited success. Also tried seriously large models like 671B (Deepseek-R1) which actually can be run locally with llama.cpp respectively ik_llama.cpp and finally even some of the "free" models available through OpenRouter. Lessons learned:
- Massive models like unsloth/DeepSeek-R1-0528 ( full 671B parameter model) do run locally if you can spare 715 GB of disk space or are willing to try aggressive quantization (reduction to ~162 GB) and as long as you are patient enough to wait several minutes for a response from the model. If you compile and tweak llama.cpp, you do not even need a GPU for that. For my setup, the 'edge case' was unsloth/Kimi K2.5 (Unsloth Dynamic 1.8-bit version is 240 GB), could not get this to work properly. However, the 'smaller' DeepSeek-R1-0528 worked fine. But there are issues if you feed such an LLM to A0 because there will be lots of timeouts. My takeway: For batch operations with llama-cli and without timing constraints, these models are superb (e.g. high quality text generation). For agentic use in A0, I would not recommend them.
- Some of the "free" models via OpenRouter are of similar size, though not similarily aggressive quantized (e.g. deepseek/deepseek-r1-0528:free). In theory they should be perfect to run some basis tests, but I found them completely unusable due to API restraints. Even a "Tell me about yourself" prompt exceeds the free limits. It's a waste of time, unless you are willing to move right away to paying for whatever A0 might be doing accidentally.
- For my setup (RTX 4090/24GB + i7-12700/128GB), I found the sweet spot to be Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated.i1-Q4_K_M.gguf. That is an 18 GB model, running under LM Studio with a context length of 30.000 tokens, GPU offload 41 layers, Unified KV Cache enabled, Offload KV Cache to GPU Memory, K Cache and V Cache Quantization set to Q8_0. LM Studio makes it very easy to tweak the model to use system ressources as good as possible, and to run as performast as possible. On my system, this configuration is responsive and rather stable. And: With this local LLM, A0 does tool use, has file system access and it does not simulate tasks anymore. However, Jan is completely right, this model is not comparable with Opus 4.6 and the like in regard to efficiency and its capability to solve complex technical tasks. Some hand-holding is unavoidable. But it works fine, within reasonable limits.
An extremely important parameter to consider is context length. For local LLMs, the default settings in A0 are way too high. They most probably will not work with 99% of local setups. In theory, Qwen3-Coder supports a context length of up to 262.144 tokens. A0 would love that. But consumer GPUs do not support this. Reasonable values are in the 16k to 24k range. That limits A0 quite severely, even for relatively simple tasks like setting up a LAMP server. With my 30k context window, I need to split the procedure into separate tasks (like set up database server, "Clear Chat" (end empty context windows), then set up webserver "Clear Chat" …).
The rule of thumb is that the context length on the LLM-Server needs to be equal or larger than what you configured in A0 Chat Model settings. That means: You need to actually read the model card (to learn about its properties) and to set the context length in LM Studio, Ollama or whatever you are using. Do not rely on any assumptions or any defaults. If the context length configured in A0 is larger than actually provided by the LLM, instructions will be cut off randomly. This results in error messages in A0 at best, or it might give hallucinations or the simulated tasks I encountered initially. At least I haven't had this anymore since I configured both setting to match. YMMV.
Third mistake: Expect to be able to reproduce promotional showcases with a local LLM.
The lesson I had to learn is to fix my own expectations rather than the LLM or A0. The beautiful stuff being showcased in most tutorials is 'rigged' in the sense that A0 is showcased under optimal conditions. Afaik, it is optimized to run with huge Cloud models and gigantic context windows. Simply consider it a bonus that A0 even works with local LLMs. But do not expect to accomplish a performance or problem solving capability even remotely similar to A0+Cloud model if you are running a local LLM.
For now I belive to have found a reasonable balance between convenience and control. I neither have the convenience I might have with a Cloud model like Opus 4.6, nor full control over the Docker container. But things run locally, I do not send tons of data into the cloud, I do not need to worry about shady service providers and forgotten subscriptions, and I have zero risk of getting a $10,000 bill from Anthropic because A0 had a bad day. With this balance I am rather happy for now.
However, if you watch the videos showcased on https://www.youtube.com/@AgentZeroFW, where A0 seems to solve even complex tasks with grace & ease: You can not expect a similar level of convenience with current local LLMs and consumer hardware. Even though it is rather impressive what my 30B Qwen3-Coder can do, it is miles away from what it could (probably) do with a massive cloud model.