agentleFS
thehumanworksthehumanworks/langchain-claude-code/AGENTS.md

langchain-claude-code

AGENTS.md1 starsChanged 12 months agoMITView on GitHub

  • Installs packages

The file

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

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

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Prefer uv (uses uv.lock) for reproducible environments.

    line 12
  2. Very specific:

    Use normalize_tools and ClaudeTool enums when handling allowlists.

    line 17
  3. Very specific:

    Every new feature or bugfix must ship with a test (policy captured in .cursor/rules/langchain-claude-code.mdc).

    line 22
  4. Distinctive:

    Write concise commits summarizing the change and its scope.

    line 26
  5. Very specific:

    When binding LangChain tools, use bind_tools([...]) or enable_tools([...]).

    line 31
  6. Distinctive:

    Always enable tests for new agent flows.

    line 33

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

Repository Guidelines

Project Structure & Module Organization

  • Source code lives in src/langchain_claude_code/ (chat model, tool catalog, examples like main.py and deep.py).
  • Tests are in tests/ and must accompany any new behavior.
  • Repository rules live in .cursor/rules/ (project conventions and agent notes).

Build, Test, and Development Commands

  • python -m unittest discover -v tests — run the full test suite.
  • uv run src/langchain_claude_code/main.py — example invocation with DuckDuckGo tool.
  • uv run src/langchain_claude_code/deep.py — DeepAgent demo.
  • Prefer uv (uses uv.lock) for reproducible environments; pip install -e . works for local edits.

Coding Style & Naming Conventions

  • Python 3.12+, async-first APIs; keep sync shims minimal.
  • Pydantic models/fields for config; prefer model_copy(update=...) over mutating state.
  • Use normalize_tools and ClaudeTool enums when handling allowlists; avoid raw strings.
  • Comments should be short and purposeful; keep files ASCII.

Testing Guidelines

  • Framework: unittest; locate tests under tests/ with test_*.py naming.
  • Every new feature or bugfix must ship with a test (policy captured in .cursor/rules/langchain-claude-code.mdc).
  • For tool/agent behavior, add assertions for response metadata (tool_results, internal_tool_calls) and streamed chunks when relevant.

Commit & Pull Request Guidelines

  • Write concise commits summarizing the change and its scope; use present tense (e.g., "Add tool result capture to metadata").
  • PRs should include: what changed, why, testing performed (python -m unittest ...), and any new docs or examples touched.
  • Link issues or tickets when available; include screenshots/log snippets for user-visible changes (CLI output is sufficient).

Agent-Specific Instructions

  • When binding LangChain tools, use bind_tools([...]) or enable_tools([...]); tool outputs should surface in response_metadata.tool_results.
  • To align LangGraph threads with provider sessions, use resume_from_thread(thread_id); keep allowed_tools explicit for safety.
  • Always enable tests for new agent flows; an untested feature is treated as broken by default.

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.