DeepAgent Dash
A web interface for AI agent interactions with filesystem workspace, canvas visualization, and real-time streaming.
Features
- 🤖 AI Agent Chat: Real-time streaming with thinking process and task progress
- 📁 File Browser: Interactive file tree with lazy loading
- 🎨 Canvas: Visualize DataFrames, Plotly/Matplotlib charts, Mermaid diagrams, images
- ⚙️ Flexible Configuration: Environment variables, CLI args, or config file
Quick Start
Installation
# Install via pip (includes DeepAgents)
pip install deepagent-dash
# Or run directly with uvx (no installation needed)
uvx deepagent-dash run --workspace ~/my-workspace
Run
# Run with defaults (current directory as workspace, no agent)
deepagent-dash run
# Run with workspace
deepagent-dash run --workspace ~/my-workspace
# Run with custom agent (optional)
deepagent-dash run --agent my_agent.py:agent
# Using uvx (one-off execution)
uvx deepagent-dash run --workspace ~/my-workspace --port 8080
Open browser to http://localhost:8050
Configuration
Priority (highest to lowest)
- CLI Arguments -
--workspace,--port, etc. - Environment Variables -
DEEPAGENT_* - Config File -
config.pydefaults
Environment Variables (optional)
export DEEPAGENT_WORKSPACE_ROOT=/path/to/workspace
export DEEPAGENT_AGENT_SPEC=my_agent.py:agent # optional
export DEEPAGENT_PORT=9000 # optional (default: 8050)
export DEEPAGENT_HOST=0.0.0.0 # optional (default: localhost)
export DEEPAGENT_DEBUG=true # optional (default: false)
export DEEPAGENT_APP_TITLE="My App" # optional
export DEEPAGENT_APP_SUBTITLE="Subtitle" # optional
deepagent-dash run
CLI Options (all optional)
deepagent-dash run [OPTIONS]
--workspace PATH Workspace directory (default: current directory)
--agent PATH:OBJECT Agent spec (default: none, manual mode)
--port PORT Server port (default: 8050)
--host HOST Server host (default: localhost)
--debug Enable debug mode
--title TITLE App title (default: "DeepAgent Dash")
--subtitle TEXT App subtitle (default: "AI-Powered Workspace")
Python API
from deepagent_dash import run_app
# Option 1: Pass agent instance directly (recommended)
from my_agent import MyAgent
agent = MyAgent()
run_app(agent, workspace="~/my-workspace")
# Option 2: Use agent spec
run_app(agent_spec="my_agent.py:agent", workspace="~/my-workspace")
# Option 3: Manual mode (no agent)
run_app(workspace="~/my-workspace", port=8080, debug=True)
Agent Integration
Workspace Access
DeepAgent Dash sets DEEPAGENT_WORKSPACE_ROOT environment variable for your agent:
import os
from pathlib import Path
# In your agent code
workspace = Path(os.getenv('DEEPAGENT_WORKSPACE_ROOT', './'))
# Read/write files in workspace
config_file = workspace / "config.json"
Agent Specification
Load agents using path:object format:
# Load from Python file
deepagent-dash run --agent agent.py:my_agent
# Absolute path
deepagent-dash run --agent /path/to/agent.py:agent_instance
Agent Requirements
Your agent must implement:
- Streaming:
agent.stream(input, stream_mode="updates") - Message format:
{"messages": [{"role": "user", "content": "..."}]} - Workspace access (optional): Read
DEEPAGENT_WORKSPACE_ROOTenv var
Example Agent Setup
# my_agent.py
import os
from deepagents import create_deep_agent
from deepagents.backends.filesystem import FileSystemBackend
backend = FileSystemBackend(root=os.getenv('DEEPAGENT_WORKSPACE_ROOT', './'))
my_agent = create_deep_agent(..., backend=backend)
Then run: deepagent-dash run --agent my_agent.py:my_agent
Canvas
The canvas displays agent-created visualizations:
- DataFrames: HTML tables
- Charts: Plotly, Matplotlib
- Images: PNG, JPG, etc.
- Diagrams: Mermaid (flowcharts, sequence diagrams)
- Markdown: Text and notes
Content auto-saves to canvas.md and can be exported or cleared.
Development
# Install from source
git clone https://github.com/dkedar7/deepagent-dash.git
cd deepagent-dash
pip install -e ".[dev]"
# Run tests
pytest
# Build package
python -m build
Requirements
- Python 3.11+
- Dash 2.0+
- dash-mantine-components
- pandas, plotly, matplotlib, Pillow
- python-dotenv
- deepagents (optional, for AI agents)
Links
- PyPI: https://pypi.org/project/deepagent-dash/
- GitHub: https://github.com/dkedar7/deepagent-dash
- Issues: https://github.com/dkedar7/deepagent-dash/issues
License
MIT License - see LICENSE for details
Metadata
Release files for deepagent-dash 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| deepagent_dash-0.1.1.tar.gz | 39.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deepagent_dash-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.6 kB
Release files / deepagent_dash-0.1.1.tar.gz
| Download URL | deepagent_dash-0.1.1.tar.gz |
|---|---|
| Size | 39.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d60839ec3529b6ec8fc9835e1c444d4e1b25b9275b2bb94ffa2963a34e6ecf3
|
|
BLAKE2b-256 checksum How to use checksums |
622c8903f651ac543c019d853ba3e5ea29316bc33c4571b13212b8b01ef0be17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.8
|
Release files / deepagent_dash-0.1.1-py3-none-any.whl
| Download URL | deepagent_dash-0.1.1-py3-none-any.whl |
|---|---|
| Size | 36.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39dd8e761f24ca0adc4a3bbb390f73cb60176d0bcb904312c4372d1516f49ee1
|
|
BLAKE2b-256 checksum How to use checksums |
5c109c436e09d073c8c23b113e7270af8e8be2fba5b36c58314336753f215c9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.8
|
Security for deepagent-dash 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.