Skip to content

refactor(tools)!: delete hub-calling tool packages; Myra ships stock tools-mail and tools-posix (CL-8471) - #892

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-8471-tools-capabilities
Sep 18, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-8471-tools-capabilities

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Why

Myra's live run failed at step start: her tool factories demanded env keys the
stock sidecar never supplies (hubCapabilitiesUrl, sidecarToken, tenantId,
principalId, definitionId, ...). The root cause is not wiring — Interchange
has no concept of an agent calling the hub API. A tool gets the env
createSidecarStepBuildEnv builds (sources, storage, workdir, toolCwd,
transport, address, capabilities, deps, directors), and upstream's own tool
packages are tools-mail, tools-posix and tools-lsp: none of them reaches
the hub. So the hub-calling tool packages were a Workbench invention with no
platform behind them.

What changed

Deleted, whole: tools/access, tools/agent-directory, tools/capability,
tools/catalog, tools/interaction, tools/skills,
tools/workflow-authoring — the tools/ workspace root goes with them
(workspaces, lint/fmt globs, typecheck and run-all globs, tsconfig.build.json
references, README layout row).

Also deleted:

  • packages/inference-catalog — tools/catalog was its only consumer
    (apps/hub declared the dependency but imported nothing from it), plus the
    three docs that documented it and the doc for the capability route deleted
    with packages/agent-directory.
  • apps/web/src/tools/registry-publish.ts and tarball.ts (and their tests):
    they existed to pack and publish tools/* into the tenant's corbits-tools
    registry, and there is nothing left to publish. The onboarding and
    workbench-create flows no longer call the publish step. The Tools page and
    registry-read.ts stay — they list whatever a tenant has published.
  • agents/myra/src/tool-packages.ts (pins for the deleted packages; the source
    lineage resolves no pins anyway).

Myra's factories are now upstream's, from their published sidecar bundles:
mail from @intx/tools-mail/sidecar-bundle and posix from
@intx/tools-posix/sidecar-bundle (both 0.3.0 from npm). @corbits/memory
tools are dropped for now — that library still requires memory env keys and is
cut over separately.

Her system prompt says, thinly, what is true now: she has mail and a working
tree; to stand up an agent or workflow she writes the package and asks the
person to deploy it from Workbench; capabilities, connections and access are
approvals the person makes in the UI.

Verification

  • bun run typecheck, bun run lint, bun run fmt / fmt:check, bun run test (all workspaces) — clean.
  • cd agents/myra && bun run build — bundle builds with no unresolved bare
    imports.
  • The rendered entry evaluated under bun (bundle + export default buildMyraWorkflow({...})): stepOrder: ["assistant"], toolPackagePins: [], factories @intx/tools-mail/sidecar-bundle (requires: ["capabilities","address"], mail_send/reply/search/read/wait) and
    @intx/tools-posix/sidecar-bundle (requires: [], read_file/write_file/
    run_shell/edit_file/search_files/grep).

Not verified: nothing was exercised against a live hub — the dev stack was not
started or restarted. The live check after merge is a run whose turn calls a
mail or posix tool instead of failing env validation.

@linear-code

linear-code Bot commented Sep 18, 2026

Copy link
Copy Markdown

CL-8471

@TheGreatAxios
TheGreatAxios merged commit 509c5e7 into main Sep 18, 2026
4 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.

1 participant