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
feat(slashdo): bundle slashdo as submodule for reliable command access
Adam Eivy91f29f08ff1b
diff --git a/.claude/commands/do/better-swift.md b/.claude/commands/do/better-swift.mdnew file mode 120000index 0000000000..6668337cb9--- /dev/null+++ b/.claude/commands/do/better-swift.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/better-swift.md\ No newline at end of filediff --git a/.claude/commands/do/better.md b/.claude/commands/do/better.mdnew file mode 120000index 0000000000..b869e0fe8e--- /dev/null+++ b/.claude/commands/do/better.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/better.md\ No newline at end of filediff --git a/.claude/commands/do/fpr.md b/.claude/commands/do/fpr.mdnew file mode 120000index 0000000000..451440f99f--- /dev/null+++ b/.claude/commands/do/fpr.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/fpr.md\ No newline at end of filediff --git a/.claude/commands/do/goals.md b/.claude/commands/do/goals.mdnew file mode 120000index 0000000000..e51ed8a161--- /dev/null+++ b/.claude/commands/do/goals.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/goals.md\ No newline at end of filediff --git a/.claude/commands/do/help.md b/.claude/commands/do/help.mdnew file mode 120000index 0000000000..0061762d3e--- /dev/null+++ b/.claude/commands/do/help.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/help.md\ No newline at end of filediff --git a/.claude/commands/do/omd.md b/.claude/commands/do/omd.mdnew file mode 120000index 0000000000..e60a6a38c1--- /dev/null+++ b/.claude/commands/do/omd.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/omd.md\ No newline at end of filediff --git a/.claude/commands/do/pr.md b/.claude/commands/do/pr.mdnew file mode 120000index 0000000000..2bb54b0187--- /dev/null+++ b/.claude/commands/do/pr.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/pr.md\ No newline at end of filediff --git a/.claude/commands/do/push.md b/.claude/commands/do/push.mdnew file mode 120000index 0000000000..0dca5d7a88--- /dev/null+++ b/.claude/commands/do/push.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/push.md\ No newline at end of filediff --git a/.claude/commands/do/release.md b/.claude/commands/do/release.mdnew file mode 120000index 0000000000..8622ec1cac--- /dev/null+++ b/.claude/commands/do/release.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/release.md\ No newline at end of filediff --git a/.claude/commands/do/replan.md b/.claude/commands/do/replan.mdnew file mode 120000index 0000000000..d0122b93a7--- /dev/null+++ b/.claude/commands/do/replan.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/replan.md\ No newline at end of filediff --git a/.claude/commands/do/review.md b/.claude/commands/do/review.mdnew file mode 120000index 0000000000..8c0d209aeb--- /dev/null+++ b/.claude/commands/do/review.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/review.md\ No newline at end of filediff --git a/.claude/commands/do/rpr.md b/.claude/commands/do/rpr.mdnew file mode 120000index 0000000000..23df6c2da4--- /dev/null+++ b/.claude/commands/do/rpr.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/rpr.md\ No newline at end of filediff --git a/.claude/commands/do/update.md b/.claude/commands/do/update.mdnew file mode 120000index 0000000000..31097f7776--- /dev/null+++ b/.claude/commands/do/update.md@@ -0,0 +1 @@+../../../lib/slashdo/commands/do/update.md\ No newline at end of filediff --git a/.claude/lib/code-review-checklist.md b/.claude/lib/code-review-checklist.mdnew file mode 120000index 0000000000..0c920f66b9--- /dev/null+++ b/.claude/lib/code-review-checklist.md@@ -0,0 +1 @@+../../lib/slashdo/lib/code-review-checklist.md\ No newline at end of filediff --git a/.claude/lib/copilot-review-loop.md b/.claude/lib/copilot-review-loop.mdnew file mode 120000index 0000000000..7474822b3f--- /dev/null+++ b/.claude/lib/copilot-review-loop.md@@ -0,0 +1 @@+../../lib/slashdo/lib/copilot-review-loop.md\ No newline at end of filediff --git a/.claude/lib/graphql-escaping.md b/.claude/lib/graphql-escaping.mdnew file mode 120000index 0000000000..7c79279a70--- /dev/null+++ b/.claude/lib/graphql-escaping.md@@ -0,0 +1 @@+../../lib/slashdo/lib/graphql-escaping.md\ No newline at end of filediff --git a/.claude/lib/remediation-agent-template.md b/.claude/lib/remediation-agent-template.mdnew file mode 120000index 0000000000..94c009f5c6--- /dev/null+++ b/.claude/lib/remediation-agent-template.md@@ -0,0 +1 @@+../../lib/slashdo/lib/remediation-agent-template.md\ No newline at end of filediff --git a/.claude/lib/swift-review-checklist.md b/.claude/lib/swift-review-checklist.mdnew file mode 120000index 0000000000..3abf4f4b16--- /dev/null+++ b/.claude/lib/swift-review-checklist.md@@ -0,0 +1 @@+../../lib/slashdo/lib/swift-review-checklist.md\ No newline at end of filediff --git a/.gitmodules b/.gitmodulesnew file mode 100644index 0000000000..53956ae1bd--- /dev/null+++ b/.gitmodules@@ -0,0 +1,3 @@+[submodule "lib/slashdo"]+ path = lib/slashdo+ url = [email protected]:atomantic/slashdo.gitdiff --git a/CLAUDE.md b/CLAUDE.mdindex e4ed1295f3..695e5e24e1 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -69,6 +69,17 @@ PortOS depends on `portos-ai-toolkit` as an npm module for AI provider managemen- The toolkit uses spread in `updateProvider()` so existing providers preserve custom fields, but `createProvider()` has an explicit field list- After updating the toolkit, run `npm update portos-ai-toolkit` in PortOS to pull changes+### Slashdo Commands (`lib/slashdo`)++PortOS bundles [slashdo](https://github.com/atomantic/slashdo) as a git submodule at `lib/slashdo`. This provides slash commands (`/do:review`, `/do:pr`, `/do:push`, `/do:release`, etc.) and shared libraries without requiring a separate global install.++**Key points:**+- Submodule lives at `lib/slashdo`, symlinked into `.claude/commands/do/` and `.claude/lib/`+- `npm run install:all` runs `git submodule update --init --recursive` automatically+- To update slashdo: `git submodule update --remote lib/slashdo`+- CoS agents can use `loadSlashdoCommand(name)` from `subAgentSpawner.js` to inline command content into prompts (resolves `!cat` lib includes automatically)+- The `.claude/commands/do/` symlinks make all `/do:*` commands available as project-level Claude Code slash commands+## Scope BoundaryWhen CoS agents or AI tools work on managed apps outside PortOS, all research, plans, docs, and code for those apps must be written to the target app's own repository/directory -- never to this repo. PortOS stores only its own features, plans, and documentation. If an agent generates a PLAN.md, research doc, or feature spec for another app, it goes in that app's directory.diff --git a/lib/slashdo b/lib/slashdonew file mode 160000index 0000000000..e43d63e9ce--- /dev/null+++ b/lib/slashdo@@ -0,0 +1 @@+Subproject commit e43d63e9ce01b5f68c89c9dfb28ef8f738cd2490diff --git a/package.json b/package.jsonindex a2288f4074..c698d0cf38 100644--- a/package.json+++ b/package.json@@ -18,7 +18,7 @@"pm2:status": "node ./node_modules/pm2/bin/pm2 status","pm2:save": "node ./node_modules/pm2/bin/pm2 save","pm2:startup": "node ./node_modules/pm2/bin/pm2 startup",- "install:all": "npm install && npm install --prefix client && npm install --prefix server && npm install --prefix autofixer && npm run setup",+ "install:all": "git submodule update --init --recursive && npm install && npm install --prefix client && npm install --prefix server && npm install --prefix autofixer && npm run setup","migrations": "node scripts/run-migrations.js","setup": "node scripts/setup-data.js && node scripts/setup-db.js && node scripts/setup-browser.js","setup:data": "node scripts/setup-data.js",diff --git a/server/lib/fileUtils.js b/server/lib/fileUtils.jsindex cc22fb2e30..21c8c61ce1 100644--- a/server/lib/fileUtils.js+++ b/server/lib/fileUtils.js@@ -49,7 +49,8 @@ export const PATHS = {settings: join(__lib_dirname, '../../data/settings'),missions: join(__lib_dirname, '../../data/cos/missions'),tools: join(__lib_dirname, '../../data/tools'),- images: join(__lib_dirname, '../../data/images')+ images: join(__lib_dirname, '../../data/images'),+ slashdo: join(__lib_dirname, '../../lib/slashdo')};/**diff --git a/server/services/subAgentSpawner.js b/server/services/subAgentSpawner.jsindex c46d39a6c7..c745e77d40 100644--- a/server/services/subAgentSpawner.js+++ b/server/services/subAgentSpawner.js@@ -75,6 +75,7 @@ async function cleanupBtwFile(workspacePath) {}const SKILLS_DIR = join(ROOT_DIR, 'data/prompts/skills');+const SLASHDO_DIR = PATHS.slashdo;/*** Skill template keyword matchers@@ -136,6 +137,27 @@ async function loadSkillTemplate(skillName) {return content;}+/**+ * Load a slashdo command from the bundled submodule, resolving !`cat` lib includes inline.+ */+export async function loadSlashdoCommand(commandName) {+ const cmdPath = join(SLASHDO_DIR, 'commands/do', `${commandName}.md`);+ if (!existsSync(cmdPath)) return null;+ let content = await readFile(cmdPath, 'utf-8');+ // Resolve !`cat ~/.claude/lib/...` includes using the bundled lib+ const libDir = join(SLASHDO_DIR, 'lib');+ const matches = [...content.matchAll(/!`cat ~\/.claude\/lib\/([^`]+)`/g)];+ const replacements = await Promise.all(matches.map(async (match) => {+ const libContent = await readFile(join(libDir, match[1]), 'utf-8').catch(() => null);+ return { pattern: match[0], content: libContent };+ }));+ for (const { pattern, content: libContent } of replacements) {+ if (libContent) content = content.replace(pattern, libContent);+ }+ console.log(`📋 Loaded slashdo command: do:${commandName}`);+ return content;+}+/*** Select optimal model for a task based on complexity analysis and historical performance* User can override by specifying Model: and/or Provider: in task metadata