
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
leaper-agent-cn
Advanced tools
纯国内、零依赖、自进化的 AI Agent 框架
npm install leaper-agent-cn
创建 leaper.yaml:
model: deepseek-chat
providers:
deepseek:
apiKey: sk-xxx
gateway:
feishu:
appId: cli_xxx
appSecret: xxx
或使用初始化向导:
npx leaper-cn init
npx leaper-cn start
┌─────────────────────────────────────────────────┐
│ 用户消息 │
└────────────────────┬────────────────────────────┘
▼
┌─────────────────────────────────────────────────┐
│ 渠道层 (Gateway) │
│ 飞书 │ 钉钉 │ 企业微信 │ 微信公众号 │
└────────────────────┬────────────────────────────┘
▼
┌─────────────────────────────────────────────────┐
│ Agent Loop │
│ 消息 → LLM → Tool Call → LLM → ... → 响应 │
│ │
│ ┌──────────┐ ┌──────────────┐ │
│ │ 安全层 │ │ MoA 择优 │ │
│ │ 脱敏/审批 │ │ 多模型并行 │ │
│ └──────────┘ └──────────────┘ │
└──────┬──────────────────┬───────────────────────┘
▼ ▼
┌─────────────┐ ┌─────────────────┐
│ LLM 提供商 │ │ 工具集 (28+) │
│ DeepSeek │ │ 终端/文件/代码 │
│ 通义千问 │ │ 搜索/记忆/图片 │
│ 智谱GLM │ │ 飞书/视觉/补丁 │
│ Moonshot │ └────────┬────────┘
└─────────────┘ ▼
┌─────────────────┐
│ LeaperBrain │
│ 六层自进化记忆 │
│ BM25 + 时间衰减 │
└─────────────────┘
| 工具 | 描述 |
|---|---|
web_search | 多引擎搜索(Bing/百度/DuckDuckGo) |
web_fetch | 抓取网页提取纯文本 |
read_file | 读取文件内容 |
write_file | 写入文件 |
list_files | 列出目录文件 |
search_files | 正则搜索文件内容 |
create_dir | 创建目录 |
delete_file | 删除文件 |
move_file | 移动/重命名文件 |
code_execute | 执行代码片段 |
terminal_exec | 执行终端命令 |
terminal_bg | 后台执行命令 |
process_list | 查看进程列表 |
process_kill | 终止进程 |
memory_search | 搜索记忆库 |
memory_store | 存储新知识 |
memory_recall | 回忆特定主题 |
memory_forget | 遗忘错误信息 |
memory_stats | 记忆统计 |
memory_evolve | 触发记忆进化 |
create_diff | 生成 diff 补丁 |
apply_patch | 应用补丁 |
feishu_doc | 创建飞书文档 |
feishu_upload | 上传文件到飞书 |
generate_image | AI 生图 |
analyze_image | 图片分析(视觉) |
ocr_image | 图片文字识别 |
delegate_task | 委派子任务 |
六层自进化架构:
| 层级 | 名称 | 生命周期 | 说明 |
|---|---|---|---|
| L0 | 对话上下文 | 会话内 | 当前对话历史 |
| L1 | 短期记忆 | 小时级 | 最近交互摘要 |
| L2 | 工作记忆 | 天级 | 跨会话知识 |
| L3 | 长期记忆 | 周级 | 稳定知识点 |
| L4 | 核心知识 | 月级 | 高置信事实 |
| L5 | 元认知 | 永久 | 推理模式和策略 |
特性:
rm -rf /、format C:、Fork bomb 等# 编译
npm run build
# 测试
npx tsx tests/test-core.ts
# 开发模式
npm run dev
# 类型检查
npx tsc --noEmit
src/
├── agent/ # Agent 核心(循环、安全、调度)
├── brain/ # LeaperBrain 记忆引擎
├── providers/ # LLM 提供商适配器
├── gateway/ # 渠道接入(飞书等)
├── tools/ # 28+ 工具实现
├── cron/ # 定时任务
└── cli.ts # CLI 入口
Apache-2.0
FAQs
瞬知自学习智能体 — 纯国内 AI Agent 框架
We found that leaper-agent-cn demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.