agentleFS
LangChainKnown publisherlangchain-ai/deepagents/libs/evals/AGENTS.md

deepagents / evals

AGENTS.md30k starsChanged 3 months agoMITView on GitHub

Quick reference for agents (and humans) running the Deep Agents eval suite. The canonical interface is the deepagents-evals console script, installed with this package. The Makefile targets remain available for parity with CI. Subcommands: Most subcommands accept: Before kicking off a run, ask the CLI what's available — no source-grepping required: Set DEEPAGENTS_EVALS_MODEL once and omit --model: scripts/run_trials.py honors the same env var when invoked directly, and supports its own --json flag for compact stdout output.

  • Reads credentials

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about langchain-ai/deepagents

The biggest 5 of 62 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 62

Talked about on GitHub, Bluesky and Hacker News (62 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 10

5 more on Bluesky

On Hacker News · 2

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 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.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before kicking off a run, ask the CLI what's available — no source-grepping required:

    line 32
  2. Distinctive:

    Use these codes to drive automation.

    line 91
  3. Very specific:

    Keep PROVIDER_TO_PACKAGE in .github/scripts/evals/prune_agent_deps.py in sync with every prunable provider package in that file.

    line 184
  4. Very specific:

    Run python -m pytest .github/scripts/tests/evals/test_prune_agent_deps.py (also covered by CI's Validate Release Options job).

    line 186

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

libs/evals agent guide

Quick reference for agents (and humans) running the Deep Agents eval suite. The canonical interface is the deepagents-evals console script, installed with this package. The Makefile targets remain available for parity with CI.

Canonical entry point

deepagents-evals --help
deepagents-evals <subcommand> --help

Subcommands:

SubcommandPurpose
runRun the eval suite once (single trial).
trialsRun the eval suite N times and aggregate metrics.
aggregateAggregate previously-written trial reports.
radarGenerate a radar chart from results.
catalogRegenerate or check EVAL_CATALOG.md.
model-groupsRegenerate or check MODEL_GROUPS.md.
listDiscover categories / tiers / models / evals.

Most subcommands accept:

  • --json — emit machine-readable JSON on stdout.
  • --dry-run — print the underlying invocation without executing.

Discovery

Before kicking off a run, ask the CLI what's available — no source-grepping required:

deepagents-evals list categories                  # eval categories
deepagents-evals list tiers                       # e.g. baseline | hillclimb
deepagents-evals list models --json               # full eval-tagged registry
deepagents-evals list models --group set0         # one preset
deepagents-evals list models --provider anthropic # one provider
deepagents-evals list evals --category memory     # eval functions in a category

Common workflows

# Single trial against one model.
deepagents-evals run --model claude-opus-5

# Restrict to a category and tier, and write a JSON report.
deepagents-evals run \
    --model openai:gpt-6-astra \
    --eval-category memory \
    --eval-tier baseline \
    --report evals_report.json

# Three trials with stats aggregation.
deepagents-evals trials --model openai:gpt-6-astra --trials 3

# Re-run only the failures from a prior trial sweep.
deepagents-evals trials \
    --model openai:gpt-6-astra \
    --trials 1 \
    --retry-failed trial_runs/trials_summary.json

# Aggregate CI artifacts after a fan-out workflow.
deepagents-evals aggregate ./downloaded-artifacts --summary-out summary.json

Default model env var

Set DEEPAGENTS_EVALS_MODEL once and omit --model:

export DEEPAGENTS_EVALS_MODEL=claude-sonnet-5
deepagents-evals run
deepagents-evals trials --trials 3

scripts/run_trials.py honors the same env var when invoked directly, and supports its own --json flag for compact stdout output.

Exit codes

CodeMeaning
0Success.
1Eval failures. run saw a non-zero pytest exit; trials / aggregate produced a summary whose aggregated counts.failed.mean is greater than zero; radar failed.
2Configuration error: missing --model, model-registry import failed, or a --check drift detector (catalog --check, model-groups --check) found that a generated file is stale. argparse usage errors also exit 2.
3No usable reports: trials / aggregate produced no summary, or --retry-failed could not parse any prior reports.

Use these codes to drive automation; do not parse human-readable output.

The pytest_reporter plugin rewrites the per-trial pytest exit status to 0 even when individual evals fail (so a CI shell step doesn't fail the workflow). The CLI therefore reads trials_summary.json's aggregated counts.failed.mean to decide whether to return 1, not the per-trial pytest_returncode field.

Required environment

The eval suite refuses to start without LangSmith tracing enabled:

export LANGSMITH_TRACING=true
export LANGSMITH_API_KEY=...

Provider keys (any of OPENAI_API_KEY, ANTHROPIC_API_KEY, ...) are required to match the chosen --model.

trials_summary.json schema

deepagents-evals trials and deepagents-evals aggregate write a summary file with this shape:

{
  "n_trials": 3,
  "model": "openai:gpt-6-astra",
  "sdk_version": "0.5.7",
  "metrics": {
    "correctness":       {"n": 3, "mean": 0.84, "median": 0.85, "stdev": 0.02, "min": 0.82, "max": 0.86},
    "solve_rate":        {"n": 3, "mean": 0.71, "median": 0.70, "stdev": 0.03, "min": 0.68, "max": 0.74},
    "step_ratio":        {"n": 3, "mean": 1.10, "median": 1.10, "stdev": 0.01, "min": 1.09, "max": 1.11},
    "tool_call_ratio":   {"n": 3, "mean": 1.05, "median": 1.05, "stdev": 0.01, "min": 1.04, "max": 1.06},
    "median_duration_s": {"n": 3, "mean": 4.30, "median": 4.31, "stdev": 0.05, "min": 4.25, "max": 4.34}
  },
  "counts": {
    "passed":  {"n": 3, "mean": 17.0, "median": 17, "stdev": 0.0, "min": 17, "max": 17},
    "failed":  {"n": 3, "mean":  3.0, "median":  3, "stdev": 0.0, "min":  3, "max":  3},
    "skipped": {"n": 3, "mean":  0.0, "median":  0, "stdev": 0.0, "min":  0, "max":  0},
    "total":   {"n": 3, "mean": 20.0, "median": 20, "stdev": 0.0, "min": 20, "max": 20}
  },
  "category_scores": {
    "memory":          {"n": 3, "mean": 0.83, "median": 0.83, "stdev": 0.0, "min": 0.83, "max": 0.83},
    "tool_use":        {"n": 3, "mean": 0.90, "median": 0.90, "stdev": 0.0, "min": 0.90, "max": 0.90},
    "file_operations": {"n": 3, "mean": 0.78, "median": 0.78, "stdev": 0.0, "min": 0.78, "max": 0.78}
  },
  "trials": [
    {
      "trial_index": 1,
      "created_at": "2026-05-06T14:23:11+00:00",
      "passed": 17, "failed": 3, "skipped": 0, "total": 20,
      "correctness": 0.85,
      "solve_rate": 0.70,
      "step_ratio": 1.10,
      "tool_call_ratio": 1.05,
      "median_duration_s": 4.31,
      "category_scores": {"memory": 0.83, "tool_use": 0.90, "file_operations": 0.78},
      "experiment_urls": ["https://smith.langchain.com/..."],
      "pytest_returncode": 0
    }
  ]
}

Notes on the per-trial entries:

  • pytest_returncode is populated by the trial runner only on the live-execution path. It is not written by pytest_reporter, so it may be missing from individual evals_report_trial_NNN.json files and from summaries produced via --aggregate-only.
  • pytest_reporter rewrites pytest's session exit status to 0 even when tests fail, so pytest_returncode is not a reliable failure signal — use counts.failed.mean instead.

Per-trial evals_report_trial_NNN.json files written by pytest_reporter contain the metrics shown above and additionally carry a failures array used by --retry-failed:

{
  "failures": [
    {
      "test_name": "tests/evals/test_memory.py::test_memory_recall[claude-sonnet-5]",
      "category": "memory",
      "failure_message": "AssertionError: ..."
    }
  ]
}

Vendored data

Files under tests/evals/tau2_airline/data/ are vendored from tau-bench and must remain byte-identical to upstream. Do not reformat them or remove their exclusions from .pre-commit-config.yaml.

Harbor LangGraph agent deps

The Harbor agent config at deepagents_harbor/langgraph_project/langgraph.json is the source of truth for which packages the agent env installs. When changing its dependencies (especially provider packages):

  • Keep PROVIDER_TO_PACKAGE in .github/scripts/evals/prune_agent_deps.py in sync with every prunable provider package in that file.
  • Wire credentials / agent-env for new providers in the Harbor workflow.
  • Run python -m pytest .github/scripts/tests/evals/test_prune_agent_deps.py (also covered by CI's Validate Release Options job).

Those tests load the real langgraph.json directly; do not reintroduce a hand-copied dependency fixture.

Relationship to the Makefile

make evals MODEL=... and make evals-trials MODEL=... TRIALS=... still work and remain the form CI invokes. The console script is a strict superset — every flag the Makefile passes through to pytest is exposed as a first-class option on deepagents-evals run / trials, plus the discovery and JSON-output features the Makefile cannot offer.

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.