mirror of
https://github.com/langgenius/dify.git
synced 2026-11-10 21:35:45 +08:00
1.6 KiB
1.6 KiB
AGENTS.md
Dify is an open-source platform for building LLM applications, agentic workflows, and RAG pipelines. This monorepo contains the backend API (api/), frontend application (web/), deployment assets (docker/), standalone agent backend (dify-agent/), CLI (cli/), and end-to-end suite (e2e/). Follow the nearest scoped AGENTS.md for the files being changed. Apply its guidance within the user's requested scope; explicit user instructions take precedence over workflow defaults.
Before starting backend development, read the architecture, repositories, SQLAlchemy, and database schema guides.
Repository Gotchas
- Run backend commands through
uv run --project api <command>. - Backend integration tests are CI-only and are not expected to run locally.
- Prefer targeted checks (specific test files, changed paths) on local machines. Before running a whole-project heavy job, such as the full Web
unitorbrowserVitest project,pnpm -C web build(next build),pnpm -C web build:vinext, or the full backend test suite, either get the user's approval or cap its resource use, for example--maxWorkers=2for Vitest,NODE_OPTIONS=--max-old-space-size=4096for Node builds, andnice -n 10for the process. - Keep
docker/.env.examplelimited to settings that require manual user configuration. Omit settings whose built-in defaults work unchanged. Put optional and provider-specific settings in the matchingdocker/envs/*.env.examplefile;docker/.envoverrides those service-specific env files.