config.json•4.68 kB
{
  "memoryService": {
    "protocol": "auto",
    "preferredProtocol": "http",
    "fallbackEnabled": true,
    "http": {
      "endpoint": "http://127.0.0.1:8000",
      "apiKey": "VhOGAoUOE5_BMzu-phDORdyXHNMcDRBxvndK_Uop",
      "healthCheckTimeout": 3000,
      "useDetailedHealthCheck": true
    },
    "mcp": {
      "serverCommand": [
        "uv",
        "run",
        "memory",
        "server",
        "-s",
        "hybrid"
      ],
      "serverWorkingDir": "/home/hkr/repositories/mcp-memory-service",
      "connectionTimeout": 2000,
      "toolCallTimeout": 3000
    },
    "defaultTags": [
      "claude-code",
      "auto-generated"
    ],
    "maxMemoriesPerSession": 8,
    "enableSessionConsolidation": true,
    "injectAfterCompacting": false,
    "recentFirstMode": true,
    "recentMemoryRatio": 0.6,
    "recentTimeWindow": "last week",
    "fallbackTimeWindow": "last 2 weeks",
    "showStorageSource": true,
    "sourceDisplayMode": "brief"
  },
  "projectDetection": {
    "gitRepository": true,
    "packageFiles": [
      "package.json",
      "pyproject.toml",
      "Cargo.toml",
      "go.mod",
      "pom.xml"
    ],
    "frameworkDetection": true,
    "languageDetection": true,
    "confidenceThreshold": 0.3
  },
  "memoryScoring": {
    "weights": {
      "timeDecay": 0.5,
      "tagRelevance": 0.2,
      "contentRelevance": 0.15,
      "contentQuality": 0.2,
      "conversationRelevance": 0.25
    },
    "minRelevanceScore": 0.4,
    "timeDecayRate": 0.15,
    "enableConversationContext": true,
    "autoCalibrate": true
  },
  "contextFormatting": {
    "includeProjectSummary": true,
    "includeRelevanceScores": false,
    "groupByCategory": true,
    "maxContentLength": 500,
    "maxContentLengthCLI": 400,
    "maxContentLengthCategorized": 350,
    "includeTimestamps": true,
    "truncationMode": "smart"
  },
  "sessionAnalysis": {
    "extractTopics": true,
    "extractDecisions": true,
    "extractInsights": true,
    "extractCodeChanges": true,
    "extractNextSteps": true,
    "minSessionLength": 100,
    "minConfidence": 0.1
  },
  "hooks": {
    "sessionStart": {
      "enabled": true,
      "timeout": 10000,
      "priority": "high"
    },
    "midConversation": {
      "timeout": 8000,
      "priority": "high"
    },
    "sessionEnd": {
      "enabled": true,
      "timeout": 15000,
      "priority": "normal"
    },
    "topicChange": {
      "enabled": false,
      "timeout": 5000,
      "priority": "low"
    }
  },
  "gitAnalysis": {
    "enabled": true,
    "commitLookback": 14,
    "maxCommits": 20,
    "includeChangelog": true,
    "maxGitMemories": 3,
    "gitContextWeight": 1.2
  },
  "output": {
    "verbose": true,
    "showMemoryDetails": true,
    "showProjectDetails": true,
    "showScoringDetails": false,
    "showRecencyInfo": true,
    "showPhaseDetails": true,
    "showGitAnalysis": true,
    "cleanMode": false,
    "style": "balanced",
    "showScoringBreakdown": false,
    "adaptiveTruncation": true,
    "prioritySections": [
      "recent-work",
      "current-problems",
      "key-decisions",
      "additional-context"
    ]
  },
  "contentLength": {
    "manyMemories": 300,
    "fewMemories": 500,
    "veryFewMemories": 800
  },
  "naturalTriggers": {
    "enabled": true,
    "triggerThreshold": 0.6,
    "cooldownPeriod": 30000,
    "maxMemoriesPerTrigger": 5
  },
  "performance": {
    "defaultProfile": "balanced",
    "enableMonitoring": true,
    "autoAdjust": true,
    "profiles": {
      "speed_focused": {
        "maxLatency": 100,
        "enabledTiers": [
          "instant"
        ],
        "backgroundProcessing": false,
        "degradeThreshold": 200,
        "description": "Fastest response, minimal memory awareness"
      },
      "balanced": {
        "maxLatency": 200,
        "enabledTiers": [
          "instant",
          "fast"
        ],
        "backgroundProcessing": true,
        "degradeThreshold": 400,
        "description": "Moderate latency, smart memory triggers"
      },
      "memory_aware": {
        "maxLatency": 500,
        "enabledTiers": [
          "instant",
          "fast",
          "intensive"
        ],
        "backgroundProcessing": true,
        "degradeThreshold": 1000,
        "description": "Full memory awareness, accept higher latency"
      }
    }
  },
  "conversationMonitor": {
    "contextWindow": 10,
    "enableCaching": true,
    "maxCacheSize": 100
  },
  "patternDetector": {
    "sensitivity": 0.7,
    "adaptiveLearning": true,
    "learningRate": 0.05
  },
  "logging": {
    "level": "debug",
    "enableDebug": true,
    "logToFile": true,
    "logFilePath": "./claude-hooks.log"
  }
}