Install
openclaw skills install @chen6896qqwee/speculative-execSpeculative execution engine — predict and pre-load context the agent is likely to need next. Distilled from Claude Code speculation module.
openclaw skills install @chen6896qqwee/speculative-execDistilled from Claude Code speculation module. Predicts the next likely action and pre-loads the needed context in parallel with LLM response generation. Reduces perceived latency by 30-60% for common workflows.
# Start speculative pre-load based on user message
python3 {baseDir}/speculator.py --message "帮我分析这个股票"
# Predict next actions from conversation history
python3 {baseDir}/speculator.py --history conversation.json
# Train on custom workflow patterns
python3 {baseDir}/speculator.py --train workflows.json
# Check cache status
python3 {baseDir}/speculator.py --status
{
"prediction": "read_stock_data",
"confidence": 0.92,
"preloaded": ["stock_price", "financial_report", "news"],
"estimated_save_ms": 1200
}
| Intent Pattern | Predicted Next Action | Pre-loads |
|---|---|---|
| 分析/analyze | Read data source | Data files, reports |
| 对比/compare | Read both items | Item A, Item B |
| 搜索/search | Search index | Index files |
| 写/write | Template + context | Templates, examples |
| 修改/edit | Read target file | Target file |
| 安装/install | Read docs | Documentation |
| 测试/test | Read test files | Test files, fixtures |
| 部署/deploy | Read config | Config files |
Based on Claude Code speculation module: