Persistent Agent

An always-on, goal-driven teammate that lives in one Slack bot, with personal memory and background work.

Stars
★ 195
Last updated
1d ago
FARS reviewed
Dec 01, 2026
License
MIT
Primary language
Python

At a glance

How it runs
CLIChat botHosted service
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
uvLangSmith workspace on a Plus or Enterprise planAnthropic or OpenAI API keySlack workspace where apps can be installedShell / CLINetwork accessLocal filesystemMCP Server
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

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.

  1. 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.
  2. 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.
  3. A product marketer asks for a background competitive pricing study; a research subagent runs asynchronously and reports back into the DM.
  4. 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.
  5. A manager sets "Every Friday at 4, summarize what I shipped" to get a timezone-aware recurring recap without writing any code.
  6. 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_KEY LANGSMITH_WORKSPACE_ID TOOLS_MCP_URL AGENT_MODEL ANTHROPIC_API_KEY LANGCHAIN_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 .env

In 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 deploy

If 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 .env

How 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
!clear

To 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 deploy

Safety 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
56/ 100 5-point scale 2.8 / 5
Trust 14/29
Reliability 8/14
Adaptability 12/18
Convention 10/18
Effectiveness 7/13
Verifiability 5/8
Why each dimension lost points
Trust14 / 29 · 2.4/5

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.

Reliability8 / 14 · 2.9/5

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.

Adaptability12 / 18 · 3.3/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability5 / 8 · 3.1/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Dec 01, 2026 Reviewed revision 16a845eda5d0
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/persistent-agent.svg)](https://followagents.com/en/agents/persistent-agent)
<a href="https://followagents.com/en/agents/persistent-agent"><img src="https://followagents.com/badge/persistent-agent.svg" alt="FARS review"></a>

FAQ

Does everyone get their own agent?
No. Everyone shares one deployment and one Slack bot, but memory, schedules, goals, apps and browser logins are per person, and personal memory never loads in a shared channel.
What does it cost to run?
The code is MIT licensed, but the quickstart requires a LangSmith workspace on a Plus or Enterprise plan and a paid Anthropic or OpenAI API key; a Claude chat subscription alone does not supply API billing.
Whose credentials do tool calls use?
Each person's own connected accounts. The kit creator connects an account so the kit editor can load and list tools, but every user authorizes separately through a private link the bot sends in their DM, and forwarding that link does not work.
Can it book, buy, send or delete things on its own?
Only within what a user has asked for. It requests a yes before booking, buying, sending or deleting, and it offers help only rarely in channels.
How do I reset my data or change its workflows?
Send !clear to forget everything about that user and cancel their schedules. To change behavior, edit instructions.md and skills/, add a Playbook by adding a skill whose description starts with "Playbook:", then redeploy.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts