Commit Graph
34 Commits
Author SHA1 Message Date
Mao NakamotoandClaude Fable 5 547b16c33a content(thoughts): One Button — play and pause the fleet (vision essay)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 19:44:24 +02:00
Mao NakamotoandClaude Fable 5 8db6028f6e feat(control): play/pause autopilot + AI-filled project profiles
One-click development UX:
- AutomationPolicyControl: fleet-wide Build all / Pause all button (was a
  select) — the one primary action on /control, pulsing dot while building
- ProjectAutopilotToggle: per-project Building/Paused play-pause (was a
  dropdown); toggling back to the inherited mode clears the override

No-forms context intake:
- lib/project-brief: Groq extraction of description/mission/vision/customers/
  stack/status/next_step from free-form text, applied to the entities +
  attributes SSOT
- POST /api/projects/[id]/brief: free-form text -> filled profile
- POST /api/projects/[id]/enrich: repo README + CLAUDE.md -> filled profile
  (entities.git_url with attrs.repo fallback, user GitHub token for private)
- ProjectBriefFill on the project overview tab: 'Describe it' textarea +
  'Fill from repo' one-click
- getGithubToken deduped out of three routes into lib/github-token (rule of 3)
- ProjectData gains first-class gitUrl (removes the dataAny escape hatch)

Thoughts: 'The Play Button Is the Product' — the vision piece behind this.
Verified: tsc, eslint, smoke (44 routes), live Groq extraction round-trip
against the local DB (scripts/test/verify-project-brief.ts).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 13:19:57 +02:00
Mao NakamotoandClaude Opus 4.7 04ed3084d9 docs(thoughts): killing the bash daemon — one local executor by deletion
Position essay documenting the planned consolidation of FleetCrown's
dual local executors (legacy bash daemon + Fleet Runner desktop) onto
Fleet Runner as the sole local executor, by deletion rather than
migration.

Why this exists before the cuts: the founder asked for the Elon-mode
recommendation, accepted it, and asked to "ensure it will work" plus
document the why. Writing the plan as an essay first forces the
stress-test on paper — every responsibility the bash daemon claims
gets questioned for whether it was load-bearing at all, before we
decide which pieces Fleet Runner must absorb.

The plan in the essay (three sessions):
  A. Cuts — stop systemd units, remove ~3000 LoC bash, revert today's
     strategist commits (73b8f0a + 680c7ed), strip Groq composition
     from dispatch/route.ts, collapse auto_inject_mode 5 modes → 2.
  B. Absorption — Fleet Runner gets a filesystem watcher on
     ~/.claude/sessions/*.md, a TS prompt-key resolver against
     ~/.config/agent-prompts.json, and an autopilot trigger.
     Estimated ~150 LoC, well under Elon's 10% add-back rule.
  C. Schema-sync deploy gate — orthogonal but same week; prevents the
     silent prod drift that bit us this morning (~/.claude/projects/
     -home-g-dev-fleetcrown/memory/pattern_silent_schema_drift_prod.md).

The acid test the essay names: a customer downloading Fleet Runner
v0.9.0 today never runs the bash daemon. So why is it running on the
founder's machine? The customer's experience IS the production target.

Essay is auto-indexed by src/lib/thoughts-content.ts (reads
content/thoughts/*.md at request time). Verified live at
http://localhost:3000/thoughts/killing-the-bash-daemon (200).

No code change in this commit — pure documentation. Sessions A, B, C
will be separate commits.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-10 19:26:41 +02:00
Mao NakamotoandClaude Opus 4.7 5eb04e2fe1 docs(thoughts): essay on the FleetCrown bootstrap loop, idea → first commit
Deep walk-through of how a user takes a fresh idea to a running agent
dispatch today: signs in, lands on /control, uses /control/new-from-
scratch (cloud path) or the Bootstrap modal (Fleet Runner path), gets
a GitHub repo + FleetCrown project + first dispatch.

Uses a concrete example throughout — a tool that writes first-principles
rebuttals to articles with full source and author transparency
(working title: truthseeker). This essay is itself a reference: it
describes the loop the project will close in its own domain (article →
response with sources) by analogy to the one FleetCrown closes for
projects (idea → working code).

Honest about gaps: cloud path doesn't clone for you (the Bootstrap
modal does, locally); no autonomous scheduler firing next_best on
idle projects yet; no voice-as-input. Calls these out explicitly as
the work ahead, with the scheduler flagged as the single biggest
unlock from "tool you initiate" to "system that operates."

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-05 14:19:19 +02:00
Mao NakamotoandClaude Opus 4.7 c14e61a531 docs(thoughts): two essays — the studio stack + who FleetCrown is for
Both synthesize today's strategic conversation about infrastructure
shape, the levelsio pattern, and FleetCrown's customer.

the-studio-stack-one-box-all-your-projects.md (~3000 words):
  - The shape of indie-builder infrastructure: many small products,
    few users each — the opposite of what cloud services price for.
  - Why managed services multiply painfully at portfolio scale.
  - The studio stack: one Hetzner box, one Postgres process, many
    databases, Vercel for frontends, Caddy in front, R2/B2 for media.
  - Concrete pricing math (€7/mo hosts a 15-project portfolio).
  - The Postgres-one-process-many-databases technical model.
  - Levelsio's public reference architecture.
  - The "ten vendors" discipline.
  - When to scale up (in-place rescale, second box, breakout product).
  - Backups + Tailscale + Cloudflare Tunnel as the hardening trio.
  - Closing: infrastructure ROI is attention back to product work.

the-levelsio-pattern-productized-who-fleetcrown-is-for.md (~2700 words):
  - The May 11 tweet that names the customer.
  - What the manual pattern has, what it's missing.
  - The five thoughts every levelsio-pattern operator has had.
  - What FleetCrown adds (dashboard, dispatch from anywhere, structured
    history, autopilot policy, real-time notifications).
  - Anti-positioning: FleetCrown is not Cursor / Copilot / Devin clones.
  - Who actually buys this: solo founders / freelancers running 5+
    projects with AI agents on remote infrastructure, indie tool prices.
  - What this means for the roadmap (multi-machine fleet, anywhere
    dispatch, history, policy, push). What we explicitly DON'T build
    (team seats, RBAC, enterprise compliance, marketplace).
  - Pricing strategy: flat monthly, not per-agent / per-seat.
  - Marketing voice: "missing dashboard for the workflow you already run."
  - Distribution: Twitter, HN, #buildinpublic — not SEO funnels.
  - Default integrations: Tailscale + CF Tunnel ship as recommended.
  - Closing: the customer was already in the wild, posting screenshots
    of their Hetzner dashboards — read what they say as a job
    description for the product you should be building.

Both are first-person essays from Mao, layered for technical and
non-technical readers per the established voice. Cross-reference the
kill-switch and polling-to-listening articles so the four-essay arc
reads as one coherent story:
  1. The Database Kill Switch (May 22) — why we left Neon
  2. From Polling to Listening (June 4) — the v0.6 rebuild
  3. The Studio Stack (June 4) — the infrastructure pattern
  4. The Levelsio Pattern, Productized (June 4) — the customer

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 12:47:30 +02:00
Mao NakamotoandClaude Opus 4.7 2b4bd01ef8 docs(thoughts): "From Polling to Listening" — v0.6 architectural rebuild story
Companion to the kill-switch article (which told the story of WHY we are
leaving Neon). This one is the architectural plan for WHAT we are
building in its place, and why moving the host alone solves the wrong
problem.

Structure (11 sections, ~3200 words, ~18 min read):
1. The Wrong Question, and the Right One — the reader who pushed back
   with "should we not fix the architecture first?"
2. What "Chatty" Actually Means — transactional vs continuous-monitoring
   shapes, polling as the easy/wrong default
3. Why Polling Made Sense, and Why It Stops
4. What Push Looks Like, Concretely — SSE vs WebSocket, the pizza
   shop analogy carries through
5. The Event Bus, Explained Without Vocabulary — Slack channels for
   code analogy, why Postgres LISTEN/NOTIFY is plenty at our scale
6. The Bridge Between Bus and Client — the ~300-line Node service
   that fans NOTIFY out to SSE clients, why it can't live on Vercel
7. Local-First, the Deeper Half — desktop reads from local files
   first, cloud is a sync layer, Linear/Cursor/Obsidian as references
8. The Studio Stack, On One Free Server — both products one Postgres,
   Oracle Free as the chosen host with Hetzner as the calm alternative
9. What v0.6 Will Build, in Plain Language — 5 steps with parenthetical
   technical notes for engineers
10. What This Changes, For You and For Me — user-visible end state +
    studio-visible end state + the personal panic-then-wiser moment
11. The Broader Lesson, For Anyone Building — managed services price for
    average shapes; chatty/stateful/background-process products should
    own their infra AND fix their chattiness

Voice/audience per the brief: explicitly written for both Elon Musk
and the average reader. Technical concepts (egress, polling, push,
event bus, LISTEN/NOTIFY, SSE, local-first) are introduced via concrete
analogies first, then named formally. Engineers get the parenthetical
specifics; non-technical readers can skip them without losing the
argument.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 10:22:17 +02:00
Georgy ButaevandClaude Opus 4.7 962cc60fbe docs(brand): finish Cockpit → FleetCrown rebrand sweep across docs/thoughts/legal/src
Carried over Grok's in-progress rebrand of user-visible copy: CONTRIBUTING,
SECURITY, all content/thoughts/* essays, whitepaper, IP assignment memo
(also correcting fleetwave GmbH → fleetcrown GmbH per the earlier user
correction), agent-cli-registry-spec, and three src/ comment/identifier
spots (control route, intent panel doc, refresh-event handler name). No
behavior changes — purely copy + comments. Repository directory remains
"cockpit" for git-history continuity per the legal memo's clarification.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-02 17:07:53 +02:00
Georgy Butaev 899b08ec56 feat(integration): FleetWave real customer setup with OrangeCat
- FleetCrown is customer of OrangeCat (stakeholder 'customer' edge, shared wallet).
- Both + FleetWave as projects/profiles on orangecat.ch for Mao Nakamoto.
- Added integration banner in /money page (visible UX for the customer relationship).
- Updated CLAUDE.md, README, legal/IP memo, marketing-content to reflect current names, FleetWave customer, rebrand.
- Legacy 'cockpit' paths kept per branding-design for transition.
- Data updated live in DB (rename, wallets, relations, new FleetWave project).
- Makes the full stack work for real customer FleetWave; scales to others.

Changes in both cockpit and orangecat for good UX and functioning product.
2026-06-02 16:09:46 +02:00
Georgy Butaev e30c842869 feat(desktop) + fix(design,lint): project selection + auto-sync + Sync to Web (ck_* token); canonical injectIntoTab + real appendEvent bridge.dispatch/worker.started in Fleet Runner runtime (replaces fake in-memory); hardened zellij.ts (session resolution + -- write-chars); ui-public-download-* + --public-accent (zero design violations); full cockpit->fleetcrown rebrand in desktop/scripts/docs/thoughts/marketing/home; update desktop README + docs/desktop-app.md with capabilities + gaps (in-memory vs real log)
- desktop build clean, tsc clean, lint 0, home/ 89/89
- advances desktop-2/3: dispatches now produce durable events in ~/.fleetcrown/events.jsonl with proper runId/sentinel so stop-hooks and web control plane treat them as first-class
- still no embedded watcher (idle via co-running home/watcher.ts for now)

Refs: desktop-app.md phases, Cockpit.roadmap T1/T2, prior landing 2d98638
2026-06-02 14:54:51 +02:00
g-butandClaude Opus 4.7 e8a8d737ca feat(nav + strategy): cross-product link to OrangeCat + "Two Products or One" thesis
Two things ship together in this commit because they are answers to
the same question — how should Cockpit and OrangeCat relate to each
other from a visitor's perspective.

1. New "external" entry kind in PUBLIC_NAV. PublicNavEntry can now
   be "menu" (dropdown), "link" (internal route), or "external"
   (cross-origin link with an ExternalLink indicator). Adds an
   OrangeCat entry at https://orangecat.ch so visitors landing on
   cockpitapp.vercel.app can discover the sibling product.

   Renders on desktop with a small chevron-out icon and on mobile in
   the drawer with the same indicator + the description as subtext.
   target=_blank rel=noopener so the cross-origin handoff is clean.

2. New Thoughts essay "Two Products or One" — direct answer to the
   strategic question of whether Cockpit and OrangeCat should
   eventually merge into a single product. Argues the systems-
   engineering cut: converge the user experience now, converge the
   agent reasoning soon, leave the codebases separate until merging
   clearly reduces complexity rather than introducing it. Names the
   phased path (six months / twelve months / twenty-four months) and
   the concrete scenarios where each direction wins out.

   Companion to "The Two Halves of the Individual Singularity,"
   "From Two AIs to One," "Where Stakeholders Live," and "The Techno-
   Capital Machine for Individuals." Together those five essays form
   the strategic substrate under which the joint engineering work
   happens.

The user explicitly framed this turn as "approach as a team of
extremely high level systems engineers and designers." This commit is
that team's coherent answer to (a) how the products should reference
each other in their marketing surfaces and (b) whether they should
fuse into one. Both questions answered concretely, both deliverables
pointable-at.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 21:47:32 +02:00
g-butandClaude Opus 4.7 f284369206 docs(strategy): "The Techno-Capital Machine for Individuals" — the umbrella thesis
Andreessen described the techno-capital flywheel — technology creates
value, value compounds into capital, capital funds the next round of
technology, the loop accelerates. He named it as a corporate
phenomenon because that is what the historical substrate allowed.

The interesting question now is: what happens if the same flywheel is
sized for one person? Cockpit is the production half (operator
leverage at team scale). OrangeCat is the capital half (settlement
without gatekeepers, identity without coupling, full economic
spectrum). Together they are the techno-capital machine sized for an
individual builder.

The corporation has been the unit of economic agency for two hundred
years because individuals could not historically capture either half
of the flywheel on their own. AI delaminates the production half;
Bitcoin and adjacent settlement layers delaminate the capital half.
The substrate now exists. The question is who builds the version of
the machine that fits one person.

This essay is the umbrella thesis under which the other strategic
pieces operate:

- "The Two Halves of the Individual Singularity" — why production
  and transaction must be paired infrastructure.
- "From Two AIs to One" — why the pairing has to converge from two
  AIs into one agent as scale moves from thousands to billions.
- "Where Stakeholders Live" — how the first concrete cross-product
  feature (the stakeholder graph) operationalises the convergence.

Companion to the OrangeCat-side commit that adds the
stakeholder_relationships migration — typed edges between projects
and the eight stakeholder categories every project has around it.
The substrate now exists in both repos. Convergence is engineering,
not invention.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 21:05:05 +02:00
g-butandClaude Opus 4.7 000528963f feat(strategy): "Where Stakeholders Live" — the first concrete cross-product convergence
Direct answer to the founder's question: where should the stakeholder
map (competitors / collaborators / investors / customers / employees /
acquirers / acquisition targets / in-house dev projects) live —
Cockpit, OrangeCat, or both?

Honest answer: the graph belongs in OrangeCat, the operations belong
in Cockpit, and the convergence is what makes the feature feel
seamless instead of split.

Two deliverables:

1. New Thoughts essay "Where Stakeholders Live"
   (content/thoughts/where-stakeholders-live.md) — argues the eight
   stakeholder categories are all edges between entities OrangeCat
   already has (no new entity types). The clean split: OrangeCat
   stores the typed-edge graph; Cockpit reads it via the identity
   bridge and surfaces signals through the Watch and approval queue.
   Ship competitors first — most automatable, highest signal density,
   concrete action loop.

2. New STAKEHOLDERS phase in Cockpit's public roadmap, placed under
   CONVERGE because the stakeholder graph IS the first concrete cross-
   product use case — same data, two surfaces, one agent reasoning
   across both. Five bullets covering the storage / operations split,
   the competitors-first sequencing, and the no-second-graph
   architectural commitment.

This makes the convergence argument concrete. From Two AIs to One was
the abstract case for convergence; this is the first feature that
operationalises it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 20:36:21 +02:00
g-butandClaude Opus 4.7 83c35b4825 feat(strategy): "From Two AIs to One" — convergence path to nine billion builders
Direct answer to the founder's strategic question: is Ivy as the tie
between Cockpit and OrangeCat sustainable at billions of users? Honest
answer: no, not as currently structured. The tie today is the founder
owning both products, not the software. That scales to one user.

Two deliverables, one strategic thesis:

1. New Thoughts essay "From Two AIs to One"
   (content/thoughts/from-two-ais-to-one.md) — argues that two AIs per
   user is engineering convenience and must converge into one agent per
   user before the architecture scales beyond the early adopter phase.
   The user-facing reality has to be "my agent" — one memory graph, one
   reasoning loop, one autonomy ladder, one approval queue — with
   Cockpit and OrangeCat fading into engineering boundaries below the
   surface. The approve/disapprove interaction model is what makes
   nine-billion-builder scale work; humans cannot direct eight agents
   each, but they can triage hundreds of decisions per day.

2. New CONVERGE phase in Cockpit's public roadmap. Five concrete
   convergence steps: memory unification, reasoning-loop unification,
   autonomy-ladder unification, approval-queue unification, surfaces-as-
   engineering-boundaries-only.

The phase ordering is now: NOW → NEXT → AFTER → THEN → LATER → TEAMS →
CONVERGE → ECONOMY → ROBOTICS. CONVERGE precedes ECONOMY because the
identity bridge / integration work assumes a single user-facing agent
model that we are explicitly committing to here.

Paired with the prior essay "The Two Halves of the Individual
Singularity": that piece argued why production and transaction must be
paired infrastructure. This one argues that the pairing itself has to
collapse from two AIs into one as scale moves from thousands to
billions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 20:25:19 +02:00
g-butandClaude Opus 4.7 2221928ebb feat(strategy): position Cockpit + OrangeCat as paired singularity infrastructure
Two deliverables, one strategic thesis:

1. New Thoughts essay "The Two Halves of the Individual Singularity"
   (content/thoughts/the-two-halves-of-the-individual-singularity.md)
   — published at /thoughts/<slug>. The argument: the individual
   singularity is not a productivity gain, it is a leverage shift, and
   that shift requires both production (Cockpit) and transaction
   (OrangeCat) infrastructure built from the same first principles. AI
   agents as first-class actors, the individual as the unit of leverage,
   no gatekeepers between you and what you can build.

2. New ECONOMY phase in the public roadmap (src/config/marketing-content.ts).
   Five concrete first integrations:
   - Identity bridge — Cockpit users connect their OrangeCat actor.
   - Publish to OrangeCat — agent output becomes a Lightning-paid listing
     in one click.
   - Agent costs as outflows — compute, API tokens, third-party services
     route through the operator's OrangeCat Cat, per project.
   - Subscriptions as assets — drag becomes liquid; refinance, sublet,
     co-fund via OrangeCat without leaving the platform.
   - Cockpit pricing on Lightning rails — settle through OrangeCat. No
     Stripe in the path. Pseudonymous customers welcome.

Why this matters strategically: it makes the integration pointable-at.
Investors evaluating either platform see the pair, not the silo. The
founder eats their own dogfood — Cockpit revenue routes through
OrangeCat — proving both platforms at once. The roadmap phase is a
public commitment; the essay is the argument behind it.

The pieces exist in production today on both platforms. The integration
is engineering, not invention.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 20:02:57 +02:00
g-butandClaude Opus 4.7 9cbbc317ac feat(marketing): mission, philosophy, investors, roadmap pages + x.ai-styled marketing surface
- Add /mission, /philosophy, /investors, /roadmap with x.ai-style discipline:
  giant display titles, sparse confident statements, numbered value markers,
  generous whitespace, consistent final CTA, opacity-graded body text.
- Rewrite landing page with the same shared ui-public-* primitives so all
  marketing pages share one design surface.
- Add src/config/marketing-content.ts as the SSOT for every public string —
  rebrand or A/B test by editing this one file.
- Extend src/config/brand.ts with MARKETING_TAGLINE / MARKETING_SUBTITLE /
  MARKETING_HERO_PRIMARY / MARKETING_HERO_SECONDARY / MARKETING_POSITIONING.
- Add ~20 new ui-public-* classes to globals.css (display titles, hero parts,
  eyebrow, lede, body, meta, step-num, prose-strong/-muted, CTAs, band) so
  components carry zero arbitrary values and zero raw color/typography.
- Add FinalCta component used by every marketing page for a consistent close.
- Add the four marketing routes to the public matcher in src/proxy.ts so they
  render without auth.
- Replace generic Features/Pricing entries in PUBLIC_NAV_LINKS with the four
  new pages + keep Whitepaper.
- Publish two Thoughts essays: enabling-the-individual-singularity and the
  local-fleet-runner-and-remote-control-plane-architecture.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 08:14:03 +02:00
g-but aa26b364a4 docs(thoughts): define shared robotics platform vision 2026-05-26 10:45:29 +02:00
g-butandCursor ec6f423b0f feat(infra): Postgres portability, Oracle cutover scripts, and DB kill-switch essay
Vendor-neutral DATABASE_URL helpers, dump/restore/sync tooling, and one-command
Oracle migration after a single console VM step. Publishes the studio-stack
thoughts article and hardens build (dynamic layout, resilient sitemap).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-23 11:24:20 +02:00
g-but 852c51bbab feat(strategist): prompt intelligence v1 — Groq composes context-aware auto-inject bodies
Closes the gap Cursor's audit named and Claude's response confirmed:
auto-inject had become 'generic next_best ladder' instead of
'context-aware prompt that drives the product forward.' Thirty commits
of plumbing (status field, queue in DB, daemon heartbeat, /tmp mirror)
didn't change what the model reads when it wakes up. This commit does.

Full reasoning + design in content/thoughts/strategist-and-prompt-quality.md.

Changes (in order of blast radius):

  1. /api/control/dispatch — strategist v1 (the meat)
     • DispatchAction expands from 'queue | nextbest' to add 'composed'
       and 'off'.
     • DispatchResult.prompt holds the Groq-composed body when
       action='composed'.
     • Groq prompt asks for one of three actions + an optional PROMPT:
       body. The composer drafts a fresh prompt from handoff.next,
       queue tail, recent commits, and outcome streak — concrete verbs,
       named files where possible, ≤2000 chars.
     • maxTokens 100 → 1500 so the composed body has room.
     • Reads auto_inject_mode from beacon_settings and gates:
       off → action='off' (suppress), queue_only → queue or off,
       next_best → skip Groq + return nextbest, strategist → full chain.
     • Strategist now runs even with empty queue — that's when it's
       most valuable (smart nudge from session.next + commits alone).
       Previously short-circuited to nextbest on empty queue.

  2. src/lib/orchestration/renderers.ts — SSOT next_best body
     • Adopts the bash hook's shape (the concrete one user has been
       pasting every loop turn). Old abstract scan ladder is gone.
     • Model-agnostic: avoids assumed tech stack (no hardcoded `git
       status` / `npx tsc`). Verifies via 'are there type/lint/compile
       errors' phrasing that translates across runtimes.

  3. src/hooks/use-project-card-actions.ts — consume composed bodies
     • handleAutoInject branches on action='composed' and injects the
       returned prompt body as a custom prompt instead of firing
       sendIntent('next_best').
     • Respects action='off' from mode_gate by returning early.
     • Pre-fetch fires whenever ready (not gated on queue.length > 0)
       so the strategist can compose even when queue is empty.

  4. beacon_settings.auto_inject_mode (drizzle/0011)
     • New text column, default 'strategist'. Values: strategist |
       queue_only | next_best | off.
     • Schema TS + queries plumbed; UI carryover patched in
       BeaconSettings.tsx (full UI for the toggle is a follow-up).

  5. /api/control/runtime-state — defensive against duplicate keys
     • Found two rows for same lowercase project_key ('cockpit' and
       'Cockpit', empty queue won iteration order). Sync now groups
       by lowercase and prefers the row with the longest queue. The
       duplicate row was deleted from Neon as a one-time fix; long-
       term a uniqueness-on-lowercase migration is queued.

Migrations applied to Neon prod: 0011 via psql + neonctl. Local PG
is no longer authoritative (.env.local now points cockpit-app at
Neon; verified daemon-token auth resolves to default user b94a359d
and runtime-state sync writes /tmp/agent-queue-cockpit with the real
queue content).

Tests: tsc clean, eslint clean (src/ + home/), npm run test:home
89/89. UI for autoInjectMode toggle is queued.

Co-developed with: prompt-quality audit pass from Cursor Composer
2.5 + Claude synthesis; provenance + design rationale in
content/thoughts/strategist-and-prompt-quality.md.
2026-05-20 13:31:57 +02:00
g-butandClaude Sonnet 4.6 403b7f90b9 feat(orchestration): context-aware auto-inject + orient/unblock prompts + thoughts article
Hook changes:
- handle_notification now reads session health before picking which prompt
  to auto-inject: health=needs attention|critical → unblock, else → next_best
- Log line and write_inject_state both carry the chosen key and health value

New prompts in agent-prompts.json:
- orient: context reload — reads git log, tsc, session; outputs brief;
  no code changes. For resuming after breaks or context-limit compactions.
- unblock: stabilize before advancing — runs tsc + tests, fixes highest-
  severity failure, stops when baseline is green. Never auto-injects on
  healthy projects.

Thoughts article: "Prompts, Timing, and Orchestration: Where Agent Value
Actually Lives" — covers the decision tree, prompt taxonomy (auto-inject
candidates vs human-selected vs situational), queue-based injection
semantics, and what's still missing (velocity, time-of-day, multi-item
queue drain, inter-project coordination).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 13:38:32 +02:00
g-butandClaude Sonnet 4.6 202cf7cad3 feat(thoughts): publish "The Model-Agnostic Layer" + make [slug] dynamic
Article covers model-agnostic dispatch vision: fallback chains, local models,
hardware layer, and why Cockpit sits above the model layer not inside any lab's
walled garden. 14 min read, tagged product/strategy/agents/dispatch/hardware.

Removes generateStaticParams + adds force-dynamic so new articles are live
immediately without a rebuild — page reads from the filesystem on each request.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 12:16:44 +02:00
g-butandClaude Sonnet 4.6 0aa10c6de1 thoughts: The Interpreter Layer — voice-to-agent translation via Groq
Essay on the semantic gap between natural human expression and precise
agent instruction, and why making the translation layer visible (with a
toggle between raw and interpreted modes) is the right design.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 11:42:31 +02:00
g-butandClaude Sonnet 4.6 12ab8069ab thoughts: Remote Runtime Bridge — deep technical breakdown of injection fix, gaps, and roadmap
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 08:17:19 +02:00
g-butandClaude Sonnet 4.6 f30b6b6259 thoughts: The Command That Crossed the Room — remote→local injection breakthrough
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 08:12:41 +02:00
g-butandClaude Sonnet 4.6 01efca60bf feat(marketing): add /whitepaper public route with technical positioning doc
Writes "The Builder's Operating System" — a ~2,000-word technical
whitepaper covering the execution gap, builder loop, agent injection
architecture, daemon bridge, dispatch intelligence, and subscription
tiers. Published at /whitepaper (no auth required) via PublicSurface
with the existing design system. Landing page CTA now links to the
whitepaper alongside "Get started". Middleware exclusion updated to
allow unauthenticated access to /whitepaper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 23:09:53 +02:00
g-butandClaude Sonnet 4.6 fc24c37dec content(thoughts): add essay on session system and autonomous loop threshold
Covers the session handoff protocol, prompt library architecture (SPACE),
four-tier next_best triage, and what separates the current manually-triggered
execution system from genuine self-improvement — the cron gap.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 15:30:50 +02:00
g-butandClaude Sonnet 4.6 7efbc9302e feat(thoughts): add article on prompt craft and sequential intelligence
Covers the distinction between dispatch selection (which to run) and prompt
quality (how to write prompts that compound), the handoff as a report card,
and a 7-step implementation path for embedded AI in Cockpit's dispatch layer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 16:18:49 +02:00
g-butandClaude Sonnet 4.6 3b5566722d feat(runtime): add typed command executor and runtime boundary for Vercel deployment
- Add pending_commands schema + queries: command queue table that the local
  daemon polls when the cloud control plane is not co-located with zellij
- Add src/lib/runtime.ts: isRuntimeAvailable() reads RUNTIME_AVAILABLE env var
  (set to "true" locally, absent on Vercel) — single source of truth for the
  local/remote split
- Add src/lib/executor.ts: executeInject() routes to injectIntoTab() (direct)
  or enqueueInjectCommand() (DB queue) based on runtime availability; callers
  express intent once, the executor picks the mechanism
- Refactor /api/inject: use executeInject(); all DB side-effects (prompt history,
  orchestration events, project state) run in both modes; file-system writes
  (stateFile.prompt, sentinel, closing) guarded behind isRuntimeAvailable()
- Guard /api/control/focus-tab, /api/weather, /api/github, /api/calendar,
  /api/system with early returns when runtime is unavailable — clean empty
  responses instead of timeout errors on Vercel
- Add RUNTIME_AVAILABLE=true to .env.local; push pending_commands table to DB
- Add thoughts articles: portable creation cockpit vision + dispatch intelligence
  problem (blind queue drain vs contextual AI triage)
- Control panel: agent switcher popover on runtime chip, cross-session
  focus-tab, sticky left panel, Projects↔Control navigation bridge,
  ClaudeSession uses runtimeState.tabName instead of entity name

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 14:04:16 +02:00
g-butandClaude Sonnet 4.6 48871dcb61 feat(merge): Groq fast path + openclaw fallback + infra Thoughts post
- AI Merge now tries Groq first (sub-3s) when GROQ_API_KEY is set
- Falls back to openclaw local Codex (~4 min) when key absent
- Thoughts post: groq-neon-and-the-next-infra-layer.md — sequencing
  plan for Groq activation, Neon prod wiring, and auth rollout

To activate fast merge: add GROQ_API_KEY to .env.local

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 13:39:52 +02:00
g-butandClaude Sonnet 4.6 ded40ffb5a feat(thoughts): two new posts — image upload + Control vs Projects analysis
- images-as-agent-input.md: case for visual context in agent prompts,
  implementation sketch (temp file bridge), and MVP scope
- control-vs-projects-two-views-one-system.md: SSOT mapping for both
  tabs, what tiles show, improvement opportunities, latent SSOT violation
  (profile file vs user_projects record)

Also fix: control tile health text now uses getHealthShort() — was
showing full verbose string "GOOD — deployed; all tests pass" instead
of compact "GOOD"

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 13:36:02 +02:00
g-butandClaude Sonnet 4.6 2c6075b41e docs(thoughts): add queue SSOT deep-dive article
Full forensic analysis of the beacon/queue/autofire system: four
simultaneous owners, three auto-fire implementations, double-fire risk,
auto-continue desync, countdown drift. Includes Mermaid flow diagrams,
sequence diagrams, and prescriptive fix for each structural gap.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 11:28:40 +02:00
g-butandClaude Sonnet 4.6 fc3dcffea9 content(thoughts): add two Mermaid architecture diagrams to injection-pipeline post
- System topology diagram: shows Claude→Bridge→Beacon→Cockpit→Zellij→Claude
  flow with /tmp filesystem bus as the shared IPC layer
- Three-paths diagram: shows Path A/B/C diverging from the stop event and
  reconverging at zellij write-chars, highlighting the 2-field vs 5-field
  format divergence that is Bug Four

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 17:48:31 +02:00
g-butandClaude Sonnet 4.6 78780e7414 feat(mic): replace Web Speech API with Whisper in control panel; harden beacon popup mic
- Add useWhisperMic hook — MediaRecorder → /api/beacon/transcribe (local Whisper)
  replaces useSpeechRecognition in project-card-sections; always available, no Google
- PromptInput: processing spinner, error display below input, waveform placeholder text
- beacon.py WhisperThread: emit failed() on silence/empty/no-frames instead of silently
  resetting; add level pyqtSignal for real-time peak tracking; rec_tick shows ▮▯ meter
- beacon page: peakRef tracks amplitude via AnalyserNode; flat-waveform warning after 2s;
  amplitude guard before sending to Whisper; actionable permission-denied messages
- Thoughts post: anatomy of broken injection pipeline (18-min deep-dive)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 17:33:00 +02:00
g-butandClaude Sonnet 4.6 ec0b240e8b feat(content): add thoughts articles covering system architecture and agent design
Articles: control as nerve center, popup ownership, agent-agnostic architecture,
why Claude gets the popup, habits/goals/people/money/events/prompts/system/today
design rationale, projects as execution unit, the loop origin, and more.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 16:24:50 +02:00
g-butandClaude Sonnet 4.6 269b858b45 feat(thoughts): thoughts section — personal writing with tag filtering
New /thoughts route renders markdown-based long-form content from
content/thoughts/. Seed content covers the autonomous loop philosophy
and the next-best-step prompt pattern. ThoughtMeta parsed from YAML
frontmatter; reading time auto-calculated from word count.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 11:50:05 +02:00