Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(docker): remove COPY for non-existent tsconfig/node_modules (#661)

Jiayuan Zhang2d4b9594071f
diff --git a/CLI_AND_DAEMON.md b/CLI_AND_DAEMON.md
index 4d0f4927fd..521ad90b75 100644
--- a/CLI_AND_DAEMON.md
+++ b/CLI_AND_DAEMON.md
@@ -162,11 +162,16 @@ Agent-specific overrides:
### Self-Hosted Server
-When connecting to a self-hosted Multica instance, point the CLI to your server before logging in:
+When connecting to a self-hosted Multica instance, you **must** point the CLI to your server before logging in. The CLI defaults to the hosted Multica service — skipping this step means the daemon will authenticate against the wrong server.
```bash
-export MULTICA_APP_URL=https://app.example.com
-export MULTICA_SERVER_URL=wss://api.example.com/ws
+# Local Docker Compose (default ports):
+export MULTICA_APP_URL=http://localhost:3000
+export MULTICA_SERVER_URL=ws://localhost:8080/ws
+
+# Production with TLS:
+# export MULTICA_APP_URL=https://app.example.com
+# export MULTICA_SERVER_URL=wss://api.example.com/ws
multica login
multica daemon start
@@ -175,8 +180,8 @@ multica daemon start
Or set them persistently:
```bash
-multica config set app_url https://app.example.com
-multica config set server_url wss://api.example.com/ws
+multica config set app_url http://localhost:3000
+multica config set server_url ws://localhost:8080/ws
```
### Profiles
diff --git a/Dockerfile.web b/Dockerfile.web
index 2df2f1e0f1..28efaf4a7a 100644
--- a/Dockerfile.web
+++ b/Dockerfile.web
@@ -28,7 +28,6 @@ COPY --from=deps /app/apps/web/node_modules ./apps/web/node_modules
COPY --from=deps /app/packages/core/node_modules ./packages/core/node_modules
COPY --from=deps /app/packages/ui/node_modules ./packages/ui/node_modules
COPY --from=deps /app/packages/views/node_modules ./packages/views/node_modules
-COPY --from=deps /app/packages/tsconfig/node_modules ./packages/tsconfig/node_modules
COPY --from=deps /app/packages/eslint-config/node_modules ./packages/eslint-config/node_modules
# Copy source
diff --git a/SELF_HOSTING.md b/SELF_HOSTING.md
index fceecb25c2..439fe04ba6 100644
--- a/SELF_HOSTING.md
+++ b/SELF_HOSTING.md
@@ -36,13 +36,15 @@ Then start everything:
docker compose -f docker-compose.selfhost.yml up -d
```
-That's it. This builds and starts PostgreSQL, the backend (with auto-migration), and the frontend:
+This builds and starts PostgreSQL, the backend (with auto-migration), and the frontend:
- **Frontend:** http://localhost:3000
- **Backend API:** http://localhost:8080
The backend automatically runs database migrations on startup — no manual migration step needed.
+To run AI agents, you also need to set up the daemon on your local machine. See [Setting Up the Agent Daemon](#setting-up-the-agent-daemon) below.
+
### Rebuilding After Updates
```bash
@@ -264,6 +266,8 @@ Use this for load balancer health checks or monitoring.
## Setting Up the Agent Daemon
+The daemon runs on your local machine (not inside Docker). It detects installed AI agent CLIs, registers them as runtimes with the server, and executes tasks when agents are assigned work.
+
Each team member who wants to run AI agents locally needs to:
1. **Install the CLI**
@@ -277,29 +281,46 @@ Each team member who wants to run AI agents locally needs to:
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) (`claude` on PATH)
- [Codex](https://github.com/openai/codex) (`codex` on PATH)
-3. **Authenticate and start**
+3. **Point the CLI to your server**
+
+ The CLI defaults to the hosted Multica service. For self-hosted setups, you **must** set the server URLs before logging in:
+
+ ```bash
+ # Local Docker Compose deployment (default ports):
+ export MULTICA_APP_URL=http://localhost:3000
+ export MULTICA_SERVER_URL=ws://localhost:8080/ws
+
+ # Production deployment with TLS:
+ # export MULTICA_APP_URL=https://app.example.com
+ # export MULTICA_SERVER_URL=wss://api.example.com/ws
+ ```
+
+ > **Note:** Use `http://` and `ws://` for local deployments without TLS. Use `https://` and `wss://` for production deployments behind a TLS-terminating reverse proxy.
+
+ You can also set these persistently so you don't need to export them each time:
+
+ ```bash
+ multica config set app_url http://localhost:3000
+ multica config set server_url ws://localhost:8080/ws
+ ```
+
+4. **Authenticate and start**
```bash
- # Point CLI to your server
- #
- # For production deployments with TLS:
- export MULTICA_APP_URL=https://app.example.com
- export MULTICA_SERVER_URL=wss://api.example.com/ws
- #
- # For local deployments without TLS:
- # export MULTICA_APP_URL=http://localhost:3000
- # export MULTICA_SERVER_URL=ws://localhost:8080/ws
-
- # Login (opens browser)
+ # Login (opens browser to your frontend)
multica login
# Start the daemon
multica daemon start
```
- > **Note:** Use `https://` and `wss://` for production deployments behind a TLS-terminating reverse proxy. For local or development deployments without TLS, use `http://` and `ws://` instead.
+ The login flow opens your browser, authenticates you via the frontend, and stores a personal access token locally. The daemon then uses this token to register with the backend.
+
+ To verify the daemon is running:
-The daemon auto-detects installed agent CLIs and registers itself with the server. When an agent is assigned a task in Multica, the daemon picks it up, creates an isolated workspace, runs the agent, and reports results back.
+ ```bash
+ multica daemon status
+ ```
## Upgrading
diff --git a/apps/web/package.json b/apps/web/package.json
index 9f73637410..adce735652 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -12,15 +12,15 @@
"test": "vitest run"
},
"dependencies": {
- "@multica/core": "workspace:*",
- "@multica/ui": "workspace:*",
- "@multica/views": "workspace:*",
"@base-ui/react": "^1.3.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@emoji-mart/data": "^1.2.1",
"@floating-ui/dom": "^1.7.6",
+ "@multica/core": "workspace:*",
+ "@multica/ui": "workspace:*",
+ "@multica/views": "workspace:*",
"@tanstack/react-query": "^5.96.2",
"@tanstack/react-query-devtools": "^5.96.2",
"@tiptap/extension-code-block-lowlight": "^3.22.1",
@@ -43,6 +43,7 @@
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.1.0",
+ "dotenv": "^17.4.1",
"embla-carousel-react": "^8.6.0",
"emoji-mart": "^5.6.0",
"input-otp": "^1.4.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5459a74764..287dcbddf9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -314,6 +314,9 @@ importers:
date-fns:
specifier: ^4.1.0
version: 4.1.0
+ dotenv:
+ specifier: ^17.4.1
+ version: 17.4.1
embla-carousel-react:
specifier: ^8.6.0
version: 8.6.0([email protected])
@@ -3593,8 +3596,8 @@ packages:
resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA==}
+ resolution: {integrity: sha512-k8DaKGP6r1G30Lx8V4+pCsLzKr8vLmV2paqEj1Y55GdAgJuIqpRp5FfajGF8KtwMxCz9qJc6wUIJnm053d/WCw==}
engines: {node: '>=12'}
@@ -7166,7 +7169,7 @@ snapshots:
'@dotenvx/[email protected]':
dependencies:
commander: 11.1.0
- dotenv: 17.3.1
+ dotenv: 17.4.1
eciesjs: 0.4.18
execa: 5.1.1
fdir: 6.5.0([email protected])
@@ -9720,7 +9723,7 @@ snapshots:
dependencies: