Skip to content

Feature Request: Real-time Suggestions API/Webhook System #29

@jdrhyne

Description

@jdrhyne

Feature Request: Real-time Suggestions API/Webhook System

Problem Statement

Currently, claude-code-github provides intelligent suggestions and monitoring insights, but these are only accessible through the MCP interface when interacting with Claude. This limits the ability for external tools and integrations to benefit from the intelligent monitoring capabilities.

Use Case

As a developer building tools that complement claude-code-github (like AgentCopy), I need programmatic access to:

  • Real-time monitoring status
  • Intelligent suggestions (protected branch warnings, commit timing, etc.)
  • Development pattern insights
  • Workflow recommendations

Proposed Solution

Implement a real-time API or webhook system that allows external applications to:

  1. REST API Endpoints:

    GET /api/projects/{project_path}/suggestions
    GET /api/projects/{project_path}/monitoring-status
    GET /api/projects/{project_path}/events
    POST /api/webhooks/subscribe
    
  2. Webhook Events:

    • suggestion.created - When a new suggestion is generated
    • monitoring.status_changed - When monitoring starts/stops
    • pattern.detected - When a development pattern is recognized
    • threshold.reached - When configured thresholds are hit
  3. WebSocket Support:

    • Real-time streaming of suggestions and events
    • Bidirectional communication for interactive features

Example API Response

{
  "project": "/Users/admin/Projects/AgentCopy",
  "suggestions": [
    {
      "id": "protected-branch-warning",
      "type": "warning",
      "priority": "high",
      "message": "Working on protected branch 'main'",
      "recommendation": "Create feature branch",
      "context": {
        "current_branch": "main",
        "modified_files": 4
      }
    },
    {
      "id": "commit-timing",
      "type": "suggestion",
      "priority": "medium",
      "message": "4 files modified - good time to commit",
      "recommendation": "Commit related changes together"
    }
  ],
  "monitoring": {
    "active": true,
    "duration_minutes": 45,
    "events_captured": 12
  }
}

Benefits

  1. Integration Opportunities: Other tools can consume and display suggestions
  2. Automation: CI/CD pipelines could react to suggestions
  3. Custom Dashboards: Teams can build monitoring dashboards
  4. Cross-tool Workflows: Better integration between development tools

Implementation Considerations

  • Authentication via API keys or OAuth
  • Rate limiting to prevent abuse
  • Configurable webhook URLs per project
  • Optional filtering of suggestion types

Additional Context

This feature would enable tools like AgentCopy to display claude-code-github's intelligent suggestions directly in their UI, creating a more seamless development experience without requiring developers to interact through the MCP interface for every insight.

Would love to discuss implementation details or contribute to this feature!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions