You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+65-17Lines changed: 65 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# DeerFlow - Unified Development Environment
2
2
3
-
.PHONY: help config config-upgrade check install dev dev-daemon start stop up down clean docker-init docker-start docker-stop docker-logs docker-logs-frontend docker-logs-gateway
3
+
.PHONY: help config config-upgrade check install dev dev-pro dev-daemon dev-daemon-pro start start-pro start-daemon start-daemon-pro stop up up-pro down clean docker-init docker-start docker-start-pro docker-stop docker-logs docker-logs-frontend docker-logs-gateway
4
4
5
5
BASH ?= bash
6
6
@@ -20,18 +20,25 @@ help:
20
20
@echo " make install - Install all dependencies (frontend + backend)"
21
21
@echo " make setup-sandbox - Pre-pull sandbox container image (recommended)"
22
22
@echo " make dev - Start all services in development mode (with hot-reloading)"
23
-
@echo " make dev-daemon - Start all services in background (daemon mode)"
23
+
@echo " make dev-pro - Start in dev + Gateway mode (experimental, no LangGraph server)"
24
+
@echo " make dev-daemon - Start dev services in background (daemon mode)"
25
+
@echo " make dev-daemon-pro - Start dev daemon + Gateway mode (experimental)"
24
26
@echo " make start - Start all services in production mode (optimized, no hot-reloading)"
27
+
@echo " make start-pro - Start in prod + Gateway mode (experimental)"
28
+
@echo " make start-daemon - Start prod services in background (daemon mode)"
- **Standard / Gateway** — standard uses a separate LangGraph server (4 processes); Gateway mode (experimental) embeds the agent runtime in the Gateway API (3 processes)
> **Gateway mode** eliminates the LangGraph server process — the Gateway API handles agent execution directly via async tasks, managing its own concurrency.
303
+
304
+
#### Why Gateway Mode?
305
+
306
+
In standard mode, DeerFlow runs a dedicated [LangGraph Platform](https://langchain-ai.github.io/langgraph/) server alongside the Gateway API. This architecture works well but has trade-offs:
Copy file name to clipboardExpand all lines: backend/CLAUDE.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,10 @@ DeerFlow is a LangGraph-based AI super agent system with a full-stack architectu
13
13
-**Nginx** (port 2026): Unified reverse proxy entry point
14
14
-**Provisioner** (port 8002, optional in Docker dev): Started only when sandbox is configured for provisioner/Kubernetes mode
15
15
16
+
**Runtime Modes**:
17
+
-**Standard mode** (`make dev`): LangGraph Server handles agent execution as a separate process. 4 processes total.
18
+
-**Gateway mode** (`make dev-pro`, experimental): Agent runtime embedded in Gateway via `RunManager` + `run_agent()` + `StreamBridge` (`packages/harness/deerflow/runtime/`). Service manages its own concurrency via async tasks. 3 processes total, no LangGraph Server.
19
+
16
20
**Project Structure**:
17
21
```
18
22
deer-flow/
@@ -80,6 +84,8 @@ When making code changes, you MUST update the relevant documentation:
80
84
make check # Check system requirements
81
85
make install # Install all dependencies (frontend + backend)
82
86
make dev # Start all services (LangGraph + Gateway + Frontend + Nginx), with config.yaml preflight
87
+
make dev-pro # Gateway mode (experimental): skip LangGraph, agent runtime embedded in Gateway
88
+
make start-pro # Production + Gateway mode (experimental)
83
89
make stop # Stop all services
84
90
```
85
91
@@ -436,8 +442,25 @@ make dev
436
442
437
443
This starts all services and makes the application available at `http://localhost:2026`.
0 commit comments