Managed Deep Agents - Instructions and Context Hub
Summary
This video details how 'Instructions' define the behavior of Managed Deep Agents. These instructions are stored in a dedicated Context Hub, allowing developers to modify agent behavior directly through the UI without needing to redeploy code. The process involves syncing local changes (e.g., modifying `instructions.md`) with the production Context Hub via commands like `mda deploy`, and understanding how conflicts between local and deployed instructions can be resolved.
Key takeaways
-
Instructions Define Agent Behavior
Instructions are the core component defining an agent's behavior, typically placed within the system prompt. Changing these instructions immediately impacts the agent's output (e.g., changing response language from Italian to Spanish).
-
Context Hub for Non-Code Changes
2:05
The Context Hub allows agents to be updated by modifying instructions in a UI, which automatically propagates changes to the deployed agent without requiring code redeployment.
-
Syncing Local and Production Instructions
3:50
When running `MDA deploy`, if the Context Hub has been manually edited (e.g., in production), the deployment process pauses, allowing the user to choose whether to override the hub-edited instructions with the local version or vice versa.
Technical details
-
Agent System Prompt Structure
180s
The system prompt automatically includes several elements: the core 'Instructions' (from `instructions.md`), built-in tools, and technical notes (e.g., shell paths vs. virtual paths). The deep agents harness is designed to be modular to yield faster responses.
-
Deployment Workflow
105s
To deploy or test changes locally, run `MDA dev`. To update production instructions from the Context Hub, modify them in the LangSmith UI and save. The deployment process uses an MDA metadata manifest containing a hash of the instructions.
-
Conflict Resolution
230s
If local changes (e.g., Italian) conflict with production Context Hub changes (e.g., Spanish), running `MDA deploy` prompts the user to explicitly choose whether to override the hub-edited instructions with the local version.
Mentioned resources
- LangSmith UI
- Context Hub Repo
Channel & topics
Watch on YouTube · Back to latest
This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.