Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: update screenshots and add PM2 save button

Adam Eivy325b83371aff
diff --git a/README.md b/README.md
index 5dd5d513b6..dfbff3db4b 100644
--- a/README.md
+++ b/README.md
@@ -12,21 +12,32 @@ Think Umbrel, but for your active git repos and dev environments. Access your de
- **Start/Stop/Restart** — Control your apps directly from the dashboard or apps table
- **Real-time Logs** — Stream PM2 logs via Socket.IO with tail length control
- **Smart Import** — Point to a directory and auto-detect project config from package.json, vite.config, and ecosystem.config
-- **Dev Tools** — Process monitor, action history, git status, and shell command runner
+- **Chief of Staff** — Autonomous task manager that monitors TASKS.md and dispatches AI agents
+- **Dev Tools** — Process monitor, AI agent tracker, action history, git status, and shell runner
- **AI Runner** — Execute prompts via Claude Code CLI, Codex, Gemini CLI, or local models
- **Mobile Ready** — Responsive design with collapsible sidebar for on-the-go access
## Screenshots
### Apps Management
-Expandable app rows with start/stop controls, PM2 process status, and quick actions.
+Expandable app rows with start/stop controls, PM2 process status, ports, and quick actions.
-![Apps Page](./docs/media/portos_2.png)
+![Apps Page](./docs/media/portos_0.png)
-### Dev Tools
-Monitor AI agents, view action history, run commands, and check git status.
+### AI Agent Processes
+Monitor running AI agents (Claude, Cursor, etc.) with runtime, CPU, and memory stats.
-![Dev Tools](./docs/media/portos_3.png)
+![AI Agents](./docs/media/portos_2.png)
+
+### PM2 Processes
+View all PM2 processes with live log streaming, memory usage, uptime, and restart controls.
+
+![PM2 Processes](./docs/media/portos_5.png)
+
+### Chief of Staff
+Autonomous task manager that monitors your TASKS.md and dispatches AI agents to complete work.
+
+![Chief of Staff](./docs/media/portos_6.png)
### App Import
Auto-detect project configuration from your codebase — ports, start commands, and PM2 process names.
diff --git a/client/src/pages/DevTools.jsx b/client/src/pages/DevTools.jsx
index edb9bc8f3c..a6a4d05369 100644
--- a/client/src/pages/DevTools.jsx
+++ b/client/src/pages/DevTools.jsx
@@ -1,6 +1,7 @@
import { useState, useEffect, useRef, Fragment } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
-import { GitBranch, Plus, Minus, FileText, Clock, RefreshCw, Activity, Image, X, XCircle, Cpu, MemoryStick, Terminal, Trash2, MessageSquarePlus, Info } from 'lucide-react';
+import { GitBranch, Plus, Minus, FileText, Clock, RefreshCw, Activity, Image, X, XCircle, Cpu, MemoryStick, Terminal, Trash2, MessageSquarePlus, Info, Save } from 'lucide-react';
+import toast from 'react-hot-toast';
import * as api from '../services/api';
import socket from '../services/socket';
@@ -1063,20 +1064,37 @@ ${prompt.trim()}`;
export function ProcessesPage() {
const [processes, setProcesses] = useState([]);
+ const [managedProcessNames, setManagedProcessNames] = useState(new Set());
const [loading, setLoading] = useState(true);
const [expandedProcess, setExpandedProcess] = useState(null);
const [logs, setLogs] = useState([]);
const [restarting, setRestarting] = useState({});
const [tailLines, setTailLines] = useState(500);
const [subscribed, setSubscribed] = useState(false);
+ const [saving, setSaving] = useState(false);
const logsRef = useRef(null);
useEffect(() => {
loadProcesses();
+ loadManagedProcessNames();
const interval = setInterval(loadProcesses, 5000);
return () => clearInterval(interval);
}, []);
+ const loadManagedProcessNames = async () => {
+ const apps = await api.getApps().catch(() => []);
+ const names = new Set();
+ apps.forEach(app => {
+ (app.pm2ProcessNames || []).forEach(name => names.add(name));
+ });
+ setManagedProcessNames(names);
+ };
+
+ const isPortOSManaged = (procName) => {
+ if (procName.startsWith('portos-')) return true;
+ return managedProcessNames.has(procName);
+ };
+
useEffect(() => {
if (!expandedProcess) {
setLogs([]);
@@ -1176,6 +1194,24 @@ export function ProcessesPage() {
setLogs([]);
};
+ const handlePm2Save = async () => {
+ setSaving(true);
+ const result = await fetch('/api/commands/execute', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ command: 'pm2 save' })
+ }).then(r => r.json()).catch(() => ({ success: false }));
+ setSaving(false);
+ if (result.success) {
+ toast.success('PM2 process list saved to startup');
+ } else {
+ toast.error('Failed to save PM2 process list');
+ }
+ };
+
+ // Filter to only show PortOS-managed processes
+ const managedProcesses = processes.filter(proc => isPortOSManaged(proc.name));
+
const formatMemory = (bytes) => {
if (!bytes) return '0 MB';
return `${(bytes / 1024 / 1024).toFixed(1)} MB`;
@@ -1207,13 +1243,26 @@ export function ProcessesPage() {
return (
<div className="space-y-6">
<div className="flex justify-between items-center">
- <h1 className="text-2xl font-bold text-white">PM2 Processes</h1>
- <button
- onClick={loadProcesses}
- className="px-4 py-2 bg-port-border hover:bg-port-border/80 text-white rounded-lg transition-colors"
- >
- Refresh
- </button>
+ <div>
+ <h1 className="text-2xl font-bold text-white">PM2 Processes</h1>
+ <p className="text-gray-500">PortOS-managed processes ({managedProcesses.length} of {processes.length} total)</p>
+ </div>
+ <div className="flex gap-2">
+ <button
+ onClick={handlePm2Save}
+ disabled={saving}
+ className="px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white rounded-lg transition-colors flex items-center gap-2 disabled:opacity-50"
+ >
+ <Save size={16} className={saving ? 'animate-pulse' : ''} />
+ {saving ? 'Saving...' : 'PM2 Save'}
+ </button>
+ <button
+ onClick={loadProcesses}
+ className="px-4 py-2 bg-port-border hover:bg-port-border/80 text-white rounded-lg transition-colors"
+ >
+ Refresh
+ </button>
+ </div>
</div>
<div className="bg-port-card border border-port-border rounded-xl overflow-hidden">
@@ -1232,7 +1281,7 @@ export function ProcessesPage() {
</tr>
</thead>
<tbody className="divide-y divide-port-border">
- {processes.map(proc => (
+ {managedProcesses.map(proc => (
<Fragment key={proc.pm_id}>
<tr className="hover:bg-port-border/20">
<td className="px-4 py-3">
diff --git a/docs/media/portos_0.png b/docs/media/portos_0.png
new file mode 100644
index 0000000000..ab6868d4dc
Binary files /dev/null and b/docs/media/portos_0.png differ
diff --git a/docs/media/portos_1.png b/docs/media/portos_1.png
index ccae6153f4..34f6845467 100644
Binary files a/docs/media/portos_1.png and b/docs/media/portos_1.png differ
diff --git a/docs/media/portos_2.png b/docs/media/portos_2.png
index c0277bd647..27420c92b0 100644
Binary files a/docs/media/portos_2.png and b/docs/media/portos_2.png differ
diff --git a/docs/media/portos_5.png b/docs/media/portos_5.png
new file mode 100644
index 0000000000..5dad27b729
Binary files /dev/null and b/docs/media/portos_5.png differ
diff --git a/docs/media/portos_6.png b/docs/media/portos_6.png
new file mode 100644
index 0000000000..1f5580a022
Binary files /dev/null and b/docs/media/portos_6.png differ