Persistent Agent
An always-on, goal-driven teammate that lives in one Slack bot, with personal memory and background work.
- Source repo
- langchain-samples/Persistent-Agent
- Stars
- ★ 195
- Last updated
- 1d ago
- FARS reviewed
- Dec 01, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 56/100 · Major gaps
At a glance
- How it runs
- Works with
- Platform-specificOpenAI API · Claude API (Partial support)
- Cost
- Needs a paid subscription or licence
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A team lead wants a daily start-of-day digest and gets it by saying "Send me a morning brief", which adopts the Morning Brief Playbook.
- Not a fit if
- Teams without a LangSmith Plus or Enterprise workspace that need full self-hosting
- Organizations whose team chat is not Slack
- Individuals wanting a zero-config trial with no platform account
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-30+10.8 ★/day over 7 days
- Source review
- 56/100 · Major gaps
What does this agent do, and when should you use it?
Persistent Agent is a sample repository from langchain-samples that packages a proactive, always-on assistant as a single Slack bot running on LangSmith Managed Deep Agents (MDA). Everyone shares one deployment and one bot, but memory, schedules, goals, connected apps and browser logins are per person, and personal memory never loads in a shared channel. Tools such as Gmail, GitHub, Slack and Linear arrive through a LangSmith Tool Gateway tool kit whose MCP URL is wired up in tools/mcp.py, with LangSmith authentication and ?mode=search appended. Behavior is defined by instructions.md and the skills/ directory, where any skill whose description starts with "Playbook:" becomes a reusable workflow. The deployment boundary is explicit: uv run mda deploy pushes the project to the LangSmith hosted runtime, and the Slack channel is already declared in channels/slack.py, so no hand-written Slack app manifest or bot token is required.
A user DMs the bot or @mentions it in a channel thread. The agent interprets the request and either applies a matching Playbook from skills/ (for example a Morning Brief), creates a recurring scheduled task in the user's timezone ("Every Friday at 4, summarize what I shipped"), or records a goal it checks hourly until done ("Let me know when the release PR is approved"). Research and review work is handed to background subagents that report back asynchronously. During execution the agent calls tools from the connected tool kit through tools/mcp.py (Gmail, GitHub, Slack, Linear, Google Workspace and others), and can drive a browser to interact with websites. A nightly "Dreaming" job cleans up and consolidates memory. In channels it follows only the thread it was mentioned in and stays quiet when it has nothing useful to add, and it asks for confirmation before booking, buying, sending or deleting anything. Sending !clear erases that user's memory and cancels their schedules.
- A team lead wants a daily start-of-day digest and gets it by saying "Send me a morning brief", which adopts the Morning Brief Playbook.
- An engineer wants release feedback without polling GitHub, so they record "Let me know when the release PR is approved" and the agent checks hourly until it is.
- A product marketer asks for a background competitive pricing study; a research subagent runs asynchronously and reports back into the DM.
- A project team adds the bot to a channel and @mentions it so it can pull together context spread across Gmail, Linear and GitHub inside that thread.
- A manager sets "Every Friday at 4, summarize what I shipped" to get a timezone-aware recurring recap without writing any code.
- A workspace that wants livelier Slack behavior connects Slack tools and adds emoji search and reaction tools so the bot can answer with custom workspace emojis.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Environment variables
LANGSMITH_API_KEYLANGSMITH_WORKSPACE_IDTOOLS_MCP_URLAGENT_MODELANTHROPIC_API_KEYLANGCHAIN_API_KEY- Config files
.env.example.env
How do you install or deploy this agent?
Prerequisites: uv (it installs the right Python for you), a LangSmith workspace on a Plus or Enterprise plan, an Anthropic or OpenAI API key, and a Slack workspace where you can install apps.
Clone, install dependencies and copy the env template:
git clone https://github.com/langchain-samples/Persistent-Agent.git
cd Persistent-Agent
uv sync
cp .env.example .envIn LangSmith, create a Personal Access Token and copy the workspace ID; in Tools → MCP servers connect built-in integrations (Slack, Gmail, GitHub, Linear, …); in Tools → Tool kits create a Workspace-scoped kit and copy its MCP URL. Then fill in .env:
LANGSMITH_API_KEY=<your-langsmith-personal-access-token>
LANGSMITH_WORKSPACE_ID=<your-workspace-id>
TOOLS_MCP_URL=<your-tool-kit-mcp-url>
AGENT_MODEL=anthropic:claude-opus-5-5
ANTHROPIC_API_KEY=<your-anthropic-api-key>For OpenAI direct or the LangSmith LLM Gateway, swap only the model lines and keep exactly one active AGENT_MODEL. Deploy from the repository directory:
uv run mda deployIf your shell already exports a LangSmith key, force the PAT from .env instead:
env -u LANGSMITH_API_KEY -u LANGCHAIN_API_KEY uv run mda deploy --env-file .envHow do you use this agent?
After deployment, DM the bot "hi" in Slack and complete any personal app connection prompts; add it to a channel and @mention it to start a thread. Typical utterances:
Send me a morning brief
Every Friday at 4, summarize what I shipped
Let me know when the release PR is approved
Research our top three competitors' pricing
!clearTo verify the starter documentation kit, ask "Use the LangChain documentation tool to explain how Managed Deep Agents schedules work." and confirm the tool call in LangSmith Studio or the run trace. To change behavior, edit instructions.md and skills/ and redeploy:
uv run mda deploySafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- One shared Slack bot serves a whole team while memory, schedules, goals, app connections and browser logins stay per person; personal memory is never loaded into shared channels.
- Background execution is a first-class design: research and review subagents run asynchronously, a nightly Dreaming job consolidates memory, and goals are re-checked hourly instead of answered once.
- Tooling goes through a LangSmith Tool Gateway kit MCP URL, with built-in integrations for Gmail, GitHub, Slack, Linear and Google Workspace, so no MCP server registration or bot token wiring is needed.
- Model choice is open: anthropic:claude-opus-5-5 by default, openai:gpt-6.1-sol directly, or langsmith:anthropic/claude-opus-5-5 through the LLM Gateway, with the same tool kit.
- Behavior is version-controlled in instructions.md and skills/, where a skill described as "Playbook: …" becomes a reusable workflow; the repository is MIT licensed.
- Hard dependency on LangSmith's hosted Managed Deep Agents runtime and a Plus or Enterprise workspace; there is no documented self-hosted path, and ui mda deploy is the only deployment route.
- Setup spans several moving parts: a LangSmith PAT, workspace ID, tool kit MCP URL, provider key, plus OAuth connections and kit creation inside the LangSmith UI.
- The README warns that an exported shell LangSmith key can take precedence over .env, which can silently deploy to the wrong workspace unless you use the env -u workaround.
- Just-in-time MCP authentication is not enabled, so missing account connections can be requested before the first run, and large kits make the first-run experience rougher.
- Slack is the only interaction channel declared (channels/slack.py), so teams standardized on another chat platform get no entry point.
How does this agent compare with similar options?
The repository names Deep Agents (langchain-ai/deepagents) as the open source harness underneath: choose Deep Agents directly if you need full self-hosting and your own orchestration, and choose this project when you want the managed runtime plus Slack channel, memory, schedules and the tool gateway already wired.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Persistent Agent This agent | 56 · Major gaps | CLIPaid | ★ 195 | 1d ago | Python | — |
| Ankita Desktop AI Workspace | 69 · Some gaps | Desktop appFree + model costs | ★ 18 | 1d ago | JavaScript | ChatGPT · OpenAI API |
| DoraBot Desktop Assistant | 45 · Major gaps | Desktop appFree + model costs | ★ 251 | 8d ago | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
| Markus AI Workforce | 51 · Major gaps | Desktop appFree + model costs | ★ 222 | today | TypeScript | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The README describes selectable tool kits, per-person account connections, Slack permission review during deployment, and keeping .env private. The goals and morning-brief skills require confirmation before consequential external actions, DM-only delivery for the brief, and prohibit treating memory as authorization. Reset tests show caller-scoped deletion of personal memory and schedules with verification. Deductions: the agent is always-on and has browser and broad integration capabilities, but this sample does not show detailed tool permission configuration or a general approval gate for external actions; side effects and recovery are not comprehensively documented. Only the core package is pinned; other dependencies lack pins and no security audit evidence is shown. Attribution is limited to the license and repository documentation; publisher identity is unverified.
Code and skills are broadly consistent about personal memory, personal schedules, DM scope, and background work. The CI file specifies linting, formatting, and unit tests; sampled tests cover schedule boundaries, reset isolation, and avoiding false success on failures. The README points to deployment status and revision logs for troubleshooting, while skills require stating when a source cannot be checked. Deductions: tests were not executed in this review; some dependencies are unpinned, and availability depends on hosted services, models, and connected accounts, with limited failure-handling evidence.
The README targets team Slack users and describes model, integration, and deployment options; skills define morning brief, onboarding, memory consolidation, and goal follow-up scenarios. Triggers, timing, timezone, DM/channel scope, and skipping stale morning briefs are fairly specific. Deductions: the sample gives incomplete guidance for unsupported tools, deployment variation, or fallbacks when capabilities are unavailable; scenarios center on Slack and LangSmith.
Files are organized across skills, tools, channels, tests, and deployment documentation. The README has a quickstart, detailed configuration, troubleshooting entry point, commands, environment variables, and examples. Package and agent names align, the core dependency is pinned, and a complete MIT license is present. Deductions: the README excerpt is truncated, so full limitations cannot be assessed; no changelog or clear maintenance owner is shown. Publisher identity is unknown and does not establish a maintenance commitment.
The product combines personal memory, goal follow-up, scheduled briefs, and tool calls in team Slack. Skills specify concise messages, action-first briefs, and skipping empty sections, supporting usable workflows. Deductions: value depends on a paid LangSmith plan, model charges, account authorization, and persistent background operation; the sample provides no cost or resource data and does not establish actual result quality.
The README provides setup steps, environment variables, deployment checks, and a way to check tool calls; agent.py shows model, tool, subagent, and background-schedule wiring; test files provide some matching source evidence. Skills require checking the source behind brief claims and disclosing unavailable sources. Deductions: this is a static review and tests were not executed; the packet is incomplete, and several product behaviors are documented mainly by the README without independent corroboration.
- This is a low-confidence static review; CI tests are listed but were not run, and the supplied README and skill files are truncated.
- Deployment requires LangSmith Plus or Enterprise, model credentials, and external tool accounts; review tool-kit permissions, shared credential scope, and Slack authorization before deployment.
- Background schedules and integrations may incur ongoing model costs or cause external effects; the sample does not provide full cost data, a permission matrix, or a general rollback process.
FAQ
Does everyone get their own agent?
What does it cost to run?
Whose credentials do tool calls use?
Can it book, buy, send or delete things on its own?
How do I reset my data or change its workflows?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.