Skip to content

Conversation

@alchimie-di-circe
Copy link

No description provided.

claude and others added 11 commits November 8, 2025 14:50
- 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
@vercel
Copy link

vercel bot commented Nov 15, 2025

@claude is attempting to deploy a commit to the CopilotKit Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI and others added 4 commits November 15, 2025 15:09
- 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants