
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
@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 122 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 13 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.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socketβs Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScriptβs Date object.