-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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:
-
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 -
Webhook Events:
suggestion.created- When a new suggestion is generatedmonitoring.status_changed- When monitoring starts/stopspattern.detected- When a development pattern is recognizedthreshold.reached- When configured thresholds are hit
-
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
- Integration Opportunities: Other tools can consume and display suggestions
- Automation: CI/CD pipelines could react to suggestions
- Custom Dashboards: Teams can build monitoring dashboards
- 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!