Skip to content

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

Slack Engineering 13 min read Case study mediumAdept

Managing context in long-run agentic applications

Slack's multi-agent security investigation service keeps long-running agent teams coherent through three context channels rather than accumulating full message history. The Director's Journal is structured working memory with typed entries (decision, observation, finding, question, action, hypothesis) and is shared with every agent. The Critic's Review uses tools to inspect Experts' cited tool calls and results, then scores findings on a five-level credibility rubric. The Critic's Timeline consolidates credible findings chronologically, de-duplicates them and flags the top three gaps. Across 170,000 reviewed findings, just over a quarter scored below plausible, which is why the system uses a stronger model for the Critic and keeps its review tasks narrowly scoped.

Assumes: LLM context windowsmulti-agent orchestrationtool calling

Related posts

  • Streamlining Security Investigations with Agents

    Slack Engineering mediumAdept

    Slack's Security Engineering team replaced a single-prompt prototype for triaging security alerts with a multi-agent system that chains narrowly scoped model invocations, each constrained by a JSON-schema structured output. A Director agent questions four domain experts (Access, Cloud, Code, Threat), and a Critic scores their findings against a rubric and builds a timeline from the most credible ones. The investigation moves through discovery, trace and conclude phases. A "knowledge pyramid" assigns low-, medium- and high-cost models to experts, critic and director respectively to manage token spend. A hub, worker and dashboard architecture supports real-time observation and integration with existing detection tools, and an example shows the Critic catching a credential exposure the expert had missed.

  • Why human insight is a strategic advantage for building better agents

    LangChain easyNovice

    Human review of agent traces supplies the domain judgment that automated evals lack, and it works best when reviewers see the full multi-turn conversation rather than an isolated step. Reviewer scores and written reasoning, captured in annotation queues, can be reused to align LLM judges by comparing their scores against human labels, to fix online evaluators that keep missing the same failure, and to seed golden datasets for offline regression testing. LangSmith now supports whole threads as annotation-queue items, shown as a readable trajectory, and Fetch Rewards uses this to check tool grounding, product images and offer availability before tuning its automated judges.

  • Five things you can do with Sentry’s Agent Tracing

    Sentry mediumAdept

    Sentry's Agent Tracing captures model calls, tool executions and multi-agent handoffs in a single trace, and Sentry Cookbook recipes build workflows on top of that data. One recipe exports production conversations with `sentry agent-conversation list` (CLI 0.44+), maps them to eval records, upserts them into Braintrust, Langfuse, promptfoo or Arize Phoenix, and scores them with deterministic checks plus an LLM judge reserved for subjective quality. Practical traps it calls out: summing tokens from raw `gen_ai.invoke_agent` spans double-counts, the CLI defaults to only 25 conversations over 7 days, and recorded prompts may contain PII. A second recipe runs a daily Claude scheduled task that uses the Sentry MCP server to triage agent failures and file Linear tickets.

  • 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.

  • IBM and UC Berkeley Diagnose Why Enterprise Agents Fail Using IT-Bench and MAST

    Hugging Face mediumAdept

    Applying the MAST failure taxonomy to 310 annotated ITBench SRE agent traces shows that frontier models fail in isolated ways (Gemini-3-Flash averages 2.6 failure modes per failed trace). Open models fail through cascading errors (Kimi-K2 4.7, GPT-OSS-120B 5.3), where an early reasoning-action mismatch poisons context and leads to derailment. Incorrect verification is the strongest predictor of failure overall: agents declare success without checking ground truth. Kimi-K2 struggles mainly with termination, and GPT-OSS-120B loses conversation history in 24% of traces. The recommended fixes are architectural rather than prompt tweaks: external tool-based verification gates, termination and loop control via state machines outside the model, explicit clarify-or-read-only branches, and aggressive context hygiene.

The quest for software engineering knowledge.

Look:
Layout: