Pre-release
This release is a pre-release and may not be stable for production use.
Agent Dev CLI
Agent Dev CLI - A Python package for agent debugging and workflow visualization with VS Code integration.
Installation
pip install -e .
Usage
Option 1: CLI Wrapper (Recommended)
The easiest way to use Agent Dev CLI - no code changes required:
# Run your agent script with agentdev instrumentation
agentdev run my_agent.py
# Specify a custom port
agentdev run workflow.py --port 9000
# Enable verbose output
agentdev run my_agent.py --verbose
# Pass arguments to your script
agentdev run my_agent.py -- --model gpt-4 --temperature 0.7
The CLI automatically:
- Intercepts
from_agent_framework()calls - Injects agentdev visualization endpoints
- Opens the workflow visualization in VS Code
Option 2: Programmatic API
If you prefer explicit control, you can integrate agentdev directly:
from agentdev import setup_test_tool
from azure.ai.agentserver.agentframework import from_agent_framework
# Create your agent
agent = build_agent(chat_client)
# Create agent server
agent_server = from_agent_framework(agent)
# Setup workflow visualization
setup_test_tool(agent_server)
# Run the server
await agent_server.run_async()
CLI Commands
agentdev run
Run a Python agent script with agentdev instrumentation.
agentdev run [OPTIONS] SCRIPT [ARGS]...
Options:
-p, --port INTEGER Agent server port (default: 8088)
-v, --verbose Enable verbose output
--help Show this message and exit
agentdev info
Show agentdev configuration and status information.
agentdev info
Features
- Health Check Endpoint: Adds a
/agentdev/healthendpoint to your agent server - Workflow Visualization: Starts a visualization server on port 8090 for WorkflowAgent instances
- Easy Integration: Simple one-function setup
Requirements
- Python 3.10+
- agent-framework
- starlette
License
MIT License
Test
curl 'http://localhost:8088/agentdev/v1/responses' \
-H 'Content-Type: application/json' \
-d '{"model":"workflow_in-memory_content-review-workflow_5c703d16cb1e4756848ddcc685b16503","input":{"role":"user","text":"test"},"stream":true}'
Metadata
Release files for agent-dev-cli 0.0.1b251223
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agent_dev_cli-0.0.1b251223.tar.gz | 20.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_dev_cli-0.0.1b251223-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.9 kB
Release files / agent_dev_cli-0.0.1b251223.tar.gz
| Download URL | agent_dev_cli-0.0.1b251223.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b400354a7394f2f656632a2b933679b1883d7160f29e106fce28677b259fb4f
|
|
BLAKE2b-256 checksum How to use checksums |
17c91c87e6859e406b92b5e2d3e43ea9532504e9201dee32d2db0ef9c237ae92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.6
|
Release files / agent_dev_cli-0.0.1b251223-py3-none-any.whl
| Download URL | agent_dev_cli-0.0.1b251223-py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
196644e0ad2edd7cbfc800ea7742fa8cc9bbe5c1b2c7e55b9694fe89fb2f1145
|
|
BLAKE2b-256 checksum How to use checksums |
3844df10f538735ba1c37b12776424adff048f3bdd15ce3db7de269184c44640
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.6
|