langchain-ai/langchain

GitHub
https://github.com/langchain-ai/langchain

The agent engineering platform.

Stars:
149k
Language:
Python
Default branch:
master
Last scored:
Overall

At a glance

Rank
#357 of 401
#53 of 56 Python repos
Checks passed
5 of 17
Full list below
Best set up for
Claude Code
Score 58.9
Needs most work for
Aider
Biggest fix: .aider.conf.yml (+14.1 pts)

What it has

What it's missing

What to fix first

Pick an AI agent

Showing fixes for Claude Code

  1. 1
    Dependency manifest
    Commit a proper manifest (package.json, pyproject.toml, Cargo.toml, go.mod, etc.) plus a lockfile.
    +9.2 pts
  2. 2
    Linter / formatter config
    Configure a linter/formatter (ESLint+Prettier, Biome, Ruff, rustfmt+clippy, golangci-lint) and commit the config.
    +7.9 pts
  3. 3
    Type configuration
    Add a type config (tsconfig.json for JS/TS, mypy.ini or pyrightconfig.json for Python). Rust/Go/JVM/Scala/Swift/C#/OCaml/Haskell/Zig are typed by default.
    +7.9 pts

Score for each AI agent

Each agent weighs the checks by its own docs. Under each score are its top three. How each agent is scored →

Claude Code
#326 of 401
58.9
  • ✓AGENTS.md / CLAUDE.md
  • ~Test suite
  • ~Reproducible dev env
Codex
#343 of 401
55.7
  • ✓AGENTS.md / CLAUDE.md
  • ✓README
  • ~Test suite
Kimi Code CLI
#332 of 401
54.9
  • ✓AGENTS.md / CLAUDE.md
  • ~Test suite
  • ✗Dependency manifest
Pi
#340 of 401
53.3
  • ✓AGENTS.md / CLAUDE.md
  • ~Test suite
  • ✗Linter / formatter config
Devin
#358 of 401
52.7
  • ~Reproducible dev env
  • ✗Dependency manifest
  • ~Test suite
OpenHands
#364 of 401
48.8
  • ✓CI configuration
  • ✗Dependency manifest
  • ~Reproducible dev env
Gemini CLI
#367 of 401
46.4
  • ✗GEMINI.md
  • ✓README
  • ~Test suite
Cursor
#370 of 401
44.1
  • ✗Cursor rules (.cursor/rules)
  • ✓README
  • ✗Type configuration
Aider
#374 of 401
41.5
  • ✗.aider.conf.yml
  • ✗Linter / formatter config
  • ~Test suite

Does langchain-ai/langchain have agent instructions?

An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.

AGENTS.md / CLAUDE.md
AGENTS.md (new tab) · 20,351 characters
Agent-specific files
None: no GEMINI.md, .cursor/rules, .openhands/setup.sh, .aider.conf.yml or .agents/skills
Repos that have one
29 of 56 Python repos · 221 of 401 repos on the leaderboard · See examples →

All 17 checks · 5 passed

No .agents/skills/<name>/SKILL.md
Substantive (20,351 characters)
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
CI configuration· 100% pass
27 GitHub Actions workflows
No CONTRIBUTING file
No .cursor/rules/*.mdc or .cursorrules
No dependency manifest found
Has .devcontainer/devcontainer.json
GEMINI.md· 0% pass
No GEMINI.md at repo root
License file· 100% pass
License present
No linter/formatter config found
No .openhands/setup.sh
Hook framework configured
README· 100% pass
README detailed (5,890 characters)
Manageable size· 50% pass
3144 files — large
Test suite· 70% pass
Test files detected (.github/scripts/test_check_diff.py)
No type config found

How langchain-ai/langchain compares

vs leaderboard average
16.1 pts below
Average 66.8
vs Python average
20.3 pts below
Average 71.0
Stars among Python repos
#5 of 56

Missing here, and how many repos have it

  • Dependency manifest · passed by 92% of leaderboard repos, 89% of Python repos
  • CONTRIBUTING guide · passed by 86% of leaderboard repos, 88% of Python repos
  • Type configuration · passed by 68% of leaderboard repos, 57% of Python repos

Passes checks most repos miss

  • Pre-commit / git hooks · only 29% of repos pass it

One fix for the most agents: Linter / formatter config would raise the score for all 9 agents, by up to 14.1 points.

Similar repos

Same language and host as this repo, closest in overall score.

All Python repos →

Same topics, any language

Repos tagged with the same GitHub topics, most shared first.

  • TypeScript · AI agents, anthropic, gemini, generative ai, LLM, OpenAI
  • Python · AI agents, chatgpt, generative ai, LLM, multiagent
  • TypeScript · anthropic, gemini, generative ai, LLM, OpenAI
  • TypeScript · AI agents, anthropic, gemini, OpenAI, rag
  • Python · anthropic, langchain, LLM, OpenAI
  • Python · anthropic, chatgpt, gemini, OpenAI

Add a badge to your README

Paste this at the top of the README. It shows the score, and links back to this page.

Agent friendly score for github/langchain-ai/langchain
[![Agent Friendly](https://agentfriendlycode.com/api/badge/github/langchain-ai/langchain.svg)](https://agentfriendlycode.com/repo/github/langchain-ai/langchain)

Check the score on every pull request

A GitHub Action posts one comment per pull request with how the score changed and why.