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

feat: brain inbox AI adds thoughts and cleans up captured text

Adam Eivybdbfea00c997
diff --git a/.changelog/v1.27.x.md b/.changelog/v1.27.x.md
new file mode 100644
index 0000000000..59da5f4ed5
--- /dev/null
+++ b/.changelog/v1.27.x.md
@@ -0,0 +1,12 @@
+# Release v1.27.x - Changelog
+
+Released: YYYY-MM-DD
+
+## Overview
+
+Brain inbox AI classifier now evaluates and enhances captured thoughts beyond simple classification.
+
+## 🎉 Features
+
+- **AI thought evaluation**: Brain classifier adds commentary, insights, and connections about each captured thought — surfacing questions worth exploring and suggested next steps
+- **Slop cleanup**: Raw brain dumps are automatically cleaned up — grammar fixed, shorthand expanded, restructured for clarity while preserving original meaning and voice
diff --git a/client/src/components/brain/tabs/InboxTab.jsx b/client/src/components/brain/tabs/InboxTab.jsx
index 57946df571..eba72e5bd1 100644
--- a/client/src/components/brain/tabs/InboxTab.jsx
+++ b/client/src/components/brain/tabs/InboxTab.jsx
@@ -344,6 +344,18 @@ export default function InboxTab({ onRefresh, settings }) {
</span>
</div>
+ {entry.classification?.cleanedUp && entry.classification.cleanedUp !== entry.capturedText && (
+ <p className="text-sm text-gray-300 mb-2 pl-3 border-l-2 border-port-accent/30">
+ {entry.classification.cleanedUp}
+ </p>
+ )}
+
+ {entry.classification?.thoughts && (
+ <p className="text-xs text-port-accent/70 italic mb-2">
+ {entry.classification.thoughts}
+ </p>
+ )}
+
{entry.classification?.reasons && (
<p className="text-xs text-gray-500 mb-2">
{entry.classification.reasons.join(' • ')}
@@ -539,11 +551,21 @@ export default function InboxTab({ onRefresh, settings }) {
<div className="flex items-start justify-between gap-2 mb-2">
<div className="flex-1">
<p className="text-white">{entry.capturedText}</p>
+ {entry.classification?.cleanedUp && entry.classification.cleanedUp !== entry.capturedText && (
+ <p className="text-sm text-gray-300 mt-1 pl-3 border-l-2 border-port-accent/30">
+ {entry.classification.cleanedUp}
+ </p>
+ )}
{entry.classification?.title && (
<p className="text-sm text-gray-400 mt-1">
→ {entry.classification.title}
</p>
)}
+ {entry.classification?.thoughts && (
+ <p className="text-xs text-port-accent/70 italic mt-1">
+ {entry.classification.thoughts}
+ </p>
+ )}
</div>
<div className="flex gap-1">
<button
diff --git a/package-lock.json b/package-lock.json
index 587c6ce3a3..52ce0a696d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "portos",
- "version": "1.27.1",
+ "version": "1.28.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "portos",
- "version": "1.27.1",
+ "version": "1.28.0",
"license": "MIT",
"dependencies": {
"express": "^4.21.2",
diff --git a/package.json b/package.json
index c615ca134d..4bc2fe4de7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "portos",
- "version": "1.27.1",
+ "version": "1.28.0",
"private": true,
"description": "Local dev machine App OS portal",
"author": "Adam Eivy (@antic|@atomantic)",
diff --git a/server/lib/brainValidation.js b/server/lib/brainValidation.js
index 6def5e0630..07dbd0de06 100644
--- a/server/lib/brainValidation.js
+++ b/server/lib/brainValidation.js
@@ -29,6 +29,8 @@ export const classificationSchema = z.object({
destination: destinationEnum,
confidence: z.number().min(0).max(1),
title: z.string().min(1).max(200),
+ cleanedUp: z.string().max(10000).optional(),
+ thoughts: z.string().max(2000).optional(),
extracted: z.record(z.unknown()),
reasons: z.array(z.string()).max(5).optional()
});
@@ -269,6 +271,8 @@ export const classifierOutputSchema = z.object({
destination: destinationEnum,
confidence: z.number().min(0).max(1),
title: z.string().min(1).max(200),
+ cleanedUp: z.string().max(10000).optional().default(''),
+ thoughts: z.string().max(2000).optional().default(''),
extracted: z.record(z.unknown()),
reasons: z.array(z.string()).max(5).optional().default([])
});