* fix: use fully qualified tmux pane targets in webmux systemPrompt Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: anchor tmux pane targets to $TMUX_PANE for stability across window switches Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
109 lines
3.7 KiB
YAML
109 lines
3.7 KiB
YAML
# Project display name in the dashboard
|
|
name: Windmill
|
|
|
|
workspace:
|
|
mainBranch: main
|
|
worktreeRoot: ../windmill__worktrees
|
|
defaultAgent: claude
|
|
|
|
startupEnvs:
|
|
CARGO_FEATURES: "quickjs"
|
|
WM_CLONE_DB: false
|
|
USE_RUST_PLUGIN: false
|
|
|
|
lifecycleHooks:
|
|
postCreate: bash ./scripts/post-create.sh
|
|
preRemove: bash ./scripts/pre-remove.sh
|
|
|
|
auto_name:
|
|
provider: claude
|
|
model: haiku
|
|
|
|
# Each service defines a port env var that webmux injects into pane and agent
|
|
# process environments when creating a worktree. Ports are auto-assigned:
|
|
# base + (slot x step).
|
|
services:
|
|
- name: backend
|
|
portEnv: BACKEND_PORT
|
|
portStart: 8000
|
|
portStep: 10
|
|
- name: frontend
|
|
portEnv: FRONTEND_PORT
|
|
portStart: 3000
|
|
portStep: 10
|
|
|
|
profiles:
|
|
full:
|
|
runtime: host
|
|
yolo: true
|
|
envPassthrough: []
|
|
systemPrompt: >
|
|
You are running inside a tmux session with other panes running services.
|
|
Pane layout (current window):
|
|
- Pane 0: this pane (claude agent)
|
|
- Pane 1: backend (cargo watch -x run)
|
|
- Pane 2: frontend (npm run dev)
|
|
To check logs, use: \`tmux capture-pane -t $(tmux display-message -t "$TMUX_PANE" -p '#{session_name}:#{window_name}').1 -p -S -50\` (backend) or \`tmux capture-pane -t $(tmux display-message -t "$TMUX_PANE" -p '#{session_name}:#{window_name}').2 -p -S -50\` (frontend).
|
|
For this window specifically, backend is running on: ${BACKEND_PORT} and frontend is running on: ${FRONTEND_PORT}.
|
|
To connect to the database, use this connection string: ${DATABASE_URL}
|
|
Because we are running backend with cargo watch, to verify your changes, just check the logs in the backend pane. No need for cargo check.
|
|
IMPORTANT: Read docs/autonomous-mode.md before starting any work.
|
|
panes:
|
|
- id: agent
|
|
kind: agent
|
|
focus: true
|
|
- id: backend
|
|
kind: command
|
|
split: right
|
|
workingDir: backend
|
|
command: PORT=${BACKEND_PORT:-8000} cargo watch -x "run ${CARGO_FEATURES:+--features $CARGO_FEATURES}"
|
|
- id: frontend
|
|
kind: command
|
|
split: bottom
|
|
workingDir: frontend
|
|
command: npm run generate-backend-client && REMOTE=${REMOTE:-http://localhost:${BACKEND_PORT:-8000}} npm run dev -- --port ${FRONTEND_PORT:-3000} --host 0.0.0.0
|
|
|
|
frontendOnly:
|
|
runtime: host
|
|
yolo: true
|
|
envPassthrough: []
|
|
systemPrompt: >
|
|
You are running inside a tmux session with other panes running services.
|
|
Pane layout (current window):
|
|
- Pane 0: this pane (claude agent)
|
|
- Pane 1: frontend (npm run dev)
|
|
To check logs, use: \`tmux capture-pane -t $(tmux display-message -t "$TMUX_PANE" -p '#{session_name}:#{window_name}').1 -p -S -50\` (frontend).
|
|
On this window specifically, frontend is running on: ${FRONTEND_PORT}.
|
|
To connect to the database, use this connection string: ${DATABASE_URL}
|
|
Because we are running frontend with npm run dev, to verify your changes, just check the logs in the frontend pane. No need for npm run build.
|
|
IMPORTANT: Read docs/autonomous-mode.md before starting any work.
|
|
panes:
|
|
- id: agent
|
|
kind: agent
|
|
focus: true
|
|
- id: frontend
|
|
kind: command
|
|
split: right
|
|
workingDir: frontend
|
|
command: npm run generate-backend-client && npm run dev -- --port ${FRONTEND_PORT:-3000} --host 0.0.0.0
|
|
|
|
agentOnly:
|
|
runtime: host
|
|
yolo: true
|
|
envPassthrough: []
|
|
systemPrompt: >
|
|
IMPORTANT: Read docs/autonomous-mode.md before starting any work.
|
|
panes:
|
|
- id: agent
|
|
kind: agent
|
|
focus: true
|
|
|
|
integrations:
|
|
github:
|
|
linkedRepos:
|
|
- repo: windmill-labs/windmill-ee-private
|
|
alias: ee-private
|
|
dir: ../windmill-ee-private__worktrees
|
|
linear:
|
|
enabled: true
|