能力标签
Rust自我学习记忆系统
⚙️
Agent工作流

Rust自我学习记忆系统

基于 Rust · 无代码搭建完整 AI 自动化流程
英文名:rust-self-learning-memory
⭐ 7 Stars 💻 Rust 📄 MIT 🏷 AI 7.5分
7.5AI 综合评分
workflowagent-memoryrust
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,Rust自我学习记忆系统 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。

📚 深度解析

Rust自我学习记忆系统 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

Rust自我学习记忆系统 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 7.5 分,是同类 Agent 工作流中的精选推荐。

📋 工具概览

一个模块化的Rust-基于的自我学习 episodic 记忆系统,用于AI代理,突出其自我学习和记忆功能的独特之处。

Rust自我学习记忆系统 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 7
开发语言
Rust
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.5 分
工具类型
Agent工作流
Forks

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

一个模块化的Rust-基于的自我学习 episodic 记忆系统,用于AI代理,突出其自我学习和记忆功能的独特之处。

Rust自我学习记忆系统 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:cargo install(推荐)
cargo install rust-self-learning-memory

# 方式二:从源码编译
git clone https://github.com/d-o-hub/rust-self-learning-memory
cd rust-self-learning-memory
cargo build --release
# 二进制在 ./target/release/rust-self-learning-memory
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
rust-self-learning-memory --help

# 基本运行
rust-self-learning-memory [options] <input>

# 详细使用说明请查阅文档
# https://github.com/d-o-hub/rust-self-learning-memory
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# rust-self-learning-memory 配置说明
# 查看配置选项
rust-self-learning-memory --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export RUST_SELF_LEARNING_MEMORY_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 82/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

Rust Self-Learning Memory System

Rust License Rust Version-yellow) Quick Check Security

Open Issues

A self-learning episodic memory system with semantic pattern search, embeddings, MCP server, and optional sandboxed code execution.

OverviewFeaturesQuick StartDocumentationContributingQuality GatesLicense

</div>

Overview

The Rust Self-Learning Memory System provides persistent memory across agent interactions through a comprehensive MCP (Model Context Protocol) server. It captures, stores, and learns from episodic experiences to improve future performance.

Architecture: - do-memory-core: Core memory operations, pattern extraction, and reward scoring - do-memory-storage-turso: Primary database storage (libSQL) - do-memory-storage-redb: Fast embedded cache layer - do-memory-mcp: MCP server with secure WASM sandbox - do-memory-cli: Full-featured command-line interface (episode, pattern, storage, playbook, feedback, and more) - do-memory-test-utils: Shared testing utilities - do-memory-benches: Comprehensive benchmark suite - do-memory-examples: Usage examples and demonstrations

Tech Stack: Rust 2024 edition / Tokio + Turso/libSQL + redb cache + Wasmtime WASM + optional embeddings (OpenAI, Mistral, local)

Features

Feature Flags

Enable optional features via Cargo:

```bash

Basic features (default)

cargo build

All features

cargo build --all-features

Specific features

cargo build --features openai cargo build --features mistral cargo build --features local-embeddings cargo build --features embeddings-full ```

Available Features: - openai: OpenAI API embeddings support (do-memory-core) - mistral: Mistral AI embeddings support (do-memory-core) - local-embeddings: CPU-based local embeddings (do-memory-core) - csm: Chaotic Semantic Memory integration for cascading retrieval (do-memory-core) - embeddings-full: All embedding providers (do-memory-core) - turso: Turso cloud storage with keepalive pool (do-memory-cli) - redb: redb local cache layer (do-memory-cli, default) - full: All features combined (do-memory-cli) - wasmtime-backend: Wasmtime WASM sandbox (do-memory-mcp, default) - compression: Network compression — lz4, zstd, gzip (do-memory-storage-turso) - hybrid_search: FTS5 hybrid search (do-memory-storage-turso)

Cascading Retrieval (with `csm` feature)

When the csm feature is enabled, semantic search uses a 4-tier cascade to minimize API calls:

TierMethodCPU CostAPI CallsWhen Used
1BM25 exact matchO(n) Rayon scan0Keyword-heavy queries
2HDC similarity10,240-bit SIMD0Semantic fallback
3ConceptGraph expansionGraph BFS0Known-domain synonyms
4API embeddingNetwork call1Final fallback

Target: 50-70% API call reduction for typical query workloads. See agent_docs/csm_integration.md for details.

Prerequisites

  • Rust stable (2024 edition)
  • SQLite (for local development)
  • Optional: Turso CLI (for cloud database)

Quality Requirements

  • All tests must pass
  • No clippy warnings
  • Test coverage targets per ADR-042:
  • Phase 1: 70% (current focus - actual: 61.22%)
  • Phase 2: 75%
  • Phase 3: 80% (codecov.yml project target)
  • Security audit must pass
  • Performance benchmarks must not degrade >10%

Installation

```bash

Build the project

cargo build --release

Local Database Setup

```bash

Quick setup with the provided script

./scripts/setup-local-db.sh

Or manual setup

cp memory-cli/.env.example .env mkdir -p ./data ./backups ```

Quick Start

🔍 Pattern Search Example

use memory_core::{SelfLearningMemory, TaskContext, ComplexityLevel};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let memory = SelfLearningMemory::new();
    
    // Search for patterns using natural language
    let context = TaskContext {
        domain: "web-api".to_string(),
        language: Some("rust".to_string()),
        framework: None,
        complexity: ComplexityLevel::Moderate,
        tags: vec!["rest".to_string(), "async".to_string()],
    };
    
    let results = memory.search_patterns_semantic(
        "How to handle API rate limiting with retries",
        context,
        5  // limit
    ).await?;
    
    for result in results {
        println!("Pattern: {:?}", result.pattern);
        println!("Relevance: {:.2}", result.relevance_score);
        println!("Success Rate: {:.1}%", result.pattern.success_rate() * 100.0);
    }
    
    // Get task-specific recommendations
    let recommendations = memory.recommend_patterns_for_task(
        "Build async HTTP client with connection pooling",
        context,
        3
    ).await?;
    
    for rec in recommendations {
        println!("Recommended: {:?}", rec.pattern);
    }

    // Generate an actionable playbook
    let playbooks = memory.retrieve_playbooks(
        "Implement user authentication",
        "security",
        TaskType::CodeGeneration,
        context,
        1, // max playbooks
        5  // max steps
    ).await;

    if let Some(playbook) = playbooks.first() {
        println!("Playbook ID: {}", playbook.playbook_id);
        for step in &playbook.ordered_steps {
            println!("{}. {}", step.order, step.action);
        }
    }
    
    Ok(())
}

Documentation: See memory-core/PATTERN_SEARCH_FEATURE.md for complete API reference and examples.

Basic Usage

Setup Configuration

```bash

Run interactive configuration wizard

do-memory-cli config wizard

Follow the prompts to configure:

Validate configuration

do-memory-cli config validate

Check configuration status

do-memory-cli config check


Configuration Wizard provides interactive step-by-step setup with sensible defaults and validation.

#### CLI Interaction
bash

Or run with custom config

cargo run --bin do-memory-mcp-server -- --config mcp-config-memory.json


#### Programmatic Usage
rust use memory_core::{SelfLearningMemory, TaskContext, TaskType};

#[tokio::main] async fn main() -> anyhow::Result<()> { let memory = SelfLearningMemory::new(Default::default()).await?;

let context = TaskContext { language: "rust".to_string(), domain: "web".to_string(), tags: vec!["api".to_string()], };

let episode_id = memory.start_episode( "Build REST API endpoint".to_string(), context, TaskType::CodeGeneration, ).await;

Ok(()) } ```

Configuration

Environment Variables

```bash

Cache settings

MEMORY_MAX_EPISODES_CACHE=1000 MEMORY_CACHE_TTL_SECONDS=3600

CLI config

MEMORY_CLI_CONFIG=./do-memory-cli.toml

Sandbox settings

MCP_USE_WASM=true JAVY_PLUGIN=./memory-mcp/javy-plugin.wasm ```

TOML Configuration

[database]
turso_url = "libsql://your-db.turso.io"
turso_token = "your-auth-token"
redb_path = "memory.redb"

[storage]
max_episodes_cache = 1000
cache_ttl_seconds = 3600
pool_size = 10

[sandbox]
max_execution_time_ms = 5000
max_memory_mb = 128
max_cpu_percent = 50
allow_network = false
allow_filesystem = false

[cli]
default_format = "human"
progress_bars = true
batch_size = 100

- CLI (output format, progress bars, batch size)

Development Workflow

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes
  4. Run quality gates: ./scripts/quality-gates.sh
  5. Submit a pull request
🇨🇳 中文文档镜像 AI 翻译 2026-05-29
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

rust-self-learning-memory 是一个基于 Rust 构建的自我学习记忆系统。它通过实现全面的 MCP (Model Context Protocol) 服务,为 Agent 交互提供持久化记忆能力。系统能够捕获、存储并从片段式经验(episodic experiences)中学习,从而持续优化未来的执行性能。其架构分为核心层 do-memory-core(负责记忆操作、模式提取与奖励评分)以及存储层 do-memory-storage-turso(负责云端数据库持久化)。

⚡ 功能介绍

本项目提供功能完备的 CLI 工具,支持对 episode(片段)、pattern(模式)、tag(标签)及 relationship(关系)进行全生命周期管理。用户可以通过命令行执行搜索、分析、批量更新及过滤等操作。此外,系统具备强大的模式分析与有效性追踪功能,支持通过 decay(衰减)机制管理记忆,并提供完整的备份、监控、日志及评估(eval)能力,确保记忆系统的可控性与智能化。

📋 环境依赖

在开始开发或部署前,请确保您的环境已安装 Rust stable 版本(需支持 2024 edition)。本地开发环境需要安装 SQLite 以进行数据存储;若需使用云端数据库,则建议安装 Turso CLI。此外,项目对代码质量有严格要求,所有测试必须通过且不得出现 clippy 警告,测试覆盖率需逐步达到 ADR-042 定义的阶段性目标。

🛠 安装步骤(Docker/pip/源码)

您可以通过源码编译的方式进行安装。首先克隆仓库后,使用 `cargo build --release` 命令构建项目。对于本地开发环境,需要配置好 SQLite 数据库;若需连接云端,请按照相关文档完成 Turso 的数据库设置。项目支持通过 Cargo 的 Feature Flags 来按需启用可选功能,以优化构建体积与性能。

🚀 使用教程

项目提供了快速启动指南,帮助开发者快速上手。您可以直接在 Rust 代码中通过 `memory_core` 模块调用 `SelfLearningMemory` 接口,利用自然语言进行 Pattern Search(模式搜索),并结合 TaskContext(任务上下文)和 ComplexityLevel(复杂度等级)实现智能化的记忆检索。对于命令行用户,可以直接通过 CLI 工具进行交互式操作。

⚙️ 配置说明(含 MCP / env)

系统内置了交互式配置向导,开发者可以通过运行 `do-memory-cli config wizard` 命令,按照提示完成各项参数的配置。配置完成后,建议使用 `do-memory-cli config validate` 进行校验,以确保配置文件的正确性。配置项涵盖了 CLI 输出格式、进度条显示、批处理大小等关键参数,确保系统运行符合预期。

🔌 API 说明

本项目提供了一套完整的接口体系,主要包括功能强大的 CLI 命令行接口,支持自定义输出格式、进度条显示及批处理规模(batch size)控制。同时,核心逻辑通过 Rust 模块化封装,为开发者提供了高度抽象的 API,方便在不同的 Agent 场景中集成记忆与学习能力。

🔄 工作流/模块

项目遵循标准化的开发工作流:首先 Fork 仓库,然后创建独立的 feature 分支进行开发。在提交 Pull Request 之前,必须运行 `./scripts/quality-gates.sh` 脚本来通过质量门禁检查,确保代码符合测试覆盖率、安全审计��性能基准(performance benchmarks)的要求。

🎯 aiskill88 AI 点评 A 级 2026-05-24

该项目是一个开源的Rust-基于的自我学习记忆系统,用于AI代理,具有独特的自我学习和记忆功能。然而,项目的质量和流行度还需要进一步评估。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
rust-self-learning-memory 中文教程rust-self-learning-memory 安装报错怎么办rust-self-learning-memory MCP 配置rust-self-learning-memory Agent 工作流rust-self-learning-memory 与同类工具对比rust-self-learning-memory 最佳实践rust-self-learning-memory 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效

👥 适合人群

自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队

🎯 使用场景

  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • 初始配置和调试需投入一定时间
  • 强依赖外部服务的稳定性
  • 复杂场景需具备一定技术基础
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

rust-self-learning-memory 是一款Rust开发的AI辅助工具。开源AI工作流:A modular Rust-based self-learning episodic memory system for AI agents, featuri。⭐7 · Rust 主要应用场景包括:AI代理自我学习记忆系统,用于AI工作流的自我学习和记忆功能。
💡 AI Skill Hub 点评

AI Skill Hub 点评:Rust自我学习记忆系统 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 Rust自我学习记忆系统
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 rust-self-learning-memory
原始描述 开源AI工作流:A modular Rust-based self-learning episodic memory system for AI agents, featuri。⭐7 · Rust
Topics workflowagent-memoryrust
GitHub https://github.com/d-o-hub/rust-self-learning-memory
License MIT
语言 Rust
🔗 原始来源
🐙 GitHub 仓库  https://github.com/d-o-hub/rust-self-learning-memory 🌐 官方网站  https://d-o-hub.github.io/rust-self-learning-memory/

收录时间:2026-05-24 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。