An open API service indexing awesome lists of open source software.

https://github.com/zd87pl/powerhouse

10x Powerhouse โ€” Ziggy's autonomous AI engineering organization. Self-improving infra for scaffolding, deploying, monitoring and autonomously fixing projects.
https://github.com/zd87pl/powerhouse

Last synced: about 13 hours ago
JSON representation

10x Powerhouse โ€” Ziggy's autonomous AI engineering organization. Self-improving infra for scaffolding, deploying, monitoring and autonomously fixing projects.

Awesome Lists containing this project

README

          

# โšก POWERHOUSE

### **Declare the business. Reconcile the infrastructure. Automate the fixes.**

> *"Build me a plus-size fashion store for the Polish market."*
> *Powerhouse turns that intent into projects, infrastructure checks, and agent workflows.*

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python](https://img.shields.io/badge/Python-3.11+-blue.svg)](https://python.org)

[๐Ÿ“– Docs](#-quick-start) ยท [๐Ÿš€ Try It](#-quick-start) ยท [๐Ÿค– How Autonomy Works](#-how-it-works) ยท [โญ Star](https://github.com/zd87pl/powerhouse)

---

## ๐Ÿคฏ What Is This?

**Powerhouse is an early-stage autonomous engineering harness.** You give it a business idea or `.powerhouse.yml` intent file. The current codebase provides:

1. **Intent parsing** from natural language into a structured app spec
2. **Project tracking** through a FastAPI control plane and Next.js dashboard
3. **Infrastructure reconciliation** with explicit synced, drifted, skipped, and error states
4. **Credential management** with encrypted-at-rest API keys
5. **Agent/runtime scaffolding** for future autofix, swarm, and business-agent loops

The product goal is larger: live scaffolding, deploys, monitoring, and self-healing PRs. Those paths are being hardened behind explicit auth, credentials, and quota gates before they are treated as production-ready.

### See it in action:

```bash
# One file. That's all you need.
cat > .powerhouse.yml << EOF
project: bez-spinki
description: "Polish plus-size fashion store"
stack: nextjs
features: [shopify-checkout, size-guide, BLIK-payments, inventory-sync]
market: PL
EOF

# Then run the API/dashboard and reconcile the declared resources.
python3 run_api.py
# โ†’ http://localhost:8080/api/health
```

---

## ๐Ÿ”ฅ The Difference

Most AI coding tools stop at **code generation**. Powerhouse is aimed at the next layer: declared resources, deploy state, observability, and repair workflows.

The current repo is a foundation for that loop. Evaluate it as a prototype control plane, not as a finished production autonomous operator.

```
YOU: "Build me a store"
โ”‚
โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ POWERHOUSE AGENT SWARM โ”‚
โ”‚ โ”‚
โ”‚ ๐Ÿ›๏ธ Architect โ†’ Designs schema, plans files โ”‚
โ”‚ ๐Ÿ‘จโ€๐Ÿ’ป Coder โ†’ Implements clean, typed, tested code โ”‚
โ”‚ ๐Ÿ” Reviewer โ†’ Validates everything โ€” PASS or REVISE โ”‚
โ”‚ ๐Ÿš€ DevOps โ†’ Deploys to Vercel, configures Shopify โ”‚
โ”‚ ๐Ÿงช Tester โ†’ Fuzzes inputs, runs edge cases โ”‚
โ”‚ โ”‚
โ”‚ Target: loop until Reviewer says PASS, then open a PR. โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚
โ–ผ LIVE at https://your-store.com
โ”‚
โ–ผ 3AM: Bug detected
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ๐Ÿค– AUTOFIX DAEMON โ”‚
โ”‚ โ†’ Reads stack trace โ”‚
โ”‚ โ†’ Diagnoses root cause โ”‚
โ”‚ โ†’ Target: generate patch, open PR, verify CI โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

> **Current status:** the control plane, dashboard, intent engine, and agent primitives exist. End-to-end autonomous repair is not production-ready yet.

---

## ๐ŸŽฏ What You Can Build

| Business Type | What Powerhouse Handles | Time to Live |
|---|---|---|
| ๐Ÿ›๏ธ **Ecommerce store** | Intent parsing and scaffold target; payments/inventory integrations planned | Prototype |
| ๐Ÿ“Š **SaaS dashboard** | FastAPI + Next.js dashboard exists; auth/billing hardening planned | In progress |
| ๐Ÿค– **API service** | FastAPI control plane, project tracking, key storage, reconciliation | In progress |
| ๐Ÿงช **ML pipeline** | RunPod/training workflow is roadmap only | Planned |

---

## ๐Ÿงฌ How It Works

### 1. The Intent Engine
You declare **what** you want. Not how to build it.

```yaml
# .powerhouse.yml โ€” that's the whole spec
project: my-saas
description: "Analytics dashboard for ecommerce"
stack: nextjs
auth: clerk
database: supabase
billing: stripe
monitoring: sentry+phoenix
```

The engine reads this and compares declared resources with reality:
- GitHub repo exists? If credentials are configured, verify or create it
- Deploy target present? Verify supported provider state or report skipped
- CI/CD running? Check what can be verified and report drift
- **Every resource declared = synced, drifted, skipped, or errored.** Skipped work is not reported as healthy.

### 2. The Autonomy Core
What makes Powerhouse actually autonomous โ€” not just a fancy scaffold script:

- **Event Bus** โ€” agents communicate through typed in-process events.
- **Episodic Memory** โ€” in-memory fallback exists; ChromaDB/Supabase persistence is being integrated.
- **Model Router** โ€” routing primitives exist; LiteLLM/OpenRouter hardening is still planned.
- **Deliberation Council** โ€” a heuristic council exists; production agent deliberation is planned.

### 3. Business Agents
Domain-specific agents that run your business:

```python
# Margin monitoring โ€” fires automatically
merch = MerchAgent()
alerts = await merch.check_margins(products)
# โ†’ "Sukienki XL: 25% margin (threshold 40%). Raise price $80โ†’$100"

# Traffic anomaly detection
growth = GrowthAgent()
alert = await growth.detect_traffic_anomaly("/sukienki", 5000, 1000)
# โ†’ "๐Ÿšจ +400% traffic spike on /sukienki. Check referrer."

# A/B test lifecycle
test = await growth.propose_ab_test(
name="Hero CTA copy test",
hypothesis="If we change CTA to 'Shop the Look', conversion will improve",
variant_a="Shop Now", variant_b="Shop the Look"
)
```

---

## ๐Ÿš€ Quick Start

```bash
# 1. Clone
git clone https://github.com/zd87pl/powerhouse.git && cd powerhouse

# 2. Install
pip install -r requirements.txt

# 3. Run the API
python3 run_api.py
# โ†’ http://localhost:8080/api/health

# 4. Optional: run the dashboard
cd dashboard && npm install && npm run dev
# โ†’ http://localhost:3000/dashboard/setup

# 5. Create your first project
curl -X POST http://localhost:8080/api/projects \
-H "Content-Type: application/json" \
-d '{"name": "my-store", "stack": "nextjs", "intent_yaml": "project: my-store\nstack: nextjs\ndeploy:\n provider: vercel"}'

# 6. Trigger reconciliation
curl -X POST http://localhost:8080/api/projects//reconcile
# โ†’ Infrastructure checks are reported as synced, drifted, skipped, or error
```

`run_api.py` sets local-only development auth and dev secret encryption defaults. In production, configure Clerk, `POWERHOUSE_SECRET_KEY`, explicit `POWERHOUSE_CORS_ORIGINS`, and leave `POWERHOUSE_ALLOW_DEV_AUTH` disabled.

The setup dashboard reports each provider as connected from environment variables, configured from encrypted user-supplied keys, or missing. Required providers currently start with GitHub and Vercel so OSS users can bring their own tokens while the control plane keeps project progress visible. GitHub and Vercel can also be validated from the dashboard with read-only API checks before automated work is enabled.

---

## ๐Ÿ›ก๏ธ vs. Everyone Else

| | Bolt | Lovable | v0 | Replit | **Powerhouse** |
|---|---|---|---|---|---|
| Builds an app | โœ… | โœ… | โœ… | โœ… | ๐Ÿ—๏ธ |
| Deploys it | โœ… | โœ… | โœ… | โœ… | gated prototype |
| CI/CD + monitoring | โŒ | โŒ | โŒ | โŒ | ๐Ÿ—๏ธ |
| **Self-healing** | โŒ | โŒ | โŒ | โŒ | planned |
| **Remembers decisions** | โŒ | โŒ | โŒ | โŒ | prototype |
| **Agent swarms** | โŒ | โŒ | โš ๏ธ | โŒ | scaffolded |
| **Business agents** | โŒ | โŒ | โŒ | โŒ | prototype |
| Open source | โŒ | โŒ | โŒ | โŒ | **โœ… MIT** |

> **Moat target:** closed-loop repair from production error to verified PR.

---

## ๐Ÿ“‹ Roadmap

| Phase | Status |
|---|---|
| **Foundation** โ€” Vector memory, model routing, event bus | ๐Ÿ—๏ธ In progress |
| **Autonomy** โ€” Agent swarms, deliberation council, autofix daemon | ๐Ÿ—๏ธ In progress |
| **SaaS** โ€” Multi-tenant, Clerk auth, Stripe billing | ๐Ÿ—๏ธ In progress |
| **Scale** โ€” RunPod training, enterprise SSO, SOC-2 | ๐Ÿ“… Q3 2026 |

---

## ๐Ÿค Who's This For?

- **Solo founders** โ€” prototype app and infrastructure intent quickly
- **Agencies** โ€” manage declared resources and project status from one control plane
- **Ecommerce operators** โ€” experiment with merchandising and growth-agent primitives
- **AI researchers** โ€” RunPod integration for training + evaluation pipelines

---

**Built with โšก by Ziggy**

[โญ Star this repo](https://github.com/zd87pl/powerhouse) ยท [๐Ÿ“– Full docs](docs/) ยท [๐Ÿ’ฌ Discussions](https://github.com/zd87pl/powerhouse/discussions)