An AI agent framework for running LLM agents as local background processes and interacting with them through a terminal CLI.
Deep Worker is a fork and continuation of
deepagents-cli (content-equivalent
to langchain-ai/deepagents@8f8fc98): agents run as daemon processes, persist
conversation history, and are driven interactively with dwcli.
| Directory | Purpose |
|---|---|
deep_worker/deep_worker_cli |
Core agent runtime: deep-worker daemon and dwcli interactive client |
claude_code_sdk_provider |
Claude Code provider — LangChain BaseChatModel backed by the Claude Code SDK |
codex_provider |
OpenAI Codex CLI provider — drop-in sibling of claude_code_sdk_provider |
grok_provider |
xAI Grok CLI provider (Agent Client Protocol, ACP v1) |
dw_hist |
dw-hist — host-level CLI for semantically browsing agent conversation history |
lsp |
Optional LSP code navigation for agents (Serena MCP integration) |
semantic_search |
Semantic search over history (LlamaIndex + LanceDB) and per-message embeddings |
deep_worker_web |
Local web UI for working with deep-worker agents (127.0.0.1 only) |
tools |
Helper tools: custom agent tools, memory monitoring, RSS monitor |
Deep Worker is developed to run from a source checkout with the system Python —
no virtual environment (see deep_worker/README.md for why).
# 1. Make the launchers globally available (project policy: no pip install)
ln -sf "$PWD/deep_worker/deep_worker_cli/deep-worker" ~/.local/bin/deep-worker
ln -sf "$PWD/deep_worker/deep_worker_cli/dwcli" ~/.local/bin/dwcli
# 2. Start an agent as a background daemon
deep-worker my_agent
# 3. Connect to it interactively
dwcli my_agentThe agent daemon and the CLI communicate over rpyc_async — an
AsyncioServer-based RPyC fork — on 127.0.0.1. All services bind to
localhost only and are designed for local trusted environments — see
deep_worker/deep_worker_cli/SECURITY.md.
- External MCP tools — attach tools from external MCP servers, layered configuration (user-global → project → per-agent → CLI)
- A2A protocol support — inbound A2A server plus outbound tools for agent-to-agent interoperability
- Delta checkpointer — store only checkpoint changes, not full state
read_imagetool — pass image files to vision-capable providerssend_message_to_agenttool — inter-agent messaging with replies- Summarization — automatic context compaction plus on-demand
deep-worker <agent> --summarize - Storage auto-migration (v4) — agents migrate to the current storage format automatically on restart
See docs/ARCHITECTURE_OVERVIEW.md for the
full architecture map.
docs/— component documentation, design notes and internal policiesdocs/ARCHITECTURE_OVERVIEW.md— architecture overview: daemon model, components, storage, notable featuresdeep_worker/deep_worker_cli/README.md— CLI usage, storage options, thread managementdw_hist/README.md—dw-histusagelsp/README.md— LSP code navigation for agentssemantic_search/docs/README_MESSAGE_EMBEDDINGS.md— per-message embeddings
MIT. Upstream portions are Copyright (c) LangChain, Inc.; local contributions are Copyright (c) Roman Rodionov.