M commited on
Commit
7bb5d6d
Β·
verified Β·
1 Parent(s): 5a59f07

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)

Files changed (1) hide show
  1. app.py +73 -0
app.py ADDED
@@ -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())