Skip to content

Forge Bootloader Runbook: Buzz, Eclipse Theia IDE & DeepSeek Harness (FLT-389 / FLT-318)

Status: Production-Verified on 2026-11-01
Author: Jenny Jones-Gaffney (gemini-4-argon-high, Acting Fleet Orchestrator)
Scope: Exact protocols, binary schemas, credential formats, and automation recipes required by the Forge Bootloader (council-seat onboard / FleetIdeOnboarder.cs) to zero-touch provision Block Buzz (Buzz.exe + buzz.exe), Eclipse Theia IDE, DeepSeek Harness (dsh), and the Forge Local Gateway (127.0.0.1:4319) on any machine.


1. End-to-End Architecture (4-Layer Bootloader Stack)

┌────────────────────────────────────────────────────────────────────────────┐
│  IDE / Collaboration Surfaces                                              │
│  ┌──────────────────────┐ ┌──────────────────────┐ ┌─────────────────────┐ │
│  │ Block Buzz Desktop   │ │ DeepSeek Harness     │ │ Eclipse Theia IDE   │ │
│  │ (Buzz.exe +          │ │ (DeepSeek Harness.exe│ │ (TheiaIDE.exe +     │ │
│  │  goose-acp.exe)      │ │  + dsh.cmd)          │ │  ai-features MCP)   │ │
│  └──────────┬───────────┘ └──────────┬───────────┘ └──────────┬──────────┘ │
└─────────────┼────────────────────────┼────────────────────────┼────────────┘
              │ OpenAI-compatible      │ OpenAI-compatible      │ OpenAI + MCP
              ▼                        ▼                        ▼
┌────────────────────────────────────────────────────────────────────────────┐
│  Layer 1: Forge Local Gateway (`council-seat gateway --port 4319`)         │
│  Bind: http://127.0.0.1:4319/v1  |  MCP: `council-seat mcp`                │
│  Models: fleet-default, claude-opus-5, gpt-6-astra, gemini-4-argon-high,   │
│          grok-4.7, muse-spark-1.3, jev-latest                              │
└──────────────────────────────────────┬─────────────────────────────────────┘
                                       │
                                       ▼
┌────────────────────────────────────────────────────────────────────────────┐
│  Layer 0: Role Dispatcher & Quota Failover (`fleet-role-exec.ps1`)         │
│  Reads `~/.fleet/agents.json` (11 roles, 5 primary seats + Joffrey)        │
│  Automatic quota/circuit-breaker failover (e.g., Clahadore -> Jenny)       │
└────────────────────────────────────────────────────────────────────────────┘

2. Layer 1: Forge Local Gateway (127.0.0.1:4319) & Onboarding Entrypoint

2.1 CLI Commands (council-seat.exe)

  • Generate all configs & adapters:
    C:\Users\fives\source\repos\usage-governor\publish\council-seat.exe onboard --target all
    
  • Start the local OpenAI-compatible gateway (127.0.0.1:4319):
    C:\Users\fives\source\repos\usage-governor\publish\council-seat.exe gateway --port 4319
    
  • Verify health:
    Invoke-RestMethod http://127.0.0.1:4319/health
    

2.2 Generated Artifacts in ~/.fleet/

  • ~/.fleet/FORGE-ONBOARDING.md — Fleet identity & topology context automatically prepended by ForgeLocalGateway.cs.
  • ~/.fleet/buzz-workspace-map.json — Canonical 1+6 umbrella/spoke relay map, 24 channels, 6 NIP-MP projects, and 5+1 agent definitions.
  • ~/.fleet/adapters/buzz-api-provision.ps1 — Cryptographic kind: 24243 BIP-340 Schnorr signer & Builderlab API provisioner.
  • ~/.fleet/adapters/buzz-sync-topology.ps1 — buzz.exe CLI provisioner for all 24 channels, 6 NIP-MP projects, and NIP-AE shared memory.
  • ~/.fleet/adapters/buzz-provision-agents.ps1 — Native Buzz.exe agent registry provisioner.

3. Block Buzz (Buzz.exe + buzz.exe) Bootloader Specification

3.1 Binary & Config Locations on Windows

Component Exact Path
Buzz Desktop App (Tauri) C:\Users\fives\AppData\Local\Buzz Foundation\Buzz.exe
Buzz Nostr CLI (0.1.0) C:\Users\fives\AppData\Local\Buzz Foundation\bin\buzz.exe
Bundled Goose ACP Runtime C:\Users\fives\AppData\Local\Buzz Foundation\resources\goose-runtime\goose-acp.exe
Bundled Goose CLI C:\Users\fives\AppData\Local\Buzz Foundation\resources\goose-runtime\goose.exe
Goose Provider Config C:\Users\fives\AppData\Roaming\Block\goose\config\config.yaml
Buzz AppData Root C:\Users\fives\AppData\Roaming\xyz.block.buzz.desktop\
Buzz Native Agent Registry C:\Users\fives\AppData\Roaming\xyz.block.buzz.desktop\agents\identities.json
Buzz Per-Agent State Dir C:\Users\fives\AppData\Roaming\xyz.block.buzz.desktop\agents\state\
Buzz Per-Agent Host Marker C:\Users\fives\AppData\Roaming\xyz.block.buzz.desktop\agents\hosts\<agentPubkey>.packaged

3.2 Windows Credential Manager Storage Format (advapi32.dll CredReadW / CredWriteW)

Buzz.exe stores all Nostr private keys in Windows Credential Manager as Generic Credentials (CRED_TYPE_GENERIC = 1, CRED_PERSIST_ENTERPRISE = 3) with UTF-16LE (Encoding.Unicode) payloads:

  1. Human Owner Nostr Identity:
  2. TargetName: human.xyz.block.buzz.desktop.identity
  3. UserName: human
  4. CredentialBlob: UTF-16LE bytes of the Bech32 nsec1... string (63 chars = 126 bytes).
  5. Each Local Agent Nostr Identity:
  6. TargetName: agent:<agentPubkeyHex>-<ownerPubkeyHex>.xyz.block.buzz.desktop.agents
  7. UserName: agent:<agentPubkeyHex>-<ownerPubkeyHex>
  8. CredentialBlob: UTF-16LE bytes of the 64-character lowercase hex private key (64 chars = 128 bytes).

3.3 Builderlab Managed Relay API & kind: 24243 BIP-340 Schnorr Verification

Managed *.communities.buzz.xyz relays are hosted by Block's Builderlab API (https://api.builderlab.xyz). Creating communities requires: 1. GitHub OAuth Session JWT: - Obtained by signing into https://app.builderlab.xyz/services/buzz (stored in browser localStorage or retrieved from /api/goose/v1/buzz/session). 2. Nostr Identity Challenge (POST /api/goose/v1/buzz/nostr-identities/challenge): - Request body: {"pubkey": "<64-char-x-only-pubkey-hex>"} - CRITICAL GOTCHA #1 (ConvertFrom-Json -DateKind String): In PowerShell 7, ConvertFrom-Json without -DateKind String converts ISO-8601 strings ("2026-11-01T05:39:20.732833Z") into System.DateTime objects, which serialize as "11/1/2026 5:39:20 AM" and fail signature verification with 400 invalid_challenge. Always parse the challenge response with ConvertFrom-Json -DateKind String. 3. Exact 9-Tag kind: 24243 Nostr Event Structure (reverse-engineered from Buzz.exe 0x001A1BBB..0x001A2064):

{
  "id": "<64-char-sha256-hex>",
  "pubkey": "<64-char-x-only-pubkey-hex>",
  "created_at": 1793511560,
  "kind": 24243,
  "tags": [
    ["t", "buzz-Identity-Verification"],
    ["challenge", "<challenge.challenge>"],
    ["service", "buzz-relay-service"],
    ["domain", "communities.buzz.xyz"],
    ["account_id", "<challenge.account_id>"],
    ["pubkey", "<64-char-x-only-pubkey-hex>"],
    ["issued_at", "<challenge.issued_at>"],
    ["expires_at", "<challenge.expires_at>"],
    ["verification_url", "<challenge.verification_url>"]
  ],
  "content": "Authorize Buzz managed relay ownership for this Nostr identity",
  "sig": "<128-char-bip340-schnorr-sig-hex>"
}
- Note: Tag ["t", "buzz-Identity-Verification"] has capital I and capital V. - id is SHA256 of compact UTF-8 JSON [0, pubkey, created_at, kind, tags, content]. - sig is BIP-340 Schnorr signature over the 32-byte id. If the secret scalar $d$ produces a public key point $P$ with odd $Y$, negate $d \leftarrow n - d$ before signing. 4. Verify Identity (POST /api/goose/v1/buzz/nostr-identities/verify): - Request body: {"signed_event": <event>} $\to$ returns {"v": "OK"}. 5. Mint Community (POST /api/goose/v1/buzz/communities): - Request body: {"subdomain": "<slug>"} $\to$ provisions wss://<slug>.communities.buzz.xyz. - Claimed Fleet Relays: - Umbrella HQ: andrewjonesdev.communities.buzz.xyz (baea46f4-d10c-414c-8943-431214bc6a7c) - Spokes: workwingman, verse4verse, forgeos, andrewcandoall, coachdrew, shootmaniaandy - Defensive aliases: shootmania-andy, forge-os, jonesgaffney

3.4 buzz.exe CLI Syntax for Channels, NIP-MP Projects, and NIP-AE Memory

Global flags (--relay, --private-key) must appear before the subcommand:

$buzzExe = "C:\Users\fives\AppData\Local\Buzz Foundation\bin\buzz.exe"

# 1. Create open stream channel
& $buzzExe --relay $relayUrl --private-key $nsec channels create --name $channelName --type stream --visibility open

# 2. Delete duplicate channel
& $buzzExe --relay $relayUrl --private-key $nsec channels delete $channelId

# 3. Create NIP-MP project bound to primary channel
& $buzzExe --relay $relayUrl --private-key $nsec projects create $slug `
    --name $displayName `
    --about $description `
    --channel $primaryChannelId `
    --repo $repoUrl

# 4. Write NIP-AE shared agent memory
& $buzzExe --relay $relayUrl --private-key $nsec memory set "fleet-workspace-map" $compactMapJson

3.5 Wiring Buzz.exe Agents to Forge Local Gateway via Goose (config.yaml)

When an agent in Buzz.exe uses Harness = Goose (type: "buzz.goose/goose"), Buzz.exe spawns goose-acp.exe, which reads C:\Users\fives\AppData\Roaming\Block\goose\config\config.yaml:

GOOSE_PROVIDER: openai
GOOSE_MODEL: claude-opus-5
OPENAI_HOST: http://127.0.0.1:4319
OPENAI_BASE_PATH: v1/chat/completions
Set user environment variables: - OPENAI_API_KEY = "forge-local" - OPENAI_HOST = "http://127.0.0.1:4319"

3.6 Native Buzz.exe Agent Storage Schema (crates\agent-controller\src\app_agent.rs)

  • CRITICAL GOTCHA #2 (identities.json Schema): C:\Users\fives\AppData\Roaming\xyz.block.buzz.desktop\agents\identities.json must be a top-level JSON array [ ... ] (UTF-8 without BOM), where each element matches struct AppAgent:
    [
      {
        "pubkey": "91187b9019c1a75bfbf0a8638e9a8a7b8b48a91aaf514f2c91b1660dd48cc395",
        "relay": "wss://andrewjonesdev.communities.buzz.xyz",
        "owner": "c923bb2f7a6af2b3bda80cff5c46e95c362fd93878e85a9b091a91e4b099ffb6",
        "auth": "[\"auth\",\"c923bb2f7a6af2b3bda80cff5c46e95c362fd93878e85a9b091a91e4b099ffb6\",\"\",\"<128-char-schnorr-sig>\"]",
        "type": "buzz.goose/goose",
        "name": "Clahadore Jones-Gaffney",
        "picture": "https://dwwgwmfqqjotj.cloudfront.net/avatars/20260925T154625166Z/poster/gloopies/gloopies-6.png",
        "profile": {
          "name": "Clahadore Jones-Gaffney",
          "picture": "https://dwwgwmfqqjotj.cloudfront.net/avatars/20260925T154625166Z/poster/gloopies/gloopies-6.png",
          "createdAt": 1793513155
        }
      }
    ]
    
  • Per-Agent State File (agents\state\buzz.agent.v1%3A<pubkey>): (Filename literally contains %3A on disk)
    {
      "pubkey": "91187b9019c1a75bfbf0a8638e9a8a7b8b48a91aaf514f2c91b1660dd48cc395",
      "attention": {},
      "config": {
        "model": "claude-opus-5",
        "provider": "openai",
        "effort": "",
        "instructions": "Role: orchestrator...",
        "workspace": "~/.buzz",
        "scope": "thread"
      }
    }
    

3.7 UIAutomation Recipe & Gotchas for Buzz.exe (Tauri Window + WebView2)

When automating Buzz.exe via Windows UIAutomation: 1. Gotcha #3 — Never use Get-Process.MainWindowHandle: Buzz.exe creates 3 top-level windows: - Class='Tauri Window' (the actual UI window) - Class='xyz.block.buzz.desktop-sic' (single-instance hidden window) - Class='Tao Thread Event Target' (empty event loop window that .NET MainWindowHandle latches onto after t=1s). Fix: Always query [System.Windows.Automation.AutomationElement]::RootElement for PropertyCondition(ClassNameProperty, "Tauri Window"). 2. Gotcha #4 — WebView2 Lazy Accessibility Tree Initialization: The first call to $w.FindAll([TreeScope]::Descendants, ...) on Tauri Window only returns 23 wrapper elements and wakes up Chromium's accessibility bridge. Wait 2 seconds and call FindAll a second time to get all 137+ DOM elements. 3. Gotcha #5 — Control Types & Patterns in Buzz.exe: - Topbar Agents tab is ControlType.TabItem | Name='Agents' $\to$ use SelectionItemPattern.Select(). - When 0 agents exist, Create agent is a button with InvokePattern.Invoke(). - Once 1+ agent exists, ControlType.Button | Name='New agent' supports ExpandCollapsePattern.Expand() (NOT InvokePattern), which opens a dropdown with ControlType.MenuItem | Name='Create a new agent' (InvokePattern.Invoke()). - Inside the Create agent modal: - ControlType.ComboBox | Name='Harness' $\to$ ExpandCollapsePattern.Expand(), then select ControlType.ListItem | Name='Goose ...' via SelectionItemPattern.Select(). - ControlType.Edit | Name='Name' and ControlType.Edit | Name='Instructions' $\to$ ValuePattern.SetValue(...). - Submit via ControlType.Button | Name='Create agent' $\to$ InvokePattern.Invoke().


4. DeepSeek Harness (dsh) Bootloader Specification

4.1 Binary & Config Locations

  • Desktop App: C:\Users\fives\AppData\Local\Programs\deepseek-harness\DeepSeek Harness.exe
  • CLI Shim: C:\Users\fives\.local\bin\dsh.cmd
  • Primary Config: C:\Users\fives\.deepseek-harness\config.json
  • Per-Agent Manifests: C:\Users\fives\.deepseek-harness\agents\<slug>.json (clahadore, cedric, jenny, gronktayvius, susie, joffrey)

4.2 Config Structure (~/.deepseek-harness/config.json)

Generated automatically by council-seat onboard --target deepseek: - provider: "openai-compatible" - baseUrl: "http://127.0.0.1:4319/v1" - apiKey: "forge-local" - defaultModel: "fleet-default" - mcpServers.forge-council: runs council-seat.exe mcp - buzzTopology: embeds the full 1+6 Buzz community/channel map.


5. Eclipse Theia IDE Bootloader Specification

5.1 Binary & Config Locations

  • Desktop App: C:\Users\fives\AppData\Local\Programs\TheiaIDE\TheiaIDE.exe
  • Settings File: C:\Users\fives\.theia-ide\settings.json (and %APPDATA%\TheiaIDE\User\settings.json)

5.2 Required Settings Keys (~/.theia-ide/settings.json)

Generated and merged automatically by council-seat onboard --target theia: - ai-features.AiEnable: true - ai-features.openAiOfficial.openAiApiKey: "forge-local" - ai-features.openAiOfficial.model: "fleet-default" - ai-features.openAiCustom.customOpenAiModels: registers fleet-default, claude-opus-5, gpt-6-astra, gemini-4-argon-high, grok-4.7, muse-spark-1.3, and jev-latest pointing to http://127.0.0.1:4319/v1. - ai-features.chatAgents.customAgents: registers fleet-default, clahadore-opus, cedric-astra, jenny-argon, gronk-heavy, susie-spark, and joffrey-jev. - ai-features.mcp.mcpServers.forge-council: connects Theia to council-seat.exe mcp.


6. One-Command Bootloader Execution Sequence (New PC or Recovery)

# 1. Generate all IDE configs, Buzz workspace maps, and adapter scripts
C:\Users\fives\source\repos\usage-governor\publish\council-seat.exe onboard --target all

# 2. Start Forge Local Gateway on 127.0.0.1:4319
Start-Process -FilePath "C:\Users\fives\source\repos\usage-governor\publish\council-seat.exe" -ArgumentList "gateway --port 4319" -WindowStyle Hidden

# 3. Verify or provision Builderlab Buzz communities (idempotent; skips already-owned communities)
pwsh -NoProfile -ExecutionPolicy Bypass -File "C:\Users\fives\.fleet\adapters\buzz-api-provision.ps1"

# 4. Sync all 24 channels, 6 NIP-MP projects, and NIP-AE shared memory across umbrella + 6 spoke relays
pwsh -NoProfile -ExecutionPolicy Bypass -File "C:\Users\fives\.fleet\adapters\buzz-sync-topology.ps1"

7. Productizing for All Forge Users (Forge.Bootloader Customer Onboarding Flow)

Everything proven on Andrew's machine above is designed to run automatically for every Forge user during the Forge Bootloader onboarding flow (forge onboard / Forge Desktop Wizard), parameterized by the user's own organization name, projects, and active model subscriptions:

7.1 Parameterized User Inputs (Replaced Dynamically per Customer)

Hardcoded on Dev Machine Parameterized in Forge.Bootloader for Any User
andrewjonesdev.communities.buzz.xyz <userOrgSlug>.communities.buzz.xyz (Umbrella HQ relay)
6 spokes (workwingman, verse4verse, forgeos, ...) <projectSlug>.communities.buzz.xyz from the user's repos/projects
5-Model Jones-Gaffney Fleet (Clahadore, Cedric, Jenny, Gronktayvius, Susie) User's selected tier (1-Model Solo through 5-Model Fleet) + custom or default agent names in ~/.fleet/agents.json
human.xyz.block.buzz.desktop.identity Auto-generated or imported Nostr keypair stored in OS keychain (Windows Credential Manager / macOS Keychain / Linux libsecret)

7.2 5-Stage Customer Bootloader Pipeline (Forge.Bootloader)

  1. Stage 1 — Subscription & Role Matrix Generation (~/.fleet/agents.json):
  2. Inspects which AI providers/CLIs the user has authenticated (1, 2, 3, 4, or 5 models) and maps all 11 canonical Forge roles (orchestrator, builder, researcher, reviewer, red-team, security-auditor, etc.) with automatic failover chains so every role works regardless of how many models the user pays for.
  3. Stage 2 — Local Forge Gateway Daemon (http://127.0.0.1:4319/v1):
  4. Registers and starts ForgeLocalGateway on 127.0.0.1:4319.
  5. Every downstream IDE/chat app talks to one local OpenAI-compatible URL (http://127.0.0.1:4319/v1) and one MCP server (council-seat mcp) — the user never pastes API keys into Buzz, Theia, or DeepSeek Harness.
  6. Stage 3 — Zero-Touch Buzz Provisioning for the User:
  7. Identity & Builderlab Auth: Reads/creates the user's Nostr keypair, signs the 9-tag kind: 24243 BIP-340 Schnorr challenge in C# (BuzzBip340), verifies with Builderlab (/api/goose/v1/buzz/nostr-identities/verify), and mints the user's umbrella and spoke communities (/api/goose/v1/buzz/communities).
  8. Channels, NIP-MP Projects & NIP-AE Memory: Invokes buzz.exe to create the user's project channels (--type stream --visibility open), bind NIP-MP projects (projects create), and publish the workspace map to NIP-AE shared memory (memory set).
  9. Goose & Native Agent Registration: Writes %APPDATA%\Block\goose\config\config.yaml pointing to http://127.0.0.1:4319, registers the user's agent roster in Buzz.exe, and pins each agent's state/buzz.agent.v1%3A<pubkey> to its assigned gateway model.
  10. Stage 4 — Zero-Touch Eclipse Theia IDE Provisioning for the User:
  11. Merges ai-features.AiEnable, ai-features.openAiCustom.customOpenAiModels, ai-features.chatAgents.customAgents, and ai-features.mcp.mcpServers.forge-council into ~/.theia-ide/settings.json.
  12. Stage 5 — Zero-Touch DeepSeek Harness (dsh) Provisioning for the User:
  13. Writes ~/.deepseek-harness/config.json, per-agent manifests in ~/.deepseek-harness/agents/*.json, and the dsh CLI shim, all pre-wired to http://127.0.0.1:4319/v1.

8. DeepSeek Harness (~/.dsh/) & Theia IDE (~/.theia-ide/) Exact Internal Storage Schemas (Verified 2026-11-01)

8.1 DeepSeek Harness (DeepSeek Harness.exe v0.2.1-rc.5) Actual Storage Layout

DeepSeek Harness uses the @deepseek-ai/cordis loader rooted at C:\Users\fives\.dsh\ (NOT ~/.deepseek-harness):

File Path Purpose & Required Bootloader Configuration
~/.dsh/profiles/desktop/package.json (& web/package.json) Controls which Built-in & Experimental Plugins are toggled ON in the UI via dsh.profile.bundles. Must include @deepseek-ai/dsh-base, @deepseek-ai/dsh-web-app, and all 12 shipped OPTIONAL_BUNDLES: @deepseek-ai/dsh-experimental-agent-team-profile (Agent Teams), @deepseek-ai/dsh-experimental-voice-input-bundle (SenseVoice Local Speech-to-Text), @deepseek-ai/dsh-experimental-auto-review (Auto Authorization Review), @deepseek-ai/dsh-experimental-inspector-profile (Developer Tools), @deepseek-ai/dsh-experimental-tool-worktree (Git Worktree), @deepseek-ai/dsh-experimental-terminal-bundle, @deepseek-ai/dsh-experimental-session-search, @deepseek-ai/dsh-experimental-session-titles-bundle, @deepseek-ai/dsh-experimental-badge-skill-bundle, @deepseek-ai/dsh-experimental-ralph-bundle, @deepseek-ai/dsh-experimental-plugin-market-bundle, and @deepseek-ai/dsh-experimental-cot-translation-bundle. Explicitly exclude @deepseek-ai/dsh-subagent-codex and @deepseek-ai/dsh-subagent-claude-code so Claude and Codex always run through our Jones-Gaffney Team Agents.
~/.dsh/profiles/desktop/cordis.patch.yml (& web/cordis.patch.yml) Composes the Cordis patch tree: (1) agent-default-model (defaultModel: "forge/orchestrator"), (2) agent-team (maxMembers: 16), (3) ui-settings-account (developerTools: true — critical: if false, AgentPresetSeat hides presets that require coding tools!), (4) llm-pi-ai (providers.forge at http://127.0.0.1:4319/v1 with api: "openai-completions" and all 22 models), (5) skill-filesystem (~/.claude/skills), and (6) a single unified - insert: list containing all 11 @deepseek-ai/dsh-agent-preset entries AND all 13 @deepseek-ai/dsh-mcp-client entries.
~/.dsh/storages/workspace.json Populates the left sidebar Workspaces tree (default + entries map). Pre-populated with all 7 Fleet Workspaces (ForgeOS, WorkWingman, Verse4Verse, AndrewCanDoAll, CoachDrew, ShootManiaAndy, Usage Governor & Council).
Desktop Host Startup Gotcha (initialProfile) In @deepseek-ai/dsh-desktop-host/lib/index.js, loadProfileDirectory("dsh", projectDir, installAnchor) reads package.json only once at Electron startup. When updating package.json on disk, restart DeepSeek Harness.exe via an interactive scheduled task (schtasks /Create ... /IT /F + schtasks /Run) so the Plugin Manager UI switches immediately flip ON without disturbing the Windows Taskbar.

8.2 Eclipse Theia IDE (TheiaIDE.exe) Actual Storage Layout

Rooted at C:\Users\fives\.theia-ide\: - ~/.theia-ide/settings.json: Configures ai-features.AiEnable, ai-features.openAiCustom.customOpenAiModels (http://127.0.0.1:4319/v1), and ai-features.mcp.mcpServers.forge-council. - ~/.theia-ide/agents/<agent-id>/agent.md: Custom agent prompt/persona bundles (fleet-clahadore, fleet-cedric, fleet-jenny, fleet-gronktayvius, fleet-susie, and fleet-role-*). - ~/.theia-ide/recentworkspace.json: JSON object {"recentRoots": ["file:///c%3A/Users/..."]} pre-populated with all 6 spoke repositories + usage-governor.


9. Dynamic Intra-Family Model Escalation & Subagent Model Selection (Fable, Astra, Argon, Flash, Sonnet, Haiku)

Each family agent in the Jones-Gaffney Fleet (and in any user's Forge Bootloader configuration) represents a provider family persona with automatic task-complexity tier selection in fleet-role-exec.ps1 and ForgeLocalGateway.cs:

Family Agent Provider CLI Apex / Ceiling Tier (Architecture, Code Review, Red-Team, Hard Calls) Standard Tier (Feature Implementation, Multi-file Edits) Fast / Mechanical Tier (Explicit [TIER:FAST] / Subagent Override)
Clahadore Jones-Gaffney claude claude-fable-5-1 (Fable) / claude-opus-5 (Opus 5) claude-sonnet-4-6 (Sonnet 4.6) claude-haiku-4-5 (Haiku 4.5)
Cedric "Cody" Jones-Gaffney codex gpt-6-astra (Astra) gpt-5.4 gpt-5.4-mini
Jenny Jones-Gaffney agy gemini-4-argon-high (Argon High) gemini-3.1-pro gemini-3-flash (Flash — explicit override only per No-Flash-Default rule)
Gronktayvius "Gronk" Jones-Gaffney grok grok-4.7 (Grok 4.7 Heavy) grok-4.7 grok-4-fast
Susie Franny Jones-Gaffney muse muse-spark-1.3 (Muse Spark 1.3 High) muse-spark-1.3 muse-spark-1.3

How Task-Based Model Routing Works at Runtime

  1. Explicit Subagent / Caller Model Selection (-ModelOverride):
  2. When an agent in DeepSeek Harness, Buzz, or Theia IDE spawns a subagent or requests a specific tier model (claude-fable-5-1, claude-sonnet-4-6, claude-haiku-4-5, gpt-6-astra, gpt-5.4, gemini-4-argon-high, gemini-3-flash, etc.), ForgeLocalGateway.cs passes -ModelOverride <requestedModel> to fleet-role-exec.ps1.
  3. Automatic Task-Complexity Escalation (Select-TaskModelForFamily):
  4. When called by role or persona name (forge/orchestrator, forge/architect-reviewer, clahadore, cedric, jenny), fleet-role-exec.ps1 inspects the role and prompt:
    • Apex tasks (architect-reviewer, redteam-security, code review, system design, distributed systems, security audit, concurrency/race debugging, or [TIER:APEX] / [MODEL:FABLE] / [MODEL:ASTRA]) automatically escalate to the family's Apex model (claude-fable-5-1 for Clahadore review/architecture, gpt-6-astra for Cedric, gemini-4-argon-high for Jenny, grok-4.7 for Gronktayvius).
    • Standard subtasks ([TIER:STANDARD] / [MODEL:SONNET]) route to claude-sonnet-4-6 / gpt-5.4.
    • Fast subtasks ([TIER:FAST] / [MODEL:HAIKU] / [MODEL:FLASH]) route to claude-haiku-4-5 / gpt-5.4-mini / gemini-3-flash (while keeping gemini-4-argon-high as Jenny's default when Flash is not explicitly requested).

10. Universal OAuth MCP Bridge (mcp-oauth-bridge.mjs — Atlassian Rovo, Figma, Slack & Forge Council) & SenseVoice / Optional Bundles

10.1 Why OAuth MCP Servers Need mcp-oauth-bridge.mjs

Remote Streamable-HTTP MCP servers such as Atlassian Rovo (https://mcp.atlassian.com/v1/mcp), Figma (https://mcp.figma.com/mcp), and Slack (https://mcp.slack.com/mcp) store OAuth 2.0 credentials (accessToken, refreshToken, expiresAt, clientId, issuer) in ~/.claude/.credentials.json under mcpOAuth and enforce stateful mcp-session-id headers after initialize.

C:\Users\fives\.fleet\adapters\mcp-oauth-bridge.mjs bridges stdio MCP clients (DeepSeek Harness, Block Buzz (goose), and Eclipse Theia IDE) to those upstream OAuth servers: 1. Automatically refreshes accessToken via refresh_token if within 5 minutes of expiresAt. 2. Serializes JSON-RPC messages through a promise queue so initialize completes first and captures mcp-session-id before notifications/initialized, tools/list, or tools/call are sent. 3. Unpacks text/event-stream (SSE) responses into clean stdio JSON-RPC lines.

10.2 Exact 12 Shipped OPTIONAL_BUNDLES Enabled in DeepSeek Harness (~/.dsh/profiles/desktop/package.json & web/package.json)

  • @deepseek-ai/dsh-experimental-agent-team-profile (Agent Teams)
  • @deepseek-ai/dsh-experimental-voice-input-bundle (SenseVoice Local Speech-to-Text — local sherpa-onnx-node offline voice dictation, the DeepSeek equivalent of Wispr Flow)
  • @deepseek-ai/dsh-experimental-auto-review (Auto Authorization Review)
  • @deepseek-ai/dsh-experimental-inspector-profile (Developer Tools)
  • @deepseek-ai/dsh-experimental-tool-worktree (Git Worktree Isolation Tool)
  • @deepseek-ai/dsh-experimental-terminal-bundle (Integrated Terminal Bundle)
  • @deepseek-ai/dsh-experimental-session-search (Session Search)
  • @deepseek-ai/dsh-experimental-session-titles-bundle (Auto Session Titles)
  • @deepseek-ai/dsh-experimental-badge-skill-bundle (Badge Skills)
  • @deepseek-ai/dsh-experimental-ralph-bundle (Ralph Autonomous Loop)
  • @deepseek-ai/dsh-experimental-plugin-market-bundle (Plugin Market)
  • @deepseek-ai/dsh-experimental-cot-translation-bundle (Chain-of-Thought Translation)

11. Real-Time Multi-Instance & Multi-PC Swarm Co-Building (DeepSeek Harness <-> Eclipse Theia IDE <-> Block Buzz <-> Forge Cockpit)

  1. Multi-Instance & Multi-PC Swarm Identity (<agent>@<hostPc>#<ordinal> + <worktree>):
  2. In our workflow, Clahadore (claude-opus-5 / claude-fable-5-1) acts as Orchestrator (roleMode: "orchestrator"), Cedric (gpt-6-astra) is held for Architecture & Code Review (roleMode: "review-gate"), and we spawn multiple concurrent worker instances of the same family agent (Jenny #1..N, Susie #1..N, Gronktayvius #1..N) across multiple fleet PCs (greatroom, gaming, streaming, bedroom) and worktrees (WT-xxxx).
  3. ForgeLocalGateway.cs (GET/POST http://127.0.0.1:4319/v1/swarm/events and POST /v1/chat/completions via X-Forge-Instance-Id, X-Forge-Host-Pc, X-Forge-Worktree, X-Forge-Role-Mode) and forge-council-mcp.mjs (ask_family_agent / emit_swarm_blueprint_event) maintain an activeInstances dictionary keyed by instanceId = "<agent>@<hostPc>#<ordinal>" alongside events[].
  4. Theia IDE Live Swarm Visualizer & Auto-Follow Extension (~/.theia-ide/plugins/forge.live-swarm-visualizer):
  5. Loaded automatically via THEIA_PLUGINS.
  6. Watches all workspace files via vscode.workspace.createFileSystemWatcher('**/*') and polls http://127.0.0.1:4319/v1/swarm/events.
  7. Whenever any worker instance across the swarm creates or modifies a file, Theia IDE automatically opens the file (preserveFocus: true), scrolls smoothly (revealRange) to the exact modified line range, highlights the lines in that specific instance's shade (Clahadore #a855f7, Cedric #3b82f6, Jenny #1/#2/#3 #10b981/#34d399/#059669, Susie #1/#2 #06b6d4/#22d3ee, Gronktayvius #1/#2 #ef4444/#f97316) with host-PC & worktree hover attribution (Jenny #2 @ gaming · WT-7b12), and streams the update into the Forge Multi-PC Swarm Canvas Webview (Scratch/Blockly Blocks + UE5/Rete.js Blueprints + Structurizr C4 Containers).
  8. Never Launch GUI Apps Inside Sandboxed Subshells:
  9. Never start Buzz.exe or DeepSeek Harness.exe directly inside a non-interactive background tool command: doing so binds the Electron single-instance lockfile and Shell_NotifyIcon tray HWND to the non-interactive desktop. Always configure ~/.dsh/, ~/.theia-ide/, and %APPDATA%\xyz.block.buzz.desktop\ on disk and launch/restart GUI apps in the interactive user desktop session (schtasks /Create ... /IT /F + schtasks /Run).

12. Fleet-Wide 4-PC Synchronization (deploy-3apps-fleet.ps1) & Council Pre-Build Hardening

12.1 Automated Fleet-Wide Rollout (greatroom, gaming, streaming, bedroom)

C:\Users\fives\.fleet\adapters\deploy-3apps-fleet.ps1 packages and deploys the complete 3-app configuration bundle (forge-3apps-config-bundle.zip) across all 4 Windows fleet PCs over Tailscale SSH: 1. Cross-User Path Rewrite (C:\Users\fives $\to$ C:\Users\AndrewJonesDev on gaming): - Automatically rewrites all absolute Windows paths, forward-slash paths, JSON-escaped paths, and file:///c%3A/Users/... URIs across .fleet\, .dsh\, .theia-ide\, AppData\Roaming\Block\goose\, and AppData\Roaming\xyz.block.buzz.desktop\ when the remote user profile differs from fives. 2. Buzz Nostr Keyring Synchronization (buzz-keyring-export.json + import-buzz-keyring.ps1): - Exports the raw CRED_TYPE_GENERIC byte blobs for human.xyz.block.buzz.desktop.identity and all 5 Jones-Gaffney family agent signing keys (agent:<pubkey>-<owner>.xyz.block.buzz.desktop.agents) on greatroom and imports them into Windows Credential Manager (Persist = 3 / CRED_PERSIST_ENTERPRISE) on gaming, streaming, and bedroom both directly and via an in-session scheduled task (ForgeBuzzKeyringSync). 3. Silent Installer Provisioning & Background Gateway Startup: - Checks each peer for Buzz.exe, DeepSeek Harness.exe, and TheiaIDE.exe, copies any missing installer from Downloads, runs /S silent installation, sets THEIA_PLUGINS, OPENAI_HOST, OPENAI_API_KEY, and FORGE_LOCAL_API_KEY, copies forge-updated-design.md and forge-everything-app-mockups.html to ~/.fleet/forge-specs/, and launches council-seat.exe serve-gateway --port 4319 detached via Win32_Process.Create (ShowWindow = 0).

12.2 Council Review Pre-Build Hardening Invariants

  1. Loopback DNS-Rebinding & Cross-Origin Browser Guard (ForgeLocalGateway.cs):
  2. Verifies Host is loopback (127.0.0.1, localhost, [::1]) and rejects untrusted browser Origin headers with 403 Forbidden. Caps request bodies at 16 MB.
  3. Prompt-Injection Model Downgrade Guard (fleet-role-exec.ps1):
  4. Untrusted prompt text ($PromptText) may only escalate upward ($isApexTask), never downgrade ($isFastTask / $isStandardSubtask). Downward tier overrides require an explicit -ModelOverride from the caller's top-level model field.
  5. Handshake Barrier, Concurrent Cancellation & Atomic Token Refresh (mcp-oauth-bridge.mjs):
  6. Caches OAuth tokens in memory until expiresAt - 300_000, coalesces concurrent refreshes via refreshPromise, verifies https: on tokenUrl, writes refreshed .credentials.json atomically via .tmp + fs.renameSync, awaits the initialize barrier once to capture mcp-session-id before allowing concurrent in-flight tools/call requests, and aborts in-flight fetch calls on notifications/cancelled.