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

add /do:next hot button to app manage page and update slashdo to latest

[._.]/ Adam Eivye64e55cbdbfd
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 6902869294..7ab20dbaea 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -2,6 +2,8 @@
## Added
+- **`/do:next` hot button on the app manage page** — The Agent Operations panel on an app's Overview tab gains a **`/do:next`** button alongside `/do:push`, `/do:review`, `/do:replan`, and the rest. One click queues a CoS agent that claims the next unclaimed `PLAN.md` item, works it in an isolated worktree, and ships a PR — the consumer counterpart to `/do:replan`. The bundled **slashdo** submodule was updated to the latest release (which ships the `do:next` command). (`lib/slashdo`, `client/src/components/apps/SlashDoPanel.jsx`, `server/routes/cosTaskRoutes.js`)
+
- **Add canon characters / places / objects by hand** — Each canon section in the Universe editor (Cast, Places, Objects) now has an **Add** button next to "Pick from Catalog" — the same manual-add affordance the variation buckets already had. Click it, type a name (and optionally a description), and Save mints a new canon entry you can immediately render, refine, and fill in. The entry lands unlocked (so its inline editors are usable right away), dedupes case-insensitively against existing names, and persists through the same optimistic-append path as the catalog picker — so you no longer have to extract from prose, pick from the catalog, or promote a variation just to start a character. (`client/src/components/universe/UniverseCanonSection.jsx`)
- **Character LoRA training — train consistent character adapters from your universe canon** — Create → Media Gen gains a **Training** tab (`/media/training`) that closes the loop from "character exists in a universe" to "every render of that character looks the same." Per character, a **dataset workbench** builds reference material three ways: batch-generate single-subject training renders from the character's canon descriptors (deterministic view/pose/expression/outfit variation matrix, queued through the normal image lane), upload your own images (normalized to PNG via sharp), or slice the character's existing reference-sheet turnaround into grid crops. A **vision-LLM captioner** (same provider pathway as the voice agent's visual describe) auto-captions every image prefixed with the character's trigger word, with per-image caption editing and re-captioning. Once ≥10 captioned images are ready, **train a FLUX.2 Klein LoRA locally** through one of two engines, picked automatically: mflux's MLX-native trainer (`mflux-train`, mflux ≥0.17 — wrapped by `scripts/train_mflux_lora.py`, preferred on Apple Silicon; the dataset stages in mflux's `NNNN.png`+`NNNN.txt` auto-discovery layout, and quantize/low-ram knobs derive from total RAM so a 48 GB machine trains QLoRA-style instead of OOMing) or a vendored torch/diffusers+peft trainer (`scripts/train_flux2_lora.py` — bf16 bases only, precompute-then-free text/VAE encoding, gradient checkpointing) as the fallback. Either engine exports diffusers-format adapters. Training runs ride the media-job GPU lane (serialized with renders, SSE progress with per-step loss, mid-training sample previews, 30-min idle watchdog, cancel saves a checkpoint). The finished adapter lands in `data/loras/` with a sidecar carrying the character link + trigger word + size-variant compat key (`flux2-4b`/`flux2-9b`), so it appears in the existing LoRA library and picker with the right base-model gating immediately. **Auto-apply:** pipeline comic-page and storyboard renders that match a character with a trained LoRA automatically attach the adapter and weave its trigger word into the prompt (local mode; per-stage opt-out in Generation settings). Character cards in the universe editor and catalog detail pages show a trained-LoRA chip + dataset entry point; trained LoRAs in the library link back to their dataset. Datasets are machine-local (like the LoRA files themselves — never federated) and fully backed up; training checkpoints/caches are excluded as regenerable. Run records live in PostgreSQL (`lora_training_runs`). (`server/services/loraTraining/`, `server/services/loraDatasets.js`, `server/services/loraDatasetGenerate.js`, `server/services/loraDatasetCaption.js`, `server/services/characterLoraResolver.js`, `client/src/pages/LoraTraining.jsx`, `client/src/pages/LoraDatasetDetail.jsx`)
diff --git a/client/src/components/apps/SlashDoPanel.jsx b/client/src/components/apps/SlashDoPanel.jsx
index 6b3677aa2a..24a0ec288a 100644
--- a/client/src/components/apps/SlashDoPanel.jsx
+++ b/client/src/components/apps/SlashDoPanel.jsx
@@ -9,6 +9,7 @@ const SLASHDO_COMMANDS = [
{ id: 'push', label: '/do:push', description: 'Commit and push all work', classes: 'bg-port-success/20 text-port-success hover:bg-port-success/30 border-port-success/30' },
{ id: 'review', label: '/do:review', description: 'Deep code review', classes: 'bg-port-accent/20 text-port-accent hover:bg-port-accent/30 border-port-accent/30' },
{ id: 'replan', label: '/do:replan', description: 'Audit and prune PLAN.md, removing completed items', classes: 'bg-cyan-500/20 text-cyan-400 hover:bg-cyan-500/30 border-cyan-500/30' },
+ { id: 'next', label: '/do:next', description: 'Claim the next unclaimed PLAN.md item and ship a PR', classes: 'bg-blue-500/20 text-blue-400 hover:bg-blue-500/30 border-blue-500/30' },
{ id: 'release', label: '/do:release', description: 'Create a release PR', classes: 'bg-purple-500/20 text-purple-400 hover:bg-purple-500/30 border-purple-500/30' },
{ id: 'better', label: '/do:better', description: 'DevSecOps audit', classes: 'bg-port-warning/20 text-port-warning hover:bg-port-warning/30 border-port-warning/30', hideForSwift: true },
{ id: 'better-swift', label: '/do:better-swift', description: 'SwiftUI DevSecOps audit', classes: 'bg-port-warning/20 text-port-warning hover:bg-port-warning/30 border-port-warning/30', swiftOnly: true }
diff --git a/lib/slashdo b/lib/slashdo
index 4c7e339c82..e3f9d2d22c 160000
--- a/lib/slashdo
+++ b/lib/slashdo
@@ -1 +1 @@
-Subproject commit 4c7e339c823c2ea071571a9b96cd9418d5720524
+Subproject commit e3f9d2d22c693e333b3754a9dab5f2a2b1ce0daa
diff --git a/server/routes/cos.test.js b/server/routes/cos.test.js
index 3d79f63294..ba8c466425 100644
--- a/server/routes/cos.test.js
+++ b/server/routes/cos.test.js
@@ -796,6 +796,7 @@ describe('CoS Routes', () => {
'push',
'review',
'replan',
+ 'next',
'release',
'better',
'better-swift'
diff --git a/server/routes/cosTaskRoutes.js b/server/routes/cosTaskRoutes.js
index fdad3cba20..e3b08cebfe 100644
--- a/server/routes/cosTaskRoutes.js
+++ b/server/routes/cosTaskRoutes.js
@@ -20,6 +20,7 @@ const SLASHDO_COMMANDS = {
push: { label: 'Push', description: 'Commit and push all work with changelog' },
review: { label: 'Review', description: 'Deep code review of changed files' },
replan: { label: 'Replan', description: 'Audit PLAN.md, archive completed items, prune stale work' },
+ next: { label: 'Next', description: 'Claim the next unclaimed PLAN.md item and ship a PR' },
release: { label: 'Release', description: 'Create a release PR' },
better: { label: 'Better', description: 'Unified DevSecOps audit and remediation' },
'better-swift': { label: 'Better Swift', description: 'SwiftUI DevSecOps audit and remediation' }