agentleFS
LangChainKnown publisherlangchain-ai/langsmith-sdk/python/AGENTS.md

langsmith-sdk / python

AGENTS.md1.1k starsChanged 2 months agoMITView on GitHub

This folder contains the Python version of the LangSmith SDK. When modifying code in this library, always run the following commands from this directory before submitting a pull request: These commands format the code, run static analysis, and execute the test suite respectively. To run a particular test file or pass custom pytest arguments, set the TEST environment variable. For example: Any pytest options may be included inside the TEST variable. Releasing the SDK is governed exclusively by the "Cutting…

Trending

Quiet since July.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 3 mentionsMay 2026: 36 mentionsJun 2026: 7 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the langchain-ai/langsmith-sdk repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about langchain-ai/langsmith-sdk

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

See all 49

Talked about on GitHub (49 times).

On GitHub · 49

44 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

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

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    When modifying code in this library, always run the following commands from this directory before submitting a pull request:

    line 5
  2. Very specific:

    Do not hardcode a leading /v1 (or other api_url-dependent prefix) into request paths.

    line 41
  3. Very specific:

    When adding a new platform endpoint, follow the same pattern instead of inlining /v1/platform/....

    line 52

≈ “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

Instructions for code modifications in the Python SDK

This folder contains the Python version of the LangSmith SDK.

When modifying code in this library, always run the following commands from this directory before submitting a pull request:

make format
make lint
make tests

These commands format the code, run static analysis, and execute the test suite respectively.

To run a particular test file or pass custom pytest arguments, set the TEST environment variable. For example:

TEST=tests/unit_tests/test_client.py make tests

Any pytest options may be included inside the TEST variable.

Releasing

Releasing the SDK is governed exclusively by the "Cutting a release" section of ../CONTRIBUTING.md. When asked to cut or publish a release, you must follow that process: use the documented uv run bump2version flow and open a version-bump PR against main. Do not hand-edit langsmith/__init__.py or .bumpversion.cfg, bump the version by any other means, push tags, or invent an alternative release path.

Notes

  • The project uses uv for dependency management and the Makefile commands will automatically run inside the uv environment.
  • make tests sets some environment variables (such as disabling network access) for reliability. If a test requires network access, adjust it accordingly.

Conventions

Constructing request URLs

Do not hardcode a leading /v1 (or other api_url-dependent prefix) into request paths. LANGSMITH_ENDPOINT may already include /api/v1, so a hardcoded /v1/... produces a duplicated /api/v1/v1/... path and 404s.

For platform endpoints, build the path with the existing helpers so the /v1 prefix is only added when the configured api_url does not already end in /v1:

  • langsmith._internal._hub.platform_hub_path(api_url) for hub (agent/skill) repos.
  • _platform_path(api_url, path) / _dataset_examples_path(api_url, dataset_id) in langsmith/client.py for other platform paths.

When adding a new platform endpoint, follow the same pattern instead of inlining /v1/platform/....

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.