Launcher override: honour LIFEOS_CLAUDE_LAUNCH so the launch can route through wrappers like ollama launch claude
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bun, typescript
Hướng nghiên cứu
Bắt đầu tại LifeOS/install/LIFEOS/TOOLS/lifeos.ts, dòng 552, trong cmdLaunch, rồi lần theo cách nó tạo và khởi chạy các đối số của lệnh. Kiểm tra cách launcher xử lý LIFEOS_CLAUDE_LAUNCH và giữ lại các cờ LifeOS sau dấu phân tách đối số của wrapper. Tái hiện bằng lệnh bun được cung cấp; hoàn thành khi wrapper nhận được các đối số được thêm vào và claude vẫn được khởi chạy nếu biến chưa được đặt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Version
LifeOS 8.761.0 · attestation: 7 system file(s) differ from danielmiessler/[email protected]:
- skills\LifeOS\SKILL.md
- skills\LifeOS\Tools\DeployComponents.ts
- skills\LifeOS\Tools\InstallEngine.ts
- LIFEOS\TOOLS\Doctor.ts
- LIFEOS\TOOLS\lifeos.ts
- LIFEOS\TOOLS\Services.ts
- LIFEOS\STATUSLINE\Admission.ts
What is broken
cmdLaunch spawns the literal binary claude with no way to route the launch through a wrapper. Users who launch Claude Code through a launcher integration — for example Ollama 0.40's ollama launch claude, which proxies the session to its own model stack and requires extra CLI arguments after a bare -- — cannot launch LifeOS at all: either the wrapper is bypassed (LifeOS silently launches plain claude, losing the wrapper's model routing) or the wrapper parses the LifeOS constitution flags itself and fails with Error: unknown flag: --append-system-prompt-file. The spawned binary is hardcoded, so there is no seam for any wrapper: proxy shims, model routers, and vendor-launcher integrations are all locked out.
Where (file:line)
LifeOS/install/LIFEOS/TOOLS/lifeos.ts:552 (cmdLaunch)
Repro on a clean tree
Clone https://github.com/danielmiessler/LifeOS to any directory. On the unpatched tree, from inside that clone run, via a POSIX shell with bun on PATH:
LIFEOS_CLAUDE_LAUNCH='cmd /c echo' bun '<clone>/LifeOS/install/LIFEOS/TOOLS/lifeos.ts' -s '<clone>/LifeOS/install/LIFEOS/LIFEOS_SYSTEM_PROMPT.md' -- --version
The value of LIFEOS_CLAUDE_LAUNCH is ignored: the launcher prints its banner and then spawns `claude` directly, so the output ends with Claude Code's own version banner (`2.1.302 (Claude Code)`). With the patched launcher, the same command honours the prefix and the output ends with the prefix receiving the appended arguments verbatim (`--append-system-prompt-file .../LIFEOS_SYSTEM_PROMPT.md --version`).
Negative control
Probe: LIFEOS_CLAUDE_LAUNCH='cmd /c echo' bun 'C:~/DevSwarmProjects/LifeOS-upstream/LifeOS/install/LIFEOS/TOOLS/lifeos.ts' -s 'C:~/DevSwarmProjects/LifeOS-upstream/LifeOS/install/LIFEOS/LIFEOS_SYSTEM_PROMPT.md' -- --version · exit 0 · captured 2026-11-28T02:19:02.319Z
Red looks like: 2.1.302 (Claude Code)
[38;2;37;99;235mLi[0m[38;2;59;130;246mfe[0m[38;2;147;197;253mOS[0m [38;2;51;65;85m|[0m [38;2;100;116;139mYour Life Operating System[0m
[3m[38;2;147;197;253m"Magnifying human capabilities..."[0m
[38;2;37;99;235m█████[0m [38;2;51;65;85m│[0m
[38;2;37;99;235m█████[0m [38;2;51;65;85m│[0m [38;2;100;116;139m"[0m[38;2;147;197;253mLifeOS here, ready to go[0m[38;2;100;116;139m..."[0m
[38;2;30;58;138m█████[0m [38;2;51;65;85m│[0m [38;2;51;65;85m────────────────────────[0m
[38;2;30;58;138m█████[0m [38;2;51;65;85m│[0m [38;2;30;58;138m⬢[0m [38;2;100;116;139mLifeOS[0m [38;2;203;213;225m8.761.0[0m
[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m [38;2;30;58;138m⚙[0m [38;2;100;116;139mAlgo[0m [38;2;203;213;225m8.45.0[0m
[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m [38;2;147;197;253m✦[0m [38;2;100;116;139mSK[0m [38;2;203;213;225m7[0m
[38;2;30;58;138m█████[0m[38;2;30;58;138m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m [38;2;65;105;225m↪[0m [38;2;100;116;139mHOOKS[0m [38;2;140;160;220m36[0m
[38;2;30;58;138m█████[0m[38;2;30;58;138m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m [38;2;51;65;85m────────────────────────[0m
[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m
[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m
[38;2;51;65;85m→[0m [38;2;59;130;246mgithub.com/danielmiessler/LifeOS[0m
2.1.302 (Claude Code)
Suggested fix
Honour an optional LIFEOS_CLAUDE_LAUNCH environment variable in cmdLaunch as a space-split command prefix (default claude), and append the launcher's own flags after that prefix. With LIFEOS_CLAUDE_LAUNCH="ollama launch claude --", the documented ollama launch [INTEGRATION] [-- [EXTRA_ARGS...]] form receives every LifeOS flag (--append-system-prompt-file, --resume, passthrough flags) after ITS argument separator, and the launch runs through the wrapper. The env var is opt-in; unset behaviour is byte-identical to today.
diff --git a/LifeOS/install/LIFEOS/TOOLS/lifeos.ts b/LifeOS/install/LIFEOS/TOOLS/lifeos.ts
index 69a4718..01578f4 100755
--- a/LifeOS/install/LIFEOS/TOOLS/lifeos.ts
+++ b/LifeOS/install/LIFEOS/TOOLS/lifeos.ts
@@ -549,7 +549,14 @@ async function cmdLaunch(options: { mcp?: string; resume?: boolean; resumeId?: s
requireClaudeCli();
displayBanner();
- const args = ["claude"];
+ // LIFEOS_CLAUDE_LAUNCH overrides what actually spawns (default "claude").
+ // Set it to a command prefix — e.g. `ollama launch claude --` — to route the
+ // launch through a wrapper. Split on spaces: it is a short prefix, not a
+ // quoted path; a path form would need argv escaping first.
+ const base = process.env.LIFEOS_CLAUDE_LAUNCH?.trim()
+ ? process.env.LIFEOS_CLAUDE_LAUNCH.trim().split(/\s+/)
+ : ["claude"];
+ const args = base;
// LifeOS System Prompt — constitutional rules appended to Claude Code's system prompt
// These rules get highest instruction authority (system prompt layer > CLAUDE.md layer)
Verified after fix
Probe: LIFEOS_CLAUDE_LAUNCH='cmd /c echo' bun 'C:~/DevSwarmProjects/LifeOS-upstream/LifeOS/install/LIFEOS/TOOLS/lifeos.ts' -s 'C:~/DevSwarmProjects/LifeOS-upstream/LifeOS/install/LIFEOS/LIFEOS_SYSTEM_PROMPT.md' -- --version · exit 0 · captured 2026-11-28T02:15:52.938Z
[38;2;37;99;235mLi[0m[38;2;59;130;246mfe[0m[38;2;147;197;253mOS[0m [38;2;51;65;85m|[0m [38;2;100;116;139mYour Life Operating System[0m
[3m[38;2;147;197;253m"Magnifying human capabilities..."[0m
[38;2;37;99;235m█████[0m [38;2;51;65;85m│[0m
[38;2;37;99;235m█████[0m [38;2;51;65;85m│[0m [38;2;100;116;139m"[0m[38;2;147;197;253mLifeOS here, ready to go[0m[38;2;100;116;139m..."[0m
[38;2;30;58;138m█████[0m [38;2;51;65;85m│[0m [38;2;51;65;85m────────────────────────[0m
[38;2;30;58;138m█████[0m [38;2;51;65;85m│[0m [38;2;30;58;138m⬢[0m [38;2;100;116;139mLifeOS[0m [38;2;203;213;225m8.761.0[0m
[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m [38;2;30;58;138m⚙[0m [38;2;100;116;139mAlgo[0m [38;2;203;213;225m8.45.0[0m
[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m [38;2;147;197;253m✦[0m [38;2;100;116;139mSK[0m [38;2;203;213;225m7[0m
[38;2;30;58;138m█████[0m[38;2;30;58;138m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m [38;2;65;105;225m↪[0m [38;2;100;116;139mHOOKS[0m [38;2;140;160;220m36[0m
[38;2;30;58;138m█████[0m[38;2;30;58;138m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m [38;2;51;65;85m────────────────────────[0m
[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m
[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m[38;2;147;197;253m█████[0m [38;2;51;65;85m│[0m
[38;2;51;65;85m→[0m [38;2;59;130;246mgithub.com/danielmiessler/LifeOS[0m
--append-system-prompt-file C:~/DevSwarmProjects/LifeOS-upstream/LifeOS/install/LIFEOS/LIFEOS_SYSTEM_PROMPT.md --version
Environment
- OS: Windows (x64)
- Harness: claude-code
- bun: not found · git: not found
- Doctor broken: identity-placeholders, shadow-home, codex, interceptor, cloudflare
- Ngôn ngữ chính
- TypeScript
- Star
- 20k
- Fork
- 2.5k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của danielmiessler/LifeOS
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
danielmiessler/LifeOS#2997 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
danielmiessler/LifeOS#2985 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
MemoryTurnStart: the 300 ms budget skipped memory retrieval on 1 in 4 prompts on a Windows installĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
danielmiessler/LifeOS#2983 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
danielmiessler/LifeOS#2980 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
danielmiessler/LifeOS#2977 ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của danielmiessler/LifeOS
Issue tương tự
-
good first issue help wanted
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 86/100
Intelligenza-Umana/intelligenza-umana-web#16 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
open-webui/open-webui#35184 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày