Files
loki/scripts
Mao NakamotoandClaude Opus 4.7 956ccf64c1 chore: delete the bash daemon and bridge files (Session 4b)
Session 4 of killing-the-bash-daemon plan, commit B — removes the
14 bash files that constituted the local execution stack the
TS consumers no longer reach (Session 4a wired Fleet Runner as the
sole local executor + retired the bundle endpoint).

Deleted (-4258 LoC):
  scripts/fleetcrown-daemon.sh                (1612)
  scripts/agent-hook-bridge.sh                ( 942)
  scripts/agent-hook-lib.sh                   ( 528)
  scripts/install-beacon.sh                   ( 214)
  scripts/install-fleetcrown-daemon.sh        ( 206)
  scripts/fleetcrown-beacon-window.sh         ( 111)
  scripts/install-fleetcrown-beacon-window.sh (  68)
  scripts/_brand.sh                           (  61)
  scripts/smoke-beacon-stop.sh                (  63)
  scripts/check-agent-runtime.sh              (  57)
  scripts/install-fleetcrown-hooks.sh         (  53)
  scripts/_agents.sh                          (  47)
  scripts/run-codex-task.sh                   (  37)
  scripts/run-gemini-task.sh                  (  33)

Plus next.config.ts cleanup: the outputFileTracingIncludes block
for /api/agent/daemon listed 15 source paths (8 bash + 7 Python)
that Vercel's build needed in the deployment bundle. The route now
returns 410 Gone (Session 4a), so none of those paths need to be
traced — saves a few MB on each deploy and removes a class of
"build references deleted file" failures.

Net for Session 4 (a+b): -5527 LoC.

What survives:
  Operational scripts unrelated to the bash daemon —
    scripts/check-design-system.sh
    scripts/control-states.generated.sh (regenerated by tsx)
    scripts/deploy-local.sh
    scripts/fleetcrown-app.sh
    scripts/install-fleetcrown-app.sh
    scripts/import-from-local.sh
    scripts/migrate-local-to-neon.sh
    scripts/mirror-desktop-release.sh
    scripts/smoke.sh
    scripts/test-home.sh
    scripts/wait-for-vercel.sh
  Plus the *.ts/*.mjs helpers under scripts/ that build the agent
  bundle, run tests, generate types, etc.

Remaining ambient bash references in TS are doc comments naming
deleted files (orchestration/run, inject route, projects, watcher,
poller, config/brand, brand-env, control-presenter). They don't
break the build; they get swept in Session 4c (rename pass) along
with the cockpit→fleetcrown stale references.

The Python beacon stack (scripts/beacon.py, _beacon_config.py,
get-idle-secs.py, notify-choice.py, sync-agent-runtime-config.py,
transcribe.py) is left in place for this commit. It was called
only by the deleted bash bridge and is functionally dead, but it's
orthogonal to "no bash" — best handled in a follow-up Python-deletion
commit so this PR stays focused.

Verification: tsc clean, test:home 97/97, test:autopilot-defaults
11/11, test:dispatch-gates 11/11.

The acid test from content/thoughts/killing-the-bash-daemon.md is
fully met on this commit: `ps auxf | grep -E "bash|fleet"` shows
only fleet-runner-bin + next-server as FleetCrown-related processes.
A customer downloading Fleet Runner today never runs bash; the
founder's machine matches that stack.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-11 07:54:22 +02:00
..