Skip to content

feat: Developer Insights from Static Analysis#93

Open
eyalben wants to merge 4 commits intomainfrom
dev-tools
Open

feat: Developer Insights from Static Analysis#93
eyalben wants to merge 4 commits intomainfrom
dev-tools

Conversation

@eyalben
Copy link
Contributor

@eyalben eyalben commented Dec 22, 2025

Summary

Implements developer-focused insights for Agent Inspector, adding comprehensive code health tracking and visualization capabilities:

  • New Code Page: Display developer findings organized by category (Availability, Reliability, Efficiency) with health score visualization
  • Agent Health Score: Visual health ring on Overview page showing overall health and dimension breakdown
  • Health Trend Tracking: Historical health data visualization with trend analysis
  • Scan Comparison: Track new/fixed findings between scans
  • Report Generation: Generate comprehensive health reports in markdown, JSON, or HTML format

Key Components

Backend

  • Extended database schema with dev_category, health_impact, code_fingerprint columns
  • Added health_history table for trend tracking
  • New MCP tools: get_health_score, get_code_analysis, get_health_trend, get_scan_comparison, record_health_snapshot, generate_report

Frontend

  • Code page with health score section, correlation summary, developer checks grid
  • AgentHealthRing component with animated donut chart
  • HealthTrendChart component for health history visualization
  • CodeCheckCard component for category-based findings display

Health Score Calculation

Dimension Weight
Security 40%
Availability 25%
Reliability 20%
Efficiency 15%

Test plan

  • Verify Code page renders correctly with sample data
  • Test AgentHealthRing animation and interaction
  • Test HealthTrendChart with various data sets
  • Verify scan comparison shows correct new/fixed counts
  • Test report generation in all formats (markdown, JSON, HTML)
  • Run npm run build - passes
  • Verify MCP tools work via API

🤖 Generated with Claude Code

eyalben and others added 4 commits December 22, 2025 08:59
Implement developer-focused insights for Agent Inspector including:

Backend:
- Extended database schema with dev_category, health_impact, code_fingerprint columns
- Added health_history table for trend tracking
- New MCP tools: get_health_score, get_code_analysis, get_health_trend,
  get_scan_comparison, record_health_snapshot, generate_report
- Report generation supporting markdown, JSON, and HTML formats

Frontend:
- New Code page displaying developer findings by category (Availability,
  Reliability, Efficiency) with health score visualization
- AgentHealthRing component with animated donut chart and dimension breakdown
- HealthTrendChart component for health history visualization
- Scan comparison section showing new/fixed findings
- CorrelationSummary integration showing VALIDATED/UNEXERCISED findings

Health Score Calculation:
- Security: 40% weight
- Availability: 25% weight
- Reliability: 20% weight
- Efficiency: 15% weight

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add stories with play() functions for CodeCheckCard, AgentHealthRing,
  and HealthTrendChart components
- Update COMPONENTS_INDEX.md with new component documentation
- Fix test_lifecycle_scans.py tests to use include_resolved=True when
  verifying fixed/dismissed findings (needed due to get_findings behavior
  change that excludes resolved findings by default)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Use regex patterns and test IDs for percentage assertions since
styled-components can render whitespace between numbers and % symbols.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants