Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

LangChain 8 min read Opinion easyNovice

What We’ve Learned Building Proactive Agents

Proactive agents run in the background toward goals, triggered by real-world events, developer schedules or schedules they set themselves; on LangChain's Managed Deep Agents over 70% of runs now come from schedules rather than human prompts. Making them useful without being annoying hinges on memory (seeded from past context, updated from feedback and outcomes, maintained by a background "dreaming" job that handles salience, expiry and duplication) and on UX that is high-signal, fast to review, and delivered where users already work, such as Slack. Examples come from LangChain's internal GTM Agent and Robin engineering agent, and suggested memory metrics include draft approval time and the share of check-ins users act on.

Related posts

  • How to Build Proactive, Always-On Agents with the Schedules SDK in Managed Deep Agents

    LangChain mediumAdept

    Many proactive, always-on agents rest on a simple mechanism: agent runs triggered as cron jobs. Scheduled runs support memory consolidation ("dreaming"), goal-driven proactive messages, triage of Slack or email streams, user follow-up reminders, and orchestrators that wake themselves to check on fleets. Building these takes two parts: a cron server that handles prompts, permissions and jitter, and a governed agent-facing interface for creating and modifying schedules. Managed Deep Agents provides both, with static schedules defined as files and dynamic or one-off schedules created at runtime by wrapping the Schedules SDK in tools. More than 70% of Managed Deep Agent runs on LangSmith come from scheduled rather than human-initiated runs.

  • What's New in Managed Deep Agents: schedules, per-run configuration, and Slack reactions

    LangChain mediumAdept

    Managed Deep Agents v0.9 adds three features: a Schedules SDK, per-run agent configuration, and Slack reactions. With the Schedules SDK, agents can create cron or one-time schedules mid-conversation; these run with the requesting user's permissions and post results back to the originating channel. Per-run configuration makes the agent a callable that reads the run context and returns a define_deep_agent definition, so one deployment can choose its model, skills, MCP servers and sandbox per team or repo before the model runs, which keeps context small and acts as access control. Slack reactions acknowledge incoming messages with a configurable emoji, including one picked per message by a function. The release is in public beta.

  • Building effective agent automations

    claude.dev mediumAdept

    A scheduled daily-brief agent built on Claude Managed Agents reads Slack channels and GitHub pull requests, tracks what changed since the last run, and posts a short brief to Slack. The design runs through sources, destination, agent config, cron schedule, memory and guardrails, and pairs each with a common failure mode and its fix. Fixes include per-source bookmarks instead of fixed time windows, flagging failed reads instead of reporting a quiet day, and confirming Slack's ok response before updating the ledger. Credentials sit in a vault outside the sandbox, preferences are read-only and re-read every run, the GitHub token is read-only to limit prompt-injection damage, and per-run spending is capped.

  • Managed Deep Agents v0.10: Browser Use and Async Subagents

    LangChain mediumAdept

    Managed Deep Agents v0.10 adds browser use, so agents can operate websites without APIs, and async subagents that run long tasks in the background while the orchestrator keeps talking to the user. The browser runs in a LangSmith sandbox scoped per thread or per user. It exposes snapshot, run, screenshot and handoff tools, and the handoff tool gives a person control of the window for logins so credentials never enter model messages or traces. Async subagents notify the orchestrator instead of being polled: results arrive mid-run, wake an idle agent, or wait behind a pending approval. Other changes include thread-origin records for replying in Slack, a Stop button, Slack event handlers, resolveUser identity mapping, and breaking changes to how MCP connectors are declared.

  • Context Engineering with Deep Agents: How To Remember Without Keeping Everything In Context

    LangChain mediumAdept

    Long-running agents suffer "context rot" as tool output, history and instructions accumulate, so Deep Agents moves context out of the active window via middleware hooks in the agent loop rather than deleting it. FilesystemMiddleware offloads tool results over ~20,000 tokens (and user messages over 50,000) to files and shows only a preview. SummarizationMiddleware condenses older messages at 85% of the context window while keeping recent ones verbatim and writing the originals to recoverable files. SkillsMiddleware uses progressive disclosure to load task instructions only when relevant, subagents isolate noisy work in separate contexts, and MemoryMiddleware persists learned preferences in a plain markdown file that survives switching model providers.

The quest for software engineering knowledge.

Look:
Layout: