Skip to content

agent, cli, web, docs: remove useSubagent - #835

Merged
motatoes merged 2 commits into
mainfrom
fix/remove-usesubagent
Oct 5, 2026
Merged

motatoes merged 2 commits into
mainfrom
fix/remove-usesubagent

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Removes useSubagent() end to end (the blue half is diggerhq/blue#150). The hook declared a subagents roster in the render manifest that nothing consumed — the edge recorded enabledSubagents on renders nobody read, and the OpenCode 2 adapter threw when the roster was non-empty. Member agents of a project are reached with the consult tool instead, which validates against real project membership.

  • @opencomputer/agent: useSubagent removed from AgentHooks and the public exports. "subagent" stays in InputSource — it is the provenance tag consult answers carry, not part of the removed feature.
  • @opencomputer/cli: subagents: literalHookIds(agentSource, "useSubagent") removed from the manifest build, and the useSubagent stub removed from the bundler shim.
  • Dashboard: the Subagents section removed from DebugInspector; enabledSubagents in the render zod schema is now .optional() so older stored renders still parse.
  • Docs: agents/subagents.mdx deleted, nav entry removed from docs.json, and all references scrubbed (hooks, reactive-agents, capabilities, mental-model, overview, quickstart, events, llms.txt, agent README). source === "subagent" mentions in inputs.mdx/sessions.mdx kept — the source value still exists.
  • Versions (publish is version-gated): agent 0.8.0 → 0.9.0 (breaking: export removed), cli 0.7.15 → 0.7.16 with create-start version + dependency synced, lockfiles bumped in place.

Verification

agent npm test: 21 pass. cli npm test: 138 pass. web typecheck clean; api.test.ts 10 pass.

Link to Devin session: https://app.devin.ai/sessions/68d4925d9c7341dd960bf5e64e85c7e6
Open in Devin Desktop: https://app.devin.ai/desktop/session/68d4925d9c7341dd960bf5e64e85c7e6?variant=devin
Requested by: @motatoes

The useSubagent() hook declared a subagent roster in the render manifest
that nothing consumed — the edge recorded enabledSubagents on renders
nobody read, and the adapter threw if the roster was non-empty. Member
agents of a project are reached with the consult tool instead, which
validates against real project membership.

- @opencomputer/agent: drop useSubagent from AgentHooks and the public
  exports (source "subagent" in InputSource stays — it is the
  provenance tag consult answers carry)
- @opencomputer/cli: stop extracting manifest.subagents and drop the
  useSubagent shim
- dashboard: drop the Subagents inspector section; the render schema
  keeps enabledSubagents optional so older stored renders still parse
- docs: remove the subagents page and every reference
- versions: agent 0.8.0 -> 0.9.0, cli 0.7.15 -> 0.7.16 (+ create-start)

Co-Authored-By: Mohamed <mo@digger.dev>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@mintlify

mintlify Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
opencomputer 🟢 Ready View Preview Oct 5, 2026, 1:18 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@socket-security

socket-security Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​opencomputer/​cli@​0.7.15 ⏵ 0.7.16N/AN/AN/AN/AN/A

View full report

@motatoes
motatoes merged commit 93c2693 into main Oct 5, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
staging - docs — 0d4369a6 Deployed Oct 5, 2026 by mintlify[bot]
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