Retour au classement

coze-dev/coze-loop

Go

Next-generation AI Agent Optimization Platform: Cozeloop addresses challenges in AI agent development by providing full-lifecycle management capabilities from development, debugging, and evaluation to monitoring.

agentaiagent-evaluationagent-observabilityagentopseinoevaluationlangchainllmopsmonitoringobservabilityopen-source
Croissance des étoiles
Étoiles
5.6k
Forks
777
Croissance hebdomadaire
Issues
43
2k4k
sept. 25déc. 25avr. 26juil. 26
ArtefactsGo Modulesgo get github.com/coze-dev/coze-loop
README

Image

What is Coze Loop

Coze Loop is a developer-oriented, platform-level solution focused on the development and operation of AI agents. It addresses various challenges faced during the AI agent development process, providing full lifecycle management capabilities from development, debugging, evaluation, to monitoring.

Based on the commercial version, Coze Loop introduces an open-source edition that offers developers free access to core foundational feature modules. By sharing its core technology framework in an open-source model, developers can customize and extend according to business needs, facilitating community co-construction, sharing, and exchange, helping developers participate in AI agent exploration and practice with zero barriers.

What can Coze Loop do?

Coze Loop helps developers develop and operate AI Agent more efficiently by providing full lifecycle management capabilities. Whether it is prompt engineering, AI Agent evaluation, or monitoring and optimization after deployment, Coze Loop provides powerful tools and intelligent support, greatly simplifying the development process of AI Agents and enhancing their operational performance and stability.

  • Prompt development: The Prompt development module of Coze Loop provides developers with end-to-end support for writing, debugging, optimizing, and version management. Through a visual Playground, it enables real-time interactive testing of prompts, allowing developers to intuitively compare the output of different LLMs.
  • Evaluation: The Coze Loop evaluation module provides developers with systematic evaluation capabilities, enabling automated multi-dimensional testing of prompts and Coze agents' output, such as accuracy, conciseness, compliance, and more.
  • Observability: Coze Loop provides developers with observability for the entire execution process, fully recording every stage from user input to AI output, including key stages such as prompt parsing, model invocation, and tool execution, and automatically capturing intermediate results and exceptions.

Feature list

Feature Functional points
Prompt debugging Playground debugging and comparison
Prompt version management
Evaluation Manage evaluation sets
Management evaluator
Manage experiments
Observation SDK trace reporting
* Trace data observation
Model Support integration with OpenAI, Volcengine Ark, and other models

Quick Start

Refer to Quick Start to learn in detail how to install and deploy the latest version of Coze Loop.

Deployment method 1: Docker deployment (Docker Compose)

Please install and start Docker Engine before you start.

Procedure:

  1. Clone the source code. Run the following command to obtain the latest version of the Coze Loop source code.

    # Clone the code
    git clone https://github.com/coze-dev/coze-loop.git
    
    # Enter the coze-loop directory
    cd coze-loop
    
  2. Configure a model.

    1. Enter the coze-loop directory.
    2. Edit the file release/deployment/docker-compose/conf/model_config.yaml.
    3. Modify the api_key and model fields. Take Volcengine Ark as an example:
  3. Start the service. Run the following commands to quickly deploy the open-source version of Coze Loop using Docker Compose.

    # Start the service (default: development mode)
    # Run in the coze-loop/ directory
    make compose-up
    
  4. Access the Coze Loop open-source version through your browser http://localhost:8082.

Deployment method 2: Kubernetes deployment using Helm Chart

  • The Kubernetes cluster has been prepared, the Nginx Ingress add-ons have been enabled, and the Kubectl and Helm tools have been installed.
  • To quickly try it out locally, you can deploy a Kubernetes cluster using Minikube. For detailed steps, refer to Quick Start.

Procedure:

  1. Run the following command to obtain the Helm Chart package.

    helm pull oci://docker.io/cozedev/coze-loop --version 1.0.0-helm
    tar -zxvf coze-loop-1.0.0-helm.tgz && cd coze-loop && rm -f ../coze-loop-1.0.0-helm.tgz
    
  2. Configure a model. Go to the coze-loop directory and edit the release/deployment/helm-chart/umbrella/conf/model_config.yaml file. Configure the following fields, using Volcengine Ark as an example:

  3. Configure Ingress rules. Ingress is used to expose services to external networks. You need to configure the templates/ingress.yaml file in the project directory according to the actual cluster situation, manually modify parameters such as ingressClassName, and configure elements such as class, instance, host, and IP allocation.

  4. Deploy and start the service. Execute the following commands to quickly deploy the open-source version of Coze Loop using Helm.

    # Run in the coze-loop/ directory
    make helm-up
    # After the service deployment is complete, check the status of the cluster pods
    make helm-pod
    # Check the service startup logs. If both the app and nginx are running normally, the deployment is successful
    make helm-logf-app
    make helm-logf-nginx
    
  5. Access the Coze Loop open source edition via a browser. The access domain name and URL depend on the domain name and URL assigned to your cluster.

  6. Start customizing your Coze Loop project. Refer to the examples in the examples/ directory. Modify values.yaml to override the default settings. After making changes, rerun make helm-up for the changes to take effect.

[!WARNING] If you want to deploy Coze Loop in a public network environment, it is recommended to assess security risks before you begin, and take corresponding protection measures. Possible security risks include account registration functions, Coze Server listening address configurations, SSRF (Server - Side Request Forgery), and some horizontal privilege escalations in APIs. For more details, refer to Quickstart.

Use the Coze Loop open source version

  • Prompt development and debugging: Coze Loop provides a complete prompt development workflow.
  • Evaluation: The evaluation functionality of Coze Loop provides standard evaluation data management, an automated evaluation engine, and comprehensive statistics on experimental results.
  • Trace reporting and query: Coze Loop supports automatic reporting of traces from prompt debugging sessions created on the platform, enabling real-time tracking of each trace.
  • Open-source Edition usage of the Coze Loop SDK: The Coze Loop SDK in three languages is suitable for both commercial and open-source editions. For the Open-source Edition, developers only need to modify some parameter configurations during initialization.

Developer guide

  • System architecture: Learn about the technical architecture and core components of Coze Loop Open-source Edition.
  • Startup mode: When installing and deploying Coze Loop Open-source Edition, the default development mode allows backend file modifications without requiring service redeployment.
  • Model configuration: Coze Loop Open-source Edition supports various LLM models through the Eino framework. Refer to this document to view the supported model list and learn how to configure models.
  • Code development and testing: Learn how to perform secondary development and testing based on Coze Loop Open-source Edition.
  • Fault troubleshooting: Learn how to check container status and system logs.

License

This project uses the Apache 2.0 license. For more details, please refer to the LICENSE file.

Community Contributions

We welcome community contributions. For contribution guidelines, please refer to CONTRIBUTING and Code of conduct. We look forward to your contributions!

Security and Privacy

If you identify potential security issues in this project or believe you may have found one, please notify Bytedance's security team via our Security Center or Vulnerability Report Email.

Please do not create public GitHub Issues.

Join the Community

We are committed to building an open and friendly developer community. All developers interested in AI Agent development are welcome to join us!

Issue Reports & Feature Requests

To efficiently track and resolve issues while ensuring transparency and collaboration, we recommend participating through:

Technical Discussion & Communication

Join our technical discussion groups to share experiences with other developers and stay updated with the latest project developments:

  • Lark Group Chat: Scan the QR code below on the Lark mobile app to join the Coze Loop technical discussion group.

Image

Acknowledgments

Thanks to all developers and community members who contributed to the Coze Loop project Special thanks:

  • LLM integration support provided by the Eino framework team
  • High-performance frameworks developed by the CloudWeGo team
  • All users who participated in testing and feedback
Dépôts similaires
Snailclimb/JavaGuide

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

JavaScriptnpmApache License 2.0javainterview
javaguide.cn
157.2k46.2k
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

TypeScriptnpmOtheraigpt
dify.ai
149.7k23.6k
TauricResearch/TradingAgents

TradingAgents: Multi-Agents LLM Financial Trading Framework

PythonPyPIApache License 2.0agentfinance
arxiv.org/pdf/2412.20138
94k18.2k
OpenHands/OpenHands

🙌 OpenHands: AI-Driven Development

PythonPyPIOtheragentartificial-intelligence
openhands.dev
81.6k10.4k
lobehub/lobehub

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

TypeScriptnpmOtherchatgptopenai
lobehub.com
80.6k15.7k
bytedance/deer-flow

An open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message gateway, it handles different levels of tasks that could take minutes to hours.

PythonPyPIMIT Licenseagentagentic
deerflow.tech
77.6k10.6k
dair-ai/Prompt-Engineering-Guide

🐙 Guides, papers, lessons, notebooks and resources for prompt engineering, context engineering, RAG, and AI Agents.

MDXMIT Licensedeep-learningprompt-engineering
promptingguide.ai
76.8k8.4k
hiyouga/LlamaFactory

Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

PythonPyPIApache License 2.0fine-tuningllama
llamafactory.readthedocs.io
73.4k9k
shareAI-lab/learn-claude-code

Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1

PythonPyPIMIT Licenseagentclaude-code
learn.shareai.run
71.9k11.7k
FoundationAgents/MetaGPT

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

PythonPyPIMIT Licenseagentgpt
atoms.dev
69.5k8.9k
unslothai/unsloth

Unsloth is a local UI for training and running Gemma 4, Qwen3.6, DeepSeek, Kimi, GLM and other models.

PythonPyPIApache License 2.0fine-tuningllama
unsloth.ai/docs
68.7k6.2k
datawhalechina/hello-agents

📚 《从零开始构建智能体》——从零开始的智能体原理与实践教程

PythonPyPIOtheragenttutorial
hello-agents.datawhale.cc
67.8k8.4k