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: add GOALS.md with project goals, non-goals, and direction
Adam Eivy6098ea53ffb4
diff --git a/.changelog/v0.18.x.md b/.changelog/v0.18.x.mdindex 61b0f299ae..f648b9e85f 100644--- a/.changelog/v0.18.x.md+++ b/.changelog/v0.18.x.md@@ -42,3 +42,7 @@ Continued reliability improvements and codebase hardening.### Mark S8 and S9 as complete in PLAN.md- S8 (cron parser iteration limit) was already implemented: `MAX_CRON_ITERATIONS`, `validateCronFieldRange()`, early null return- S9 (validation boilerplate extraction) was already implemented: `validateRequest()` helper used across 80 call sites in 12 route files++### Add GOALS.md+- Comprehensive project goals document generated from codebase analysis covering 9 core goals, non-goals, current state, and project direction+- Added reference link from PLAN.md to GOALS.mddiff --git a/GOALS.md b/GOALS.mdnew file mode 100644index 0000000000..2d74d61a36--- /dev/null+++ b/GOALS.md@@ -0,0 +1,90 @@+# PortOS — Goals++> A self-hosted operating system for your dev machine that centralizes app management, AI agent orchestration, personal knowledge capture, and digital identity modeling into a single dashboard — accessible anywhere via Tailscale.++## Purpose++PortOS transforms a local development machine into an intelligent personal operating system. It exists to solve the fragmentation of developer workflows — managing apps, orchestrating AI agents, capturing knowledge, and modeling personal identity are all scattered across dozens of tools with no unified interface. PortOS brings these together in a single dashboard that runs on your own hardware, keeps your data local, and is accessible from any device on your private Tailscale network.++## Core Goals++### 1. Centralized App Lifecycle Management++Single dashboard for managing active git repos, PM2 processes, logs, and JIRA integration. Register existing apps or scaffold new ones from templates. Real-time status monitoring, streaming log output, and smart project detection eliminate the need to juggle terminal windows and browser tabs across projects.++### 2. Autonomous AI Agent Orchestration++Chief of Staff (CoS) system that autonomously generates tasks from goals, routes them to the best AI provider based on learned success rates, and executes without human intervention. Multi-provider support (Claude, Codex, Gemini, Ollama, LM Studio) with fallback chains, model tier selection, and continuous learning from outcomes. The system should get smarter over time, not just execute.++### 3. Personal Knowledge Management++Brain (thought capture and classification) and Memory (vector-embedded semantic retrieval) systems that function as a persistent second brain. Thoughts are captured, auto-classified by LLM, and indexed for hybrid retrieval (vector similarity + BM25 keyword search). Daily and weekly digests surface patterns and connections across captured knowledge.++### 4. Digital Identity Modeling++Build a persistent digital twin — a machine-readable representation of identity, personality, preferences, and history. Includes behavioral testing, taste profiling, genome visualization, autobiography, and social account mapping. The twin briefs AI agents on tone, style, and preferences so they can act authentically on your behalf.++### 5. Developer Productivity Toolkit++Web-based shell, git tools, process monitoring, browser control (CDP/Playwright), action history, and AI run tracking. Everything a developer needs for daily work, accessible from any device. CyberCity 3D visualization brings the system to life.++### 6. Self-Improving Intelligence++The system learns from its own operation — task success rates inform provider routing, corrupted metrics self-heal on startup, and autonomous jobs generate code quality improvements. This isn't static tooling; it's a system that gets better at serving you the longer it runs.++### 7. Full Digital Autonomy++AI agents should be capable of operating fully autonomously across all connected platforms without requiring human intervention. From generating content to managing social presence to executing scheduled workflows, the goal is a system that can act on your behalf around the clock with the judgment and taste of your digital twin.++### 8. Knowledge Legacy++Preserve personal knowledge, identity, decision-making patterns, and life story beyond a single lifetime. The autobiography system, genome data, behavioral profiles, and captured memories form a durable record — not just of what you built, but of who you are and how you think.++### 9. Anywhere Access on Private Network++Tailscale VPN enables secure access from any device without public internet exposure. The entire system — dashboard, shell, browser, AI agents — is available from your phone, tablet, or any remote machine on your mesh network.++## Secondary Goals++- **App Templates**: Scaffold new projects from pre-configured templates (Express + React + Tailwind + PM2 stack and custom templates)+- **Behavioral Feedback Loop**: "Sounds like me" response validation with adaptive weighting to continuously refine the digital twin+- **Mortality-Aware Goal Tracking**: Birth date + genome longevity markers to urgency-score goals based on projected lifespan+- **Multi-Modal Identity Capture**: Voice, video, and image-based identity modeling beyond text++## Non-Goals++- **Multi-user support**: PortOS is a personal tool built for one person. Adding auth, roles, or multi-tenancy would add complexity with no benefit.+- **Public internet deployment**: Runs on a private Tailscale network. No HTTPS, CORS, rate limiting, or public-facing hardening needed.+- **Database-backed persistence**: JSON files are intentional. They're human-readable, git-friendly, and sufficient for single-user scale. No Postgres, SQLite, or MongoDB.+- **Authentication / Authorization**: Single-user on a private network. Auth would be security theater here.+- **Cloud hosting**: Runs on your local machine. Your data stays on your hardware.++## Target Users++PortOS is built for Adam Eivy — a single developer managing active git repos, orchestrating AI workflows, and building a persistent digital identity on a local machine. It's a personal tool designed around one person's workflows, preferences, and ambitions. While open source (MIT), it's not designed for general adoption or onboarding other users.++## Current State++| Goal | Status | Notes |+|------|--------|-------|+| Centralized App Management | In Progress | Core complete (M0-M4, M9, M17-M18). App Templates (M7) still planned. |+| Autonomous AI Orchestration | In Progress | CoS fully operational (M14, M19-M31, M35, M37, M40). Learning system active. Continuous refinement. |+| Personal Knowledge Management | In Progress | Brain (M32) and Memory (M16, M31) complete. Digest system running. Ongoing quality tuning. |+| Digital Identity Modeling | In Progress | Soul (M33), Digital Twin (M34 P1-P2,P4), Genome, Autobiography complete. Identity orchestrator (M42) planned next. |+| Developer Productivity Toolkit | Complete | Shell, git, browser (M36), history, usage, CyberCity (M41) all shipped. |+| Self-Improving Intelligence | In Progress | Task learning (M25), self-improvement (M23), autonomous jobs (M37) active. Self-healing metrics recently added. |+| Full Digital Autonomy | In Progress | Agent tools (M38), Moltworld (M43), scheduling (M26, M30) operational. Expanding platform coverage. |+| Knowledge Legacy | Early | Autobiography prompts (M34 P5) launched. Genome data captured. Long-term preservation strategy not yet defined. |+| Anywhere Access | Complete | Tailscale integration working. Mobile-responsive UI. All features accessible remotely. |++## Direction++PortOS is entering its **identity integration phase**. The next major work (M42) unifies the digital twin, genome, chronotype, and behavioral data under a single identity orchestrator. This enables:++1. **Chronotype-aware scheduling** — CoS tasks aligned to your natural energy patterns derived from genome sleep markers+2. **Personalized AI prompting** — Every AI interaction informed by unified identity context+3. **Mortality-aware goals** — Urgency scoring based on projected lifespan++Beyond M42, the trajectory is toward deeper autonomy (agents that need less supervision), richer identity modeling (multi-modal capture, behavioral feedback loops), and knowledge preservation as a durable legacy.++Recent momentum: 43 milestones shipped, security audit (S1-S10) complete, v0.18.5 on dev. The project iterates rapidly — 3 minor versions in the last month with both features and hardening in each release.diff --git a/PLAN.md b/PLAN.mdindex 307a92b162..bc171ee4be 100644--- a/PLAN.md+++ b/PLAN.md@@ -1,5 +1,7 @@# Port OS - Implementation Plan+See [GOALS.md](./GOALS.md) for project goals and direction.+## Quick Reference### Tech Stack