coze-studio
CLAUDE.md22k starsChanged 15 months agoApache-2.0View on GitHub
Coze Studio is an all-in-one AI agent development platform with both frontend (React + TypeScript) and backend (Go) components. The project uses a sophisticated monorepo architecture managed by Rush.js with 135+ frontend packages organized in a hierarchical dependency system.
- Reads credentials
We split this CLAUDE.md into the rules it gives an agent
17 rules. About 0 are common, 9 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 134
Use workspace references (workspace:*) for internal dependencies
- Distinctive: line 137
Follow DDD principles with clear domain boundaries
- Distinctive: line 138
Use dependency injection via interfaces
- Distinctive: line 140
Write comprehensive tests for domain logic
- Very specific: line 143
Before deployment, configure AI models in backend/conf/model/:
- Very specific: line 163
Use rush update instead of npm install at root level
- Very specific: line 168
Ensure middleware services are running (make middleware)
- Distinctive: line 169
Check database connectivity and schema sync
- Distinctive: line 170
Verify model configurations are properly set
- Distinctive: line 173
Ensure sufficient resources (minimum 2 Core, 4GB RAM)
- Distinctive: line 174
Check port conflicts (8888 for frontend, various for services)
- Very specific: line 175
Use make clean to reset Docker volumes if needed
- Very specific: line 188
Follow OAuth schema in backend/conf/plugin/common/oauth_schema.json
- Very specific: line 193
Use conventional commits via rush commit
- Very specific: line 194
Run linting with rush lint-staged (pre-commit hook)
- Distinctive: line 195
Ensure tests pass before submitting PRs
- Distinctive: line 196
Follow team-based package organization and tagging conventions
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
Coze Studio is an all-in-one AI agent development platform with both frontend (React + TypeScript) and backend (Go) components. The project uses a sophisticated monorepo architecture managed by Rush.js with 135+ frontend packages organized in a hierarchical dependency system.
Development Commands
Environment Setup
# Clone and setup
git clone https://github.com/coze-dev/coze-studio.git
cd coze-studio
# Install frontend dependencies
rush update
# For Docker-based development
cd docker
cp .env.example .env
# Configure model settings in backend/conf/model/
docker compose up -d
# Access at http://localhost:8888Development Workflow
# Start middleware services (MySQL, Redis, Elasticsearch, etc.)
make middleware
# Start Go backend in development mode
make server
# Start frontend development server
cd frontend/apps/coze-studio
npm run dev
# Full development environment
make debugBuild Commands
# Build frontend only
make fe
# Build Go server
make build_server
# Build everything with Docker
make web
# Rush monorepo commands
rush build # Build all packages
rush rebuild -o @coze-studio/app # Build specific package
rush test # Run all tests
rush lint # Lint all packagesTesting
# Run tests (Vitest-based)
rush test
npm run test # In specific package
npm run test:cov # With coverage
# Backend tests
cd backend && go test ./...Architecture Overview
Frontend Architecture
- Monorepo: Rush.js with 135+ packages across 4 dependency levels
- Build System: Rsbuild (Rspack-based) for fast builds
- UI Framework: React 18 + TypeScript + Semi Design + Tailwind CSS
- State Management: Zustand for global state
- Package Organization:
arch/: Core infrastructure (level-1)common/: Shared components and utilities (level-2)agent-ide/,workflow/,studio/: Feature domains (level-3)apps/coze-studio: Main application (level-4)
Backend Architecture (Go)
- Framework: Hertz HTTP framework
- Architecture: Domain-Driven Design (DDD) with microservices
- Structure:
domain/: Business logic and entitiesapplication/: Application services and use casesapi/: HTTP handlers and routinginfra/: Infrastructure implementationscrossdomain/: Cross-cutting concerns
Key Architectural Patterns
- Adapter Pattern: Extensive use for loose coupling between layers
- Interface Segregation: Clear contracts between domains
- Event-Driven: NSQ message queue for async communication
- API-First: Comprehensive OpenAPI specifications
Database & Infrastructure
Docker Services Stack
- Database: MySQL 8.4.5
- Cache: Redis 8.0
- Search: Elasticsearch 8.18.0 with SmartCN analyzer
- Vector DB: Milvus v2.5.10 for embeddings
- Storage: MinIO for object storage
- Message Queue: NSQ (nsqlookupd, nsqd, nsqadmin)
- Configuration: etcd 3.5
Database Management
# Sync database schema
make sync_db
# Dump database schema
make dump_db
# Initialize SQL data
make sql_init
# Atlas migration management
make atlas-hashKey Development Patterns
Frontend Package Development
- Each package follows consistent structure with
README.md,package.json,tsconfig.json,eslint.config.js - Adapter pattern extensively used for decoupling (e.g.,
-adaptersuffix packages) - Base/Core pattern for shared functionality (e.g.,
-basesuffix packages) - Use workspace references (
workspace:*) for internal dependencies
Backend Development
- Follow DDD principles with clear domain boundaries
- Use dependency injection via interfaces
- Implement proper error handling with custom error types
- Write comprehensive tests for domain logic
Model Configuration
Before deployment, configure AI models in backend/conf/model/:
- Copy template from
backend/conf/model/template/ - Set
id,meta.conn_config.api_key, andmeta.conn_config.model - Supported providers: OpenAI, Volcengine Ark, Claude, Gemini, Qwen, DeepSeek, Ollama
Testing Strategy
Coverage Requirements by Package Level
- Level 1: 80% coverage, 90% increment
- Level 2: 30% coverage, 60% increment
- Level 3-4: 0% coverage (flexible)
Testing Framework
- Frontend: Vitest for unit/integration tests
- Backend: Go's built-in testing framework
- E2E: Separate e2e subspace configuration
Common Issues & Solutions
Frontend Development
- Use
rush updateinstead ofnpm installat root level - Build packages in dependency order using
rush build - For hot reload issues, check Rsbuild configuration in specific package
Backend Development
- Ensure middleware services are running (
make middleware) - Check database connectivity and schema sync
- Verify model configurations are properly set
Docker Issues
- Ensure sufficient resources (minimum 2 Core, 4GB RAM)
- Check port conflicts (8888 for frontend, various for services)
- Use
make cleanto reset Docker volumes if needed
IDL and Code Generation
The project uses Interface Definition Language (IDL) for API contract management:
- IDL files in
idl/directory (Thrift format) - Frontend code generation via
@coze-arch/idl2ts-*packages - Backend uses generated Go structs
Plugin Development
For custom plugin development:
- Reference templates in
backend/conf/plugin/pluginproduct/ - Follow OAuth schema in
backend/conf/plugin/common/oauth_schema.json - Configure authentication keys for third-party services
Contributing
- Use conventional commits via
rush commit - Run linting with
rush lint-staged(pre-commit hook) - Ensure tests pass before submitting PRs
- Follow team-based package organization and tagging conventions
Trending
More talk lately.about the whole repository
Who's talking about coze-dev/coze-studio
- @adinayakup.bsky.social“Coze is going open source 🔥 Coze is a full-stack platform for building & managing AI Agents built by …”Bluesky · Jul 26, 2025 · 6 likes
- A Hacker News story“Coze Studio: all-in-one AI agent development tool”Hacker News · Jul 25, 2025 · 3 points
- beclab/apps“[Add App]Coze Stuido”GitHub · Jan 23, 2026 · 1 reactions
- @github-trending-js.bsky.social“📦 coze-dev / coze-studio ⭐ 17,875 (+38) 🗒 TypeScript An AI agent development platform with all-in-one …”Bluesky · Oct 14, 2025 · 1 likes
- @github-trending.bsky.social“📦 coze-dev / coze-studio ⭐ 17,402 (+38) 🗒 TypeScript An AI agent development platform with all-in-one …”Bluesky · Oct 10, 2025 · 1 likes
The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 18
Talked about on GitHub, Bluesky and Hacker News (18 times).
On GitHub · 12
- Jan 23, 2026[Add App]Coze Stuido — beclab/apps1 reaction
- Oct 27, 2026[catalog-candidate] coze-studio-self-hosted — ePlus-DEV/free-tier-hub0 reactions · 3 comments
- Jan 12, 2026Add comprehensive AI Agent platforms and frameworks documentation — pacoxu/AI-Infra0 reactions
- Jan 9, 2026[Request] Add Prompt Template — ModelEngine-Group/nexent0 reactions
- Nov 4, 2025Create docker-compose.yml project for [Coze] — Websoft9/docker-library0 reactions
7 more on GitHub
- Sep 23, 2025能否在idl(proto)文件中统一service的入口 — cloudwego/hertz0 reactions
- Sep 19, 2025Invalid Signature — cla-assistant/cla-assistant0 reactions · 1 comment
- Aug 25, 2025Updated single-repositories/github/coze-dev/coze-studio.yml — oss-compass/compass-projects-information0 reactions · 2 comments
- Aug 22, 2025cozedev — DaoCloud/public-image-mirror0 reactions · 1 comment
- Aug 7, 2025技术周刊投稿 - Coze开源 — SearchFeed/weekly0 reactions
- Jul 31, 2025[Improvement] Acquire time in system prompt — ModelEngine-Group/nexent0 reactions
- Jul 27, 2025opencoze/opencoze:latest — DaoCloud/public-image-mirror0 reactions · 1 comment
On Bluesky · 5
- Jul 26, 2025Coze is going open source 🔥 Coze is a full-stack platform for building & managing AI Agents built by ByteDance ✨ Coze Studio – Visual dev… — @adinayakup.bsky.social6 likes and reposts
- Oct 14, 2025📦 coze-dev / coze-studio ⭐ 17,875 (+38) 🗒 TypeScript An AI agent development platform with all-in-one visual tools, simplifying agent… — @github-trending-js.bsky.social1 likes and repost
- Oct 10, 2025📦 coze-dev / coze-studio ⭐ 17,402 (+38) 🗒 TypeScript An AI agent development platform with all-in-one visual tools, simplifying agent… — @github-trending.bsky.social1 likes and repost
- Oct 10, 2025📦 coze-dev / coze-studio ⭐ 17,402 (+38) 🗒 TypeScript An AI agent development platform with all-in-one visual tools, simplifying agent… — @github-trending-js.bsky.social1 likes and repost
- Sep 26, 2025📦 coze-dev / coze-studio ⭐ 17,115 (+33) 🗒 TypeScript An AI agent development platform with all-in-one visual tools, simplifying agent… — @github-trending-js.bsky.social1 likes and repost
On Hacker News · 1
- Jul 25, 2025Coze Studio: all-in-one AI agent development tool3 points
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

