Skip to content

docs(sdk): Update built-in subagents documentation to match current implementation#442

Open
VascoSch92 wants to merge 4 commits intomainfrom
fix/update-builtin-subagents-docs
Open

docs(sdk): Update built-in subagents documentation to match current implementation#442
VascoSch92 wants to merge 4 commits intomainfrom
fix/update-builtin-subagents-docs

Conversation

@VascoSch92
Copy link
Copy Markdown
Contributor

Summary

This PR updates the built-in subagents documentation in sdk/guides/agent-file-based.mdx to match the current SDK implementation.

Changes

Agent Names Updated

The documentation was using deprecated agent names. Updated to current names:

Old Name (Deprecated) New Name
default general-purpose
explore code-explorer
bash bash-runner

Added Missing Agent

  • Added documentation for web-researcher agent which was completely missing from the docs

Removed Non-Existent Agent

  • Removed default cli mode which doesn't exist as a separate agent file

Fixed Tools List

  • Corrected tools for general-purpose: now shows terminal, file_editor, task_tracker (without browser_tool_set)

Fixed Function Signature

  • Updated register_builtins_agents() parameter from cli_mode to enable_browser to match actual implementation

Added Deprecation Notice

  • Added a note about deprecated agent names being removed in version 2.0.0

Verification

Checked against the actual implementation in software-agent-sdk:

  • openhands-tools/openhands/tools/preset/subagents/*.md - actual subagent definitions
  • openhands-tools/openhands/tools/preset/default.py - register_builtins_agents() function
  • openhands-sdk/openhands/sdk/subagent/registry.py - deprecated name mappings

This PR was created by an AI assistant (OpenHands) on behalf of the user.

@VascoSch92 can click here to continue refining the PR

- Update agent names from deprecated to current:
  - default → general-purpose
  - explore → code-explorer
  - bash → bash-runner
- Add missing web-researcher agent documentation
- Remove non-existent 'default cli mode' agent
- Fix tools list for general-purpose (no browser_tool_set)
- Update register_builtins_agents() parameter from cli_mode to enable_browser
- Add deprecation notice for legacy agent names

Co-authored-by: openhands <openhands@all-hands.dev>
@mintlify
Copy link
Copy Markdown

mintlify bot commented Apr 8, 2026

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

Project Status Preview Updated (UTC)
all-hands-ai 🟢 Ready View Preview Apr 8, 2026, 7:44 AM

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

all-hands-bot

This comment was marked as outdated.

Co-authored-by: OpenHands Bot <contact@all-hands.dev>
all-hands-bot

This comment was marked as outdated.

Address PR review feedback: include 'default cli mode' in the deprecation
notice since it's a valid deprecated name that maps to 'general-purpose'.

Also added the deprecation version (v1.12.0) for clarity.

Co-authored-by: openhands <openhands@all-hands.dev>
Copy link
Copy Markdown
Contributor

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Good taste - Documentation now matches reality. All claims verified against source code.

Verified:

  • Agent names: ✓ general-purpose, code-explorer, bash-runner, web-researcher
  • Tools lists: ✓ Match actual subagent definitions in openhands-tools/openhands/tools/preset/subagents/*.md
  • Function signature: ✓ enable_browser parameter correct per default.py
  • Deprecation: ✓ v1.12.0 + all 4 names in registry

Key Insight: This is how documentation should be maintained—verified against source code, not speculation. Ship it.

@VascoSch92 VascoSch92 changed the title DRAFT: Update built-in subagents documentation to match current implementation docs(sdk): Update built-in subagents documentation to match current implementation Apr 8, 2026
@VascoSch92 VascoSch92 marked this pull request as ready for review April 8, 2026 08:33
Copy link
Copy Markdown
Contributor

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Good taste - Documentation maintenance done right.

Verified against source code:

  • Agent names: ✓ All match actual files (general-purpose, code-explorer, bash-runner, web-researcher)
  • Tools lists: ✓ Match subagent definitions exactly (default.md, bash_runner.md, code_explorer.md, web_researcher.md)
  • Function signature: ✓ enable_browser parameter confirmed in default.py
  • Deprecation: ✓ Version 1.12.0 and all 4 names (default, default cli mode, explore, bash) confirmed in registry.py

KEY INSIGHT: This is pragmatic engineering—fixing documentation to match reality, not the other way around. No theoretical debates, no bikeshedding, just making the docs accurate.

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.

3 participants