Cline rules
.clinerules/langgraphjs.mdLanggraphjs Architecture
Cline rules
Quality
52/100
Scores the file, not the repository.Length
449 words
7 headings · 0 code blocksRepository
0
— · pushed 392 days agoLast changed
3 days ago
First indexed 3 days ago.12345# LangGraph.js67## Overview89LangGraph.js is a powerful library for building stateful, multi-actor AI applications with Large Language Models (LLMs). It allows you to model complex agent workflows as graphs, where nodes represent individual steps or agents and edges define the flow of information and control.1011## Core Concepts1213* **StateGraph:** The primary class for defining graph-based workflows. It manages the shared state that is passed between nodes.14* **Nodes:** Functions or runnable components that perform specific tasks and update the graph's state.15* **Edges:** Define transitions between nodes, which can be unconditional or conditional based on the current state.16* **State:** A shared data structure (`AgentState`) that represents the current context of the application, updated by nodes and passed along edges.17* **Checkpoints:** Snapshots of the graph's state saved at various points, enabling persistence, debugging, and human-in-the-loop interactions.18* **Subgraphs:** The ability to embed one graph as a node within another, promoting modularity and hierarchical design.19* **Command Primitive:** A mechanism for combining state updates and dynamic control flow within a single node.20* **Streaming:** First-class support for streaming intermediate results and LLM tokens, enhancing user experience.21* **Human-in-the-Loop (HIL):** Features like `interrupt()` and breakpoints allow human intervention for approvals, state editing, and dynamic input.2223## Key Features2425* **Controllability:** Fine-grained control over the application's flow through explicit node and edge definitions.26* **Persistence:** Built-in mechanisms for saving and restoring graph state, supporting long-running conversations and fault tolerance.27* **Modularity:** Encourages breaking down complex problems into smaller, reusable components (nodes and subgraphs).28* **Tool Integration:** Seamlessly integrates with LangChain tools, allowing agents to interact with external systems.29* **Observability:** Integrates with LangSmith for tracing, debugging, and monitoring of LLM applications.3031## Development Practices3233* **TypeScript:** Strongly typed development for improved code quality and maintainability.34* **Testing:** Encourages comprehensive unit and integration testing of nodes, agents, and overall graph workflows.35* **Error Handling:** Robust error handling for tool calls and model invocations.3637## Deployment3839LangGraph.js applications can be deployed in various ways, including self-hosted solutions or through the LangGraph Platform (Cloud, BYOC). The LangGraph CLI and SDK provide tools for building, running, and interacting with deployed applications.4041## Relevant Files in this Project4243* `src/agent/graph.ts`: Defines the main `StateGraph` and its nodes/edges, orchestrating the agent workflow.44* `src/agent/state.ts`: Defines the `AgentState` interface and `AgentAnnotation` for managing the application's state.45* `src/agent/supervisor.ts`: Implements the supervisor agent for routing between specialized agents.46* `src/agent/react_agent.ts`: Implements the ReAct (Reasoning and Acting) agent.47* `src/memory/`: Contains implementations for memory management, including MongoDB integration for checkpoints and vector stores.48* `src/tools/`: Houses various tools used by the agents (e.g., `calculator`, `document_processing`, `exa`, `github`, `local_git`, `tavily`, `web_scraping`).49* `package.json`: Lists LangGraph and LangChain related dependencies.50
Also in ssdeanx/langgraph-dm
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| ssdeanx/langgraph-dm.clinerules/memory.md · 0 | Cline rules | styleperformance | 43/100 | 3 days ago | |
| ssdeanx/langgraph-dm.clinerules/agents.md · 0 | Cline rules | typesagent-behaviour | 44/100 | 3 days ago | |
| ssdeanx/langgraph-dm.clinerules/development_guidelines.md · 0 | Cline rules | setupbuildtestlint-format+3 | 83/100 | 3 days ago | |
| ssdeanx/langgraph-dm.clinerules/docs-technical-style.md · 0 | Cline rules | setuplint-formatstyledocs | 53/100 | 3 days ago | |
| ssdeanx/langgraph-dm.clinerules/project_overview.md · 0 | Cline rules | testlint-formatstylearch | 75/100 | 3 days ago | |
| ssdeanx/langgraph-dm.clinerules/subgraphs.md · 0 | Cline rules | agent-behaviour | 48/100 | 3 days ago | |
| ssdeanx/langgraph-dm.github/copilot-instructions.md · 0 | Copilot instructions | setupsecuritydeploymentdo-not+2 | 57/100 | 3 days ago | |
| ssdeanx/langgraph-dm.windsurf/rules/graphs.md · 0 | Windsurf rules | do-not | 55/100 | 3 days ago | |
| ssdeanx/langgraph-dm.windsurf/rules/langsmith.md · 0 | Windsurf rules | do-notagent-behaviour | 55/100 | 3 days ago |
Diff against .clinerules/memory.md Diff against .clinerules/agents.md Diff against .clinerules/development_guidelines.md Diff against .clinerules/docs-technical-style.md Diff against .clinerules/project_overview.md Diff against .clinerules/subgraphs.md Diff against .github/copilot-instructions.md Diff against .windsurf/rules/graphs.md Diff against .windsurf/rules/langsmith.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.clinerules · 31k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | yesterday | |
| blendsdk/codeops-mcp.clinerules/project.md · 0 | Cline rules | buildteststylearch+7 | 91/100 | 3 days ago | |
| cline/cline.clinerules/general.md · 66k | Cline rules | setupbuildstylearch+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/60-pubmed-python.md · 6 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago |
