
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
@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 545 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
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.