loki-mode 4.2.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/LICENSE +21 -0
- package/README.md +691 -0
- package/SKILL.md +191 -0
- package/VERSION +1 -0
- package/autonomy/.loki/dashboard/index.html +2634 -0
- package/autonomy/CONSTITUTION.md +508 -0
- package/autonomy/README.md +201 -0
- package/autonomy/config.example.yaml +152 -0
- package/autonomy/loki +526 -0
- package/autonomy/run.sh +3636 -0
- package/bin/loki-mode.js +26 -0
- package/bin/postinstall.js +60 -0
- package/docs/ACKNOWLEDGEMENTS.md +234 -0
- package/docs/COMPARISON.md +325 -0
- package/docs/COMPETITIVE-ANALYSIS.md +333 -0
- package/docs/INSTALLATION.md +547 -0
- package/docs/auto-claude-comparison.md +276 -0
- package/docs/cursor-comparison.md +225 -0
- package/docs/dashboard-guide.md +355 -0
- package/docs/screenshots/README.md +149 -0
- package/docs/screenshots/dashboard-agents.png +0 -0
- package/docs/screenshots/dashboard-tasks.png +0 -0
- package/docs/thick2thin.md +173 -0
- package/package.json +48 -0
- package/references/advanced-patterns.md +453 -0
- package/references/agent-types.md +243 -0
- package/references/agents.md +1043 -0
- package/references/business-ops.md +550 -0
- package/references/competitive-analysis.md +216 -0
- package/references/confidence-routing.md +371 -0
- package/references/core-workflow.md +275 -0
- package/references/cursor-learnings.md +207 -0
- package/references/deployment.md +604 -0
- package/references/lab-research-patterns.md +534 -0
- package/references/mcp-integration.md +186 -0
- package/references/memory-system.md +467 -0
- package/references/openai-patterns.md +647 -0
- package/references/production-patterns.md +568 -0
- package/references/prompt-repetition.md +192 -0
- package/references/quality-control.md +437 -0
- package/references/sdlc-phases.md +410 -0
- package/references/task-queue.md +361 -0
- package/references/tool-orchestration.md +691 -0
- package/skills/00-index.md +120 -0
- package/skills/agents.md +249 -0
- package/skills/artifacts.md +174 -0
- package/skills/github-integration.md +218 -0
- package/skills/model-selection.md +125 -0
- package/skills/parallel-workflows.md +526 -0
- package/skills/patterns-advanced.md +188 -0
- package/skills/production.md +292 -0
- package/skills/quality-gates.md +180 -0
- package/skills/testing.md +149 -0
- package/skills/troubleshooting.md +109 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
# Auto-Claude vs Loki Mode: Honest Technical Comparison
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
| Metric | Auto-Claude | Loki Mode |
|
|
6
|
+
|--------|-------------|-----------|
|
|
7
|
+
| **GitHub Stars** | 9,594 | ~50 |
|
|
8
|
+
| **Release Type** | Desktop app (Electron) | CLI skill |
|
|
9
|
+
| **License** | AGPL-3.0 | MIT |
|
|
10
|
+
| **Requires** | Claude Pro/Max subscription | Claude API (any tier) |
|
|
11
|
+
| **Version** | v2.7.5 (stable) | v4.1.0 |
|
|
12
|
+
| **Created** | Dec 2025 | Jan 2026 |
|
|
13
|
+
| **Community** | Discord, YouTube | GitHub only |
|
|
14
|
+
|
|
15
|
+
## Honest Assessment: Where Auto-Claude is Better
|
|
16
|
+
|
|
17
|
+
### 1. Desktop GUI with Visual Task Management
|
|
18
|
+
Auto-Claude provides a native Electron app with:
|
|
19
|
+
- Kanban board for visual task tracking
|
|
20
|
+
- Multiple agent terminals (up to 12)
|
|
21
|
+
- Real-time progress visualization
|
|
22
|
+
- Point-and-click interface
|
|
23
|
+
|
|
24
|
+
**Loki Mode:** CLI-only. Dashboard exists but is basic HTML polling.
|
|
25
|
+
|
|
26
|
+
**Verdict: Auto-Claude wins** - GUI significantly lowers barrier to entry.
|
|
27
|
+
|
|
28
|
+
### 2. Package Distribution
|
|
29
|
+
Auto-Claude provides:
|
|
30
|
+
- Pre-built binaries for Windows, macOS (Intel + ARM), Linux
|
|
31
|
+
- Auto-updates
|
|
32
|
+
- SHA256 checksums
|
|
33
|
+
- VirusTotal scans for security
|
|
34
|
+
|
|
35
|
+
**Loki Mode:** npm, Homebrew, Docker, and git clone. Multiple distribution methods.
|
|
36
|
+
|
|
37
|
+
**Verdict: Auto-Claude wins** - Professional distribution.
|
|
38
|
+
|
|
39
|
+
### 3. Community and Adoption
|
|
40
|
+
- Auto-Claude: 9,594 stars, Discord community, YouTube channel, active development
|
|
41
|
+
- Loki Mode: ~50 stars, no community infrastructure
|
|
42
|
+
|
|
43
|
+
**Verdict: Auto-Claude wins** - Network effects matter.
|
|
44
|
+
|
|
45
|
+
### 4. External Integrations
|
|
46
|
+
Auto-Claude has built-in:
|
|
47
|
+
- GitHub/GitLab integration (import issues, create MRs)
|
|
48
|
+
- Linear integration (sync tasks)
|
|
49
|
+
- OAuth setup flow
|
|
50
|
+
|
|
51
|
+
**Loki Mode:** No built-in integrations. Manual git operations.
|
|
52
|
+
|
|
53
|
+
**Verdict: Auto-Claude wins** - Better workflow integration.
|
|
54
|
+
|
|
55
|
+
### 5. Interactive Controls
|
|
56
|
+
Auto-Claude allows:
|
|
57
|
+
- Ctrl+C to pause and add instructions
|
|
58
|
+
- HUMAN_INPUT.md for file-based intervention
|
|
59
|
+
- PAUSE file to pause after current session
|
|
60
|
+
|
|
61
|
+
**Loki Mode:** Limited. INTERVENTION_NEEDED signal exists but less refined.
|
|
62
|
+
|
|
63
|
+
**Verdict: Auto-Claude wins** - Better human-in-the-loop.
|
|
64
|
+
|
|
65
|
+
### 6. AI-Powered Merge
|
|
66
|
+
Auto-Claude has automatic conflict resolution when merging branches.
|
|
67
|
+
|
|
68
|
+
**Loki Mode:** Has auto-merge but aborts on conflicts.
|
|
69
|
+
|
|
70
|
+
**Verdict: Auto-Claude wins** - Smarter merge handling.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Honest Assessment: Where Loki Mode is Better
|
|
75
|
+
|
|
76
|
+
### 1. Research Foundation
|
|
77
|
+
Loki Mode is built on peer-reviewed research:
|
|
78
|
+
- Anthropic: Constitutional AI, alignment detection
|
|
79
|
+
- DeepMind: SIMA 2, Scalable Oversight via Debate
|
|
80
|
+
- OpenAI: Agents SDK patterns
|
|
81
|
+
- Academic: CONSENSAGENT (ACL 2025), GoalAct, A-Mem/MIRIX
|
|
82
|
+
|
|
83
|
+
**Auto-Claude:** No documented research foundation.
|
|
84
|
+
|
|
85
|
+
**Verdict: Loki Mode wins** - Academically grounded.
|
|
86
|
+
|
|
87
|
+
### 2. Specialized Agent Types
|
|
88
|
+
Loki Mode has 37 predefined agent types across 6 swarms:
|
|
89
|
+
- Engineering (8): frontend, backend, database, mobile, API, QA, perf, infra
|
|
90
|
+
- Operations (8): DevOps, SRE, security, monitoring, incident, release, cost, compliance
|
|
91
|
+
- Business (8): marketing, sales, finance, legal, support, HR, investor, partnerships
|
|
92
|
+
- Data (3): ML, engineering, analytics
|
|
93
|
+
- Product (3): PM, design, tech writer
|
|
94
|
+
- Growth (4): hacker, community, success, lifecycle
|
|
95
|
+
- Review (3): code, business, security
|
|
96
|
+
- Orchestration (4): planner, sub-planner, judge, coordinator
|
|
97
|
+
|
|
98
|
+
**Auto-Claude:** 4 agent types: planner, coder, memory_manager, QA
|
|
99
|
+
|
|
100
|
+
**Verdict: Loki Mode wins** - 10x more specialized coverage.
|
|
101
|
+
|
|
102
|
+
### 3. Full SDLC Coverage
|
|
103
|
+
Loki Mode covers:
|
|
104
|
+
- Engineering (code, tests, deployment)
|
|
105
|
+
- Business operations (marketing, sales, legal)
|
|
106
|
+
- Growth (A/B testing, community, lifecycle)
|
|
107
|
+
|
|
108
|
+
**Auto-Claude:** Engineering only. No business/marketing agents.
|
|
109
|
+
|
|
110
|
+
**Verdict: Loki Mode wins** - Complete startup automation vs coding only.
|
|
111
|
+
|
|
112
|
+
### 4. Anti-Sycophancy Measures
|
|
113
|
+
Loki Mode implements CONSENSAGENT (ACL 2025):
|
|
114
|
+
- Blind 3-reviewer system
|
|
115
|
+
- Devil's advocate on unanimous approval
|
|
116
|
+
- Severity-based blocking
|
|
117
|
+
|
|
118
|
+
**Auto-Claude:** Single QA loop with no anti-sycophancy checks.
|
|
119
|
+
|
|
120
|
+
**Verdict: Loki Mode wins** - Research-backed quality assurance.
|
|
121
|
+
|
|
122
|
+
### 5. Quality Gates
|
|
123
|
+
Loki Mode has 14 quality gates:
|
|
124
|
+
1. Static analysis (CodeQL, ESLint)
|
|
125
|
+
2. Unit tests (>80% coverage)
|
|
126
|
+
3. API/Integration tests
|
|
127
|
+
4. E2E tests (Playwright)
|
|
128
|
+
5. Security scanning (OWASP)
|
|
129
|
+
6. SAML/OIDC/SSO integration
|
|
130
|
+
7. Parallel code review (3 reviewers)
|
|
131
|
+
8. Performance/load testing
|
|
132
|
+
9. Accessibility (WCAG)
|
|
133
|
+
10. Regression testing
|
|
134
|
+
11. UAT simulation
|
|
135
|
+
12. Anti-sycophancy check
|
|
136
|
+
13. Scale-aware review intensity
|
|
137
|
+
14. Continuous monitoring
|
|
138
|
+
|
|
139
|
+
**Auto-Claude:** Single QA validation loop (up to 50 iterations).
|
|
140
|
+
|
|
141
|
+
**Verdict: Loki Mode wins** - Comprehensive quality vs single loop.
|
|
142
|
+
|
|
143
|
+
### 6. Published Benchmarks
|
|
144
|
+
Loki Mode:
|
|
145
|
+
- HumanEval: 98.78% Pass@1 (162/164)
|
|
146
|
+
- SWE-bench: 99.67% patch generation (299/300)
|
|
147
|
+
- Documented methodology with reproducible results
|
|
148
|
+
|
|
149
|
+
**Auto-Claude:** No published benchmarks.
|
|
150
|
+
|
|
151
|
+
**Verdict: Loki Mode wins** - Verified performance claims.
|
|
152
|
+
|
|
153
|
+
### 7. Licensing
|
|
154
|
+
- Loki Mode: MIT (free, no restrictions)
|
|
155
|
+
- Auto-Claude: AGPL-3.0 (copyleft, requires open-sourcing modifications)
|
|
156
|
+
|
|
157
|
+
**Verdict: Loki Mode wins** - More permissive for commercial use.
|
|
158
|
+
|
|
159
|
+
### 8. API Access
|
|
160
|
+
- Loki Mode: Works with Claude API (any tier)
|
|
161
|
+
- Auto-Claude: Requires Claude Pro/Max subscription
|
|
162
|
+
|
|
163
|
+
**Verdict: Loki Mode wins** - Lower barrier to entry.
|
|
164
|
+
|
|
165
|
+
### 9. No External Dependencies
|
|
166
|
+
- Loki Mode: Pure bash/skill, no Electron, no Python backend
|
|
167
|
+
- Auto-Claude: Requires Python 3.9+, Node.js, Electron, specific npm packages
|
|
168
|
+
|
|
169
|
+
**Verdict: Loki Mode wins** - Simpler, lighter footprint.
|
|
170
|
+
|
|
171
|
+
### 10. Cursor Scale Patterns (v3.3.0)
|
|
172
|
+
Loki Mode now incorporates proven patterns from Cursor's 100+ agent deployments:
|
|
173
|
+
- Recursive sub-planners
|
|
174
|
+
- Judge agents for cycle decisions
|
|
175
|
+
- Optimistic concurrency control
|
|
176
|
+
- Scale-aware review intensity
|
|
177
|
+
|
|
178
|
+
**Auto-Claude:** Does not document scale patterns.
|
|
179
|
+
|
|
180
|
+
**Verdict: Loki Mode wins** - Production-tested at scale.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Feature Comparison Matrix
|
|
185
|
+
|
|
186
|
+
| Feature | Auto-Claude | Loki Mode |
|
|
187
|
+
|---------|:-----------:|:---------:|
|
|
188
|
+
| Desktop GUI | Yes | No |
|
|
189
|
+
| CLI Support | Yes | Yes |
|
|
190
|
+
| Git Worktrees | Yes | Yes |
|
|
191
|
+
| Parallel Agents | 12 terminals | 3-5 sessions |
|
|
192
|
+
| Memory Persistence | Yes (Graphiti) | Yes (episodic/semantic) |
|
|
193
|
+
| GitHub Integration | Yes | No |
|
|
194
|
+
| Linear Integration | Yes | No |
|
|
195
|
+
| Auto-Updates | Yes | No |
|
|
196
|
+
| Research Foundation | No | Yes |
|
|
197
|
+
| Specialized Agents | 4 types | 37 types |
|
|
198
|
+
| Business Automation | No | Yes |
|
|
199
|
+
| Anti-Sycophancy | No | Yes |
|
|
200
|
+
| Quality Gates | 1 (QA loop) | 14 |
|
|
201
|
+
| Published Benchmarks | No | Yes |
|
|
202
|
+
| AI Merge Resolution | Yes | No |
|
|
203
|
+
| Complexity Tiers | Yes | No |
|
|
204
|
+
| Human Intervention | Yes (Ctrl+C, files) | Limited |
|
|
205
|
+
| License | AGPL-3.0 | MIT |
|
|
206
|
+
| Subscription Required | Yes (Pro/Max) | No |
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## What Loki Mode Should Learn from Auto-Claude
|
|
211
|
+
|
|
212
|
+
### High Priority
|
|
213
|
+
1. **AI-Powered Merge Resolution** - Handle conflicts automatically instead of aborting
|
|
214
|
+
2. **Human Intervention Mechanism** - Add Ctrl+C pause, HUMAN_INPUT.md, PAUSE file
|
|
215
|
+
3. **Complexity Tiers** - Simple (3 phases), Standard (6), Complex (8)
|
|
216
|
+
4. **Session Memory Persistence** - Graphiti-style cross-session memory
|
|
217
|
+
|
|
218
|
+
### Medium Priority
|
|
219
|
+
5. **Visual Dashboard Upgrade** - Better than current basic HTML polling
|
|
220
|
+
6. **Spec Runner Pattern** - Interactive spec creation like Auto-Claude's CLI
|
|
221
|
+
7. **GitHub/GitLab Integration** - Import issues, create MRs
|
|
222
|
+
|
|
223
|
+
### Lower Priority
|
|
224
|
+
8. **Package Distribution** - Consider Electron or at least versioned releases
|
|
225
|
+
9. **Discord Community** - Build community infrastructure
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## What Auto-Claude Could Learn from Loki Mode
|
|
230
|
+
|
|
231
|
+
1. **Research Foundation** - Document the science behind decisions
|
|
232
|
+
2. **Specialized Agents** - More than 4 generic agent types
|
|
233
|
+
3. **Anti-Sycophancy** - Blind review prevents false positives
|
|
234
|
+
4. **Full SDLC** - Business, marketing, growth automation
|
|
235
|
+
5. **Published Benchmarks** - Verify claims with reproducible tests
|
|
236
|
+
6. **MIT License** - More adoption-friendly
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Conclusion
|
|
241
|
+
|
|
242
|
+
**Auto-Claude is better if you want:**
|
|
243
|
+
- Visual GUI with Kanban board
|
|
244
|
+
- Pre-packaged desktop app
|
|
245
|
+
- GitHub/Linear integration
|
|
246
|
+
- Large community
|
|
247
|
+
|
|
248
|
+
**Loki Mode is better if you want:**
|
|
249
|
+
- Research-backed architecture
|
|
250
|
+
- Full startup automation (not just coding)
|
|
251
|
+
- 37 specialized agents
|
|
252
|
+
- Anti-sycophancy measures
|
|
253
|
+
- MIT license
|
|
254
|
+
- No subscription requirement
|
|
255
|
+
- Verified benchmarks
|
|
256
|
+
|
|
257
|
+
### Honest Summary
|
|
258
|
+
|
|
259
|
+
Auto-Claude has better UX and community. Loki Mode has better architecture and coverage.
|
|
260
|
+
|
|
261
|
+
Auto-Claude is a polished product. Loki Mode is a research-backed system.
|
|
262
|
+
|
|
263
|
+
For pure coding tasks with GUI preference: **Auto-Claude wins**.
|
|
264
|
+
For full autonomous startup building with quality guarantees: **Loki Mode wins**.
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## Sources
|
|
269
|
+
|
|
270
|
+
- [Auto-Claude GitHub](https://github.com/AndyMik90/Auto-Claude)
|
|
271
|
+
- [MemOS - Memory Operating System](https://github.com/MemTensor/MemOS)
|
|
272
|
+
- [Dexter - Financial Research Agent](https://github.com/virattt/dexter)
|
|
273
|
+
- [Simon Willison - Scaling Long-Running Autonomous Coding](https://simonwillison.net/2026/Jan/19/scaling-long-running-autonomous-coding/)
|
|
274
|
+
- [Cursor - Scaling Agents Blog](https://cursor.com/blog/scaling-agents)
|
|
275
|
+
- [CONSENSAGENT - ACL 2025](https://aclanthology.org/2025.findings-acl.1141/)
|
|
276
|
+
- [Agentic AI Trends 2026](https://machinelearningmastery.com/7-agentic-ai-trends-to-watch-in-2026/)
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# Loki Mode vs Cursor: Technical Comparison
|
|
2
|
+
|
|
3
|
+
> Factual analysis of multi-agent autonomous systems
|
|
4
|
+
> Date: January 19, 2026
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Executive Summary
|
|
9
|
+
|
|
10
|
+
| Dimension | Cursor | Loki Mode | Winner |
|
|
11
|
+
|-----------|--------|-----------|--------|
|
|
12
|
+
| **Proven Scale** | 1M+ LoC, 100+ agents | Benchmarks only | Cursor |
|
|
13
|
+
| **Research Foundation** | Empirical iteration | 25+ academic citations | Loki Mode |
|
|
14
|
+
| **Quality Assurance** | Workers self-manage | 7-gate system + anti-sycophancy | Loki Mode |
|
|
15
|
+
| **Anti-Sycophancy** | Not mentioned | CONSENSAGENT blind review | Loki Mode |
|
|
16
|
+
| **Velocity-Quality Balance** | Not mentioned | arXiv-backed metrics | Loki Mode |
|
|
17
|
+
| **Full SDLC Coverage** | Code generation focus | PRD to production + growth | Loki Mode |
|
|
18
|
+
| **Memory Systems** | Not detailed | Episodic/semantic/procedural | Loki Mode |
|
|
19
|
+
| **Scale Patterns** | Battle-tested | Now incorporated (v3.3.0) | Tie |
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Where Loki Mode is Scientifically Better
|
|
24
|
+
|
|
25
|
+
### 1. Anti-Sycophancy Protocol (CONSENSAGENT Research)
|
|
26
|
+
|
|
27
|
+
**The Problem:** AI agents tend to agree with each other, reinforcing mistakes rather than catching them.
|
|
28
|
+
|
|
29
|
+
**Loki Mode Solution:**
|
|
30
|
+
```
|
|
31
|
+
3 Blind Parallel Reviewers (cannot see each other's findings)
|
|
32
|
+
|
|
|
33
|
+
v
|
|
34
|
+
IF unanimous approval -> Run Devil's Advocate reviewer
|
|
35
|
+
|
|
|
36
|
+
v
|
|
37
|
+
Aggregated findings with independent verification
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Research Basis:** [CONSENSAGENT: Anti-Sycophancy Framework](https://aclanthology.org/2025.findings-acl.1141/) (ACL 2025)
|
|
41
|
+
|
|
42
|
+
**Cursor:** Does not mention anti-sycophancy measures. Workers self-coordinate, which research shows leads to groupthink.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
### 2. Velocity-Quality Feedback Loop (arXiv Research)
|
|
47
|
+
|
|
48
|
+
**The Problem:** AI-generated code shows +281% velocity but +30% static warnings, +41% complexity. At 3.28x complexity, velocity gains are completely negated.
|
|
49
|
+
|
|
50
|
+
**Loki Mode Solution:**
|
|
51
|
+
```yaml
|
|
52
|
+
velocity_quality_balance:
|
|
53
|
+
before_commit:
|
|
54
|
+
- static_analysis: "Warnings must not increase"
|
|
55
|
+
- complexity_check: "Max 10% increase per commit"
|
|
56
|
+
- test_coverage: "Must not decrease"
|
|
57
|
+
|
|
58
|
+
thresholds:
|
|
59
|
+
max_new_warnings: 0 # Zero tolerance
|
|
60
|
+
min_coverage: 80%
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Research Basis:** [arXiv 2511.04427v2](https://arxiv.org/abs/2511.04427) - Empirical study of 807 repositories
|
|
64
|
+
|
|
65
|
+
**Cursor:** Does not mention quality metrics or velocity-quality balance tracking.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
### 3. 7-Gate Quality System
|
|
70
|
+
|
|
71
|
+
**Loki Mode's Gates:**
|
|
72
|
+
1. Input Guardrails - Validate scope, detect injection (OpenAI SDK pattern)
|
|
73
|
+
2. Static Analysis - CodeQL, ESLint, type checking
|
|
74
|
+
3. Blind Review System - 3 parallel reviewers
|
|
75
|
+
4. Anti-Sycophancy Check - Devil's advocate on unanimous approval
|
|
76
|
+
5. Output Guardrails - Code quality, spec compliance, no secrets
|
|
77
|
+
6. Severity-Based Blocking - Critical/High/Medium = BLOCK
|
|
78
|
+
7. Test Coverage Gates - 100% pass, >80% coverage
|
|
79
|
+
|
|
80
|
+
**Cursor:** Removed dedicated quality roles. Quote: "Dedicated integrator roles created more bottlenecks than they solved."
|
|
81
|
+
|
|
82
|
+
**Trade-off:** Cursor optimizes for throughput at scale. Loki Mode optimizes for quality with configurable intensity.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### 4. Constitutional AI Self-Critique
|
|
87
|
+
|
|
88
|
+
**Loki Mode Pattern:**
|
|
89
|
+
```
|
|
90
|
+
Generate -> Critique against principles -> Revise -> Re-critique -> Final
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Research Basis:** [Anthropic Constitutional AI](https://www.anthropic.com/research/constitutional-ai-harmlessness-from-ai-feedback)
|
|
94
|
+
|
|
95
|
+
**Cursor:** Not mentioned in their documentation.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### 5. Memory Architecture
|
|
100
|
+
|
|
101
|
+
**Loki Mode:**
|
|
102
|
+
```
|
|
103
|
+
.loki/memory/
|
|
104
|
+
episodic/ # Specific interaction traces
|
|
105
|
+
semantic/ # Generalized patterns
|
|
106
|
+
procedural/ # Learned skills
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Research Basis:**
|
|
110
|
+
- [A-Mem: Agentic Memory System](https://arxiv.org/html/2502.12110v11)
|
|
111
|
+
- [MIRIX Memory Architecture](https://arxiv.org/abs/2502.12110)
|
|
112
|
+
|
|
113
|
+
**Cursor:** Memory management not detailed in their blog.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
### 6. Full SDLC Coverage
|
|
118
|
+
|
|
119
|
+
**Loki Mode Phases:**
|
|
120
|
+
```
|
|
121
|
+
BOOTSTRAP -> DISCOVERY -> ARCHITECTURE -> INFRASTRUCTURE
|
|
122
|
+
-> DEVELOPMENT -> QA -> DEPLOYMENT -> GROWTH (continuous)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**37 Specialized Agent Types across 7 swarms:**
|
|
126
|
+
- Engineering (8 types)
|
|
127
|
+
- Operations (8 types)
|
|
128
|
+
- Business (8 types)
|
|
129
|
+
- Data (3 types)
|
|
130
|
+
- Product (3 types)
|
|
131
|
+
- Growth (4 types)
|
|
132
|
+
- Review (3 types)
|
|
133
|
+
- Orchestration (4 types) - NEW in v3.3.0
|
|
134
|
+
|
|
135
|
+
**Cursor:** Focuses on code generation. Business, growth, and operations not mentioned.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
### 7. Debate-Based Verification
|
|
140
|
+
|
|
141
|
+
**Loki Mode Pattern:**
|
|
142
|
+
```
|
|
143
|
+
For critical changes:
|
|
144
|
+
1. Agent A proposes solution
|
|
145
|
+
2. Agent B critiques (must find problems)
|
|
146
|
+
3. Structured debate
|
|
147
|
+
4. Resolution with evidence
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**Research Basis:** [DeepMind Scalable Oversight via Debate](https://deepmind.google/research/publications/34920/)
|
|
151
|
+
|
|
152
|
+
**Cursor:** Not mentioned.
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Where Cursor is Better
|
|
157
|
+
|
|
158
|
+
### 1. Proven Scale
|
|
159
|
+
- 1.6M LoC Excel implementation
|
|
160
|
+
- 1.2M LoC Windows 7 emulator
|
|
161
|
+
- "Trillions of tokens" deployed
|
|
162
|
+
- Hundreds of concurrent agents
|
|
163
|
+
|
|
164
|
+
**Loki Mode:** Benchmarks only (SWE-bench, HumanEval). No 1M+ LoC projects demonstrated.
|
|
165
|
+
|
|
166
|
+
### 2. Empirical Iteration
|
|
167
|
+
Cursor learned through failure:
|
|
168
|
+
- Flat coordination failed -> Moved to hierarchical
|
|
169
|
+
- File locking created deadlocks -> Moved to optimistic concurrency
|
|
170
|
+
- Integrators created bottlenecks -> Removed them
|
|
171
|
+
|
|
172
|
+
**Loki Mode:** Research-based design. Not yet validated at Cursor's scale.
|
|
173
|
+
|
|
174
|
+
### 3. Simplicity Principle
|
|
175
|
+
> "A surprising amount of the system's behavior comes down to how we prompt the agents. The harness and models matter, but the prompts matter more."
|
|
176
|
+
|
|
177
|
+
**Loki Mode:** More complex infrastructure (7 gates, 37 agent types, memory systems). May be over-engineered for some use cases.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## What Loki Mode Learned from Cursor (v3.3.0)
|
|
182
|
+
|
|
183
|
+
We incorporated Cursor's proven patterns:
|
|
184
|
+
|
|
185
|
+
1. **Recursive Sub-Planners** - Planning scales horizontally
|
|
186
|
+
2. **Judge Agents** - Explicit CONTINUE/COMPLETE/ESCALATE/PIVOT decisions
|
|
187
|
+
3. **Optimistic Concurrency** - No locks, scales to 100+ agents
|
|
188
|
+
4. **Scale-Aware Review** - Full review for high-risk only at scale
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## Conclusion
|
|
193
|
+
|
|
194
|
+
**Loki Mode is scientifically better in:**
|
|
195
|
+
- Quality assurance (research-backed 7-gate system)
|
|
196
|
+
- Anti-sycophancy (CONSENSAGENT blind review)
|
|
197
|
+
- Velocity-quality balance (arXiv metrics)
|
|
198
|
+
- Full SDLC coverage (PRD to growth)
|
|
199
|
+
- Memory architecture (episodic/semantic/procedural)
|
|
200
|
+
|
|
201
|
+
**Cursor is operationally better in:**
|
|
202
|
+
- Proven scale (1M+ LoC projects)
|
|
203
|
+
- Empirical learning (iteration through failure)
|
|
204
|
+
- Simplicity at scale (removed bottlenecks)
|
|
205
|
+
|
|
206
|
+
**Best of both worlds:** Loki Mode v3.3.0 incorporates Cursor's scale patterns while maintaining research-backed quality assurance.
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## References
|
|
211
|
+
|
|
212
|
+
### Loki Mode Research Foundation
|
|
213
|
+
- [CONSENSAGENT](https://aclanthology.org/2025.findings-acl.1141/) - Anti-sycophancy
|
|
214
|
+
- [arXiv 2511.04427v2](https://arxiv.org/abs/2511.04427) - Velocity-quality balance
|
|
215
|
+
- [Anthropic Constitutional AI](https://www.anthropic.com/research/constitutional-ai-harmlessness-from-ai-feedback)
|
|
216
|
+
- [DeepMind Scalable Oversight](https://deepmind.google/research/publications/34920/)
|
|
217
|
+
- [A-Mem Memory System](https://arxiv.org/html/2502.12110v11)
|
|
218
|
+
- [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/)
|
|
219
|
+
|
|
220
|
+
### Cursor Source
|
|
221
|
+
- [Cursor Blog - Scaling Agents](https://cursor.com/blog/scaling-agents)
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
**Loki Mode v4.1.0** | github.com/asklokesh/loki-mode
|