Skip to content

fix(framework): make reload installs via the CLI from the local clone#299

Merged
blafourcade merged 2 commits into
mainfrom
fix/reload-cli-build
Jun 18, 2026
Merged

fix(framework): make reload installs via the CLI from the local clone#299
blafourcade merged 2 commits into
mainfrom
fix/reload-cli-build

Conversation

@alexsoyes

@alexsoyes alexsoyes commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Le bug

make reload (la commande de dev qui réinstalle le framework dans Claude Code et Codex depuis le clone local) enregistrait le marketplace de chaque outil sur le dépôt brut (syntaxe Claude). Ça marche pour Claude, mais Codex ne recevait jamais de plugins valides et ses agents n'étaient jamais chargés. L'install locale divergeait donc de ce qui est publié en release, et Codex était cassé.

Le correctif

make reload passe en full-CLI depuis le clone local :

  • Codex — build du clone vers un arbre natif (aidd framework build --target codex, conversion md→toml) puis install depuis cet arbre.
  • Claude — install depuis le dépôt brut (déjà au format natif Claude) ; toutes les opérations marketplace en scope user, pour ne pas écraser le dogfooding projet .claude/settings.json (chore(framework): enable local AIDD plugins for repo dogfooding #247).
  • Agents Codex — les TOML buildés sont copiés dans ~/.codex/agents/ (Codex ne charge les agents que là).

Build via @ai-driven-dev/cli@latest (overridable avec AIDD_CLI_VERSION si une release régresse le build).

Vérifié

make reload → 6/6 plugins codex:ok + claude:ok, 3 agents Codex installés, config dogfooding projet intacte.

Ce reload contourne deux bugs du CLI @ai-driven-dev/cli (corrigés dans ai-driven-dev/aidd-cli#293) : le build Codex ne déclare pas ses agents, et le build Claude émet un champ agents invalide.

🤖 Generated with Claude Code

@alexsoyes alexsoyes force-pushed the fix/reload-cli-build branch from 7900a79 to 3505d38 Compare June 18, 2026 08:32
alexsoyes and others added 2 commits June 18, 2026 21:07
Reload's plugin-install flow pointed every tool's marketplace at the raw
(Claude-syntax) checkout. That works for Claude but never produced valid
Codex plugins, and the local install diverged from what ships at release.

- Codex: build the checkout into a native tree with the aidd CLI
  (`framework build --target codex`, md -> toml) and install from it.
- Claude: install from the raw repo, which is already native Claude format.
- Copy the built Codex agent TOML into ~/.codex/agents/ — Codex loads agents
  only from there, not from plugin-bundled dirs.
- Scope Claude marketplace ops to user: a bare `marketplace remove` strips the
  declaration from every scope, wiping the repo's project-scoped dogfooding.
- dev-setup no longer registers the raw-repo marketplace; dev-sync owns it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Explain that Claude installs from the raw repo while Codex installs from a
CLI-built native tree, and note the Codex agent copy workaround.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alexsoyes alexsoyes force-pushed the fix/reload-cli-build branch from 3505d38 to daec268 Compare June 18, 2026 19:08
@alexsoyes alexsoyes added the bug Something isn't working label Jun 18, 2026
@alexsoyes alexsoyes marked this pull request as ready for review June 18, 2026 19:37
@blafourcade blafourcade merged commit 9799b8b into main Jun 18, 2026
9 checks passed
@blafourcade blafourcade deleted the fix/reload-cli-build branch June 18, 2026 20:00
@aidd-bot aidd-bot Bot mentioned this pull request Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants