CLAUDE.md called the PyQt beacon and dashboard "the core product". Neither
file has existed for months: the dashboard was deleted in 9717cf2 ("kill
dashboard") and claude-popup.py was renamed in 8fa7ea7. Every session opening
this repo was being briefed on a product that is gone, and told to test it
with a command that cannot run.
What was actually left behind pointed at ~/dev/cockpit, a directory that
stopped existing when that repo became fleetcrown:
- beacon.py exec'd ~/dev/cockpit/scripts/beacon.py -> deleted
- lib.sh sourced ~/dev/cockpit/scripts/agent-hook-lib.sh -> deleted
- notification.sh exec'd a fleetcrown-beacon bridge that is
also gone, so the wired Notification hook failed every pause -> no-op,
matching stop.sh, which has been a documented no-op since 2026-06-11
.bashrc carried the same rot, plus a duplicate-definition bug: claude() and
codex() were each defined twice, ~130 lines apart, so the first copy of each
never ran. Removed the dead copies, cockpit() (cd into the missing dir), and
the zellij-tab project detection — _agent_resolve_project_dir mapped the
focused tab name through claude-projects.conf and silently cd'd there, which
the global standards already declare retired. It was provably dead: tabs read
"Tab #9" and match nothing, and 5 of the conf's 22 entries pointed at
directories that no longer exist. Verified with --norc that the three removed
functions are gone and every live one still resolves.
The close_session prompt was the last consumer of that mapping, and the
reason a file literally named "Tab #1" is sitting in ~/.claude/sessions. It
now derives the project from the git repo root, so worktrees resolve to their
repo instead of the worktree name.
Gitignored fleetcrown-*.sh: Fleet Runner generates and rewrites them, so they
are FleetCrown's output, not this repo's source.
CLAUDE.md and README.md now say what is true — this is the environment plus
the fleet's central audits, and agent dispatch belongs to FleetCrown.
Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna
Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* chore(zellij): drop the hardcoded project-tab layout
Every login ran `zellij -l projects`, which loaded a hand-maintained
layout naming nine project tabs. That list is a copy of state that
already lives in ~/dev, so it drifted: two of its nine tabs pointed at
directories that no longer exist (openclaw, cockpit), and none pointed
at the repos actually being worked on. Startup reliably produced tabs
nobody wanted.
The layout's only other content was a default_tab_template that is
byte-for-byte zellij's compiled-in default (tab-bar / pane / status-bar,
verified via `zellij setup --dump-layout default`). So the file
contributed nothing but the stale list, and deleting it is the whole
fix — a bare `zellij` yields one tab whose cwd is inherited from the
launching terminal rather than hardcoded anywhere.
Fixes the class, not the instance: there is no longer a project list to
go stale. Open project tabs on demand instead.
* feat(fleet): flag work that has aged, not work that is merely dirty
This repo already had a fleet health check. It did not prevent the thing it
looks like it prevents: on 2026-08-24 orangecat held 118 uncommitted files
and fleetcrown 88, both untouched for ten days — a finished EntityType rename
and a finished publishing workstream, each existing on exactly one disk.
`git-health` had been reporting them accurately that entire time.
The design error is worth naming, because it is easy to repeat: DIRTY IS NOT
A DEFECT. Every tree is dirty while someone works in it, so a count that is
equally true at minute five and at day ten carries no signal. It gets read as
noise, and then it stops being read. Age is what separates work in progress
from work that is going nowhere.
So stranded-work.sh reports only what has aged past a threshold (default 3d)
and prints NOTHING when the fleet is healthy. The silence is the mechanism,
not manners: a check that speaks on every shell gets muted, and a muted check
is an absent one. It covers both uncommitted files and commits that were made
but never pushed — the second is how four of fleetcrown's commits hid, since
a tree can be clean and still be holding everything back.
It cannot run in CI: the work it looks for has never left the machine, so
GitHub cannot see it by construction. It runs from .bashrc instead, printing
the last scan from cache and refreshing in the background, so it never costs
a prompt. `fleet-stranded` runs it on demand.
The deciding half takes TSV on stdin and touches no git, no filesystem and no
clock, so the tests drive the shipped rule rather than a restatement of it —
the drift the existing ratchet test comments already worry about. Both
failure modes are tested, because either one kills it: it must go red on aged
work, and it must stay silent on a fresh tree.
Writing the tests first paid immediately — the rename case failed, because
the porcelain prefix was being stripped after the "old -> new" arrow was
resolved, which ate three characters of every renamed path. orangecat's
rename touched 18 deletions and a rename; the guard would have misread it.
17 tests, wired into CI.
* chore: ignore per-session agent worktrees
_claude_autoworktree_enter creates .claude/worktrees/<name> per session, so
every concurrent session leaves a permanently-untracked directory behind. That
is scratch, not source, and it makes `git status` read dirty forever — the
noise that let 206 genuinely stranded files hide across this fleet for ten
days.
Scoped to worktrees/ rather than all of .claude/, so tracked settings and
CLAUDE.md are unaffected. Matches what threadkit already does.
* chore(git): ignore agent browser scratch globally, not in 18 repos
`.playwright-mcp/` is written by the Playwright MCP server whenever an agent
drives a browser. It had appeared in 9 repos and left 2 permanently dirty.
The first fix was a .gitignore line in all 18 — 18 diffs, 18 reviews, and a
19th repo that gets missed next month. But no contributor without this setup
ever sees the path, so it was never the project's business. One line in the
global ignore covers every repo, including ones not created yet.
Matters because a permanently dirty tree is the noise that lets genuinely
stranded work hide — the thing scripts/fleet/stranded-work.sh exists to catch.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* fix(fleet): the stranded-work guard could not see worktrees
Shipped this morning to find work that never leaves the machine. It scanned
$FLEET_ROOT/*/ only — so it missed the place this fleet does most of its work.
Every agent session runs in a `git worktree` under .claude/worktrees/, and
those hold real branches. Measured tonight, hours after the guard went in:
26 unpushed commits across 25 locations, oldest 25 days
...while `fleet-stranded` reported two dirty files in dotfiles and nothing
else. fleetcrown alone held 9 branches, none of them pushed to origin. The
guard was not merely incomplete; it was certifying a fleet that had almost a
month of work sitting on one disk.
That is the failure mode named in this file's own header — a check that gets
read as "all clear" when it means "I did not look there" — and I built it into
the fix for it. A blind spot shaped like the dominant workflow is worse than no
guard at all.
Worktrees now report as `repo/worktree-dir` with their OWN branch, and the main
checkout is not double-counted as one of its own worktrees. Three tests pin it,
including that last one; all three go red with the scan removed.
Found while auditing fleetcrown for code debt — the audit's biggest finding
turned out to be in the auditor.
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
NOTE: repo copies of agent-prompts.json / agent-projects.conf are the NEW
design; live ~/.config still runs the previous versions — cutover pending.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Critical SSOT fix:
- claude-prompts.json was outside version control (loose file at ~/.config/)
All 13 improved prompts existed only on this machine — machine loss = gone
- Moved into dotfiles repo at .config/claude-prompts.json
- Replaced loose file with symlink (same as claude-projects.conf pattern)
- Added 'link .config/claude-prompts.json' to install.sh — now reproducible
Popup countdown UX (3 bugs fixed):
- Arrow key navigation (Up/Down) did not cancel countdown — fixed by calling
_cancel_countdown() in _shift_focus()
- Mouse entering popup window did not cancel — fixed via enterEvent()
- After countdown cancelled, dismiss timer still ran (35s auto-close while
user is typing) — fixed: _cancel_countdown() now extends dismiss to 5min
- Cancelled countdown label now shows navigation hint instead of
misleading '↵ Enter to send'
Session file cleanup:
- Removed duplicate session files (revampit.md, Revamp-IT.md → revamp-it.md;
vitareba.md removed — Vitareba.md canonical)
- 8 clean session files remain, one per active project
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Consistent formatting across all projects: 2-space indent,
LF line endings, UTF-8, trim trailing whitespace. Python gets
4-space indent. Makefiles get tabs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add bashrc (with PATH dedup, starship, fzf, zoxide, eza, bat, delta
integrations), kitty terminal config with JetBrainsMono Nerd Font,
starship prompt config, zellij config + project layout, claude-projects
tab mapping, SSH config, global gitignore.
Update CLAUDE.md to latest (crash-resilient session tracking) and
install.sh to link all new configs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- PostToolUse hook: auto-runs typecheck after Write/Edit of .ts/.tsx
files, feeds errors back to Claude for self-correction (15s debounce)
- Custom skills: /fix-types, /write-tests, /fix-lint
- Git pre-push hook: claude -p reviews diff for regressions, shows
findings with push/cancel prompt (skips small changes)
- Git pre-commit hook: gitleaks secret scanning
- install.sh updated to link skills and git hooks
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>