OperationsTroubleshooting
Performance Issues
Reduce response latency and long task execution time
Performance Issues
Typical bottlenecks
- Slow model responses
- Overlapping scheduled tasks
- Large command outputs
- Long conversation context
Optimization checklist
-
Use faster models for high-frequency interactions.
-
Reduce task frequency to avoid overlaps.
-
Keep command output focused by narrowing the command scope and avoiding large noisy logs.
-
Tune context compaction:
{
"context": {
"messages": {
"maxInputTokensApprox": 128000,
"compactRatio": 0.5
}
}
}Observe performance signals
grep -Ei "timeout|slow|context|compact" .downcity/logs/$(date +%F).jsonl