Loki
Capability layer: a captain over a fleet of AI agents that builds and ships projects, with verification and approval built in — improve it by typing into it
Problem
Builders need a trustworthy command center for AI agents to manage multiple projects simultaneously
Solution
Loki provides a multi-user SaaS platform for commanding AI agent fleets across projects, with a focus on control, simplicity, and security
Mission
Direct the creation of everything you can imagine. Loki is the control plane for the age of autonomous creation: today one person commands a fleet of AI agents building software, tomorrow the same person commands fleets of robots building the physical world. Raw capability is no longer the constraint — human direction is. Every surface exists to raise the number of agents one operator can hold in their head and aim.
Vision
Leverage shifts from companies to individuals: a single builder, on their own machines and their own models, out-executes a team, and the only remaining bottleneck is their judgment about what to build. Deliberately open- and local-model capable, so creation is never gated behind closed frontier subscriptions. The commercial form — a high-retention SaaS for builders and small teams, with OrangeCat as the economic layer — follows from that goal rather than defining it.
Technical context
Next.js 16 App Router · TypeScript strict · Tailwind 4 + ui-* design system (globals.css SSOT) · Drizzle ORM + PostgreSQL 17 (self-hosted Hetzner) · box-runner + Fleet Runner desktop (Electron, node-pty) · pgvector fleet-knowledge RAG (fastembed 384-dim) · Auth.js (GitHub/Google/X/email + OrangeCat OIDC)
Investigate this project with Loki →Roadmap
Loki Phase 2 — Adapters
- Gmail adapter — not done
- Calendar adapter — not done
- GitHub adapter — not done
- Bank CSV import — not done
Build Ivy into a Life OS
- Knowledge graph operational — done
- Cockpit dashboard live — done
- Social graph imported — done
- Adapters: Gmail, Calendar, GitHub — not done
- Ivy proactive actions — not done
- Multi-user ready — not done
Loki Phase 1
- Schema + seed — done
- App shell + navigation — done
- Today view — done
- People view — done
- Money view — done
- Goals view — done
- Projects view — done
- System + Memory views — done
- Polish + bug fixes — not done
Runner stall: auto-recovery & alerting
- Detect execution-stall (pushes alive, command loop hung) — done
- Auto-recover: re-dispatch / restart runner on stall — done
- Alert operator (push / Telegram) when a stall is detected — done
Capture run outcomes (Done/Failed/commit), not just dispatches
- Persist outcome (success/partial/error/hang/abort/timeout) — done
- Capture resulting commit SHA per run — done
- Build run summary from the SSOT field array (no dropped fields) — done
- Surface outcomes in the activity timeline + analytics view — not done
Truthful-state chips on project cards
- 'no commit' warning when a done run left no git trace — done
- Stale-running / execution-stall chip — done
- Surface block-reason / no-op-count as chips — not done
Finish zellij -> Loki-owned PTY terminal migration
- Single transport-parameterized xterm view — done
- node-pty owned-PTY executor in Fleet Runner — not done
- Cut dispatch path from zellij name-puppeting to owned PTY — not done
- Remove zellij dependency from the launch flow — not done
Deploy on origin/main + auto-migrate + rollback/alert
- Push-to-deploy on main (pre-push backgrounds the deploy) — done
- Post-deploy verification (sign-in / health / providers) — done
- Auto-run drizzle migrate on deploy (ledger-based) — not done
- Auto-rollback + alert on failed verification — done
One context assembler: Global+Project+Session into EVERY dispatch
- Global operating principles injected (Global tier) — done
- Project brief + active goals injected via getProjectContext — done
- Session handoff injected on every dispatch path — done
- Close the /api/inject-core bypass (one assembler, all paths) — not done
i18n missing-key tooling + national-locale SLAs
- Tooling / CI check that fails on missing translation keys — not done
- Per-locale completeness report — not done
- Define national-locale SLAs (de-CH first) — not done
OC seam: genesis flow — one sentence to funded workspace
- Funding events → FC activity (shipped) — done
- OC Build-CTA carries project payload into FC new-project flow — not done
- Counterpart-missing suggestion rows both sides — not done
- One-conversation genesis orchestration — not done
OC seam: verify BTC pass with a real sats purchase
- OC pass products live — done
- Webhook secret set both ends — done
- Signed test grant verified e2e — done
- Real sats purchase confirms plan flip — not done
OC seam: backer live-build peek on OC project pages
- Scoped read-only peek token on FC — not done
- OC project-page embed behind funding check — not done
OC seam: wallet context for Loki
- OC v1 GET /wallets honoring wallet.read bearer — not done
- FC: Economy line in Loki fleet context — not done
- Graceful degradation when unlinked — not done
Changelog
November 25, 2026
keller-wake alert again; its fix is still only on local branch fix/keller-wake-reland (0e9fa686, tests pass) because the pre-push check:deploy-ready fails on this box's missing site checkouts; #1747/#1753 still open and red.
November 25, 2026
grub-initrd-fallback.service (fifth dispatch) is still the box-shaped failed one-shot nobody has reset; nothing changed in the repo; same reset-and-rerun commands handed over.
November 24, 2026
keller-wake alert again; the fix (#1747 + #1753, re-landed on local branch fix/keller-wake-reland at 0e9fa686, tests pass) is still NOT on origin because the pre-push check:deploy-ready fails on this box's missing site checkouts; #1747/#1753 still open and red.
November 24, 2026
grub-initrd-fallback.service (fourth dispatch) is still the box-shaped failed one-shot; nothing changed in the repo; reset-and-rerun commands handed over again.
November 24, 2026
solon-sync 500 (second time) is OrangeCat's solon-sync route hitting its catch-all while OrangeCat (health 200 at 13:55 UTC) and Solon (200) are both up; route unchanged since 2026-11-10 and uses the default Solon URL, so the logged error is needed to choose a fix; no code change, handed over read-and-rerun commands.
November 24, 2026
review-nudges failure is the same OrangeCat outage that began between 10:20 and 10:25 UTC (app not listening on 127.0.0.1:4003); box-shaped, no code change.
November 24, 2026
companion-routines failure (10:30 tick) is the same OrangeCat outage that began between 10:20 and 10:25 UTC (app not listening on 127.0.0.1:4003); box-shaped, no code change.
November 24, 2026
cat-watches failure (10:30 tick) is the same OrangeCat outage that began between 10:20 and 10:25 UTC (app not listening on 127.0.0.1:4003); box-shaped, no code change.
November 24, 2026
task-reminders failures are the same OrangeCat outage; its journal pins the start: app answered at 10:20:01 UTC, refused from the 10:25 tick on; box-shaped, no code change.
November 24, 2026
orangecat-webhook-worker failures are the same OrangeCat outage (app not listening on 127.0.0.1:4003, orangecat.ch 502); box-shaped, no code change; restart commands handed over.
November 24, 2026
payment-reconcile failures are the same OrangeCat outage as cat-mentions (orangecat.ch still 502 at 10:28 UTC, nothing on 127.0.0.1:4003); box-shaped, no code change; restart commands already handed over.
November 24, 2026
cat-mentions failures are a symptom: OrangeCat itself is DOWN (orangecat.ch and www answer 502, nothing listens on 127.0.0.1:4003; Loki/Solon/Gitea fine); box-shaped, handed the operator diagnose-and-restart commands for orangecat-app.
November 24, 2026
orangecat-cron@solon-sync 500 is OrangeCat's solon-sync route hitting its catch-all (the Solon fetch or its JSON threw at tick time); Solon answers 200 now with no closed allocation-policy sessions, so nothing was missed and no code change is warranted; handed the operator a safe re-run plus the log line that names the error.
November 23, 2026
keller-wake fixes (#1747 + #1753, red only from the main-side test bug fixed in #1756) re-landed on fix/keller-wake-reland from current main; their tests pass, but the push was stopped by the pre-push check:deploy-ready (this box has 8 of 28 site checkouts) and is NOT on origin.
November 23, 2026
grub-initrd-fallback.service failure is box-shaped (a failed one-shot left from an earlier run, nothing in the repo changed); handed the operator the reset-and-rerun commands again.
November 23, 2026
GET /api/control/open-tabs 502 diagnosed as the Loki app process not answering for over Caddy's 20s retry window (no deploy in 3 days, route itself cannot produce a 502); no repo defect, so no PR; handed the operator read-only box commands to find the crash/restart.
November 23, 2026
Gitea user cato is not reachable from this sandbox (no gitea binary/process/admin token, /opt blocked); handed the operator exact box commands to activate, make site admin and set a temporary must-change password.
November 23, 2026
Telegram inbound fix pushed as bitbaum/loki#1765 (85343645, auto-merge on): alert when the chat bot stops receiving, notify bot cannot hijack the chat bot, webhook 403 self-repair, pictures to the notify bot answered and recorded.
November 23, 2026
Telegram inbound fix committed as 85343645 on fix/telegram-photo-inbound (alert when the chat bot stops receiving, notify-bot cannot hijack the chat bot, webhook 403 self-repair, pictures answered and recorded) but NOT pushed: the pre-push hook fails on 12 browser tests that cannot start Chromium here (libglib missing) and --no-verify was denied.
November 23, 2026
Started: Telegram photo-to-calendar bug (no inbound record for 2026-11-23 07:24 screenshot).