# danielmiessler/lifeos — AlpLab Radar Static Code Audit

- Ring: `adopt`
- Category: `agents`
- Overall score: `3.8/5`
- Implementation check: `verified`
- Maturity: `mature`
- Audited commit: `94bd8f25a2d4` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T05:51:29Z
- Repository: https://github.com/danielmiessler/lifeos
- Radar entry: https://radar.alplab.co/#repo/danielmiessler/lifeos
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `ai-harness`, `claude-code`, `personal-assistant`, `installer`, `memory-systems`, `hooks`

## Summary

An AI-native personal 'life operating system' that installs itself as a skill plus runtime payload (system-prompt constitution, ~50 hooks, Pulse dashboard daemon on 127.0.0.1:31337, memory/Conduit/statusline, Algorithm doctrine) into Claude Code and, partially, other harnesses, driven by a hardened Bash bootstrap and a set of dry-run-by-default Bun/TypeScript install tools.

## Implementation Check

README claims (skills, Pulse, hooks, memory, Algorithm, installer) are backed by working code — LifeOS/install/install.sh plus LifeOS/Tools/InstallEngine.ts, InstallHooks.ts, DeployCore/DeployComponents and the large LifeOS/install/LIFEOS payload — with the one honest gap that always-on behavior is Claude Code-only (InstallHooks.ts refuses non-claude-code harnesses) while the README markets harness-agnosticism.

## When to Use

Use it if you are an individual (especially on macOS with Claude Code) who wants a persistent, opinionated personal-AI layer — identity, TELOS, memory, hooks, dashboard — and accepts granting an agent broad local authority with consent gates; back up ~/.claude first. Not for teams/shared machines, not for users of non-Claude-Code harnesses expecting full always-on behavior, and not for anyone who needs shipped, runnable tests in the public repo.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 3.5/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 4.0/5 |

## Code Evidence

LifeOS/install/install.sh pins the release tag to a commit SHA before downloading (LIFEOS_COMMIT via api.github.com + git ls-remote fallback), hard-fails on LIFEOS_EXPECTED_SHA256 mismatch, validates LIFEOS_TAG charset before interpolation, restores backups via an EXIT trap (restore_on_abort), and auto-installs bun only with a TTY or LIFEOS_AUTO_INSTALL_BUN=1; LifeOS/Tools/InstallEngine.ts implements detectHarness (multi-harness confidence), refuseDevInstallWrites/findDevWriteViolation (dev-tree write guard), substituteTree + checkSurvivingPlaceholders ({{TOKEN}} substitution closed loop), setupUserSeparation/establishLink (USER+MEMORY symlinks, lossless mergeTree), scanApiKeys, and CONFIG_ROOT_GITIGNORE_RULES keeping .env/.credentials.json out of git; LifeOS/Tools/InstallHooks.ts aborts on unparseable settings.json instead of resetting, backs up before an atomicWriteText, copies hook scripts additively (cpSync force:false), and fails when a shipped hook file is missing (wiredButMissingHooks); LifeOS/Tools/PulseHealth.ts audit reports checks as NOT RUN rather than passing and exits nonzero only on real failures; LifeOS/install/settings.system.json ships a permissions.deny list (curl|sh, rm -rf /, .env reads, python -c, wrangler/cf deploys) and an opt-in automode block with its own hard_deny; .github/workflows/security.yml runs gitleaks (8.28.0) plus .github/scripts/leak-scan.ts with SHA-pinned actions; .github/scripts/leak-scan.test.ts is the one runnable test shipped publicly; SECURITY.md codifies prompt-injection and execFile-over-exec doctrine; LifeOS/SKILL.md declares a deterministic eval (PulseHealth audit falsifier).

## Issues Found

No material security defect found, but the public payload ships almost no runnable tests (only .github/scripts/leak-scan.test.ts), leaving the extensive Tools/ and hooks/ logic unverifiable in-repo; LifeOS/Tools/InstallEngine.ts:87 uses string-interpolated execSync in tryExec (inputs are maintainer-fixed command strings, not external input, so no injection path was confirmed); the autoMode environment block in LifeOS/install/settings.system.json auto-approves broad command classes once explicitly enabled by the user.

## Key Risks

Public repo is a generated mirror of a private source tree: community PRs are ported, and the real test suite is explicitly absent ('tests are not in the release payload' per LifeOS/install/LIFEOS/DOCUMENTATION/Testing/TestingDoctrine.md and many per-file notes), so core-path test coverage could not be verified statically; nothing was executed. Runtime requires bun ≥1.2, is most-tested on Claude Code/macOS (hooks, statusline, launch alias are Claude-Code-only; Windows/Linux get degraded services), and grants an agent sweeping authority over the user's machine by design — the README's own disclaimer says security is the user's responsibility. Core starts background services (Pulse, Conduit app-focus/git/gh recorders, daily model sync) and the statusline weather sends the user's IP to ipinfo.io unless configured off — all disclosed in Intents/Setup.md's consent text. Install is by curl|bash or AI-driven prompt execution, mitigated by commit pinning, sha256, and consent gates.

## Reviewed Files

- `README.md`
- `SECURITY.md`
- `LifeOS/SKILL.md`
- `LifeOS/INSTALL.md`
- `LifeOS/install/install.sh`
- `LifeOS/Tools/InstallEngine.ts`
- `LifeOS/Tools/InstallHooks.ts`
- `LifeOS/Tools/PulseHealth.ts`
- `LifeOS/Intents/Setup.md`
- `LifeOS/install/LIFEOS/LIFEOS_SYSTEM_PROMPT.md`
- `LifeOS/install/settings.system.json`
- `.github/workflows/security.yml`
- `.github/workflows/claude.yml`
- `.gitleaks.toml`
