Common issues and solutions for Agent OS.
Problem: After installing, the agentos command isn't found.
Solutions:
-
Ensure pip scripts are in PATH:
# Linux/macOS export PATH="$HOME/.local/bin:$PATH" # Or use Python module directly python -m agent_os.cli --help
-
Reinstall with pip:
pip install --force-reinstall agent-os
-
Check installation:
pip show agent-os
Problem: Python can't find the agent_os module.
Solutions:
-
Check you're in the right Python environment:
which python pip list | grep agent-os -
Install in the correct environment:
python -m pip install agent-os-kernel
Problem: ImportError: redis adapter requires 'redis' package
Solution: Install the specific extra:
pip install agent-os-kernel[redis]
pip install agent-os-kernel[kafka]
pip install agent-os-kernel[full] # All extrasProblem: Code is being blocked that should be allowed.
Solutions:
-
Check active policies:
agentos audit
-
Review your policy file:
cat .agents/security.md # or .agent-os.yaml -
Test with permissive mode:
kernel = KernelSpace(policy="permissive") # Logs only
-
Add an exception:
policies: - name: block_secrets exceptions: - "test_api_key" # Allow this specific pattern
Problem: Agent is killed but the reason isn't clear.
Solution: Enable verbose logging:
import logging
logging.basicConfig(level=logging.DEBUG)
kernel = KernelSpace(policy="strict", debug=True)Problem: Agent seems stuck.
Solutions:
-
Check for SIGSTOP:
# Agent may be paused waiting for approval # Check your notification channels
-
Add timeout:
result = await asyncio.wait_for( kernel.execute(my_agent, task), timeout=30.0 )
-
Check rate limits:
# Rate limits may be pausing execution policies: - name: rate_limit limits: - action: llm_call max_per_minute: 60
Problem: Agent consumes too much memory.
Solutions:
-
Limit response sizes:
from atr.tools.safe import HttpClientTool http = HttpClientTool(max_response_size=1_000_000) # 1MB limit
-
Clear episodic memory:
memory.clear(conversation_id)
-
Use streaming for large responses:
# Process data in chunks instead of loading all at once
Problem: Can't connect to message broker.
Solutions:
-
Check broker is running:
# Redis redis-cli ping # Kafka kafka-topics.sh --list --bootstrap-server localhost:9092
-
Verify connection string:
broker = RedisBroker(url="redis://localhost:6379/0") # Check URL
-
Check firewall/network:
telnet localhost 6379
Problem: Published messages don't reach subscribers.
Solutions:
-
Verify topic names match:
# Publisher await bus.publish(Message(topic="tasks", ...)) # Subscriber - must match! await bus.subscribe("tasks", handler)
-
Check subscription timing:
# Subscribe BEFORE publishing await bus.subscribe("tasks", handler) await bus.publish(Message(topic="tasks", ...))
-
Enable debug logging:
import logging logging.getLogger("amb_core").setLevel(logging.DEBUG)
Problem: Shield icon doesn't appear, commands unavailable.
Solutions:
-
Check extension is enabled:
- Open Extensions panel (Ctrl+Shift+X)
- Search "Agent OS"
- Ensure it's enabled
-
Reload window:
- Press Ctrl+Shift+P
- Run "Developer: Reload Window"
-
Check Output panel:
- View → Output
- Select "Agent OS" from dropdown
- Look for error messages
Problem: Inspections not running.
Solutions:
-
Check plugin is enabled:
- Settings → Plugins
- Ensure Agent OS is checked
-
Verify inspection settings:
- Settings → Editor → Inspections
- Search "Agent OS"
- Ensure inspections are enabled
-
Invalidate caches:
- File → Invalidate Caches → Invalidate and Restart
Problem: Multi-model verification fails.
Solutions:
-
Check API keys are set:
echo $OPENAI_API_KEY echo $ANTHROPIC_API_KEY
-
Verify API endpoint:
cmvk: api_endpoint: "https://api.agent-os.dev/cmvk"
-
Increase timeout:
result = await cmvk.verify(code, timeout=60.0)
-
Check rate limits:
- OpenAI, Anthropic have rate limits
- Consider reducing concurrent requests
If your issue isn't covered here:
-
Search existing issues: https://github.com/microsoft/agent-governance-toolkit/issues
-
Create a new issue with:
- Agent OS version:
pip show agent-os - Python version:
python --version - OS and version
- Minimal reproduction code
- Full error message/stack trace
- Agent OS version:
-
Join discussions: https://github.com/microsoft/agent-governance-toolkit/discussions