Start a debugging session with worklog file
Create a structured debugging session for an issue in the Dynamo/SGLang ecosystem.
Ask the user how they want to provide the bug:
Option A: Linear ticket
Option B: GitHub issue
gh issue view <url>Option C: Paste
Gather environment information:
!nvidia-smi --query-gpu=name,count --format=csv,noheader 2>/dev/null || echo "No GPU detected"
!uname -a
!which python && python --version
This tells you:
Note: The user's ~/.claude/CLAUDE.md may have more details about their dev environment (paths, aliases, preferences). Check there for additional context.
Create a worklog file to track the investigation:
<issue-slug>.md in current directory# Debug: [Issue Title]
**Date**: [today's date]
**Source**: [Linear ticket / GitHub issue / user report]
**Status**: investigating
**Environment**: [GPU type/count from nvidia-smi]
## Problem
[Description of the issue]
## Reproduction Steps
1. [Step to reproduce]
2. ...
## Expected vs Actual
- **Expected**:
- **Actual**:
## Investigation Log
### [timestamp]
[Notes on what you tried/found]
## Root Cause
[Fill in when found]
## Fix
[Fill in when implemented]
Rebuild Dynamo after making changes:
cd lib/bindings/python && maturin develop --uv && cd ../../.. && uv pip install -e .
If a framework change is required (sglang, vllm, trtllm), check the user's ~/.claude/CLAUDE.md for rebuild instructions specific to that framework.
Examples are located at: /home/ubuntu/dynamo/examples/backends/
Available backends:
sglang/launch/ - SGLang backend examplesvllm/launch/ - vLLM backend examplestrtllm/launch/ - TensorRT-LLM backend examplesBased on the bug report, determine which backend is relevant:
curl localhost:8000/v1/models
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "<model-name-from-above>",
"messages": [{"role": "user", "content": "Hello"}],
"max_tokens": 50
}'
KV cache and routing issues:
lib/llm/src/block_manager/kv_consolidator/tracker.rsZMQ / networking issues:
Multi-node / disaggregated issues:
nvidia-smi on each nodeProcess inspection:
ps aux | grep dynamo - check running processesnvidia-smi - GPU utilization and memoryss -tlnp | grep 8000 - check port bindingsjournalctl -u dynamo - systemd logs if applicablePerformance-critical code - avoid unnecessary abstractions or comments.