This release is a pre-release and may not be stable for production use.
Agent Dev CLI
A Python CLI and SDK for agent debugging and workflow visualization with VS Code AI Toolkit integration.
Installation
pip install agent-dev-cli --pre
Note: This package is currently in beta. The
--preflag is required to install pre-release versions.
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
ResponsesHostServer(...)construction - 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 configure_agent_server
from agent_framework_foundry_hosting import ResponsesHostServer
# Create your agent
agent = build_agent(chat_client)
# Create agent server
server = ResponsesHostServer(agent)
# Setup workflow visualization
configure_agent_server(server)
# Run the server
server.run()
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
Testing Your Agent Server
Once your agent server is running, you can test it using curl:
# Health check
curl http://localhost:8088/agentdev/health
# Send a request to your agent (streaming)
curl 'http://localhost:8088/agentdev/v1/responses' \
-H 'Content-Type: application/json' \
-d '{"model":"your-agent-model-id","input":{"role":"user","text":"Hello!"},"stream":true}'
Requirements
- Python 3.10+
- VS Code AI Toolkit (for visualization)
License
This project is licensed under the Microsoft AI Toolkit – Agent Dev CLI License Terms.
Metadata
Release files for agent-dev-cli 0.0.1b260427
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.1b260427.tar.gz | 32.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_dev_cli-0.0.1b260427-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.0 kB
Release files / agent_dev_cli-0.0.1b260427.tar.gz
| Download URL | agent_dev_cli-0.0.1b260427.tar.gz |
|---|---|
| Size | 32.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c42d35fd00161f1b9de2e3981b3f509f0b1840a1fd5fb2405d027a2dbcf46d1
|
|
BLAKE2b-256 checksum How to use checksums |
ba041c58be9d77fd8e8c6e8f4891b35d3cf66ec5d9609b7a26da18c5eebd514f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.8
|
Release files / agent_dev_cli-0.0.1b260427-py3-none-any.whl
| Download URL | agent_dev_cli-0.0.1b260427-py3-none-any.whl |
|---|---|
| Size | 37.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ea123c1c42321694dea27b66cd418ee68a57bfafd46f75ed6e994222f7f2a63
|
|
BLAKE2b-256 checksum How to use checksums |
24b308160d539e883fabbd6a586bdc0dda80751dca82502418d310d45b55c908
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.8
|