Building effective agent automations
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.
Related posts
- What We’ve Learned Building Proactive Agents
LangChain easyNoviceProactive 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.
- What's New in Managed Deep Agents: schedules, per-run configuration, and Slack reactions
LangChain mediumAdeptManaged 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.
- Lessons on UX, security, and scale when building an enterprise-grade Slack agent
Sourcegraph mediumAdept
Sourcegraph's Deep Search Slack agent fits into enterprise workflows through staged status messages (emoji acknowledgement, escalation links for long searches), TL;DR answers with threaded follow-ups, and rich link unfurling via Slack's link_shared events, SHA256-based entity IDs, chat.unfurl work objects and flexpane details. On the enterprise side it supports Enterprise Grid's one-app-to-many-workspaces model, auto-links Slack users to Sourcegraph accounts by verified email so permissions match code access, and validates setup by forcing a fresh Slack event-URL ping with a random retry parameter. Abuse is controlled with simple Redis fixed-window counters per user and team that fail open if Redis is down.
- How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline
Grab Engineering mediumAdeptGrab's ADW team rebuilt Scarlet, its Slack-based data-pipeline agent, around a short core prompt plus a versioned library of Markdown skills (platform, routing, repository, workflow) loaded on demand, shrinking the prompt about 25x and letting new teams onboard by adding one reviewed repository skill. Platform tools sit behind two-tool MCP bridges, data-platform actions run under the requester's short-lived token, and sign-in pauses use LangGraph interrupts to resume runs. Scarlet now validates the data its changes produce by comparing CI candidate output against production (schema, counts, keys, nulls, stats, row diffs), with inconclusive treated as failure and verdicts bound to commits. Deterministic scaffolds replaced model guesses for predictable config, and after rollout the merge rate rose from about 50% to over 85% while repositories served grew about fourfold.
- Automating cross-repo documentation with GitHub Agentic Workflows
GitHub Engineering mediumAdeptAspire's team uses GitHub Agentic Workflows to auto-draft documentation pull requests in a separate docs repo whenever a product pull request merges, with the shipping engineer assigned as reviewer. The agent gets read-only access and emits intent, while a narrowly scoped safe-outputs handler with a two-repo GitHub App token, branch allow-lists, protected files and draft-only PRs performs the writes. A deterministic bash resolver maps milestones to docs release branches before the agent runs. Over 30 days, 396 runs produced 82 docs PRs, all merged, at a median 44.8 hours, after the prompt was tightened with negative examples to cut an initial ~13% false-positive rate.