This document describes the configuration options for the MoonHub learning system.
The learning system supports various configuration options to customize behavior.
Configure the learning system in ~/.moonhub/config.json:
{
"learning": {
"language": "auto",
"db_path": "memory/learning.db",
"min_confidence": 0.7,
"max_examples": 10,
"enable_semantic_detection": true,
"enable_implicit_signals": true,
"enable_behavioral_scoring": true,
"enable_pattern_evolution": false,
"enable_contradiction_detection": false,
"enable_suggestions": false,
"decay_older_than_days": 7,
"prune_older_than_days": 30,
"merge_similarity_threshold": 0.8
}
}auto- Auto-detect language (default)en- Use English mode onlyzh- Use Chinese mode only
Learning database storage path, defaults to memory/learning.db
Pattern confidence threshold; patterns below this value will be ignored, default 0.7
Maximum number of examples to retain per pattern, default 10
Enable semantic keyword detection, default true
Infer implicit signals from tool usage, default true
Enable behavioral scoring system, default true
Enable pattern evolution (merge/prune/decay), default false
Detect contradictory patterns, default false
Generate proactive suggestions, default false
Pattern decay period in days, default 7 days
Pattern pruning period in days, default 30 days
Pattern merge similarity threshold, default 0.8
{
"learning": {
"language": "zh"
}
}{
"learning": {
"language": "en"
}
}{
"learning": {
"language": "auto",
"enable_suggestions": true,
"enable_pattern_evolution": true
}
}- Configuration changes require service restart to take effect
db_pathdirectory requires write permissions- Advanced features (evolution, contradiction detection) may affect performance