loki-mode 5.56.2 → 5.57.0

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/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 minimal human intervention. Requires --dangerously-skip-permissions flag.
4
4
  ---
5
5
 
6
- # Loki Mode v5.56.2
6
+ # Loki Mode v5.57.0
7
7
 
8
8
  **You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
9
9
 
@@ -263,4 +263,4 @@ The following features are documented in skill modules but not yet fully automat
263
263
  | Quality gates 3-reviewer system | Implemented (v5.35.0) | 5 specialist reviewers in `skills/quality-gates.md`; execution in run.sh |
264
264
  | Benchmarks (HumanEval, SWE-bench) | Infrastructure only | Runner scripts and datasets exist in `benchmarks/`; no published results |
265
265
 
266
- **v5.56.2 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
266
+ **v5.57.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 5.56.2
1
+ 5.57.0
package/autonomy/loki CHANGED
@@ -419,6 +419,7 @@ show_help() {
419
419
  echo " doctor [--json] Check system prerequisites and skill symlinks"
420
420
  echo " setup-skill Create skill symlinks for all providers"
421
421
  echo " watchdog [cmd] Process health monitoring (status|help)"
422
+ echo " remote [PRD] Start remote session (connect from phone/browser, Claude Pro/Max)"
422
423
  echo " version Show version"
423
424
  echo " help Show this help"
424
425
  echo ""
@@ -455,6 +456,8 @@ show_help() {
455
456
  echo " loki issue 123 # Generate PRD from issue #123"
456
457
  echo " loki issue 123 --start # Generate PRD and start Loki Mode"
457
458
  echo " loki issue https://github.com/owner/repo/issues/123 # From URL"
459
+ echo " loki remote # Start remote session (phone/browser)"
460
+ echo " loki remote ./prd.md # Remote session with PRD context"
458
461
  echo ""
459
462
  echo "Environment Variables:"
460
463
  echo " See: $RUN_SH (header comments)"
@@ -5627,6 +5630,9 @@ main() {
5627
5630
  syslog)
5628
5631
  cmd_syslog "$@"
5629
5632
  ;;
5633
+ remote|rc)
5634
+ cmd_remote "$@"
5635
+ ;;
5630
5636
  version|--version|-v)
5631
5637
  cmd_version
5632
5638
  ;;
@@ -8483,6 +8489,146 @@ for line in sys.stdin:
8483
8489
  esac
8484
8490
  }
8485
8491
 
8492
+ # Remote Control - start a remote-controllable Claude session
8493
+ cmd_remote() {
8494
+ local rc_flags=()
8495
+ local prd_file=""
8496
+
8497
+ while [[ $# -gt 0 ]]; do
8498
+ case "$1" in
8499
+ --help|-h)
8500
+ echo -e "${BOLD}loki remote${NC} - Start a remote-controllable Claude Code session"
8501
+ echo ""
8502
+ echo "Usage: loki remote [PRD] [options]"
8503
+ echo ""
8504
+ echo "Starts a Claude Code Remote Control session with Loki Mode skill"
8505
+ echo "pre-loaded. Connect from your phone, tablet, or any browser via"
8506
+ echo "claude.ai/code or the Claude mobile app."
8507
+ echo ""
8508
+ echo "Arguments:"
8509
+ echo " PRD Path to PRD file (optional)"
8510
+ echo ""
8511
+ echo "Options:"
8512
+ echo " --verbose Show detailed connection and session logs"
8513
+ echo " --sandbox Enable sandboxing for filesystem/network isolation"
8514
+ echo " --no-sandbox Disable sandboxing (default)"
8515
+ echo ""
8516
+ echo "Requirements:"
8517
+ echo " - Claude Code CLI installed"
8518
+ echo " - Anthropic Pro or Max plan (API keys not supported)"
8519
+ echo " - Signed in via 'claude' then '/login'"
8520
+ echo ""
8521
+ echo "Examples:"
8522
+ echo " loki remote # Start remote session"
8523
+ echo " loki remote ./prd.md # Remote session with PRD context"
8524
+ echo " loki remote --verbose # Verbose connection logging"
8525
+ echo ""
8526
+ echo "Once connected from your device, say:"
8527
+ echo " \"Loki Mode\" # Start autonomous mode"
8528
+ echo " \"Loki Mode with PRD at path\" # Start with specific PRD"
8529
+ exit 0
8530
+ ;;
8531
+ --verbose)
8532
+ rc_flags+=("--verbose")
8533
+ shift
8534
+ ;;
8535
+ --sandbox)
8536
+ rc_flags+=("--sandbox")
8537
+ shift
8538
+ ;;
8539
+ --no-sandbox)
8540
+ rc_flags+=("--no-sandbox")
8541
+ shift
8542
+ ;;
8543
+ --provider|--provider=*)
8544
+ echo -e "${RED}Error: Remote Control only supports the Claude provider${NC}"
8545
+ echo "The --provider flag is not available for 'loki remote'."
8546
+ exit 1
8547
+ ;;
8548
+ -*)
8549
+ echo -e "${RED}Unknown option: $1${NC}"
8550
+ echo "Run 'loki remote --help' for usage."
8551
+ exit 1
8552
+ ;;
8553
+ *)
8554
+ if [ -z "$prd_file" ]; then
8555
+ prd_file="$1"
8556
+ else
8557
+ echo -e "${RED}Error: Unexpected argument: $1${NC}"
8558
+ echo "Run 'loki remote --help' for usage."
8559
+ exit 1
8560
+ fi
8561
+ shift
8562
+ ;;
8563
+ esac
8564
+ done
8565
+
8566
+ # Validate Claude CLI is available
8567
+ if ! command -v claude >/dev/null 2>&1; then
8568
+ echo -e "${RED}Error: Claude Code CLI not found${NC}"
8569
+ echo "Install: https://docs.anthropic.com/en/docs/claude-code"
8570
+ exit 1
8571
+ fi
8572
+
8573
+ # Remote control is Claude-only
8574
+ local provider="${LOKI_PROVIDER:-claude}"
8575
+ if [ "$provider" != "claude" ]; then
8576
+ echo -e "${RED}Error: Remote Control is only available with Claude provider${NC}"
8577
+ echo "Current provider: $provider"
8578
+ echo "Remote Control requires Claude Code with a Pro or Max plan."
8579
+ exit 1
8580
+ fi
8581
+
8582
+ # Ensure skill symlink exists so SKILL.md is available in the session
8583
+ local skill_link="$HOME/.claude/skills/loki-mode"
8584
+ if [ ! -f "$skill_link/SKILL.md" ] && [ -n "$SKILL_DIR" ]; then
8585
+ mkdir -p "$HOME/.claude/skills" 2>/dev/null || true
8586
+ ln -sf "$SKILL_DIR" "$skill_link" 2>/dev/null || true
8587
+ fi
8588
+
8589
+ # Resolve PRD to absolute path
8590
+ local prd_abs=""
8591
+ if [ -n "$prd_file" ]; then
8592
+ if [ ! -f "$prd_file" ]; then
8593
+ echo -e "${RED}Error: PRD file not found: $prd_file${NC}"
8594
+ exit 1
8595
+ fi
8596
+ prd_abs="$(cd "$(dirname "$prd_file")" && pwd)/$(basename "$prd_file")"
8597
+ fi
8598
+
8599
+ # Start dashboard in background if enabled
8600
+ if [ "${LOKI_DASHBOARD:-true}" = "true" ]; then
8601
+ cmd_api start >/dev/null 2>&1 &
8602
+ fi
8603
+
8604
+ local version=$(get_version)
8605
+ echo -e "${BOLD}Loki Mode v$version - Remote Control${NC}"
8606
+ echo ""
8607
+ echo -e "${CYAN}Starting Claude Code Remote Control session...${NC}"
8608
+ echo -e "${DIM}Connect from phone, tablet, or browser via claude.ai/code${NC}"
8609
+ echo -e "${DIM}Press spacebar in the terminal to show QR code for mobile${NC}"
8610
+ echo ""
8611
+ if [ -n "$prd_abs" ]; then
8612
+ echo -e "${GREEN}PRD loaded:${NC} $prd_abs"
8613
+ echo ""
8614
+ echo -e "Once connected, say:"
8615
+ echo -e " ${BOLD}Loki Mode with PRD at $prd_abs${NC}"
8616
+ else
8617
+ echo -e "Once connected, say:"
8618
+ echo -e " ${BOLD}Loki Mode${NC}"
8619
+ fi
8620
+ echo ""
8621
+
8622
+ # Track session start
8623
+ record_session_start
8624
+
8625
+ # Emit event
8626
+ emit_event session cli remote_start "prd=${prd_abs:-none}"
8627
+
8628
+ # Hand off to claude remote-control
8629
+ exec claude remote-control ${rc_flags[@]+"${rc_flags[@]}"}
8630
+ }
8631
+
8486
8632
  # Syslog/SIEM integration management
8487
8633
  cmd_syslog() {
8488
8634
  local subcommand="${1:-help}"
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "5.56.2"
10
+ __version__ = "5.57.0"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try:
@@ -2,7 +2,7 @@
2
2
 
3
3
  The flagship product of [Autonomi](https://www.autonomi.dev/). Complete installation instructions for all platforms and use cases.
4
4
 
5
- **Version:** v5.56.2
5
+ **Version:** v5.57.0
6
6
 
7
7
  ---
8
8
 
package/mcp/__init__.py CHANGED
@@ -57,4 +57,4 @@ try:
57
57
  except ImportError:
58
58
  __all__ = ['mcp']
59
59
 
60
- __version__ = '5.56.2'
60
+ __version__ = '5.57.0'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loki-mode",
3
- "version": "5.56.2",
3
+ "version": "5.57.0",
4
4
  "description": "Loki Mode by Autonomi - Multi-agent autonomous startup system for Claude Code, Codex CLI, and Gemini CLI",
5
5
  "keywords": [
6
6
  "agent",