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.
- Host: GitHub
- URL: https://github.com/zd87pl/powerhouse
- Owner: zd87pl
- License: mit
- Created: 2026-04-26T22:46:32.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-10T03:17:33.000Z (about 1 month ago)
- Last Synced: 2026-05-10T03:33:09.061Z (about 1 month ago)
- Language: Python
- Size: 5.72 MB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
- Roadmap: docs/roadmap.md
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.*
[](https://opensource.org/licenses/MIT)
[](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)