loki-mode 6.4.0 → 6.6.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/README.md +7 -5
- package/SKILL.md +8 -4
- package/VERSION +1 -1
- package/autonomy/completion-council.sh +24 -0
- package/autonomy/council-v2.sh +14 -0
- package/autonomy/hooks/migration-hooks.sh +6 -2
- package/autonomy/loki +221 -67
- package/autonomy/run.sh +164 -22
- package/autonomy/sandbox.sh +48 -22
- package/autonomy/telemetry.sh +20 -7
- package/dashboard/__init__.py +1 -1
- package/dashboard/control.py +1 -1
- package/dashboard/migration_engine.py +1 -1
- package/dashboard/server.py +27 -12
- package/docs/INSTALLATION.md +2 -2
- package/events/emit.sh +1 -1
- package/mcp/__init__.py +1 -1
- package/mcp/server.py +11 -6
- package/memory/embeddings.py +15 -6
- package/memory/engine.py +56 -0
- package/memory/schemas.py +6 -2
- package/memory/storage.py +5 -2
- package/memory/token_economics.py +4 -1
- package/package.json +1 -1
- package/providers/aider.sh +129 -0
- package/providers/cline.sh +122 -0
- package/providers/loader.sh +1 -1
- package/skills/model-selection.md +3 -1
- package/skills/providers.md +140 -17
package/skills/providers.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Multi-Provider Support
|
|
2
2
|
|
|
3
|
-
Loki Mode v5.0.0 supports
|
|
3
|
+
Loki Mode v5.0.0 supports five AI providers for autonomous execution.
|
|
4
4
|
|
|
5
5
|
## Provider Comparison
|
|
6
6
|
|
|
@@ -9,16 +9,17 @@ Loki Mode v5.0.0 supports three AI providers for autonomous execution.
|
|
|
9
9
|
> - Codex: `--full-auto` (recommended, v0.98.0) or `exec --dangerously-bypass-approvals-and-sandbox` (legacy)
|
|
10
10
|
> - Gemini: `--approval-mode=yolo` (v0.27.3+) - Note: `-p` prompt flag is deprecated, using positional prompts
|
|
11
11
|
|
|
12
|
-
| Feature | Claude Code | OpenAI Codex | Gemini CLI |
|
|
13
|
-
|
|
14
|
-
| **Full Features** | Yes | No (Degraded) | No (Degraded) |
|
|
15
|
-
| **Task Tool (Subagents)** | Yes | No | No |
|
|
16
|
-
| **Parallel Agents** | Yes (10+) | No | No |
|
|
17
|
-
| **MCP Integration** | Yes | Yes (basic) | No |
|
|
18
|
-
| **Context Window** | 200K | 400K | 1M |
|
|
19
|
-
| **Max Output Tokens** | 128K | 32K | 64K |
|
|
20
|
-
| **Model Tiers** | 3 (opus/sonnet/haiku) | 1 (effort param) | 1 (thinking param) |
|
|
21
|
-
| **
|
|
12
|
+
| Feature | Claude Code | OpenAI Codex | Gemini CLI | Cline CLI | Aider |
|
|
13
|
+
|---------|-------------|--------------|------------|-----------|-------|
|
|
14
|
+
| **Full Features** | Yes | No (Degraded) | No (Degraded) | Near-Full (Tier 2) | No (Degraded) |
|
|
15
|
+
| **Task Tool (Subagents)** | Yes | No | No | Yes (Subagents) | No |
|
|
16
|
+
| **Parallel Agents** | Yes (10+) | No | No | No | No |
|
|
17
|
+
| **MCP Integration** | Yes | Yes (basic) | No | Yes | No |
|
|
18
|
+
| **Context Window** | 200K | 400K | 1M | Varies by provider | Varies by provider |
|
|
19
|
+
| **Max Output Tokens** | 128K | 32K | 64K | Varies by provider | Varies by provider |
|
|
20
|
+
| **Model Tiers** | 3 (opus/sonnet/haiku) | 1 (effort param) | 1 (thinking param) | 1 (external) | 1 (external) |
|
|
21
|
+
| **Multi-Provider** | Claude only | OpenAI only | Gemini only | 12+ providers | 18+ providers |
|
|
22
|
+
| **Skill Directory** | ~/.claude/skills | None | None | None | None |
|
|
22
23
|
|
|
23
24
|
## Provider Selection
|
|
24
25
|
|
|
@@ -129,9 +130,125 @@ Note: Gemini CLI does not support `--thinking-level` as a CLI flag. Thinking mod
|
|
|
129
130
|
|
|
130
131
|
---
|
|
131
132
|
|
|
133
|
+
## Cline CLI (Tier 2 - Near-Full, 12+ Providers)
|
|
134
|
+
|
|
135
|
+
**Best for:** Teams wanting Claude Code-like experience with any model provider.
|
|
136
|
+
|
|
137
|
+
**Tier 2 Capabilities (near-full):**
|
|
138
|
+
- Subagent support (Cline's native Subagents feature)
|
|
139
|
+
- MCP server integration
|
|
140
|
+
- Plan/Act modes (-p / -a flags)
|
|
141
|
+
- JSON structured output (--json flag)
|
|
142
|
+
- 12+ model providers via `cline auth`
|
|
143
|
+
|
|
144
|
+
**Limitations:**
|
|
145
|
+
- No Claude-style Task tool (uses native Subagents instead)
|
|
146
|
+
- No git worktree-style parallel execution
|
|
147
|
+
- Single model (configured externally)
|
|
148
|
+
|
|
149
|
+
**One-Time Setup:**
|
|
150
|
+
```bash
|
|
151
|
+
# Install Cline CLI
|
|
152
|
+
npm install -g cline@latest
|
|
153
|
+
|
|
154
|
+
# Configure provider and model (choose one):
|
|
155
|
+
cline auth -p openrouter -k sk-or-v1-your-key -m anthropic/claude-3.5-sonnet
|
|
156
|
+
cline auth -p ollama -m llama3
|
|
157
|
+
cline auth -p anthropic -k sk-ant-your-key
|
|
158
|
+
cline auth -p openai -k sk-your-key -m gpt-4o
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Usage with Loki:**
|
|
162
|
+
```bash
|
|
163
|
+
# Basic usage
|
|
164
|
+
loki start --provider cline ./prd.md
|
|
165
|
+
|
|
166
|
+
# With specific model
|
|
167
|
+
loki start --provider cline --cline-model deepseek/deepseek-chat ./prd.md
|
|
168
|
+
|
|
169
|
+
# With loki run
|
|
170
|
+
loki run 52 --provider cline --ship -d
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Invocation:**
|
|
174
|
+
```bash
|
|
175
|
+
cline -y "$prompt" # Autonomous mode
|
|
176
|
+
cline -y -m model_name "$prompt" # With model override
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Aider (Tier 3 - Degraded, 18+ Providers)
|
|
182
|
+
|
|
183
|
+
**Best for:** Local models, custom providers, and teams wanting maximum provider flexibility.
|
|
184
|
+
|
|
185
|
+
**Strengths (compensate for degraded mode):**
|
|
186
|
+
- 18+ model providers (OpenRouter, Ollama, Together AI, GROQ, DeepSeek, Azure, Bedrock, etc.)
|
|
187
|
+
- `--architect` mode: planning model + editing model (SOTA quality)
|
|
188
|
+
- `--auto-lint --auto-test`: built-in verification loop
|
|
189
|
+
- `--map-tokens 2048`: tree-sitter repo map for codebase understanding
|
|
190
|
+
- Works with local models (Ollama, LM Studio) for free usage
|
|
191
|
+
|
|
192
|
+
**Limitations:**
|
|
193
|
+
- No subagent support
|
|
194
|
+
- Sequential execution only
|
|
195
|
+
- No Task tool or MCP
|
|
196
|
+
- Known issues with parallel instances
|
|
197
|
+
|
|
198
|
+
**One-Time Setup:**
|
|
199
|
+
```bash
|
|
200
|
+
# Install Aider
|
|
201
|
+
pip install aider-chat
|
|
202
|
+
|
|
203
|
+
# Configure provider via environment variables:
|
|
204
|
+
|
|
205
|
+
# OpenRouter
|
|
206
|
+
export OPENAI_API_BASE=https://openrouter.ai/api/v1
|
|
207
|
+
export OPENAI_API_KEY=sk-or-v1-your-key
|
|
208
|
+
|
|
209
|
+
# Ollama (local, free)
|
|
210
|
+
export OLLAMA_API_BASE=http://localhost:11434
|
|
211
|
+
|
|
212
|
+
# Together AI
|
|
213
|
+
export TOGETHER_API_KEY=your-key
|
|
214
|
+
|
|
215
|
+
# DeepSeek
|
|
216
|
+
export DEEPSEEK_API_KEY=your-key
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
**Usage with Loki:**
|
|
220
|
+
```bash
|
|
221
|
+
# Basic usage with OpenRouter
|
|
222
|
+
loki start --provider aider --aider-model anthropic/claude-3.5-sonnet ./prd.md
|
|
223
|
+
|
|
224
|
+
# Architect mode (dual model, SOTA quality)
|
|
225
|
+
loki start --provider aider --aider-model o1-preview \
|
|
226
|
+
--aider-flags "--architect --editor-model deepseek/deepseek-chat" ./prd.md
|
|
227
|
+
|
|
228
|
+
# Local model (free, no API key needed)
|
|
229
|
+
loki start --provider aider --aider-model ollama/llama3 ./prd.md
|
|
230
|
+
|
|
231
|
+
# With auto-lint and auto-test
|
|
232
|
+
loki start --provider aider \
|
|
233
|
+
--aider-flags "--auto-lint --auto-test --test-cmd pytest" ./prd.md
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
**Invocation:**
|
|
237
|
+
```bash
|
|
238
|
+
aider --message "$prompt" --yes-always --no-auto-commits --model model_name
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
**Environment Variables:**
|
|
242
|
+
| Variable | Description |
|
|
243
|
+
|----------|-------------|
|
|
244
|
+
| `LOKI_AIDER_MODEL` | Model to use (default: claude-3.7-sonnet) |
|
|
245
|
+
| `LOKI_AIDER_FLAGS` | Extra aider flags (e.g., --architect) |
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
132
249
|
## Degraded Mode Behavior
|
|
133
250
|
|
|
134
|
-
When running with Codex or
|
|
251
|
+
When running with Codex, Gemini, or Aider (Tier 3):
|
|
135
252
|
|
|
136
253
|
1. **RARV Cycle executes sequentially** - No parallel agents
|
|
137
254
|
2. **Task tool calls are skipped** - Main thread handles all work
|
|
@@ -158,9 +275,11 @@ Provider configs are shell-sourceable files in `providers/`:
|
|
|
158
275
|
|
|
159
276
|
```
|
|
160
277
|
providers/
|
|
161
|
-
claude.sh # Full-featured provider
|
|
162
|
-
codex.sh # Degraded mode, effort parameter
|
|
163
|
-
gemini.sh # Degraded mode, thinking_level parameter
|
|
278
|
+
claude.sh # Full-featured provider (Tier 1)
|
|
279
|
+
codex.sh # Degraded mode, effort parameter (Tier 3)
|
|
280
|
+
gemini.sh # Degraded mode, thinking_level parameter (Tier 3)
|
|
281
|
+
cline.sh # Near-full mode, 12+ providers (Tier 2)
|
|
282
|
+
aider.sh # Degraded mode, 18+ providers (Tier 3)
|
|
164
283
|
loader.sh # Provider loader utility
|
|
165
284
|
```
|
|
166
285
|
|
|
@@ -181,7 +300,11 @@ PROVIDER_DEGRADED=false
|
|
|
181
300
|
|----------------|--------|
|
|
182
301
|
| Full autonomous capability | Claude |
|
|
183
302
|
| Parallel agent execution | Claude |
|
|
184
|
-
| MCP server integration | Claude (full) or Codex (basic) |
|
|
303
|
+
| MCP server integration | Claude (full), Cline, or Codex (basic) |
|
|
304
|
+
| Subagents without Claude subscription | Cline |
|
|
185
305
|
| OpenAI ecosystem compatibility | Codex |
|
|
186
306
|
| Largest context window (1M) | Gemini |
|
|
187
|
-
|
|
|
307
|
+
| Maximum provider flexibility (18+) | Aider |
|
|
308
|
+
| Local models (Ollama, free) | Aider or Cline |
|
|
309
|
+
| Architect mode (dual model) | Aider |
|
|
310
|
+
| Sequential-only is acceptable | Codex, Gemini, or Aider |
|