loki-mode 5.42.0 → 5.42.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
1
  # Loki Mode
2
2
 
3
- **The First Truly Autonomous Multi-Agent Startup System**
3
+ **The Flagship Product of [Autonomi](https://www.autonomi.dev/) -- The First Truly Autonomous Multi-Agent Startup System**
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/loki-mode)](https://www.npmjs.com/package/loki-mode)
6
6
  [![npm downloads](https://img.shields.io/npm/dw/loki-mode)](https://www.npmjs.com/package/loki-mode)
7
7
  [![GitHub stars](https://img.shields.io/github/stars/asklokesh/loki-mode)](https://github.com/asklokesh/loki-mode)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
9
  [![GitHub Marketplace](https://img.shields.io/badge/Marketplace-Loki%20Mode-purple?logo=github)](https://github.com/marketplace/actions/loki-mode-code-review)
10
- [![Claude Code](https://img.shields.io/badge/Claude-Code-orange)](https://claude.ai)
10
+ [![Autonomi](https://img.shields.io/badge/Autonomi-autonomi.dev-5B4EEA)](https://www.autonomi.dev/)
11
11
  [![Agent Types](https://img.shields.io/badge/Agent%20Types-41-blue)]()
12
12
  [![Loki Mode](https://img.shields.io/badge/Loki%20Mode-98.78%25%20Pass%401-blueviolet)](benchmarks/results/)
13
13
  [![HumanEval](https://img.shields.io/badge/HumanEval-98.17%25%20Pass%401-brightgreen)](benchmarks/results/)
14
14
  [![SWE-bench](https://img.shields.io/badge/SWE--bench-99.67%25%20Patch%20Gen-brightgreen)](benchmarks/results/)
15
15
 
16
- **Current Version: v5.40.0**
16
+ **Current Version: v5.42.2**
17
17
 
18
- **[Documentation Website](https://asklokesh.github.io/loki-mode/)** | **[Architecture](https://asklokesh.github.io/loki-mode/blog/#architecture)** | **[Research](https://asklokesh.github.io/loki-mode/blog/#research)** | **[Comparisons](https://asklokesh.github.io/loki-mode/blog/#comparisons)**
18
+ **[Autonomi](https://www.autonomi.dev/)** | **[Documentation](https://www.autonomi.dev/)** | **[GitHub](https://github.com/asklokesh/loki-mode)**
19
19
 
20
20
  > **PRD → Deployed Product in Zero Human Intervention**
21
21
  >
@@ -25,9 +25,9 @@
25
25
 
26
26
  ## Demo
27
27
 
28
- [![asciicast](https://asciinema.org/a/EqNo5IVTaPJfCjLmnYgZ9TC3E.svg)](https://asciinema.org/a/EqNo5IVTaPJfCjLmnYgZ9TC3E)
28
+ [![asciicast](https://asciinema.org/a/AjjnjzOeKLYItp6s.svg)](https://asciinema.org/a/AjjnjzOeKLYItp6s)
29
29
 
30
- *Click to watch Loki Mode build a complete Todo App from PRD - zero human intervention*
30
+ *Click to watch Loki Mode v5.42 -- CLI commands, dashboard, 8 parallel agents, 7-gate quality, Completion Council, memory system*
31
31
 
32
32
  ---
33
33
 
@@ -977,6 +977,18 @@ Built for the [Claude Code](https://claude.ai) ecosystem, powered by Anthropic's
977
977
 
978
978
  ---
979
979
 
980
+ ## Autonomi
981
+
982
+ Loki Mode is the flagship product of **[Autonomi](https://www.autonomi.dev/)** -- a platform for autonomous AI systems. Like Alphabet is to Google, Autonomi is the parent brand under which Loki Mode and future products operate.
983
+
984
+ **Why Autonomi?** Loki Mode proved that multi-agent autonomous systems can build real software from a PRD with zero human intervention. Autonomi is the expansion of that vision into a broader platform of autonomous services and products.
985
+
986
+ - **[autonomi.dev](https://www.autonomi.dev/)** -- Main website and documentation
987
+ - **Loki Mode** -- Autonomous multi-agent startup system (this repo)
988
+ - More products coming soon
989
+
990
+ ---
991
+
980
992
  **Ready to build a startup while you sleep?**
981
993
 
982
994
  ```bash
@@ -986,4 +998,4 @@ git clone https://github.com/asklokesh/loki-mode.git ~/.claude/skills/loki-mode
986
998
 
987
999
  ---
988
1000
 
989
- **Keywords:** claude-code, claude-skills, ai-agents, autonomous-development, multi-agent-system, sdlc-automation, startup-automation, devops, mlops, deployment-automation, self-healing, perpetual-improvement
1001
+ **Keywords:** autonomi, loki-mode, claude-code, claude-skills, ai-agents, autonomous-development, multi-agent-system, sdlc-automation, startup-automation, devops, mlops, deployment-automation, self-healing, perpetual-improvement
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: loki-mode
3
3
  description: Multi-agent autonomous startup system. Triggers on "Loki Mode". Takes PRD to deployed product with zero human intervention. Requires --dangerously-skip-permissions flag.
4
4
  ---
5
5
 
6
- # Loki Mode v5.42.0
6
+ # Loki Mode v5.42.2
7
7
 
8
8
  **You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
9
9
 
@@ -258,8 +258,8 @@ The following features are documented in skill modules but not yet fully automat
258
258
  |---------|--------|-------|
259
259
  | PRE-ACT goal drift detection | Planned | Agent-level attention check before each action; no automated enforcement yet |
260
260
  | CONTINUITY.md working memory | Implemented (v5.35.0) | Auto-managed by run.sh, updated each iteration |
261
- | GitHub integration | Implemented (v5.42.0) | Import, sync-back, PR creation, export. CLI: `loki github`, API: `/api/github/*` |
261
+ | GitHub integration | Implemented (v5.42.2) | Import, sync-back, PR creation, export. CLI: `loki github`, API: `/api/github/*` |
262
262
  | Quality gates 3-reviewer system | Implemented (v5.35.0) | 5 specialist reviewers in `skills/quality-gates.md`; execution in run.sh |
263
263
  | Benchmarks (HumanEval, SWE-bench) | Infrastructure only | Runner scripts and datasets exist in `benchmarks/`; no published results |
264
264
 
265
- **v5.42.0 | feat: GitHub sync-back, PR creation, export (fully wired) | ~260 lines core**
265
+ **v5.42.2 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 5.42.0
1
+ 5.42.2
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "5.42.0"
10
+ __version__ = "5.42.2"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try:
@@ -259,14 +259,57 @@ manager = ConnectionManager()
259
259
  start_time = datetime.now(timezone.utc)
260
260
 
261
261
 
262
+ async def _orphan_watchdog():
263
+ """Background task that shuts down dashboard if the parent session dies.
264
+
265
+ When the session process is killed (SIGKILL), the cleanup trap never runs
266
+ and the dashboard is left orphaned. This watchdog checks the session PID
267
+ every 30 seconds and initiates shutdown if the session is gone.
268
+ """
269
+ loki_dir = _get_loki_dir()
270
+ pid_file = loki_dir / "loki.pid"
271
+ # Wait 60s before first check to let session fully start
272
+ await asyncio.sleep(60)
273
+ while True:
274
+ try:
275
+ if pid_file.exists():
276
+ pid = int(pid_file.read_text().strip())
277
+ try:
278
+ os.kill(pid, 0) # Check if process exists
279
+ except OSError:
280
+ # Session PID is dead -- we're orphaned
281
+ logger.warning(
282
+ "Session PID %d is gone. Dashboard shutting down to avoid orphan.", pid
283
+ )
284
+ # Clean up our own PID file
285
+ dash_pid = loki_dir / "dashboard" / "dashboard.pid"
286
+ dash_pid.unlink(missing_ok=True)
287
+ # Give a moment for any in-flight requests
288
+ await asyncio.sleep(2)
289
+ os._exit(0)
290
+ # If PID file doesn't exist and we've been running >2 min, also shut down
291
+ elif time.time() - _dashboard_start_time > 120:
292
+ logger.warning("No session PID file found. Dashboard shutting down.")
293
+ os._exit(0)
294
+ except (ValueError, OSError):
295
+ pass
296
+ await asyncio.sleep(30)
297
+
298
+
299
+ _dashboard_start_time = time.time()
300
+
301
+
262
302
  @asynccontextmanager
263
303
  async def lifespan(app: FastAPI):
264
304
  """Application lifespan handler."""
265
305
  # Startup
266
306
  await init_db()
267
307
  _telemetry.send_telemetry("dashboard_start")
308
+ # Start orphan watchdog
309
+ watchdog_task = asyncio.create_task(_orphan_watchdog())
268
310
  yield
269
311
  # Shutdown
312
+ watchdog_task.cancel()
270
313
  await close_db()
271
314
 
272
315
 
@@ -1,8 +1,8 @@
1
1
  # Loki Mode Installation Guide
2
2
 
3
- Complete installation instructions for all platforms and use cases.
3
+ The flagship product of [Autonomi](https://www.autonomi.dev/). Complete installation instructions for all platforms and use cases.
4
4
 
5
- **Version:** v5.42.0
5
+ **Version:** v5.42.2
6
6
 
7
7
  ---
8
8
 
package/mcp/__init__.py CHANGED
@@ -21,4 +21,4 @@ try:
21
21
  except ImportError:
22
22
  __all__ = ['mcp']
23
23
 
24
- __version__ = '5.42.0'
24
+ __version__ = '5.42.2'
package/package.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "loki-mode",
3
- "version": "5.42.0",
4
- "description": "Multi-agent autonomous startup system for Claude Code, Codex CLI, and Gemini CLI",
3
+ "version": "5.42.2",
4
+ "description": "Loki Mode by Autonomi - Multi-agent autonomous startup system for Claude Code, Codex CLI, and Gemini CLI",
5
5
  "keywords": [
6
+ "autonomi",
7
+ "loki-mode",
6
8
  "claude",
7
9
  "claude-code",
8
10
  "ai",
@@ -11,7 +13,7 @@
11
13
  "startup",
12
14
  "multi-agent"
13
15
  ],
14
- "homepage": "https://asklokesh.github.io/loki-mode",
16
+ "homepage": "https://www.autonomi.dev/",
15
17
  "bugs": {
16
18
  "url": "https://github.com/asklokesh/loki-mode/issues"
17
19
  },