-
Notifications
You must be signed in to change notification settings - Fork 98
Claude/copilotkit custom agent plugin 014me vdi cgj to3m nq pnnfci k #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alchimie-di-circe
wants to merge
15
commits into
CopilotKit:main
Choose a base branch
from
alchimie-di-circe:claude/copilotkit-custom-agent-plugin-014meVdiCgjTo3mNQPnnfciK
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
- Add comprehensive Claude Code configuration:
* CLAUDE.md with full project documentation
* .claude/commands/ with 5 useful slash commands
* .claude/README.md explaining the structure
- Add production-ready devcontainer setup:
* Based on official Anthropic devcontainer
* Includes Python 3.12 for LangGraph agent
* Includes pnpm for Next.js frontend
* Includes Vercel CLI for deployment
* Includes GitHub CLI
* Docker-in-Docker support
* Enhanced firewall with project-specific domains:
- OpenAI API, Tavily, LangSmith
- CopilotKit Cloud, PyPI
* VSCode extensions for Python, TypeScript, Tailwind
Slash commands added:
- /start-dev: Launch full dev environment
- /check-health: Comprehensive health checks
- /add-feature: Interactive feature addition guide
- /debug-agent: LangGraph debugging workflow
- /update-deps: Safe dependency updates
The devcontainer provides a secure, sandboxed development
environment with all tools pre-configured. Use "Reopen in
Container" to activate.
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
…cture-011CUvS2YmHvzLekPAMLJhSJ feat: INIT Claude Code and add DEV CONTAINER
Update copilotkit version to 0.1.70
Co-authored-by: alchimie-di-circe <206147626+alchimie-di-circe@users.noreply.github.com>
Co-authored-by: alchimie-di-circe <206147626+alchimie-di-circe@users.noreply.github.com>
…versions Add Qodo Merge config + Renovate auto-sync for CopilotKit version sync between backend/frontend
Created a comprehensive, reusable plugin that transforms Claude Code into a CopilotKit expert with deep knowledge of CoAgents, AG-UI, and AI framework integrations. Features: - Expert AI Agent (skill) specialized in CopilotKit framework - VIBE CODING MCP integration for real-time official documentation - 3 slash commands: /copilotkit-docs, /copilotkit-integrate, /copilotkit-debug - Comprehensive patterns guide (17KB, 716 lines) - Complete quickstart guide and documentation - Plugin installer for easy reuse across repositories Components: - skills/copilotkit-expert.md - Main expert agent (8.8KB) - commands/copilotkit-*.md - 3 specialized commands (10.5KB total) - copilotkit-patterns.md - Best practices reference (17KB) - COPILOTKIT_PLUGIN.md - Main plugin documentation (9.9KB) - QUICKSTART.md - Quick start guide (12KB) - MCP_SETUP.md - MCP configuration guide (5.9KB) - install-plugin.sh - Installer script for reusability - plugin-manifest.json - Plugin metadata and configuration Expertise includes: - CopilotKit v1.5.20+ (CoAgents, hooks, state management) - AG-UI integration patterns - LangGraph orchestration - LangChain integration - Anthropic Claude SDK - OpenAI integration - Human-in-the-loop workflows - Streaming patterns - State synchronization - Performance optimization - Debugging guidance The plugin is fully reusable across repositories (cloud and local) and integrates with the official CopilotKit VIBE CODING MCP server. Total content: 1400+ lines of expert knowledge and examples.
Completed full migration to AG-UI (Automatic UI Generation) following
official CopilotKit documentation and best practices from the CopilotKit
Expert Plugin.
BACKEND CHANGES:
agent/state.py:
- Created Pydantic BaseModel classes for all nested structures
- Added ProposalSection, Proposal, Section, Source, Log models
- All fields have Field(description=...) for AG-UI auto-generation
- Updated ResearchState to use Pydantic models with proper type hints
- Maintains CopilotKitState as base class
agent/graph.py:
- Updated process_feedback_node to use Pydantic Proposal objects
- Added imports for new Pydantic models
- Updated feedback processing logic for Pydantic attributes (.approved, .sections)
- Improved type safety and clarity
agent/tools/outline_writer.py:
- Converts JSON response to Pydantic Proposal objects
- Creates ProposalSection objects for each section
- Backward compatibility with dict format
- Proper error handling with Pydantic fallback
agent/tools/section_writer.py:
- Creates Pydantic Section objects instead of dicts
- Handles both Section objects and dicts for backward compatibility
- Updated section existence checking and state management
FRONTEND CHANGES:
frontend/src/app/api/copilotkit/route.ts:
- Migrated from langGraphPlatformEndpoint to LangGraphAgent
- New syntax: agents: {} instead of remoteEndpoints: []
- Added graphId: 'agent' matching langgraph.json
- Cleaner, more maintainable configuration
frontend/src/lib/types.ts:
- Updated all interfaces to match Pydantic models exactly
- Section: Matches backend Section model (idx, title, content, footer)
- Proposal: Direct mapping with sections, remarks, approved
- Log: Changed done to status to match backend
- Source: Updated to match backend Source model
- Added AG-UI compatibility comments
frontend/src/components/structure-proposal-viewer.tsx:
- Updated to use new Proposal structure (proposal.sections)
- Simplified component logic with direct field access
- Updated state management for Pydantic-based types
- Maintained existing UI/UX
DOCUMENTATION:
AG-UI_MIGRATION.md:
- Complete migration guide with before/after comparisons
- Benefits: type safety, auto form generation, maintainability
- Migration checklist and testing guide
- Troubleshooting section
- References to official documentation
BENEFITS:
✅ Full type safety across Python and TypeScript
✅ Automatic form generation from Pydantic models
✅ Single source of truth for state structure
✅ Better integration with LangGraph interrupt() pattern
✅ Follows official CopilotKit AG-UI best practices
✅ Improved maintainability and developer experience
Migration performed by CopilotKit Expert Plugin v1.0.0
Patterns source: .claude/copilotkit-patterns.md
|
@claude is attempting to deploy a commit to the CopilotKit Team on Vercel. A member of the Team first needs to authorize it. |
- Added .claude-plugin/plugin.json following official Anthropic standards - Enhanced API route security with env validation and SSRF prevention - Hardened install-plugin.sh with set -u and improved error handling - Fixed prompt injection vulnerability in section_writer.py - Created PLUGIN_COMPLIANCE.md documentation - Verified CopilotKit version alignment (frontend 1.5.20, agent 0.1.70) Co-authored-by: alchimie-di-circe <206147626+alchimie-di-circe@users.noreply.github.com>
Co-authored-by: alchimie-di-circe <206147626+alchimie-di-circe@users.noreply.github.com>
Harden plugin security and align with Anthropic Claude Code 2025 standards
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.
No description provided.