Skip to content

feat: add subagent documentation to deploy page#3615

Merged
Sydney Runkle (sydney-runkle) merged 5 commits intomainfrom
open-swe/798ef773-fad5-3ef2-b8af-50908c0fb65d
Apr 17, 2026
Merged

feat: add subagent documentation to deploy page#3615
Sydney Runkle (sydney-runkle) merged 5 commits intomainfrom
open-swe/798ef773-fad5-3ef2-b8af-50908c0fb65d

Conversation

@open-swe
Copy link
Copy Markdown
Contributor

@open-swe open-swe bot commented Apr 17, 2026

Description

Adds comprehensive subagent documentation to the "Deploy with the CLI" page based on the implementation in langchain-ai/deepagents#2786. Subagents are auto-discovered from a subagents/ directory and let the main agent delegate specialized tasks to isolated child agents with their own system prompts, skills, and MCP tools. By default, subagents inherit model and tools from the main agent but not skills.

Test Plan

  • Test in preview deployment

Opened collaboratively by Sydney Runkle and open-swe.

…cture, configuration, inheritance, memory isolation, structured output, and validation rules.

Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com>
@github-actions github-actions bot added deepagents For docs changes to Deep Agents oss external User is not a member of langchain-ai labels Apr 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-opensw-1776430864-9f11f1c

@sydney-runkle Sydney Runkle (sydney-runkle) marked this pull request as ready for review April 17, 2026 14:04
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for opening a docs PR, Open SWE (@open-swe)[bot]! When it's ready for review, please add the relevant reviewers:

  • @npentrel or @lnhsingh (Deep Agents)

Comment thread src/oss/deepagents/deploy.mdx Outdated
Comment thread src/oss/deepagents/deploy.mdx Outdated
Comment thread src/oss/deepagents/deploy.mdx Outdated
Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-opensw-1776437113-983bd4d

Comment thread src/oss/deepagents/deploy.mdx Outdated
| --- | --- | --- |
| Model | Yes | Override with `model` in the subagent's `deepagents.toml` |
| Tools | Yes | Override by adding `mcp.json` to the subagent directory |
| Skills | No | Declare explicitly in the subagent's own `skills/` directory |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I thought subagents automatically inherit the main agent's skills unless skills are explicitly passed? Sydney Runkle (@sydney-runkle)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread src/oss/deepagents/deploy.mdx Outdated
Comment thread src/oss/deepagents/deploy.mdx Outdated
Comment on lines 477 to 482
## Gotchas

- **AGENTS.md and skills are read-only at runtime.** Edit source files and redeploy to update them. The per-user `AGENTS.md` at `/memories/user/AGENTS.md` is the exception — it is writable by the agent.
- **Full rebuild on deploy:** `deepagents deploy` creates a new revision on every invocation. Use `deepagents dev` for local iteration.
- **Sandbox lifecycle:** Thread-scoped sandboxes are provisioned per thread and will be re-created if the server restarts. Use `scope = "assistant"` if you need sandbox state that persists across threads.
- **MCP: HTTP/SSE only.** Stdio transports are rejected at bundle time.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I left comments on a previous PR to remove these. Why are they still here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ah not sure, mistake! will remove

Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-opensw-1776437817-f9cc8ce

Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-opensw-1776437990-4cd8b04

@sydney-runkle Sydney Runkle (sydney-runkle) merged commit 3bd1997 into main Apr 17, 2026
19 checks passed
@sydney-runkle Sydney Runkle (sydney-runkle) deleted the open-swe/798ef773-fad5-3ef2-b8af-50908c0fb65d branch April 17, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepagents For docs changes to Deep Agents external User is not a member of langchain-ai oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants