README Source History Refs Reviews Compare Notes Search Review guide CI runs dev: isolated dev genome with on-the-fly origin ce12c7350fc55349a8969b40612e2b48c380f873
Oliver Jan Krylow <oliver@bugabinga.net > · 13 Sep 2026
SSH signature · not checked
Browse files Compare with HEAD
git-init seeds ./.dev/origin/will.git from the real checkout's commits,
clones ./.dev/work, copies node_modules once, and overlays uncommitted
files as dev-sync commits (skipped when will's tree is dirty). The
agent sees only ./.dev: it edits, commits, and pushes in its clone;
the real workspace is never mounted. Ready handshake via .ready marker.
Changed files (5) Diff layout Auto Unified Split
+1 / −0 text lines
10 11 models-store.json models-store.json +37 / −21 text lines
6 14 image : docker.io/library/node:26-slim image : docker.io/library/node:26-slim 19 27 WILL_STORAGE_STOP_PCT : 5 WILL_STORAGE_STOP_PCT : 5 21 29 - .:/workspace - .:/workspace 22 - - service-data:/srv/will-data 30 + - ./.dev/ service-data:/srv/will-data24 32 - '3000:3000' - '3000:3000' 25 33 - '127.0.0.1:33001:3001' - '127.0.0.1:33001:3001' 27 35 - '127.0.0.1:33081:8081' - '127.0.0.1:33081:8081'
39 + context : ./deploy/dev 41 + command : sh /scripts/git-init.sh 45 + - ./deploy/dev/git-init.sh:/scripts/git-init.sh:ro 31 49 context : ./deploy/dev context : ./deploy/dev 32 50 dockerfile : agent.df dockerfile : agent.df 33 - working_dir : /workspace 34 - command : node --experimental-strip-types src/agent/main.ts 51 + working_dir : /will-dev/work 35 52 depends_on : depends_on :39 57 network_mode : "service:service" network_mode : "service:service"
58 + command : sh -c "until [ -f /will-dev/.ready ]; do sleep 0.5; done; exec node --experimental-strip-types /will-dev/work/src/agent/main.ts" 40 59 environment : environment :42 61 ZAI_API_KEY : ${ZAI_API_KEY:-} ZAI_API_KEY : ${ZAI_API_KEY:-} 43 - WILL_AGENT_DIR : /srv/will-agent 46 - WILL_WORK_DIR : /workspace 47 - WILL_RESOURCE_DIR : /workspace 48 - GIT_AUTHOR_NAME : will 49 - GIT_AUTHOR_EMAIL : will@bugabinga.net 50 - GIT_COMMITTER_NAME : will 51 - GIT_COMMITTER_EMAIL : will@bugabinga.net 62 + WILL_AGENT_DIR : /will-dev/agent 64 + WILL_WORK_DIR : /will-dev/work 65 + WILL_RESOURCE_DIR : /will-dev/work 66 + WILL_VCS_GIT_URL : /will-dev/origin/will.git 67 + WILL_VCS_DEFAULT_BRANCH : trunk 52 68 WILL_SERVICE_INTERNAL_URL : http://127.0.0.1:3001 WILL_SERVICE_INTERNAL_URL : http://127.0.0.1:3001 54 70 WILL_AGENT_READY_ADDR : 0.0.0.0:8081 WILL_AGENT_READY_ADDR : 0.0.0.0:8081 56 72 WILL_TELEGRAM_TOKEN : dev-token WILL_TELEGRAM_TOKEN : dev-token 57 73 WILL_TELEGRAM_CHAT_ID : '-100' WILL_TELEGRAM_CHAT_ID : '-100' 58 74 WILL_TELEGRAM_OLIVER_ID : '1' WILL_TELEGRAM_OLIVER_ID : '1'
75 + GIT_AUTHOR_NAME : will 76 + GIT_AUTHOR_EMAIL : will@bugabinga.net 77 + GIT_COMMITTER_NAME : will 78 + GIT_COMMITTER_EMAIL : will@bugabinga.net 61 - - agent-data:/srv/will-agent 63 83 fake-telegram : fake-telegram :67 87 PORT : 38080 PORT : 38080 69 89 - '38080:38080' - '38080:38080' deploy/dev/agent.df Modified +1 / −1 text lines
1 1 FROM docker.io/library/node:26-slimFROM docker.io/library/node:26-slim2 - RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/*2 + RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates rsync && rm -rf /var/lib/apt/lists/*deploy/dev/git-init.sh Added new file mode 100755+44 / −0 text lines
8 + ORIGIN= /will-dev/origin/will.git 12 + if [ ! -d "$ORIGIN/objects" ] ; then 13 + git clone --bare --quiet /workspace "$ORIGIN" 15 + git -C "$ORIGIN" fetch --prune --quiet /workspace '+refs/heads/*:refs/heads/*' 19 + if [ ! -d "$WORK/.git" ] ; then 20 + git clone --quiet "$ORIGIN" "$WORK" 24 + if [ ! -d "$WORK/node_modules" ] ; then 25 + echo 'dev: copying node_modules (one-time)' 26 + cp -a /workspace/node_modules "$WORK/node_modules" 31 + if [ -z "$(git -C "$WORK" status --porcelain)" ] ; then 33 + --exclude .git --exclude node_modules --exclude .dev \34 + --exclude dist --exclude web/dist --exclude docs/dist --exclude coverage \36 + git -C "$WORK" add -A37 + git -C "$WORK" -c user.name=dev-sync -c user.email=dev-sync@local \38 + commit -m 'dev-sync: overlay workspace state at boot' --quiet || true40 + echo 'dev: work tree dirty, skipping overlay sync' 43 + git -C "$WORK" log --oneline -244 + touch /will-dev/.ready+6 / −3 text lines
27 27 │ storage thresholds dev : warn 10 % / stop 5% (host fs is ~84% full) │ │ storage thresholds dev : warn 10 % / stop 5% (host fs is ~84% full) │ 28 28 │ model session: fake without a key; ZAI_API_KEY=... mise run dev │ │ model session: fake without a key; ZAI_API_KEY=... mise run dev │ 29 29 │ makes will real (force fake: WILL_SESSION_MODE=fake) │ │ makes will real (force fake: WILL_SESSION_MODE=fake) │ 30 - │ genome: /work s pace (your live checkout); commits local, no push │30 + │ genome: will lives in ./ .dev/ work (clone of ./ .dev/ origin/ will.git │31 + │ seeded from your commits + dev- sync overlay of your dirty files).│32 + │ will edits/ commits/ pushes ONLY there. Inspect: cd .dev/ work │33 + │ your real workspace is never mounted into the agent │32 - │ state : named volumes will_service- data / will_agent- data │33 - │ reset : podman compose down - v │35 + │ state : ./ .dev/ {origin.git,work,agent,service-data} on your host │36 + │ reset : rm - rf .dev && podman compose up - d │34 37 │ logs : podman compose logs - f service | agent ││ logs : podman compose logs - f service | agent │35 38 │ shell : podman compose exec agent bash ││ shell : podman compose exec agent bash │36 39 │ podman compose exec service bash ││ podman compose exec service bash │