{"aiPlatform":"claude-code@2025.06","category":"development","commandName":"/langchain-agent","content":"---\nname: LangChain/LangGraph Agent Scaffold\ndescription: Create production-ready LangChain/LangGraph agents with state machines, tool integration, memory management, and advanced reasoning capabilities.\nallowed_tools:\n  - filesystem      # Access agent code and configuration files\n  - memory          # Track agent patterns and conversation history\n  - sqlite          # Store agent metadata and interaction logs\ntags:\n  - langchain\n  - langgraph\n  - ai-agent\n  - state-machine\n  - tool-integration\ncategory: development\nversion: 1.0.0\nauthor: AI Commands Team\n---\n\n# LangChain/LangGraph Agent Scaffold\n\nCreate a production-ready LangChain/LangGraph agent for: $ARGUMENTS\n\nImplement a complete agent system including:\n\n1. **Agent Architecture**:\n   - LangGraph state machine\n   - Tool selection logic\n   - Memory management\n   - Context window optimization\n   - Multi-agent coordination\n\n2. **Tool Implementation**:\n   - Custom tool creation\n   - Tool validation\n   - Error handling in tools\n   - Tool composition\n   - Async tool execution\n\n3. **Memory Systems**:\n   - Short-term memory\n   - Long-term storage (vector DB)\n   - Conversation summarization\n   - Entity tracking\n   - Memory retrieval strategies\n\n4. **Prompt Engineering**:\n   - System prompts\n   - Few-shot examples\n   - Chain-of-thought reasoning\n   - Output formatting\n   - Prompt templates\n\n5. **RAG Integration**:\n   - Document loading pipeline\n   - Chunking strategies\n   - Embedding generation\n   - Vector store setup\n   - Retrieval optimization\n\n6. **Production Features**:\n   - Streaming responses\n   - Token counting\n   - Cost tracking\n   - Rate limiting\n   - Fallback strategies\n\n7. **Observability**:\n   - LangSmith integration\n   - Custom callbacks\n   - Performance metrics\n   - Decision tracking\n   - Debug mode\n\nInclude error handling, testing strategies, and deployment considerations. Use the latest LangChain/LangGraph best practices.","contentHash":"24e202b707874da85edcc80cd855331f6f0b5b540082544480545e664df504b7","copies":0,"createdAt":"2025-08-12T16:09:35.632Z","description":"Create LangChain/LangGraph agents with modern patterns","github":{"repoUrl":"https://github.com/Commands-com/commands","lastSyncDirection":"from-github","metadata":{"importedFrom":"github_repository","repoPrivate":false,"repoDefaultBranch":"main","connectedAt":"2025-08-12T16:09:35.632Z"},"importedAt":"2025-08-12T16:09:35.632Z","lastSyncAt":"2025-08-17T17:57:47.305Z","fileMapping":{"license":null,"readme":null,"assets":[],"mainFile":"tools/langchain-agent.md"},"selectedCommand":"langchain-agent","fileShas":{"mainFile":"0d8a0f247d9a590c6370130140630e61e3b81be7","yamlPath":"313647b1fb381389da33b7913e95baf617c4b392"},"branch":"main","connectionType":"commands_yaml","connected":true,"lastSyncCommit":"01591bc061d236bde47bf23b0f47e8afcf1a5144","importSource":"repository_import","installationId":"69232615","syncStatus":"synced"},"githubRepoUrl":"https://github.com/Commands-com/commands","id":"0886dfc7-294a-492f-bde2-47a110725cba","inputParameters":[{"defaultValue":"react","name":"agent_type","options":["react","conversational","tool-calling","plan-execute","langgraph-custom"],"description":"Type of LangChain agent to create","label":"Agent Type","type":"select","required":false},{"defaultValue":"conversation-buffer","name":"memory_type","options":["none","conversation-buffer","conversation-summary","vector-store","entity"],"description":"Memory implementation for the agent","label":"Memory Type","type":"select","required":false}],"instructions":"Create LangChain/LangGraph agents with modern patterns","likes":0,"mcp_search_content":"","organizationUsername":"commands-com","price":"free","search_content":"langchain agent create langchain/langgraph agents with modern patterns /langchain-agent development claude-code@2025.06","title":"LangChain Agent","type":"command","updatedAt":"2025-08-17T17:57:47.305Z","userId":"W0V8NAw5AhWRwcuwSoFLOi1Yem83","visibility":"public","name":"langchain-agent","userInteraction":{"userHasStarred":false}}