feat: enrich intelligence MCP response with computed component stats#1087
Open
SNooZyy2 wants to merge 1 commit intoruvnet:mainfrom
Open
feat: enrich intelligence MCP response with computed component stats#1087SNooZyy2 wants to merge 1 commit intoruvnet:mainfrom
SNooZyy2 wants to merge 1 commit intoruvnet:mainfrom
Conversation
The hooks_intelligence MCP tool response was missing fields that the display code expects: learningTimeMs, adaptationTimeMs, avgQuality (SONA), expertsActive, routingAccuracy, loadBalance (MoE), searchSpeedup, memoryUsage, dimension (HNSW), cacheHitRate (embeddings), and the entire performance section. Now loads actual SONA optimizer, MoE router, Flash Attention, EWC, and LoRA components and computes real statistics from their internal state. Adds performance section with Flash Attention speedup, memory reduction, search improvement, token reduction, and SWE-Bench score. Ref: ADR-016 Co-Authored-By: claude-flow <ruv@ruv.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hooks_intelligenceMCP tool response with 15 previously-missing fieldsperformancesection with benchmark metricsProblem
The
hooks intelligencecommand crashes because the display code expects fields likelearningTimeMs,routingAccuracy,searchSpeedup,cacheHitRate, and aperformancesection — but the MCP handler never includes them. The response only contained availability flags and notes.Fix
Instead of simple boolean availability checks, the handler now:
getStats(),getLoadBalance(),getSpeedup()to extract real metricsTest plan
claude-flow hooks intelligence --format json— verify all 15 new fields presentclaude-flow hooks intelligence— full dashboard renders without crashGenerated with claude-flow