← Back to Pull requests

docs(managed-deep-agents): make the skill a thin router to the docs #80

Closed
unknown closed this pull request without merging on Nov 12, 2026 23:56 UTC
View on GitHub
unknown unknown commented on Nov 03, 2026 19:18 UTC
Author

Summary

The managed-deep-agents skill had drifted from the Managed Deep Agents docs and SDK 0.10. Some of its guidance would produce broken projects: it used define_memory(scope="agent") (now rejected), said MDA was US-only and that Slack was the only channel, required a hand-written Slack manifest, and covered none of browser use, async subagents, HTTP channels, runtime schedules, or per-run factories.

Rather than re-copying the docs into the skill, which is how it went stale, this PR makes the skill a thin router (599 → 224 lines):

  • Kept inline: the guided first-agent interview and flow, the "what MDA cannot do" limits, the project layout, a minimal agent.py / agent.ts, CLI essentials and safety rules, and a list of the mistakes agents make most often. Agents need these before they fetch anything.

  • Routed to docs: a feature map that gives one line per capability on what it is for, where it lives, and which docs page to fetch. Pages load progressively from https://docs.langchain.com/langsmith/<python|javascript>/managed-deep-agents-<page>.md, which return only that language's examples. All 30 linked pages return 200.

  • Source of truth: the skill tells agents to trust mda --help and the installed package first, then the docs, then the skill, and says what to do when there is no network access.
  • The plugin version goes from 0.1.2 to 0.1.3, which the skills-lint workflow requires.

    Refresh against SDK 0.10.2 and current docs (2026-11-09): BYOC deploys use --push-to and have no Serverless; with the API-key identity, a personal access token now counts as a person for user memory; added mda pull; the search page is now "Web search" (GCP US only); linked the new design-agent and paid-media-agent template pages.

    Docs gaps to fix separately in langchain-ai/docs. These are still present on docs main, and the skill follows the SDK:

  • managed-deep-agents-agent-definition still shows mda init --gateway, which was removed from the CLI.

  • managed-deep-agents-local-development says schedules don't run under mda dev. The schedules page and SDK 0.9.3+ say they do.

  • The Slack page documents trigger_on_all_messages, which 0.10 deprecated in favor of trigger_mode.

  • The deploy and CLI pages say .env is read before the shell. 0.10 reversed this for LANGSMITH_* auth variables.

  • The schedules page still requires a manually created thread UUID for persistent schedules. Since 0.10.2, thread={"mode": "persistent"} works without one.

  • The deploy page says BYOC creates a Dedicated deployment by default. In the 0.10.2 CLI, --deployment-type still defaults to serverless.
  • Testing

  • All 60 linked language-specific docs URLs (30 pages × Python/JavaScript) return 200, and so does llms.txt.

  • uv run scripts/lint_skills.py reports nothing for managed-deep-agents. The only blocking result is the existing claude CLI not on PATH check, which is environmental.

  • uv run --no-project --python 3.11 python -m unittest discover -s tests/skills_lint passes (16 tests).

  • git diff --check is clean.

  • The plugin version is 0.1.3; main is 0.1.2.
  • References


  • Slack thread
  • Made by Open SWE · view thread · claude-opus-5-5, gpt-6.1-sol

    Diff: 429 lines (+321 / -108) across 5 files Reviewer: christian-bromann Review duration: 13238m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 429 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.363
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #80"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.1% (MEDIUM) · Higher = larger blast radius
    45.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.8% · Safe to merge
    17.8%