Caret is a VS Code extension that aims to create a next-generation development environment where developers and AI agents grow together to build software. Through close collaboration with AI, it helps increase development productivity and solve complex problems. qβ’α΄β’qπ
Note: This project is a fork of the Cline project. Building on the excellent foundation of the original project, we are exploring deeper interactions with AI agents and intelligent development support features. πΏ
Why Caret? Frustrated with the "black box" of existing AI coding tools? Want to control AI agents your way, connect the models you want, and truly customize your development workflow? Caret aims to provide an experience where developers and AI work together as trusted colleagues. Understand AI transparently, extend it freely, and grow together like the best teammates.
- Developer-Driven AI Orchestration: Instead of opaque internal logic, define and control AI behavior directly with clear JSON rules (
.caretrules, persona). Understand how AI works and train it to match your project and style. - Customizable Workflow (4+1 Modes): Beyond fixed templates, design AI roles and interaction methods yourself. Modify the provided modes (Arch, Dev, Rule, Talk, Empty) or create entirely new ones to build your own AI development partner.
- Freedom of Model Choice (Local LLM & Privacy): Connect any LLM freely without vendor lock-in. Meet cost, security, and performance requirements while ensuring data privacy by utilizing commercial APIs or local sLLMs.
- Practical AI Collaboration: Beyond simple code generation, aim for an intelligent partner that understands project context (RAG goal) and solves problems together with developers. Caret will be a platform for exploring AI possibilities and learning how to collaborate effectively with AI.
- Open Source Together (Apache 2.0): Caret is an open source project where we think about and create the future of development in the AI era together. Let's share transparently, contribute freely, and grow together!
| SaaS AI IDE Limitations | Why Control is Critical in Production Development |
|---|---|
| Black Box Context & Model Versions | Cannot reproduce, debug, or regression test |
| Plan & Quota Changes | Budget prediction failure, cost explosion for large teams |
| Code & Logs on External Servers | Potential security & regulation (PII, trade secrets) violations |
| Fixed VS Code Dependent Endpoints | Difficult to integrate with CLI, CI, other IDEs |
| Limited Rules & Workflow Customization | Cannot enforce team coding rules, domain regulations |
| No Local sLLM Support | Cannot build air-gapped, low-latency, low-cost environments |
| File Safety (Text Patches) | Structure damage, no rollback possible |
Caret provides complete control by declaring models, infrastructure, and policies all as code.
| Category | Feature | Status |
|---|---|---|
| Transparent Rule Engine | Define AI behavior with .caretrules JSON β Git version control |
β |
| 4 + 1 Modes | Architect Β· Developer Β· Rule Β· Talk Β· (Empty) instant switching | β |
| AI Colleague UI | Customize agent thumbnails, names, chat colors | β |
| LLM Router | Hot-swap Local (Llama 3, Mistral etc) β Cloud (OpenAI, Gemini) | π§ |
| CRDT Real-time Collaboration | Yjs-based sync, shared cursors & presence | π§ |
| Vector RAG + AST Chunking | Code semantics-based context injection | π§ |
| AST & Validation Based Safe Edits | ts-morph, automatic test & lint execution | π |
| Semantic Caching / Prompt Compression | 50-80% token & cost reduction | π |
Caret supports a wide range of AI models and providers to give you the freedom to choose the best tools for your needs:
| Provider | Models | Total Models |
|---|---|---|
| Anthropic | Claude 3.7 Sonnet, Claude 3.5 Sonnet v2, Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus | 5 |
| AWS Bedrock | Amazon Nova Pro v1, Amazon Nova Lite v1, Amazon Nova Micro v1, Claude 3.7 Sonnet, Claude 3.5 Sonnet v2, Claude 3.5 Haiku, Claude 3.5 Sonnet, Claude 3 Opus and more | 12 |
| Gemini | Gemini 2.5 Pro, Gemini 2.5 Pro Preview, Gemini 2.0 Flash, Gemini 1.5 Flash, Gemini 1.5 Flash 8B, Gemini 1.5 Pro and more | 14 |
| OpenAI | GPT-4 Turbo, GPT-4 and more | 7 |
| Vertex AI | Claude 3.7 Sonnet, Claude 3.5 Sonnet v2, Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus, Claude 3 Haiku and more | 17 |
| Ollama | Llama 3, Mistral, CodeLlama | 3 |
| LM Studio | Local Model | 1 |
| OpenAI Native | O3, O4 Mini, GPT-4.1, GPT-4.1 Mini, GPT-4.1 Nano, O3 Mini, O1, O1 Preview, O1 Mini, GPT-4O, GPT-4O Mini, ChatGPT-4O Latest, GPT-4.5 Preview | 13 |
| Requesty | Claude 3.7 Sonnet (Latest) | 1 |
| Together | Llama 3 70B Chat, Mistral 7B Instruct v0.2, Llama 3 8B Chat | 3 |
| DeepSeek | DeepSeek Chat, DeepSeek Coder | 2 |
| Qwen | Qwen 2.5 Coder (32B, 14B, 7B, 3B, 1.5B), Qwen Coder Plus, Qwen Plus, Qwen Turbo, Qwen Max, Qwen VL Max, Qwen VL Plus | 11 |
| Doubao | Doubao 1.5 Pro (256K, 32K), DeepSeek V3, DeepSeek R1 | 4 |
| Mistral | Pixtral Large, Ministral 3B, Ministral 8B, Mistral Small, Pixtral 12B, Open Mistral Nemo, Open Codestral Mamba, Codestral and more | 10 |
| XAI | Grok-3 Beta, Grok-3 Fast Beta, Grok-3 Mini Beta, Grok-3 Mini Fast Beta, Grok-2 models and more | 12 |
| SambaNova | Meta-Llama-3.3-70B-Instruct, DeepSeek-R1-Distill-Llama-70B, Meta-Llama-3.1-405B-Instruct and more | 12 |
| OpenRouter | Various models via API | 1 |
Total: 17 Providers, 128 Models
Each model is configured with detailed specifications including:
- ID and name
- Description
- Supported features (images, computer use, prompt cache)
- Token limits
- Pricing information
Caret provides support for over 150 AI models across 20 different providers including:
- Anthropic Claude (Claude 3.7 Sonnet, Claude 3.5 Sonnet, Claude 3 Opus, etc.)
- OpenAI (GPT-4o, GPT-4.1, etc.)
- Google Gemini (Gemini 2.5, Gemini 2.0, etc.)
- Mistral AI (Mistral Large, Codestral, etc.)
- AWS Bedrock (Amazon Nova, Claude on AWS, etc.)
- Vertex AI (Google Cloud's AI platform)
- And many others including local models via Ollama and LM Studio
For a complete list of supported models, see our Supported Models documentation.
Caret is actively under development, with many features still in preparation. It's a project we're building together with your interest and participation! Keep watching as we steadily progress! β
- Code Repository: Check development progress at aicoding-caret/caret-zero repository. (Currently in initial setup!) Star β and watch the repository if you want to build and use the code directly.
- Installation (Future): Once officially released, you can install "Caret" from the VS Code marketplace. (Coming soon!)
- Setup (After Installation):
- Customize the provided AI agent personas. Templates include Pulse9's Sarangi, Ichika Madobe, Cyan, and Ubuntu-tan.
- Create a
.caretrulesfile in your project root to define work modes and rules. - Four modes (ARCH, DEV, RULE, TALK) with customizable AI models and system prompts are provided by default, allowing you to optimize for desired tasks using these four plus one additional mode.
- Participation & Contribution: Star β the repository or leave feedback through Issues to contribute or receive updates!
- Community (Coming Soon): Latest news and discussions will be available in the AICoding-Caret Facebook group. Future plans include providing various educational materials and training programs through the community.
- Easy Access (Future Plan): In the future, we plan to make core Caret features more accessible through account creation on the Caret website (official website: caret.team planned) without complex individual LLM API key setup.
Caret will continue to evolve. Main directions are as follows. For more detailed plans, check the Caret Project Vision and Development Roadmap document.
- RAG Enhancement: Strengthen project context understanding (vector DB integration, automatic synchronization, etc.)
- Multi-Agent Collaboration: Implement organic cooperation between various specialist agents (testers, documentation writers, etc.)
- Vibe Coding UX Improvement: Optimize real-time interaction and development flow between developers and AI
- Expanded LLM Support: Provide and optimize more local/cloud model connection options
- Plugin System (Long-term Goal): Establish structure for users to extend Caret's functionality directly
Your feedback and contributions will make Caret's roadmap even richer!
- GitHub Issues: Technical discussions, bug reports, feature requests
- Facebook Group: AICoding-Caret (latest news, user discussions)
# Clean existing build, reinstall dependencies, production build, generate VSIX
./clean-build-package.ps1
# Generated file: caret-dev-[version]-[timestamp].vsix# Debug build, generate VSIX, setup logging
./debug-log.ps1
# Generated file: caret-dev-[version]-[timestamp]-debug.vsixLogs are saved to logs/cline-debug-[timestamp].log. To view logs in real-time:
# View real-time logs in PowerShell
Get-Content -Path "logs/cline-debug-[timestamp].log" -WaitThe Caret project welcomes your contributions! Whether it's bug reports, feature suggestions, or code contributions, all forms are welcome. Please refer to the CONTRIBUTING.md (coming soon) file for details.
For more detailed information, please refer to the documents in the caret-docs directory.
- Architecture Overview
- New Developer Onboarding Guide
- Work Logs
- ... (additional important document links to be added)
