agents-from-scratch
CLAUDE.md2.4k starsChanged 18 months agoMITView on GitHub
This repository demonstrates building agents using LangGraph, focusing on an email assistant that can: - Triage incoming emails - Draft appropriate responses - Execute actions (calendar scheduling, etc.) - Incorporate human feedback - Learn from past interactions Recommended: Using uv (faster and more reliable) Alternative: Using pip The package is installed as interrupt_workshop with import name email_assistant, allowing you to import from anywhere with from email_assistant import ... The repository contains several implementations with increasing complexity in src/email_assistant: Each aspect…
- Installs packages
Trending
Quiet since August.thin dataabout the whole repository
Who's talking about langchain-ai/agents-from-scratch
- @tommis.fi“Multi-Agent Systems Don't Build Multi-Agents (Cognition): cognition.ai/blog/dont-bu... Multi-Agent Research …”Bluesky · Sep 11, 2025 · 2 likes
- @tom-doerr.bsky.social“https://github.com/langchain-ai/agents-from-scratch”Bluesky · Aug 17, 2026 · 1 likes
- leaf468/autothreads“📱 SNS 콘텐츠 - 2026-04-20 17:09 KST”GitHub · Apr 20, 2026
- leaf468/autothreads“🤖 AI 트렌드 리포트 - 2026-04-20 17:09 KST”GitHub · Apr 20, 2026
- PaWeRe/siva“Implement langgraph version of multi-agent system”GitHub · Aug 7, 2025
The biggest 5 of 6 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 6
Talked about on GitHub and Bluesky (6 times).
On GitHub · 4
- Apr 20, 2026📱 SNS 콘텐츠 - 2026-04-20 17:09 KST — leaf468/autothreads0 reactions
- Apr 20, 2026🤖 AI 트렌드 리포트 - 2026-04-20 17:09 KST — leaf468/autothreads0 reactions
- Aug 7, 2025Implement langgraph version of multi-agent system — PaWeRe/siva0 reactions
- Jul 25, 2025Add Human-in-the-Loop (HITL) Support to DurableAgent — dapr/dapr-agents0 reactions · 8 comments
On Bluesky · 2
- Sep 11, 2025Multi-Agent Systems Don't Build Multi-Agents (Cognition): cognition.ai/blog/dont-bu... Multi-Agent Research System (Anthropic):… — @tommis.fi2 likes and reposts · 1 reply
- Aug 17, 2026https://github.com/langchain-ai/agents-from-scratch — @tom-doerr.bsky.social1 likes and repost · 1 reply
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 74
Test to ensure all implementations work:
- Distinctive: line 85
Test all notebooks to ensure they run without errors:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agents in this Repository
Overview
This repository demonstrates building agents using LangGraph, focusing on an email assistant that can:
- Triage incoming emails
- Draft appropriate responses
- Execute actions (calendar scheduling, etc.)
- Incorporate human feedback
- Learn from past interactions
Environment Setup
Recommended: Using uv (faster and more reliable)
# Install uv if you haven't already
pip install uv
# Install the package with development dependencies
uv sync --extra devAlternative: Using pip
# Create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Ensure you have a recent version of pip (required for editable installs with pyproject.toml)
python3 -m pip install --upgrade pip
# Install the package in editable mode
pip install -e .The package is installed as interrupt_workshop with import name email_assistant, allowing you to import from anywhere with from email_assistant import ...
Agent Implementations
Scripts
The repository contains several implementations with increasing complexity in src/email_assistant:
- LangGraph 101 (
langgraph_101.py)- Basics of LangGraph
- Basic Email Assistant (
email_assistant.py)- Core email triage and response functionality
- Human-in-the-Loop (
email_assistant_hitl.py)- Adds ability for humans to review and approve actions
- Memory-Enabled HITL (
email_assistant_hitl_memory.py)- Adds persistent memory to learn from feedback
- Gmail Integration (
email_assistant_hitl_memory_gmail.py)- Connects to Gmail API for real email processing
Notebooks
Each aspect of the agent is explained in dedicated notebooks:
notebooks/langgraph_101.ipynb- LangGraph basicsnotebooks/agent.ipynb- Basic agent implementationnotebooks/evaluation.ipynb- Agent evaluationnotebooks/hitl.ipynb- Human-in-the-loop functionalitynotebooks/memory.ipynb- Adding memory capabilities
Running Tests
Testing Scripts
Test to ensure all implementations work:
# Test all implementations
python tests/run_all_tests.py --all(Note: This will leave out the Gmail implementation email_assistant_hitl_memory_gmail from testing.)
Testing Notebooks
Test all notebooks to ensure they run without errors:
# Run all notebook tests directly
python tests/test_notebooks.pyDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

