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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
docs: rewrite README with Digital Twin, Brain, and expanded CoS sections
Adam Eivy45916b202cb0
diff --git a/.changelog/v0.16.x.md b/.changelog/v0.16.x.mdindex fbc0e5778c..f0101e3996 100644--- a/.changelog/v0.16.x.md+++ b/.changelog/v0.16.x.md@@ -114,3 +114,12 @@ Agent persistence, reliability, and decision transparency improvements.- **Data model migrated** -- `app.disabledTaskTypes` (string array) replaced with `app.taskTypeOverrides` (object with `enabled` + optional `interval` per task type); existing data auto-migrates on first load- **Eliminated N+1 fetch** -- schedule status API now returns `appOverrides`, `enabledAppCount`, and `totalAppCount` per task type, removing the need for separate per-app API calls on mount- **Removed PerAppOverrides component** -- replaced by inline `PerAppOverrideList` within each task row++### Updated README with comprehensive feature documentation+- **Restructured features** into organized sections: App Management, Chief of Staff, Digital Twin, Brain, Developer Tools, and Infrastructure+- **Added Digital Twin section** covering identity documents, behavioral testing, enrichment, taste profiling, genome visualization, and import/export+- **Added Brain section** covering thought capture, AI classification, knowledge links, memory system, and digest generation+- **Expanded Chief of Staff section** with multi-agent orchestration, task learning, goal tracking, decision transparency, and error recovery+- **Added Developer Tools section** covering shell, AI runner, process monitor, CyberCity, and browser control+- **Added Tech Stack section** listing frontend/backend/data/AI technologies+- **Consolidated screenshots** from 7 images down to 1 hero imagediff --git a/README.md b/README.mdindex a2a68ed7f3..40b5e0e3cf 100644--- a/README.md+++ b/README.md@@ -1,57 +1,71 @@# PortOS-A self-hosted App OS portal for your dev machine. Manage all your local development apps from a single dashboard — accessible from anywhere via [Tailscale](https://tailscale.com).+A self-hosted operating system for your dev machine. Manage apps, orchestrate AI agents, build your digital twin, and capture knowledge — all from a single dashboard accessible anywhere via [Tailscale](https://tailscale.com).-Think Umbrel, but for your active git repos and dev environments. Access your dev apps from your phone, tablet, or any device on your Tailscale network.+Think Umbrel, but for your active git repos, AI workflows, and personal knowledge. Access everything from your phone, tablet, or any device on your Tailscale network.-+-## Features+## Core Features-- **App Dashboard** — Grid of app tiles with status indicators, port links, and quick actions-- **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+### App Management+- **Dashboard** — Grid of app tiles with real-time status, port links, start/stop/restart controls, and system health monitoring- **Smart Import** — Point to a directory and auto-detect project config from package.json, vite.config, and ecosystem.config-- **Chief of Staff** — Autonomous task manager that monitors TASKS.md and dispatches AI agents-- **Weekly Digest** — Visual insights, accomplishments, and week-over-week comparisons-- **Task Learning** — Tracks task success rates and duration to improve model selection-- **Scheduled Scripts** — Cron-based automation with optional agent triggering-- **Brain** — Second-brain system for capturing thoughts and auto-classifying to People/Projects/Ideas/Admin-- **Digital Twin** — Identity scaffold documents for AI persona modeling with personality trait extraction-- **Web Shell** — Full terminal emulator in the browser using xterm.js and node-pty-- **Dev Tools** — Process monitor, AI agent tracker, action history, git status, and shell runner-- **AI Runner** — Execute prompts via Claude Code, Codex, Gemini CLI, Ollama, or LM Studio-- **File Uploads** — Generic file storage with drag-and-drop upload interface+- **App Templates** — Scaffold new projects from pre-built templates with AI provider integration+- **Real-time Logs** — Stream PM2 logs via Socket.IO with tail length control+- **JIRA Integration** — Per-app board config, active sprint resolution, epic search, and ticket creation from the UI++### Chief of Staff (CoS)+An autonomous AI agent orchestrator that manages your development workflow:++- **Task Scheduling** — Submit tasks, set priorities, and let CoS dispatch AI agents (Claude Code, Codex, Gemini CLI, Ollama, LM Studio) to complete them+- **Multi-Agent Orchestration** — Run multiple agents concurrently with global and per-project limits, capacity management, and fair scheduling+- **Task Learning** — Tracks success rates, error patterns, and model performance to dynamically route tasks to the best provider+- **Goal Tracking** — Define goals and track progress across hundreds of completed tasks with success rate metrics+- **Scheduled Automation** — Cron-based self-improvement and app-improvement jobs with per-app interval overrides+- **Decision Transparency** — Every skip, switch, and routing decision is logged with reasons, surfaced on the dashboard+- **Productivity Analytics** — Work streaks, hourly/daily patterns, milestones, and AI-generated insights+- **Weekly Digest** — Visual summaries of accomplishments, learnings, and week-over-week comparisons+- **Error Recovery** — Automatic diagnosis and retry with adjusted routing for failed tasks++### Digital Twin+An identity scaffolding system for building an AI representation of yourself:++- **Identity Documents** — Manage markdown documents organized by category (values, communication style, routines, expertise, etc.)+- **Behavioral Testing** — Run alignment tests across 14 dimensions with multi-model comparison+- **Enrichment Questionnaire** — Guided questions across 14 categories to deepen the identity model+- **Taste Profiling** — Likert-scale preference scoring with moving averages across personality dimensions+- **Writing Style Analysis** — Extract voice patterns and communication style from writing samples+- **Contradiction Detection** — AI analysis flags inconsistencies across identity documents+- **Genome Visualization** — Genetic trait markers, cancer risk categories, and health predispositions (100+ SNP markers)+- **Import/Export** — Import from Spotify and other sources; export as system prompt, CLAUDE.md, JSON, or individual files+- **Creation Wizard** — 5-step guided setup for building a new digital twin from scratch++### Brain (Second Brain)+A thought capture and knowledge management system:++- **Thought Capture** — Natural language input with AI-powered auto-classification into People, Projects, Ideas, and Admin+- **Inbox Review** — Validate and correct AI classifications before they're filed+- **Knowledge Links** — Build a graph of connections between thoughts, people, and projects+- **Memory System** — Long-term memory storage with vector similarity search, BM25 retrieval, and consolidation+- **Daily/Weekly Digest** — AI-curated summaries of captured knowledge+- **Trust Scoring** — Rate data source reliability for better knowledge hygiene++### Developer Tools+- **Web Shell** — Full terminal emulator in the browser (xterm.js + node-pty) with Ghostty theme support+- **AI Runner** — Execute prompts across any configured provider directly from the UI+- **Process Monitor** — View all PM2 processes with live memory, CPU, uptime, and restart controls+- **Agent Tracker** — Monitor running AI agents with runtime stats, app badges, and JIRA ticket links+- **Git Management** — Branch status, release workflows, and PR creation+- **Action History** — Searchable log of all executed actions with filtering and statistics+- **CyberCity** — 3D voxel city visualization of your apps and agents in real-time+- **Browser Control** — Remote Chrome DevTools Protocol integration for headless browser management++### Infrastructure- **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, ports, and quick actions.----### AI Agent Processes-Monitor running AI agents (Claude, Cursor, etc.) with runtime, CPU, and memory stats.----### PM2 Processes-View all PM2 processes with live log streaming, memory usage, uptime, and restart controls.----### Chief of Staff-Autonomous task manager that monitors your TASKS.md and dispatches AI agents to complete work.------### App Import-Auto-detect project configuration from your codebase — ports, start commands, and PM2 process names.--+- **Multi-Provider AI** — Configure Claude, OpenAI, Gemini, Ollama, LM Studio, and more with model tiers and fallback chains+- **Secret Management** — Environment variable masking, API key redaction, and PTY shell allowlisting+- **File Uploads** — Drag-and-drop file storage with preview support## Quick Start@@ -62,7 +76,7 @@ cd PortOSnpm run dev```-Access PortOS at http://localhost:5555 (or http://[your-machine-name]:5555 via Tailscale)+Access PortOS at http://localhost:5555 (or via Tailscale at http://[your-machine]:5555)## Network Access@@ -72,7 +86,7 @@ PortOS binds to `0.0.0.0` so you can access it from any device on your Tailscale- Check logs and restart services from your phone- View dashboard on your tablet while coding on your laptop-> **Security Note**: PortOS is designed for private Tailscale networks. Do not expose ports 5554/5555 to the public internet.+> **Security Note**: PortOS is designed for private Tailscale networks. Do not expose ports 5554-5560 to the public internet.## Project Structure@@ -86,27 +100,22 @@ PortOS/└── ecosystem.config.cjs # PM2 configuration```-## PM2 Commands--```bash-# Start PortOS-pm2 start ecosystem.config.cjs--# View status-pm2 status+## Tech Stack-# View logs-pm2 logs portos-server --lines 100-pm2 logs portos-client --lines 100+- **Frontend**: React 18, Vite, Tailwind CSS, Three.js, xterm.js+- **Backend**: Express.js, Socket.IO, PM2, Zod validation+- **Data**: JSON file persistence, vector embeddings for memory search+- **AI**: Claude Code, Codex, Gemini CLI, Ollama, LM Studio (via [portos-ai-toolkit](https://www.npmjs.com/package/portos-ai-toolkit))-# Restart both processes-pm2 restart portos-server portos-client--# Stop both processes-pm2 stop portos-server portos-client+## PM2 Commands-# Save process list (survives reboot)-pm2 save+```bash+pm2 start ecosystem.config.cjs # Start PortOS+pm2 status # View status+pm2 logs portos-server --lines 100 # View server logs+pm2 restart portos-server portos-ui # Restart processes+pm2 stop portos-server portos-ui # Stop processes+pm2 save # Save process list (survives reboot)```## Configuration@@ -120,17 +129,11 @@ Each registered app includes:- **pm2ProcessNames** — PM2 process identifiers for status tracking### AI Providers (`data/providers.json`)-Configure AI providers for the runner:+Configure AI providers for the runner and Chief of Staff:- **CLI-based**: Claude Code, Codex, Gemini CLI+- **API-based**: OpenAI, Anthropic, Google (with model tier management)- **Local models**: Ollama, LM Studio (OpenAI-compatible endpoints)-## Security--- Command runner uses an allowlist (npm, git, pm2, docker, etc.)-- No shell interpolation — commands use spawn with argument arrays-- Designed for private Tailscale networks only-- No authentication (relies on network-level security)-## Documentation- [Architecture Overview](./docs/ARCHITECTURE.md) — System design and data flow@@ -141,7 +144,6 @@ Configure AI providers for the runner:- [Versioning & Releases](./docs/VERSIONING.md) — Version format and release process- [GitHub Actions](./docs/GITHUB_ACTIONS.md) — CI/CD workflow patterns- [Troubleshooting](./docs/TROUBLESHOOTING.md) — Common issues and solutions-- [Implementation Plan](./PLAN.md) — Detailed feature roadmap## License