dev@bfd:~/dev-diary$ git show 2026-02
commit 2026-02-22-unify-legion-core-and-bootstrap-9-ai-crew-profiles
Author: MJ
Date: Feb 22, 2026

2026-02-22 - Unify Legion Core and Bootstrap 9-AI Crew Profiles

Timeline

  • (Context) Continued unification work from Codex’s last session — _legion_core had flat unordered structure, build script targeted only 2 of 9 AIs
  • (Action) Deduped CLI_Dojo_Code_Bro (~10,391 files, ~1.27 GB compiled dist artifact confirmed identical to cli-dojo source)
  • (Action) Fixed build_unified_skills.py — ALL_AI_TARGETS constant, agent-skills category scoring bug, expanded SOURCE_ROOTS for conv-retriev and cli-dojo
  • (Action) Expanded adapter generation from 2 AIs to all 9; updated candidate_roots for bridge manifest deployment
  • (Action) Reorganised _legion_core into numbered 00_meta through 09_crew subfolder scheme
  • (Action) Migrated agent-skills, skills-local, docs from workspace root into _legion_core numbered subdirs
  • (Action) Rebuilt skill federation — 33 discovered, 22 curated (14 ready, 8 draft), 9-AI adapter dirs generated
  • (Action) Created GROUND_TRUTH.md — entry doc for any AI landing in the workspace
  • (Action) Created tools/update_all.ps1 — pulls 4 tracked git repos with changelog
  • (Action) Created 09_crew with IDENTITY.md + INBOX/ for all 9 AI frameworks
  • (Action) Deployed SKILL_BRIDGE_MANIFEST.json to 40 workspace locations and 7 existing AI home dirs
  • (Action) Wrote per-AI workspace profiles — CLAUDE.md (was empty), GEMINI.md append, workspace.md for Codex/Ollama/Aider/Antigravity
  • (Action) Added beautiful-powers section to $PROFILE — workspace env vars and nav aliases for all crew
  • (Observation) Codex rules file still references old deprecated _FEDERATION_FORESIGHT workspace path — needs migration
  • (Observation) .opencode and .droid home dirs do not exist — those two AIs are unconfigured
  • (Open Thread) Federation_Core toolset scripts may contain hardcoded old workspace paths — audit required
  • (Open Thread) 8 draft skills need description rewrites to reach ready tier

Context

  • Picked up from Codex (session bc1c7263) mid-execution of the beautiful-powers unification plan — bridge manifests and build script fixes were done but _legion_core structure was still flat and un-navigable
  • Full goal: reorganise entire beautiful-powers workspace into one unified _legion_core directory that all 9 AI frameworks (Copilot, Claude, Gemini, Codex, OpenCode, Ollama, Aider, Antigravity, Droid) can navigate and operate from
  • Session scope confirmed after full recursive inventory — 14+ top-level areas, 4 git repos, 1 ComfyUI forge (44k files), 12 named agent personas, multiple toolsets

Actions

  • Removed CLI_Dojo_Code_Bro directory (~10,391 files, ~1.27 GB) — diff confirmed it was the compiled dist output of cli-dojo source; no unique content lost
  • Extended build_unified_skills.py: added ALL_AI_TARGETS list covering all 9 frameworks, fixed infer_category() to assign engineering tier to agent-skills source root (was returning unknown, causing all 16 skills to land in legacy backlog), fixed adapter loop from hardcoded [“codex”,“claude”] to ALL_AI_TARGETS
  • Added _legion_core/02_tools/ai_detective/skills and _legion_core/02_tools/cli-dojo to SOURCE_ROOTS so conv-retriev and cli-dojo SKILL.md are auto-discovered by build
  • Reorganised _legion_core into numbered scheme: 00_meta (docs, system prompts), 01_skill_forge (agent-skills, skills-local), 02_tools (ai_detective, cli-dojo), 03_engines (AIEA, ATA, AI_Insight_Detective, ai_sentinel), 04_agents (personas), 05_federation (Federation_Core, vesper_core, Agentic_Gardeners), 06_reference, 07_projects (course-lens, void-switches), 08_forge, 09_crew
  • Updated build script SOURCE_ROOTS and candidate_roots for all new paths; build confirmed 33 discovered, 22 curated, 9 adapter dirs deployed
  • Created 09_crew/ — one dir per AI with IDENTITY.md (role, invocation, config dir, strengths, coordination notes), INBOX/ subdir, and SKILL_BRIDGE_MANIFEST.json
  • Deployed SKILL_BRIDGE_MANIFEST.json to all 40 workspace dirs and to ~/.copilot, ~/.claude, ~/.gemini, ~/.codex, ~/.ollama, ~/.aider, ~/.antigravity — every AI’s home dir now auto-discovers the skill federation
  • Wrote CLAUDE.md from scratch (was 0 bytes) with full workspace layout, crew roster, skill integration pointer, coordination protocol, and role description
  • Appended workspace context block to GEMINI.md; wrote workspace.md to ~/.codex including old-path deprecation notice mapping _FEDERATION_FORESIGHT paths to new 09_crew equivalents
  • Added beautiful-powers section to $PROFILE: BEAUTIFUL_POWERS_ROOT, LEGION_CORE, SKILL_SHARE env vars; legion, bproot, crew, gt, skills, rebuild-skills, update-repos, inbox functions — profile syntax validated clean

Observations

  • Root of beautiful-powers is now clean — only 4 git repos, skill-share/, tools/, _legion_core/, and root bridge manifest remain at top level
  • Codex default.rules (~49KB auto-generated permission file) still contains allow entries referencing old _FEDERATION_FORESIGHT workspace paths — Codex’s live sessions will not break (it reads rules at runtime) but new allow rules for beautiful-powers paths should be added next time Codex runs
  • The_Local_Forge (ComfyUI, ~44k files) could not be moved to 08_forge/ due to filesystem access restriction — remains at _legion_core/The_Local_Forge/; GROUND_TRUTH documents this explicitly
  • Inferred from todo tracker: all 17 planned tasks completed across session — 0 blocked, 0 pending
  • The numbered 00–09 prefix scheme means any AI can list _legion_core/ and immediately parse the full workspace hierarchy without prior context

Open Threads

  • Audit 05_federation/Federation_Core toolset scripts for hardcoded old workspace paths and replace with env-var-relative references
  • Investigate The_Local_Forge filesystem access restriction — determine whether 08_forge relocation is achievable or if it should stay in place permanently
  • Create .opencode and .droid config dirs; deploy bridge manifests and workspace context files to complete 9/9 AI coverage
  • Improve 8 draft skills to ready tier — most need description rewrites starting with “Use when” and keyword density above scoring threshold
  • Consider whether Codex default.rules should get new allow entries for beautiful-powers paths to unblock Codex’s native workspace navigation

Boundary Reminder:
Seeds. No maintenance. No roadmap.