Multi-Agent Autonomous Startup System for Claude Code
Transform a PRD into a fully deployed, revenue-generating product with zero human intervention.
Loki Mode is a Claude Code skill that orchestrates 37 specialized AI agents across 6 swarms to autonomously build, deploy, and operate a complete startup. Just say "Loki Mode" and provide a PRD.
PRD → Competitive Research → Architecture → Development → Testing → Deployment → Marketing → Revenue
| Category | Capabilities |
|---|---|
| Multi-Agent System | 37 agents across Engineering, Operations, Business, Data, Product, and Growth swarms |
| Parallel Code Review | 3 specialized reviewers (code, business, security) running simultaneously |
| Quality Gates | 14 automated gates including security scans, load tests, accessibility |
| Deployment | AWS, GCP, Azure, Vercel, Railway with blue-green and canary strategies |
| Business Ops | Marketing, Sales, HR, Legal, Finance, Investor Relations agents |
| Reliability | Circuit breakers, dead letter queues, exponential backoff, state recovery |
| Observability | External alerting (Slack, PagerDuty), backup/restore, log rotation |
eng-frontend eng-backend eng-database eng-mobile eng-api eng-qa eng-perf eng-infra
ops-devops ops-sre ops-security ops-monitor ops-incident ops-release ops-cost ops-compliance
biz-marketing biz-sales biz-finance biz-legal biz-support biz-hr biz-investor biz-partnerships
data-ml data-eng data-analytics
prod-pm prod-design prod-techwriter
growth-hacker growth-community growth-success growth-lifecycle
review-code review-business review-security
SKILL.md # ← THE SKILL (required) - contains YAML frontmatter
references/
├── agents.md # Agent definitions
├── deployment.md # Deployment guides
└── business-ops.md # Business workflows
- Go to Releases
- Download
loki-mode-X.X.X.ziporloki-mode-X.X.X.skill - Go to Claude.ai → Settings → Features → Skills
- Upload the zip/skill file
The zip has SKILL.md at the root level as Claude.ai expects.
- Go to Releases
- Download
loki-mode-api-X.X.X.zip(note: the-api-version) - Go to console.anthropic.com → Skills
- Upload the zip file
The API version has SKILL.md inside a loki-mode/ folder as the API requires.
Option A: Download from Releases
# Download the Claude Code version
cd ~/.claude/skills
# Get latest version number
VERSION=$(curl -s https://api.github.com/repos/asklokesh/claudeskill-loki-mode/releases/latest | grep tag_name | cut -d'"' -f4 | tr -d 'v')
# Download and extract
curl -L -o loki-mode.zip "https://github.com/asklokesh/claudeskill-loki-mode/releases/download/v${VERSION}/loki-mode-claude-code-${VERSION}.zip"
unzip loki-mode.zip && rm loki-mode.zip
# Creates: ~/.claude/skills/loki-mode/SKILL.mdOption B: Git Clone
# For personal use (all projects)
git clone https://github.com/asklokesh/claudeskill-loki-mode.git ~/.claude/skills/loki-mode
# For a specific project only
git clone https://github.com/asklokesh/claudeskill-loki-mode.git .claude/skills/loki-modeOption C: Minimal Install (curl)
mkdir -p ~/.claude/skills/loki-mode/references
curl -o ~/.claude/skills/loki-mode/SKILL.md https://raw.githubusercontent.com/asklokesh/claudeskill-loki-mode/main/SKILL.md
curl -o ~/.claude/skills/loki-mode/references/agents.md https://raw.githubusercontent.com/asklokesh/claudeskill-loki-mode/main/references/agents.md
curl -o ~/.claude/skills/loki-mode/references/deployment.md https://raw.githubusercontent.com/asklokesh/claudeskill-loki-mode/main/references/deployment.md
curl -o ~/.claude/skills/loki-mode/references/business-ops.md https://raw.githubusercontent.com/asklokesh/claudeskill-loki-mode/main/references/business-ops.md# Check the skill is in place
cat ~/.claude/skills/loki-mode/SKILL.md | head -5
# Should show YAML frontmatter with name: loki-modeUse the autonomous runner - it handles everything:
# Run with a PRD (fully autonomous with auto-resume)
./autonomy/run.sh ./docs/requirements.md
# Run interactively
./autonomy/run.shThe autonomous runner will:
- Check all prerequisites (Claude CLI, Python, Git, etc.)
- Verify skill installation
- Initialize the
.loki/directory - Start status monitor (updates
.loki/STATUS.txtevery 5s) - Start Claude Code with live output (see what's happening)
- Auto-resume on rate limits or interruptions
- Continue until completion or max retries
No more staring at a blank screen! Claude's output is displayed in real-time:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CLAUDE CODE OUTPUT (live)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[You see Claude working in real-time here...]
Monitor task progress in another terminal:
# Watch status updates live
watch -n 2 cat .loki/STATUS.txtOutput:
╔════════════════════════════════════════════════════════════════╗
║ LOKI MODE STATUS ║
╚════════════════════════════════════════════════════════════════╝
Phase: DEVELOPMENT
Tasks:
├─ Pending: 10
├─ In Progress: 1
├─ Completed: 5
└─ Failed: 0
If you prefer manual control:
# Launch Claude Code with autonomous permissions
claude --dangerously-skip-permissions
# Then say:
> Loki Mode
# Or with a specific PRD:
> Loki Mode with PRD at ./docs/requirements.mdEnvironment variables to customize the autonomous runner:
# Example with custom settings
LOKI_MAX_RETRIES=100 \
LOKI_BASE_WAIT=120 \
LOKI_MAX_WAIT=7200 \
./autonomy/run.sh ./docs/requirements.md| Variable | Default | Description |
|---|---|---|
LOKI_MAX_RETRIES |
50 | Maximum retry attempts before giving up |
LOKI_BASE_WAIT |
60 | Base wait time in seconds |
LOKI_MAX_WAIT |
3600 | Maximum wait time (1 hour) |
LOKI_SKIP_PREREQS |
false | Skip prerequisite checks |
./autonomy/run.sh prd.md
│
▼
┌─────────────────────┐
│ Check Prerequisites │ ← Claude CLI, Python, Git, etc.
└─────────────────────┘
│
▼
┌─────────────────────┐
│ Initialize .loki/ │ ← State, queues, logs
└─────────────────────┘
│
▼
┌─────────────────────┐
│ Run Claude Code │◄─────────────────┐
└─────────────────────┘ │
│ │
Exit code? │
│ │
┌────┴────┐ │
▼ ▼ │
Success Rate Limit │
│ │ │
▼ ▼ │
DONE! Wait (exponential backoff) ────┘
If you stop the script (Ctrl+C) or it crashes:
# Just run it again - state is saved automatically
./autonomy/run.sh ./docs/requirements.mdSee autonomy/README.md for detailed documentation.
| Phase | Description |
|---|---|
| 0. Bootstrap | Create .loki/ directory structure, initialize state |
| 1. Discovery | Parse PRD, competitive research via web search |
| 2. Architecture | Tech stack selection with self-reflection |
| 3. Infrastructure | Provision cloud, CI/CD, monitoring |
| 4. Development | Implement with TDD, parallel code review |
| 5. QA | 14 quality gates, security audit, load testing |
| 6. Deployment | Blue-green deploy, auto-rollback on errors |
| 7. Business | Marketing, sales, legal, support setup |
| 8. Growth | Continuous optimization, A/B testing, feedback loops |
Every task goes through 3 reviewers simultaneously:
IMPLEMENT → REVIEW (3 parallel) → AGGREGATE → FIX → RE-REVIEW → COMPLETE
│
├─ code-reviewer (opus)
├─ business-logic-reviewer (opus)
└─ security-reviewer (opus)
| Severity | Action |
|---|---|
| Critical/High/Medium | Block. Fix immediately. Re-review. |
| Low | Add // TODO(review): ... comment, continue |
| Cosmetic | Add // FIXME(nitpick): ... comment, continue |
When running, Loki Mode creates:
.loki/
├── state/ # Orchestrator and agent states
├── queue/ # Task queue (pending, in-progress, completed, dead-letter)
├── messages/ # Inter-agent communication
├── logs/ # Audit logs
├── config/ # Configuration files
├── prompts/ # Agent role prompts
├── artifacts/ # Releases, reports, backups
└── scripts/ # Helper scripts
# .loki/config/circuit-breakers.yaml
defaults:
failureThreshold: 5
cooldownSeconds: 300# .loki/config/alerting.yaml
channels:
slack:
webhook_url: "${SLACK_WEBHOOK_URL}"
severity: [critical, high]Test the skill with these pre-built PRDs in the examples/ directory:
| PRD | Complexity | Time | Description |
|---|---|---|---|
simple-todo-app.md |
Low | ~10 min | Basic todo app - tests core functionality |
api-only.md |
Low | ~10 min | REST API only - tests backend agents |
static-landing-page.md |
Low | ~5 min | HTML/CSS only - tests frontend/marketing |
full-stack-demo.md |
Medium | ~30-60 min | Complete bookmark manager - full test |
# Example: Test with simple todo app
claude --dangerously-skip-permissions
> Loki Mode with PRD at examples/simple-todo-app.mdThe skill includes a comprehensive test suite:
# Run all tests
./tests/run-all-tests.sh
# Run individual test suites
./tests/test-bootstrap.sh # Directory structure, state init
./tests/test-task-queue.sh # Queue operations, priorities
./tests/test-circuit-breaker.sh # Failure handling, recovery
./tests/test-agent-timeout.sh # Timeout, stuck process handling
./tests/test-state-recovery.sh # Checkpoints, recovery- Claude Code with
--dangerously-skip-permissionsflag - Internet access for competitive research and deployment
- Cloud provider credentials (for deployment phase)
- Python 3 (for test suite)
| Feature | Basic Skills | Loki Mode |
|---|---|---|
| Agents | 1 | 37 |
| Swarms | - | 6 |
| Code Review | Manual | Parallel 3-reviewer |
| Deployment | None | Multi-cloud |
| Business Ops | None | Full stack |
| State Recovery | None | Checkpoint/resume |
| Alerting | None | Slack/PagerDuty |
Optionally integrate with Vibe Kanban for a visual kanban board to monitor Loki Mode's agents:
# Install Vibe Kanban
npx vibe-kanban
# Export Loki tasks to Vibe Kanban
./scripts/export-to-vibe-kanban.shBenefits:
- Visual progress tracking of all 37 agents
- Manual intervention/prioritization when needed
- Code review with visual diffs
- Multi-project dashboard
See integrations/vibe-kanban.md for full setup guide.
Contributions welcome! Please read the skill and open issues for bugs or feature requests.
MIT License - see LICENSE for details.
- Inspired by LerianStudio/ring subagent-driven-development pattern
- Built for the Claude Code ecosystem
Keywords: claude-code, claude-skills, ai-agents, autonomous-development, multi-agent-system, sdlc-automation, startup-automation, devops, mlops, deployment-automation