Sandbox
@zgsm-ai/costrict

AI coding assistant for VS Code, JetBrains, and CLI

CoStrict packages an AI coding assistant as editor extensions, a CLI tool, and related services. Its main pieces are strict mode for guided generation, repository-wide code review, code completion, and MCP integration for tools and data.

4,408 stars200 forksTypeScriptUpdated 8d ago
Who it's for

Builders who want a coding assistant that follows stricter workflows across editor and CLI setups.

What it delivers

You can generate, review, and refine code with more structured steps instead of ad hoc prompts.

What it does

Strict mode

Guides AI code generation through requirements analysis, architecture design, task planning, and test generation.

Code review

Indexes the repository and uses RAG-based analysis with multi-model verification.

Code completion

Generates context-aware code in seconds inside the editor or CLI flow.

MCP integration

Connects the assistant to APIs, databases, and custom tools through standardized integrations.

Multi-modal input

Accepts image context and other visual inputs alongside code and text.

Skills support

Adds extensible skills for specialized task workflows.

Private deployment

Supports enterprise deployment with isolation and encrypted handling for internal use.

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

FeatureDescription
🔒 Strict ModeStandardized AI code generation with requirements analysis, architecture design, task planning, and test generation
🔍 Code ReviewRepository-wide RAG-based code analysis with multi-expert model verification
Code CompletionContext-aware code generation in seconds
🎯 Vibe CodeRapid development through natural language dialogue
🔗 MCP IntegrationStandardized system connectivity for APIs, databases, and custom tools
🎨 Multi-modalSupport for image context and visual inputs
🛠️ Skills SupportExtensible skills system for specialized task workflows

📦 Installation

🌟 CoStrict Cloud

Cloud Docs
VS Code Extension

Download Download
CLI Tool

CLI Docs Download
JetBrains Plugin

JetBrains Repo Download

🚀 Key Features

Strict Mode

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

Strict Mode Demo Strict Mode

Code Review

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

Code Review Demo Code Review

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

ResourceLink
Installation Guidedocs.costrict.ai/en/guide/installation
Private Deploymentdocs.costrict.ai/en/deployment/introduction
Tutorial Videosdocs.costrict.ai/en/tutorial-videos/video
CLI Documentationdocs.costrict.ai/cli/guide/installation

🤝 Community & Support


WeChat Group

Feedback
GitHub Issues

🤝 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).

Files in the repo

Repository payload46 top-level entries
  • .changeset
  • .github
  • .husky
  • .roo
  • .vscode
  • apps
  • assets
  • packages
  • patches
  • schemas
  • scripts
  • src
  • webview-ui
  • .dockerignore
  • .env.sample
  • .git-blame-ignore-revs
  • .gitattributes
  • .gitconfig
  • .gitignore
  • .nvmrc
  • .prettierrc.json
  • .rooignore
  • .roomodes
  • .tool-versions
  • AGENTS.md
  • CHANGELOG_ARCHIVE.md
  • CHANGELOG.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • costrict.code-workspace
  • ellipsis.yaml
  • knip.json
  • LICENSE
  • localhost
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • PRIVACY.md
  • progress.txt
  • README.md
  • README.zh-CN.md
  • renovate.json
  • SECURITY.md
  • sync-upstream.md
  • tsconfig.json
  • turbo.json

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More plugins

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

138k
1 add

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

82k
code-yeongyu/
oh-my-openagent

OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering.

69k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

94k

Opinionated Oxlint rules for rejecting low-evidence TypeScript and JavaScript patterns

4.3k