loki-mode 4.2.0 → 5.1.1

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
@@ -51,14 +51,54 @@ cd loki-mode
51
51
  ./autonomy/run.sh ./my-prd.md
52
52
  ```
53
53
 
54
- ### Coming Soon
54
+ ### Option 3: npm
55
55
 
56
- The following installation methods are planned but not yet published:
57
- - npm: `npm install -g loki-mode`
58
- - Homebrew: `brew install loki-mode`
59
- - Docker: `docker pull asklokesh/loki-mode`
56
+ ```bash
57
+ npm install -g loki-mode
58
+ loki start ./my-prd.md
59
+ ```
60
+
61
+ ### Option 4: Homebrew (macOS/Linux)
62
+
63
+ ```bash
64
+ brew install asklokesh/tap/loki-mode
65
+ loki start ./my-prd.md
66
+ ```
67
+
68
+ ### Option 5: Docker
69
+
70
+ ```bash
71
+ docker run -v $(pwd):/workspace asklokesh/loki-mode:5.1.1 ./my-prd.md
72
+ ```
73
+
74
+ See [Installation Guide](docs/INSTALLATION.md) for more details.
75
+
76
+ ### Multi-Provider Support (v5.0.0)
77
+
78
+ Loki Mode supports three AI providers:
79
+
80
+ ```bash
81
+ # Claude Code (default - full features)
82
+ loki start --provider claude ./my-prd.md
83
+
84
+ # OpenAI Codex CLI (degraded mode)
85
+ loki start --provider codex ./my-prd.md
86
+
87
+ # Google Gemini CLI (degraded mode)
88
+ loki start --provider gemini ./my-prd.md
89
+
90
+ # Or via environment variable
91
+ LOKI_PROVIDER=codex loki start ./my-prd.md
92
+ ```
93
+
94
+ **Provider Comparison:**
95
+ | Provider | Features | Parallel Agents | Task Tool |
96
+ |----------|----------|-----------------|-----------|
97
+ | Claude | Full | Yes (10+) | Yes |
98
+ | Codex | Degraded | No | No |
99
+ | Gemini | Degraded | No | No |
60
100
 
61
- See [Installation Guide](docs/INSTALLATION.md) for updates.
101
+ See [skills/providers.md](skills/providers.md) for full provider documentation.
62
102
 
63
103
  ---
64
104
 
@@ -131,6 +171,7 @@ PRD → Research → Architecture → Development → Testing → Deployment →
131
171
 
132
172
  | Feature | Description | Documentation |
133
173
  |---------|-------------|---------------|
174
+ | **Multi-Provider (v5.0.0)** | Claude, Codex, Gemini support | [Provider Guide](skills/providers.md) |
134
175
  | **CLI (v4.1.0)** | `loki` command for start/stop/pause/status | [CLI Commands](#cli-commands-v410) |
135
176
  | **Config Files** | YAML configuration support | [autonomy/config.example.yaml](autonomy/config.example.yaml) |
136
177
  | **Dashboard** | Realtime Kanban board, agent monitoring | [Dashboard Guide](docs/dashboard-guide.md) |
@@ -295,7 +336,7 @@ brew tap asklokesh/tap && brew install loki-mode
295
336
  loki-mode-install-skill # Set up Claude Code integration
296
337
 
297
338
  # Option C: Docker
298
- docker pull asklokesh/loki-mode:4.1.0
339
+ docker pull asklokesh/loki-mode:5.0.0
299
340
 
300
341
  # Option D: Git clone
301
342
  git clone https://github.com/asklokesh/loki-mode.git ~/.claude/skills/loki-mode
@@ -535,6 +576,7 @@ LOKI_MAX_WAIT=7200 \
535
576
 
536
577
  | Variable | Default | Description |
537
578
  |----------|---------|-------------|
579
+ | `LOKI_PROVIDER` | claude | AI provider: claude, codex, gemini |
538
580
  | `LOKI_MAX_RETRIES` | 50 | Maximum retry attempts before giving up |
539
581
  | `LOKI_BASE_WAIT` | 60 | Base wait time in seconds |
540
582
  | `LOKI_MAX_WAIT` | 3600 | Maximum wait time (1 hour) |
package/SKILL.md CHANGED
@@ -3,11 +3,11 @@ 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 v4.2.0
6
+ # Loki Mode v5.1.1
7
7
 
8
8
  **You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
9
9
 
10
- **New in v4.2.0:** Foundational Principles (WHY behind rules), Priority Order for conflict resolution, Memory > Reasoning insight. See `autonomy/CONSTITUTION.md`.
10
+ **New in v5.0.0:** Multi-provider support (Claude/Codex/Gemini), abstract model tiers, degraded mode for non-Claude providers. See `skills/providers.md`.
11
11
 
12
12
  ---
13
13
 
@@ -75,19 +75,21 @@ These rules are ABSOLUTE. Violating them is a critical failure.
75
75
 
76
76
  ## Model Selection
77
77
 
78
- | Task Type | Model | Reason |
79
- |-----------|-------|--------|
80
- | PRD analysis, architecture, system design | **opus** | Deep reasoning required |
81
- | Feature implementation, complex bugs | **sonnet** | Development workload |
82
- | Code review (always 3 parallel reviewers) | **sonnet** | Balanced quality/cost |
83
- | Integration tests, E2E, deployment | **sonnet** | Functional verification |
84
- | Unit tests, linting, docs, simple fixes | **haiku** | Fast, parallelizable |
78
+ | Task Type | Tier | Claude | Codex | Gemini |
79
+ |-----------|------|--------|-------|--------|
80
+ | PRD analysis, architecture, system design | **planning** | opus | effort=xhigh | thinking=high |
81
+ | Feature implementation, complex bugs | **development** | sonnet | effort=high | thinking=medium |
82
+ | Code review (always 3 parallel reviewers) | **development** | sonnet | effort=high | thinking=medium |
83
+ | Integration tests, E2E, deployment | **development** | sonnet | effort=high | thinking=medium |
84
+ | Unit tests, linting, docs, simple fixes | **fast** | haiku | effort=low | thinking=low |
85
85
 
86
- **Parallelization rule:** Launch up to 10 haiku agents simultaneously for independent tasks.
86
+ **Parallelization rule (Claude only):** Launch up to 10 haiku agents simultaneously for independent tasks.
87
+
88
+ **Degraded mode (Codex/Gemini):** No parallel agents or Task tool. Runs RARV cycle sequentially. See `skills/model-selection.md`.
87
89
 
88
90
  **Git worktree parallelism:** For true parallel feature development, use `--parallel` flag with run.sh. See `skills/parallel-workflows.md`.
89
91
 
90
- **Scale patterns (50+ agents):** Use judge agents, recursive sub-planners, optimistic concurrency. See `references/cursor-learnings.md`.
92
+ **Scale patterns (50+ agents, Claude only):** Use judge agents, recursive sub-planners, optimistic concurrency. See `references/cursor-learnings.md`.
91
93
 
92
94
  ---
93
95
 
@@ -152,14 +154,27 @@ GROWTH ──[continuous improvement loop]──> GROWTH
152
154
  ## Invocation
153
155
 
154
156
  ```bash
155
- # Standard mode
157
+ # Standard mode (Claude - full features)
156
158
  claude --dangerously-skip-permissions
157
159
  # Then say: "Loki Mode" or "Loki Mode with PRD at path/to/prd.md"
158
160
 
159
- # Parallel mode (git worktrees)
161
+ # With provider selection
162
+ ./autonomy/run.sh --provider claude ./prd.md # Default, full features
163
+ ./autonomy/run.sh --provider codex ./prd.md # GPT-5.2 Codex, degraded mode
164
+ ./autonomy/run.sh --provider gemini ./prd.md # Gemini 3 Pro, degraded mode
165
+
166
+ # Or via CLI wrapper
167
+ loki start --provider codex ./prd.md
168
+
169
+ # Parallel mode (git worktrees, Claude only)
160
170
  ./autonomy/run.sh --parallel ./prd.md
161
171
  ```
162
172
 
173
+ **Provider capabilities:**
174
+ - **Claude**: Full features (Task tool, parallel agents, MCP, 200K context)
175
+ - **Codex**: Degraded mode (sequential only, no Task tool, 128K context)
176
+ - **Gemini**: Degraded mode (sequential only, no Task tool, 1M context)
177
+
163
178
  ---
164
179
 
165
180
  ## Human Intervention (v3.4.0)
@@ -188,4 +203,4 @@ Auto-detected or force with `LOKI_COMPLEXITY`:
188
203
 
189
204
  ---
190
205
 
191
- **v4.2.0 | Foundational Principles | ~190 lines core**
206
+ **v5.0.0 | Multi-Provider Support | ~210 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.0
1
+ 5.1.1
package/autonomy/loki CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/bin/bash
2
2
  #===============================================================================
3
- # Loki Mode CLI Wrapper (v4.1.0)
3
+ # Loki Mode CLI Wrapper (v5.0.0)
4
4
  # Simple command-line interface for Loki Mode
5
5
  #
6
6
  # Installation:
@@ -86,6 +86,7 @@ show_help() {
86
86
  echo " help Show this help"
87
87
  echo ""
88
88
  echo "Options for 'start':"
89
+ echo " --provider NAME AI provider: claude (default), codex, gemini"
89
90
  echo " --parallel Enable parallel mode with git worktrees"
90
91
  echo " --simple Force simple complexity tier (3 phases)"
91
92
  echo " --complex Force complex complexity tier (8 phases)"
@@ -107,9 +108,25 @@ show_help() {
107
108
  cmd_start() {
108
109
  local args=()
109
110
  local prd_file=""
111
+ local provider=""
110
112
 
111
113
  while [[ $# -gt 0 ]]; do
112
114
  case "$1" in
115
+ --provider)
116
+ if [[ -n "${2:-}" ]]; then
117
+ provider="$2"
118
+ args+=("--provider" "$provider")
119
+ shift 2
120
+ else
121
+ echo -e "${RED}--provider requires a value (claude, codex, gemini)${NC}"
122
+ exit 1
123
+ fi
124
+ ;;
125
+ --provider=*)
126
+ provider="${1#*=}"
127
+ args+=("--provider" "$provider")
128
+ shift
129
+ ;;
113
130
  --parallel)
114
131
  args+=("--parallel")
115
132
  shift
@@ -145,7 +162,12 @@ cmd_start() {
145
162
  args+=("$prd_file")
146
163
  fi
147
164
 
148
- echo -e "${GREEN}Starting Loki Mode...${NC}"
165
+ # Show provider info
166
+ if [ -n "$provider" ]; then
167
+ echo -e "${GREEN}Starting Loki Mode with provider: $provider${NC}"
168
+ else
169
+ echo -e "${GREEN}Starting Loki Mode...${NC}"
170
+ fi
149
171
  exec "$RUN_SH" "${args[@]}"
150
172
  }
151
173
 
@@ -360,6 +382,9 @@ cmd_config_show() {
360
382
  echo " pr: ${LOKI_GITHUB_PR:-false}"
361
383
  echo " sync: ${LOKI_GITHUB_SYNC:-false}"
362
384
  echo ""
385
+ echo "Provider:"
386
+ echo " provider: ${LOKI_PROVIDER:-claude}"
387
+ echo ""
363
388
  echo "Execution:"
364
389
  echo " complexity: ${LOKI_COMPLEXITY:-auto}"
365
390
  echo " parallel_mode: ${LOKI_PARALLEL_MODE:-false}"