Spaces:
Runtime error
PowerCore
Browse files---
title: PowerCore Forge
emoji: βοΈ
colorFrom: gray
colorTo: blue
sdk: gradio
sdk_version: 4.24.0
app_file: app.py
license: apache-2.0
tags:
- agentic
- automation
- ai
- workflow
- developer-tools
- powercore
---
# βοΈ PowerCore Forge β Agent Workflow Orchestrator
π I've been quietly building something insane:
**PowerCore Forge** is a dev dashboard where you control AI agents like apps, plug in tools like Gumroad, GitHub, or Slack, and visually automate workflows β without writing endless boilerplate.
This Space is a live demo of Forgeβs plugin execution engine:
- π Select Agents + Plugins
- π§ Simulate executions + logs
- πͺ Get live output + debug preview
Built using [Gradio Blocks](https://www.gradio.app/guides/creating-a-dashboard), PowerCore is designed for:
- Indie hackers automating their stack
- Developer teams orchestrating AI flows
- Plugin creators building monetizable tools
---
## π§ How It Works
1. Pick an agent: Context, Planner, or Executor
2. Attach a plugin: e.g., Gumroad Plugin or GitHub Sync
3. Hit βRun Workflowβ to simulate execution and log output
All runs are logged and saved to `execution_log.json`.
---
## π More
- π» Full system: [github.com/ianmxaof/PowerCoreForge](https://github.com/)
- π¦ Plugin packs: [gumroad.com/powercore](https://gumroad.com/)
- π¦ Updates: [@powercoreai](https://twitter.com/powercoreai)
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pathlib import Path
|
| 2 |
+
|
| 3 |
+
# Enhanced Gradio app with backend stub, logging, and simulated async behavior
|
| 4 |
+
enhanced_app_py = """
|
| 5 |
+
import gradio as gr
|
| 6 |
+
import requests
|
| 7 |
+
import time
|
| 8 |
+
import json
|
| 9 |
+
|
| 10 |
+
API_ENDPOINT = "http://localhost:8001/api/agents/run" # Replace with real backend if deployed
|
| 11 |
+
|
| 12 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 13 |
+
gr.Markdown(\"""
|
| 14 |
+
# βοΈ PowerCore Forge β Agent Workflow Orchestrator
|
| 15 |
+
|
| 16 |
+
**PowerCore Forge** is an AI-powered dev stack for building, managing, and monetizing intelligent automation workflows.
|
| 17 |
+
|
| 18 |
+
- π Attach plugins to agents (Gumroad, GitHub, Slack)
|
| 19 |
+
- π§ Control ContextAgent, PlannerAgent, ExecutorAgent
|
| 20 |
+
- π Trigger workflows visually
|
| 21 |
+
- π View live logs and status output
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
\""")
|
| 25 |
+
|
| 26 |
+
agent = gr.Dropdown(["ContextAgent", "PlannerAgent", "ExecutorAgent"], label="Select Agent")
|
| 27 |
+
plugin = gr.Dropdown(["Gumroad Plugin", "GitHub Sync", "Slack Alerts"], label="Select Plugin")
|
| 28 |
+
output = gr.Textbox(label="Execution Log", lines=10)
|
| 29 |
+
|
| 30 |
+
def run_agent(agent, plugin):
|
| 31 |
+
logs = []
|
| 32 |
+
logs.append(f"π’ Initializing {agent}...")
|
| 33 |
+
time.sleep(0.5)
|
| 34 |
+
logs.append(f"π Attaching {plugin}...")
|
| 35 |
+
time.sleep(0.5)
|
| 36 |
+
logs.append(f"π‘ Sending execution request to backend...")
|
| 37 |
+
time.sleep(0.5)
|
| 38 |
+
|
| 39 |
+
try:
|
| 40 |
+
# Simulate backend call
|
| 41 |
+
payload = {"agent": agent, "plugin": plugin}
|
| 42 |
+
response = requests.post(API_ENDPOINT, json=payload, timeout=3)
|
| 43 |
+
|
| 44 |
+
if response.status_code == 200:
|
| 45 |
+
result = response.json()
|
| 46 |
+
logs.append(f"β
Execution complete: {result.get('message', 'Success')}")
|
| 47 |
+
else:
|
| 48 |
+
logs.append(f"β Backend error: HTTP {response.status_code}")
|
| 49 |
+
except Exception as e:
|
| 50 |
+
logs.append(f"π¨ Exception during execution: {str(e)}")
|
| 51 |
+
|
| 52 |
+
logs.append("π Workflow execution finished.")
|
| 53 |
+
|
| 54 |
+
# Save to log file
|
| 55 |
+
log_file = {
|
| 56 |
+
"agent": agent,
|
| 57 |
+
"plugin": plugin,
|
| 58 |
+
"logs": logs,
|
| 59 |
+
"timestamp": time.time()
|
| 60 |
+
}
|
| 61 |
+
with open("execution_log.json", "w") as f:
|
| 62 |
+
json.dump(log_file, f, indent=2)
|
| 63 |
+
|
| 64 |
+
return "\\n".join(logs)
|
| 65 |
+
|
| 66 |
+
run_button = gr.Button("βΆοΈ Run Workflow")
|
| 67 |
+
run_button.click(fn=run_agent, inputs=[agent, plugin], outputs=output)
|
| 68 |
+
|
| 69 |
+
demo.launch()
|
| 70 |
+
"""
|
| 71 |
+
|
| 72 |
+
# Save the file
|
| 73 |
+
Path("/mnt/data/app.py").write_text(enhanced_app_py.strip())
|