Large World graph, agent platform, brain stack & dashboard rebuild

Frontend
- Large World: collapse org/company/team tiers into one expandable React Flow
  hierarchy (WorldFlow) with per-click expand, persisted node positions, a
  compact tree sidebar, wrench multi-select delete across levels, and a sized
  right slide-out (phone/tablet/full) showing an agent summary + drill button.
- Agent page: GitHub-style animated contribution grid (VitalsCard), collapsible
  System Prompt + Personality cards, restructured anatomy cards, bigger avatar
  with name/title header row, Markdown/JSON-aware rendering, brain registry +
  history, avatar generate/upload.
- User-icon menu (Infrastructure/Brains/Tools/Profile/Credits) + ToolPanel;
  Master Planner deploy wizard (Specialists/Swarm/Scheduled/Triggered);
  Team Runs view; reap-progress modal; dashboard is the single live interface.

Backend
- cm-brain crate (.brain as the agent definition) + brain apply/history.
- Hard-purge reap (FK-ordered) + sandbox release + SSE batch-delete.
- Swarm self-verifying loop, mode-aware planner, web.search tool, webhooks
  (migration 0013), org/company/team delete endpoints, scheduler sweeps.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
Omar Sobh
2026-06-22 23:21:54 -07:00
co-authored by Claude Opus 4.8
parent 9f266d5806
commit 34f744734b
123 changed files with 9591 additions and 1098 deletions
@@ -98,7 +98,7 @@ export default function SettingsApp({ agent }: { agent: Agent }) {
name="system_prompt"
rows={5}
defaultValue={live.system_prompt}
placeholder="Describe how this claw should think..."
placeholder="Describe how this agent should think..."
className="rounded-xl border border-input bg-subtle px-3 py-2 text-sm text-foreground outline-none transition-colors focus:border-coral"
/>
<span className="text-xxs">Becomes part of its system prompt.</span>
@@ -126,7 +126,7 @@ export default function SettingsApp({ agent }: { agent: Agent }) {
onClick={deleteClaw}
className="rounded-full bg-destructive px-3 py-1.5 text-foreground"
>
Delete claw
Delete agent
</button>
</div>
</div>
@@ -136,7 +136,7 @@ export default function SettingsApp({ agent }: { agent: Agent }) {
onClick={() => setConfirmingDelete(true)}
className="flex items-center gap-1.5 self-start text-xs text-coral transition-colors hover:text-coral-light"
>
<Trash2 aria-hidden size={13} /> Delete claw
<Trash2 aria-hidden size={13} /> Delete agent
</button>
)}
</form>
@@ -176,10 +176,10 @@ export default function SettingsApp({ agent }: { agent: Agent }) {
</p>
<div
role="radiogroup"
aria-label="Other Claws"
aria-label="Other Agents"
className="mx-6 rounded-xl bg-neutral-900 p-2 text-xs ring-1 ring-neutral-800/70"
>
<p className="px-1 pb-1 text-muted-foreground">Other Claws</p>
<p className="px-1 pb-1 text-muted-foreground">Other Agents</p>
{(["any", "specific"] as const).map((mode) => (
<button
key={mode}
@@ -191,8 +191,8 @@ export default function SettingsApp({ agent }: { agent: Agent }) {
>
<span aria-hidden className={agentsMode === mode ? "text-coral" : "text-muted-foreground"}>{agentsMode === mode ? "◉" : "○"}</span>
{mode === "any"
? "Any Claw on the team"
: "Specific claws — pick claws"}
? "Any Agent on the team"
: "Specific agents — pick agents"}
</button>
))}
</div>