← Open Source
zgsm-ai

costrict

Costrict - strict AI coder for enterprises, quality first, including AI Agent, AI CodeReview, AI Completion.

ApplicationsCodingTypeScript
Open on GitHub
Momentum
+-1stars in 24 hours-0.0%
4.44k
Stars
204
Forks
+5
This week
100
Contributors
Created 2025-04-10 · Updated 2026-10-05 · #16581 today
Top developers
README

Announcement Banner

Version License Platform PRs Welcome

CoStrict

CoStrict Logo

Strict AI Coder for Enterprises

Free • Open Source • Private Deployment

简体中文 | English


CoStrict is a free, open-source AI-powered coding assistant designed for enterprise-grade development. With support for private deployment, it's the optimal choice for organizations requiring secure, standardized AI development workflows.

✨ Core Capabilities

Feature Description
🔒 Strict Mode Standardized AI code generation with requirements analysis, architecture design, task planning, and test generation
🔍 Code Review Repository-wide RAG-based code analysis with multi-expert model verification
🎯 Vibe Code Rapid development through natural language dialogue
🔗 MCP Integration Standardized system connectivity for APIs, databases, and custom tools
🎨 Multi-modal Support for image context and visual inputs
🛠️ Skills Support Extensible skills system for specialized task workflows

📦 Installation

  🌟 CoStrict Cloud  


  [![Cloud Docs](https://img.shields.io/badge/Cloud-Documentation-blue?style=for-the-badge)](https://docs.costrict.ai/cli/product-characteristics/cloud)




  VS Code Extension  


  [![Download](https://img.shields.io/badge/Download-Nightly-success?style=for-the-badge)](https://marketplace.visualstudio.com/items?itemName=zgsm-ai.zgsm-nightly)
  [![Download](https://img.shields.io/badge/Download-Latest-success?style=for-the-badge)](https://marketplace.visualstudio.com/items?itemName=zgsm-ai.zgsm)




  CLI Tool  


  [![CLI Docs](https://img.shields.io/badge/CLI-Documentation-blue?style=for-the-badge)](https://docs.costrict.ai/cli/guide/installation)
  [![Download](https://img.shields.io/badge/Download-Latest-success?style=for-the-badge)](https://costrict.ai/download)




  JetBrains Plugin  


  [![JetBrains Repo](https://img.shields.io/badge/GitHub-Repository-informational?style=for-the-badge)](https://github.com/zgsm-sangfor/costrict-for-jetbrains)
  [![Download](https://img.shields.io/badge/Download-Latest-success?style=for-the-badge)](https://costrict.ai/download)

🚀 Key Features

Strict Mode

Standardizes AI-generated code workflows for enterprise scenarios, ensuring high-quality and controllable outputs.

  [![Strict Mode Demo](./assets/images/readme/strict_mode_en_buffer.webp)](https://docs.costrict.ai/en/tutorial-videos/video/#strict-mode)




   ![Strict Mode](./assets/images/readme/strict_mode_en.webp) 

Code Review

Repository-wide indexing and RAG-based analysis with multi-model verification strategies.

  [![Code Review Demo](./assets/images/readme/codereview_buffer.webp)](https://docs.costrict.ai/en/tutorial-videos/video/#ai-codereview)




   ![Code Review](./assets/images/readme/codereview_en.webp) 

More Features

  • 🌐 Multi-language Support - Python, Go, Java, JavaScript/TypeScript, C/C++, and all programming languages
  • 🔐 Privacy & Security - Professional private deployment with physical isolation and end-to-end encryption
  • 🎛️ API & Model Customization - Built-in free models + support for Anthropic, OpenAI, OpenAI-compatible APIs, and local models
  • 📁 Large Repository Context - Automatic context inclusion with @ file/folder mentions
  • 🔧 Mode Customization - Multiple default modes (Code, Orchestrator) with custom mode support
  • 📝 OpenSpec Integration - Standardized change proposal workflows with /openspec-init
  • 🔗 VSCode SCM Integration - Seamless integration with Git for code review and collaboration
  • Auto Cleanup History - Automatically clean up history and reduce disk usage.
  • 📝 History Import&Export - Supports import and export of historical records to facilitate offline migration
  • 🔗 Lite Mode - Reduce context usage and reduce token consumption. More Features

📚 Documentation

Resource Link
Installation Guide docs.costrict.ai/en/guide/installation
Private Deployment docs.costrict.ai/en/deployment/introduction
Tutorial Videos docs.costrict.ai/en/tutorial-videos/video
CLI Documentation docs.costrict.ai/cli/guide/installation

🤝 Community & Support

   ![](./assets/images/readme/wechat.png)   

  WeChat Group




   ![](./assets/images/readme/communication_group.webp)   

  Feedback




  [![GitHub Issues](https://img.shields.io/badge/GitHub-Issues-blue?style=for-the-badge&logo=github)](https://github.com/zgsm-ai/costrict/issues/new/choose)

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

Apache 2.0 © 2025 Sangfor, Inc.

⭐ Star History

Star History Chart

🙏 Acknowledgments

Special thanks to our open-source partners:

Roo Code OpenSpec OpenCode agents.md agentskills


Disclaimer

Please note that Sangfor, Inc does not make any representations or warranties regarding any code, models, or other tools provided or made available in connection with CoStrict, any associated third-party tools, or any resulting outputs. You assume all risks associated with the use of any such tools or outputs; such tools are provided on an "AS IS" and "AS AVAILABLE" basis. Such risks may include, without limitation, intellectual property infringement, cyber vulnerabilities or attacks, bias, inaccuracies, errors, defects, viruses, downtime, property loss or damage, and/or personal injury. You are solely responsible for your use of any such tools or outputs (including, without limitation, the legality, appropriateness, and results thereof).