Skip to content

Sort core's gateway into folders and give providers one way into core - #67

Merged
greenpolo merged 1 commit into
mainfrom
claude/project-thread-ioddvk
Nov 28, 2026
Merged

greenpolo merged 1 commit into
mainfrom
claude/project-thread-ioddvk

Conversation

@greenpolo

@greenpolo greenpolo commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

What changes?

This PR only moves files. Nothing about how Multi behaves changes. It follows the layout Gemini 4 Neon proposed in its architecture review.

  • Gateway folders. The 50 files in plugins/multi-core/src/gateway/ move into server/, mod/, providers/, direct/, harness/ and util/, and nested-env.ts moves to launch/. Files in harness/ and mod/ drop their harness- and mod- prefixes.
  • One way into core for providers. Provider folders now import core only through plugins/multi-core/src/kit/: adapter.ts, util.ts, direct.ts and harness.ts. Before this, they imported 31 separate core files by deep paths. kit/adapter.ts re-exports only light runtime code, the permission readers and nativeSpelling. Antigravity's permission hook runs in a fresh process on every agy tool call, so it should not load more than it did before.
  • Path fixes that the move needs:
    • The manifest discovery depth in providers/provider.ts.
    • The install copies of executable.ts and process-tree.ts, which go to gateway/util/ beside the installed bootstrap. Uninstall removes them there and at the old location.
    • Effort moves to server/messages.ts.
    • nativeSpelling moves to providers/spelling.ts, so loading it does not trigger the manifest scan in provider.ts.
  • Stale busy-session docs. A second request to a busy harness waits for the running turn and then runs. ARCHITECTURE.md and some comments still said it was refused with a 400. Those are corrected, and the never-thrown HarnessBusyError is removed.
  • Docs. The AGENTS.md code map, the ARCHITECTURE.md layout table and contracts, and the paths in docs/claude-mods.md are updated. CHANGELOG.md gets an Unreleased entry.

Validation

  • npm run check passes locally, in CI on Linux, macOS and Windows, and on the lab PC.
  • Every provider loads through loadProviders(), every plugins/*/src module imports cleanly, and the Antigravity permission hook runs.
  • Lab PC, Windows, Node 25.2.1, at c448a6e:
    • test:live:install passes in 65 s: setup, the isolated cache and uninstall, with no inference.
    • test:live:front-door passes in 37 s: the front door served Claude and an OpenAI worker.
  • test:live:antigravity fails at native-antigravity.ts:216: the write_to_file count is 0, expected 1. main (5f8031c) fails at the same line in the same way. The agy turns themselves work: the file was written and read back. The problem is in how the test captures events: its report records only init and result events. So this is not a regression.
  • No DEP0190 warnings.
  • Behavior is unchanged; this is a move plus docs.
  • CHANGELOG.md and docs are updated.

Review notes

  • Install layout: existing installs keep working because uninstall() also cleans up the old ../gateway/{executable,process-tree}.ts. Setup writes the new location the next time it runs.
  • test/live/ still imports core internals directly by their new paths. Only provider folders go through kit/.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HyhDzVC7X4rmhG5ZBA2i6X

Moves the 50 files in plugins/multi-core/src/gateway/ into server/, mod/,
providers/, direct/, harness/ and util/ (nested-env.ts to launch/), and adds
plugins/multi-core/src/kit/ as the only entry providers import core through.
No behavior change: path depths in provider.ts and the install copies of
executable.ts and process-tree.ts follow the move (uninstall also cleans the
old location), Effort moves to messages.ts and nativeSpelling to its own file
so the permission hook's kit import stays light. Docs now say a busy harness
waits rather than refuses, and the unused HarnessBusyError is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HyhDzVC7X4rmhG5ZBA2i6X
@greenpolo
greenpolo marked this pull request as ready for review November 28, 2026 18:36
@greenpolo
greenpolo merged commit c720029 into main Nov 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants