
Security News
minimatch Patches 3 High-Severity ReDoS Vulnerabilities
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.
@cloudbase/agent-examples-langchain-ai-coding
Advanced tools
AI Coding Agent using LangChain with SQLite checkpoint - React project generation and management
A LangChain-based AI coding assistant with SQLite persistent conversation history. This example demonstrates how to use LangChain agents with AG-Kit tools and SQLite checkpoint for conversation persistence.
npm install
npm run interactive
Create a .env file with:
# OpenAI Configuration
OPENAI_API_KEY=your_openai_api_key
OPENAI_MODEL=gpt-4o-mini
OPENAI_BASE_URL=https://api.openai.com/v1
Start the interactive CLI:
npm run interactive
Example conversation:
💬 You: Create a React component for a todo list
🤖 Assistant:
I'll help you create a React todo list component. Let me create a new component file...
💬 You: Add TypeScript support to this component
🤖 Assistant:
I'll convert the component to TypeScript with proper type definitions...
import { createAgent } from '@cloudbase/agent-examples-langchain-ai-coding';
const agent = createAgent({
baseProjectPath: '/path/to/projects',
projectName: 'my-react-app',
autoInstallDependencies: true,
});
const response = await agent.invoke({
messages: [{ role: 'user', content: 'Create a React component' }]
});
console.log(response.content);
This example demonstrates:
agent.ts implementation┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ User Input │───▶│ LangChain Agent │───▶│ AG-Kit Tools │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│ │
▼ ▼
┌──────────────────┐ ┌─────────────────┐
│ SQLite Checkpoint│ │ React Coding │
└──────────────────┘ └─────────────────┘
src/
├── agent.ts # LangChain agent implementation
└── index.ts # Main exports
examples/
└── full-workflow.ts # Interactive CLI example
npm run build - Build the projectnpm run interactive - Start interactive CLIThe SQLite database (checkpoints.db) will be created automatically in the project directory when you first run the agent.
This example is part of the AG-Kit project. Please refer to the main project's contributing guidelines.
MIT License - see the main AG-Kit project for details.
FAQs
AI Coding Agent using LangChain with SQLite checkpoint - React project generation and management
We found that @cloudbase/agent-examples-langchain-ai-coding demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 14 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.

Research
/Security News
Socket uncovered 26 malicious npm packages tied to North Korea's Contagious Interview campaign, retrieving a live 9-module infostealer and RAT from the adversary's C2.

Research
An impersonated golang.org/x/crypto clone exfiltrates passwords, executes a remote shell stager, and delivers a Rekoobe backdoor on Linux.