Skip to content

opok-ops/agent-memory

Repository files navigation

🤖 Agent Memory

为智能体注入持久记忆 - 开源的 AI Agent 记忆管理系统

MIT License GitHub Stars

✨ 特性

  • 🧠 持久化记忆 - 跨会话保存和恢复 Agent 状态
  • 🔍 语义检索 - 基于向量嵌入的智能记忆检索
  • 📊 分层存储 - 短期、中期、长期记忆分层架构
  • 实时同步 - 毫秒级记忆读写性能
  • 🔒 隐私安全 - 端到端加密存储,支持本地部署
  • 🔌 灵活集成 - 5分钟接入任意 Agent 框架

🎨 官网预览

官网采用未来科技风格设计,包含:

  • 自定义动态光标
  • 粒子网络背景动画
  • 滚动展开/折叠交互
  • 玻璃拟态 UI 设计

🚀 快速开始

安装依赖

npm install

开发预览

npm run dev

访问 http://localhost:5173 预览官网

构建生产版本

npm run build

构建产物将输出到 dist 目录

📦 技术栈

  • 框架: React 18 + TypeScript
  • 构建: Vite 6
  • 样式: Tailwind CSS 3
  • 动画: Framer Motion
  • 粒子效果: TSParticles
  • 图标: Lucide React

🌐 部署到 GitHub Pages

方式一:使用部署脚本

  1. 安装 GitHub CLI(如未安装):

    winget install GitHub.cli
  2. 登录 GitHub:

    gh auth login
  3. 运行部署脚本:

    .\deploy.ps1

    或使用 Token:

    .\deploy.ps1 -Token YOUR_GITHUB_TOKEN

方式二:手动部署

  1. 创建 GitHub 仓库并推送代码

  2. 在仓库设置中启用 GitHub Pages:

    • 进入仓库 Settings > Pages
    • Source 选择 Deploy from a branch
    • Branch 选择 gh-pages / (root)
    • 等待 2-5 分钟即可访问
  3. 网站地址:https://你的用户名.github.io/agent-memory/

📁 项目结构

src/
├── components/
│   ├── CustomCursor.tsx        # 自定义光标
│   ├── ParticleBackground.tsx  # 粒子网络背景
│   ├── HeroSection.tsx         # Hero 区域
│   ├── FeatureCard.tsx         # 特性卡片
│   ├── FeaturesSection.tsx      # 特性展示区
│   ├── ArchitectureSection.tsx  # 架构可视化
│   ├── CodeBlock.tsx           # 代码展示块
│   ├── CodeExampleSection.tsx  # 代码示例区
│   ├── QuickStartSection.tsx   # 快速开始
│   └── Footer.tsx              # 页脚
├── pages/
│   └── Home.tsx                # 首页
├── App.tsx                     # 应用入口
├── main.tsx                    # 渲染入口
└── index.css                   # 全局样式

📄 开源协议

本项目基于 MIT License 开源。

🙏 致谢


Agent Memory - 让 AI Agent 拥有持久记忆能力

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors