
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
@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
The npm package @cloudbase/agent-examples-langchain-ai-coding receives a total of 766 weekly downloads. As such, @cloudbase/agent-examples-langchain-ai-coding popularity was classified as not popular.
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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.