Last updated:
Use Bash in Chat
How Agent0 uses bash behind the scenes to answer your questions.
Bash is the shell Agent0 uses to fetch live data from your environment. When you ask a question, Agent0 writes and runs bash commands behind the scenes — you never need to write or run any directly yourself.
The bash session runs in an isolated sandbox with no implicit access to your production hosts. Enabled connectors can provide controlled access to connected systems, including read-only Kubernetes commands. What Agent0 can access or change depends on the configured tools and their permissions. See network mode for direct sandbox network restrictions.
What Agent0 Uses Bash For
Agent0 uses bash to call Dash0 observability tools and process their output:
- Query your services — list them, check their health, inspect dependencies
- Search logs — filter by severity, time range, keywords, or any attribute
- Find spans and traces — locate slow or failing requests across services
- Run metric queries — calculate error rates, latency percentiles, throughput trends
- Process results — combine data from multiple sources to answer a single question
Example Requests
| You ask | What Agent0 runs |
|---|---|
| "List all my services" | A bash command that fetches the full service catalog with health metrics |
| "Show error logs mentioning timeout in the last hour" | A bash command that queries logs filtered by severity and message content |
| "Find failing spans for checkoutservice" | A bash command that searches traces filtered by service name and error status |
| "What's the error rate for checkoutservice over the last hour?" | A bash command that builds and runs a time-series query against your metrics |
Further Reading
- Investigation & Analysis - How Agent0 uses tools during investigations
- Key Concepts - Reference terminology and mental model