# Backend Code Review

Adopt this skill: https://proskills.md/skills/coding/dify-backend-code-review

Page: https://proskills.md/skills/coding/dify-backend-code-review
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: .agents
upstream: https://github.com/langgenius/dify/blob/HEAD/.agents

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/.agents

## File: .claude
upstream: https://github.com/langgenius/dify/blob/HEAD/.claude

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/.claude

## File: .coveragerc
upstream: https://github.com/langgenius/dify/blob/HEAD/.coveragerc

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/.coveragerc

## File: .devcontainer
upstream: https://github.com/langgenius/dify/blob/HEAD/.devcontainer

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/.devcontainer

## File: .editorconfig
upstream: https://github.com/langgenius/dify/blob/HEAD/.editorconfig

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/.editorconfig

## File: .gemini
upstream: https://github.com/langgenius/dify/blob/HEAD/.gemini

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/.gemini

## File: .gitattributes
upstream: https://github.com/langgenius/dify/blob/HEAD/.gitattributes

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/.gitattributes

## File: .github
upstream: https://github.com/langgenius/dify/blob/HEAD/.github

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/.github

## File: .gitignore
upstream: https://github.com/langgenius/dify/blob/HEAD/.gitignore

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/.gitignore

## File: .vscode
upstream: https://github.com/langgenius/dify/blob/HEAD/.vscode

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/.vscode

## File: AGENTS.md
upstream: https://github.com/langgenius/dify/blob/HEAD/AGENTS.md

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/AGENTS.md

## File: AUTHORS
upstream: https://github.com/langgenius/dify/blob/HEAD/AUTHORS

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/AUTHORS

## File: CLAUDE.md
upstream: https://github.com/langgenius/dify/blob/HEAD/CLAUDE.md

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/CLAUDE.md

## File: CONTRIBUTING.md
upstream: https://github.com/langgenius/dify/blob/HEAD/CONTRIBUTING.md

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/CONTRIBUTING.md

## File: LICENSE
upstream: https://github.com/langgenius/dify/blob/HEAD/LICENSE

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/LICENSE

## File: Makefile
upstream: https://github.com/langgenius/dify/blob/HEAD/Makefile

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/Makefile

## File: README.md
upstream: https://github.com/langgenius/dify/blob/HEAD/README.md

````text
![cover-v5-optimized](./images/GitHub_README_if.png)

<p align="center">
  <a href="https://cloud.dify.ai">Dify Cloud</a> ·
  <a href="https://docs.dify.ai/getting-started/install-self-hosted">Self-hosting</a> ·
  <a href="https://docs.dify.ai">Documentation</a> ·
  <a href="https://dify.ai/pricing">Dify edition overview</a>
</p>

<p align="center">
    <a href="https://dify.ai" target="_blank">
        <img alt="Static Badge" src="https://img.shields.io/badge/Product-F04438"></a>
    <a href="https://dify.ai/pricing" target="_blank">
        <img alt="Static Badge" src="https://img.shields.io/badge/free-pricing?logo=free&color=%20%23155EEF&label=pricing&labelColor=%20%23528bff"></a>
    <a href="https://discord.gg/FngNHpbcY7" target="_blank">
        <img src="https://img.shields.io/discord/1082486657678311454?logo=discord&labelColor=%20%235462eb&logoColor=%20%23f5f5f5&color=%20%235462eb"
            alt="chat on Discord"></a>
    <a href="https://reddit.com/r/difyai" target="_blank">
        <img src="https://img.shields.io/reddit/subreddit-subscribers/difyai?style=plastic&logo=reddit&label=r%2Fdifyai&labelColor=white"
            alt="join Reddit"></a>
    <a href="https://twitter.com/intent/follow?screen_name=dify_ai" target="_blank">
        <img src="https://img.shields.io/twitter/follow/dify_ai?logo=X&color=%20%23f5f5f5"
            alt="follow on X(Twitter)"></a>
    <a href="https://www.linkedin.com/company/langgenius/" target="_blank">
        <img src="https://custom-icon-badges.demolab.com/badge/LinkedIn-0A66C2?logo=linkedin-white&logoColor=fff"
            alt="follow on LinkedIn"></a>
    <a href="https://hub.docker.com/u/langgenius" target="_blank">
        <img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/langgenius/dify-web?labelColor=%20%23FDB062&color=%20%23f79009"></a>
    <a href="https://github.com/langgenius/dify/graphs/commit-activity" target="_blank">
        <img alt="Commits last month" src="https://img.shields.io/github/commit-activity/m/langgenius/dify?labelColor=%20%2332b583&color=%20%2312b76a"></a>
    <a href="https://github.com/langgenius/dify/" target="_blank">
        <img alt="Issues closed" src="https://img.shields.io/github/issues-search?query=repo%3Alanggenius%2Fdify%20is%3Aclosed&label=issues%20closed&labelColor=%20%237d89b0&color=%20%235d6b98"></a>
    <a href="https://github.com/langgenius/dify/discussions/" target="_blank">
        <img alt="Discussion posts" src="https://img.shields.io/github/discussions/langgenius/dify?labelColor=%20%239b8afb&color=%20%237a5af8"></a>
    <a href="https://insights.linuxfoundation.org/project/langgenius-dify" target="_blank">
        <img alt="LFX Health Score" src="https://insights.linuxfoundation.org/api/badge/health-score?project=langgenius-dify"></a>
    <a href="https://insights.linuxfoundation.org/project/langgenius-dify" target="_blank">
        <img alt="LFX Contributors" src="https://insights.linuxfoundation.org/api/badge/contributors?project=langgenius-dify"></a>
    <a href="https://insights.linuxfoundation.org/project/langgenius-dify" target="_blank">
        <img alt="LFX Active Contributors" src="https://insights.linuxfoundation.org/api/badge/active-contributors?project=langgenius-dify"></a>
</p>

<p align="center">
  <a href="./README.md"><img alt="README in English" src="https://img.shields.io/badge/English-d9d9d9"></a>
  <a href="./docs/zh-TW/README.md"><img alt="繁體中文文件" src="https://img.shields.io/badge/繁體中文-d9d9d9"></a>
  <a href="./docs/zh-CN/README.md"><img alt="简体中文文件" src="https://img.shields.io/badge/简体中文-d9d9d9"></a>
  <a href="./docs/ja-JP/README.md"><img alt="日本語のREADME" src="https://img.shields.io/badge/日本語-d9d9d9"></a>
  <a href="./docs/es-ES/README.md"><img alt="README en Español" src="https://img.shields.io/badge/Español-d9d9d9"></a>
  <a href="./docs/fr-FR/README.md"><img alt="README en Français" src="https://img.shields.io/badge/Français-d9d9d9"></a>
  <a href="./docs/tlh/README.md"><img alt="README tlhIngan Hol" src="https://img.shields.io/badge/Klingon-d9d9d9"></a>
  <a href="./docs/ko-KR/README.md"><img alt="README in Korean" src="https://img.shields.io/badge/한국어-d9d9d9"></a>
  <a href="./docs/ar-SA/README.md"><img alt="README بالعربية" src="https://img.shields.io/badge/العربية-d9d9d9"></a>
  <a href="./docs/tr-TR/README.md"><img alt="Türkçe README" src="https://img.shields.io/badge/Türkçe-d9d9d9"></a>
  <a href="./docs/vi-VN/README.md"><img alt="README Tiếng Việt" src="https://img.shields.io/badge/Ti%E1%BA%BFng%20Vi%E1%BB%87t-d9d9d9"></a>
  <a href="./docs/de-DE/README.md"><img alt="README in Deutsch" src="https://img.shields.io/badge/German-d9d9d9"></a>
  <a href="./docs/it-IT/README.md"><img alt="README in Italiano" src="https://img.shields.io/badge/Italiano-d9d9d9"></a>
  <a href="./docs/pt-BR/README.md"><img alt="README em Português do Brasil" src="https://img.shields.io/badge/Portugu%C3%AAs%20do%20Brasil-d9d9d9"></a>
  <a href="./docs/sl-SI/README.md"><img alt="README Slovenščina" src="https://img.shields.io/badge/Sloven%C5%A1%C4%8Dina-d9d9d9"></a>
  <a href="./docs/bn-BD/README.md"><img alt="README in বাংলা" src="https://img.shields.io/badge/বাংলা-d9d9d9"></a>
  <a href="./docs/hi-IN/README.md"><img alt="README in हिन्दी" src="https://img.shields.io/badge/Hindi-d9d9d9"></a>
  <a href="./docs/id-ID/README.md"><img alt="README dalam Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa%20Indonesia-d9d9d9"></a>
</p>

Dify is an open-source LLM app development platform. Its intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features (including [Opik](https://www.comet.com/docs/opik/integrations/dify), [Langfuse](https://docs.langfuse.com), and [Arize Phoenix](https://docs.arize.com/phoenix)) and more, letting you quickly go from prototype to production. Here's a list of the core features:

## Quick start

> Before installing Dify, make sure your machine meets the following minimum system requirements:
>
> - CPU >= 2 Core
> - RAM >= 4 GiB

<br/>

The easiest way to start the Dify server is through [Docker Compose](docker/docker-compose.yaml). Install [Docker](https://docs.docker.com/get-docker/) with a running daemon, Docker Compose v2.35.0 or later, and OpenSSL.

For a new deployment, run the following commands from the repository root. For an existing deployment, preserve your `.env` and follow the [upgrade guidance](docker/README.md#review-configuration-after-an-upgrade).

```bash
cd docker
cp .env.example .env
openssl rand -hex 32
```

Open `.env` and set `DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN` to the generated value. Keep the default `COMPOSE_PROFILES` value for the bundled services. Service defaults load automatically; no additional configuration files are required.

From the same `docker` directory, start the services:

```bash
docker compose up -d
docker compose ps --all
```

Once the services are running, open [http://localhost/install](http://localhost/install) to complete the initial setup. The one-time `init_permissions` service is expected to exit with code `0`.

For optional settings and service overrides, see the [Docker deployment guide](docker/README.md#configure-dify).

### Seeking help

Please refer to our [FAQ](https://docs.dify.ai/getting-started/install-self-hosted/faqs) if you encounter problems setting up Dify. Reach out to [the community and us](#community--contact) if you are still having issues.

> If you'd like to contribute to Dify or do additional development, refer to our [guide to deploying from source code](https://docs.dify.ai/getting-started/install-self-hosted/local-source-code)

## Key features

**1. Workflow**:
Build and test powerful AI workflows on a visual canvas, leveraging all the following features and beyond.

**2. Comprehensive model support**:
Seamless integration with hundreds of proprietary / open-source LLMs from dozens of inference providers and self-hosted solutions, covering GPT, Mistral, Llama3, and any OpenA
````

## File: api
upstream: https://github.com/langgenius/dify/blob/HEAD/api

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/api

## File: codecov.yml
upstream: https://github.com/langgenius/dify/blob/HEAD/codecov.yml

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/codecov.yml

## File: dev
upstream: https://github.com/langgenius/dify/blob/HEAD/dev

Content is not inlined in the catalog. Read the upstream file: https://github.com/langgenius/dify/blob/HEAD/dev
