Sandbox
@voidcraft-dev/memory-forge-rs

Local session manager for AI chat memory editing

Memory Forge RS lets you browse AI coding sessions, edit any message in the history, and continue from the corrected conversation. It reads local data from supported assistants and provides a unified desktop interface for session search, diff-based edits, export, and prompt reuse.

482 stars52 forksRustUpdated 1mo ago
Who it's for

Builders who want to inspect and rewrite past Claude Code, Codex, or Gemini CLI sessions without leaving a local desktop app.

What it delivers

You can fix a wrong AI assumption in the past and keep working from the corrected history.

What it does

Edit conversation history

Open a session, change any message, and save the corrected version.

Multi-platform session view

Shows sessions from Claude Code, Codex CLI, OpenCode, Kiro CLI, Kiro IDE, and Gemini CLI in one place.

Edit audit log

Tracks each change with before-and-after diffs so edits stay traceable.

Erase and inject context

Remove noisy messages or add missing context into earlier parts of the chat.

Markdown export

Exports full conversations to `.md` files for sharing or review.

Prompt library

Stores, tags, searches, and copies reusable prompts.

Offline desktop app

Runs locally with Tauri v2 and Rust and makes no cloud calls.

How to get it

  1. 1Run
    # Prerequisites: Node.js 18+, Rust, Tauri CLI
    # See https://tauri.app/start/prerequisites/
    
    git clone https://github.com/voidcraft-dev/memory-forge-rs
    cd memory-forge-rs
    npm install
    npm run tauri build
  2. 2Development
    npm run tauri dev

README

Memory Forge

Memory Forge RS

Stop resetting satisfying AI chats. Edit the memory instead.

别重开了,直接改记忆。


License: MIT Tauri React Rust TypeScript

English · 中文


Memory Forge Dashboard

The Problem

You've spent 40 minutes guiding Claude Code through a complex refactor. It's going great — until the AI hallucinates a wrong assumption and spirals. Now every response builds on that mistake.

Your options before Memory Forge:

  • Restart the session and lose all context
  • Manually re-explain everything
  • Give up and work around the error

With Memory Forge:

  • Open the conversation, find the wrong message, edit it directly
  • The AI picks up from the corrected history as if it never happened
  • Continue the conversation seamlessly

What is Memory Forge?

A local desktop app that lets you browse, edit, and manage AI coding assistant sessions.

Works with Claude Code, Codex CLI, OpenCode, Kiro CLI, Kiro IDE, and Gemini CLI — all in one unified interface.

Built with Tauri v2 + Rust. No Python, no server, no cloud. 100% local.

Use Cases

ScenarioWhat you do
AI made a wrong assumption 3 messages agoEdit that message, fix the assumption
AI forgot important context mid-conversationInject context into an earlier message
The conversation has too much noiseErase irrelevant messages
Need to review what you discussed with AIBrowse & search sessions visually
Want to share a conversationExport to Markdown with one click
Reuse the same prompt patternSave it to the Prompt Library

Quick Start

1. Download → Grab the latest release for your platform

2. Open → Launch the app (no config needed, reads from local AI data)

3. Edit → Browse sessions, click any message, edit and save

That's it. Your AI picks up the corrected memory on the next --resume.

Screenshots

Session BrowsingMessage Editing
Browse sessions with conversation detailEdit any message in conversation history
Edit Audit LogMulti-Platform (Codex)
Before/after diff comparison for every editCodex CLI sessions in unified view
Settings & ThemesPrompt Library
4 themes, language toggle, desktop behaviorTag-based prompt management with one-click copy

Features

Core

  • Memory Manipulation — Edit any message in AI conversation history, then seamlessly continue
  • Erase & Inject — Remove noise or inject missing context into past messages
  • Edit Audit Log — Every edit is tracked with before/after diff, fully traceable

Session Management

  • Multi-platform — Claude Code / Codex CLI / OpenCode / Kiro CLI / Kiro IDE / Gemini CLI in one unified view
  • Dashboard — Session stats across all platforms
  • Favorites & Archive — Star important sessions, soft-archive the rest
  • Session Aliases — Give sessions memorable names for quick lookup
  • Quick Commands — One-click copy for --resume and --fork commands
  • Markdown Export — Export full conversations as .md files

App Experience

  • 5 Themes — Graphite (dark) · Linen (light) · Ocean (dark) · Ember (dark) · Twilight (dark)
  • Bilingual — 简体中文 / English
  • Prompt Library — Save, tag, search & copy frequently used prompts
  • System Tray — Close to tray, launch on startup
  • 100% Local — Zero network calls, your data stays on your machine

Supported Platforms

PlatformResume CommandFork CommandData Path
Claude Codeclaude --resume <id>claude --resume <id> --fork-session~/.claude
Codex CLIcodex resume <id>~/.codex
OpenCodeopencode -s <id>opencode -s <id> --fork~/.local/share/opencode/opencode.db
Kiro CLIkiro-cli chat --resume-id <id>~/.kiro
Kiro IDE%APPDATA%\Kiro\User\globalStorage\kiro.kiroagent
Gemini CLIgemini --resume '<id>'~/.gemini

Installation

Desktop App (Recommended)

PlatformFormat
Windows.exe installer / .zip portable
macOS.dmg
Linux.AppImage / .deb

Download Latest Release →

Build from Source

# Prerequisites: Node.js 18+, Rust, Tauri CLI
# See https://tauri.app/start/prerequisites/

git clone https://github.com/voidcraft-dev/memory-forge-rs
cd memory-forge-rs
npm install
npm run tauri build

Development:

npm run tauri dev

Tech Stack

LayerTechnologies
FrontendReact 19 · TypeScript · Vite · Tailwind CSS v4 · shadcn/ui · React Router v7
BackendRust · rusqlite · serde
DesktopTauri v2
ToolingBiome · Husky · lint-staged

Project Structure

memory-forge-rs/
├── src/                    # React frontend
│   ├── app/routes/         # Page components
│   ├── features/
│   │   ├── desktop/        # Tauri API bridge, state, i18n
│   │   ├── session/        # Session list & detail views
│   │   └── prompts/        # Prompt library UI
│   └── components/         # Shared UI (shadcn/ui)
├── src-tauri/              # Rust backend
│   └── src/
│       ├── main.rs         # Tauri commands & app setup
│       ├── database.rs     # SQLite (prompt library)
│       ├── settings.rs     # Settings persistence
│       └── shell.rs        # Tray, window management
└── package.json

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes
  4. Push and open a Pull Request

License

MIT

Community

LINUX DO

Tech discussions & AI experience sharing at LINUX DO

QQ Group

QQ Group

Author

VoidCraftGitHub


Memory Forge

记忆锻造 RS

别重开了,直接改记忆。


记忆锻造仪表盘

痛点

你花了 40 分钟让 Claude Code 做一个复杂的重构,进展顺利 — 直到 AI 在某条消息里产生了一个错误假设,之后每条回复都在错误的基础上越跑越偏。

没有记忆锻造:

  • 重开会话,丢失所有上下文
  • 手动把之前讲过的东西重新解释一遍
  • 将就着用,绕过错误

有了记忆锻造:

  • 打开会话,找到那条错误消息,直接改掉
  • AI 从修正后的历史继续,就像那个错误从未发生
  • 无缝继续对话

什么是记忆锻造?

一个本地桌面应用,让你浏览、编辑、管理 AI 编程助手的会话记录。

支持 Claude CodeCodex CLIOpenCodeKiro CLIKiro IDEGemini CLI — 统一界面管理。

Tauri v2 + Rust 构建。没有 Python,没有服务器,没有云端。100% 本地运行。

使用场景

场景你可以做什么
AI 在 3 条消息前做了错误假设直接编辑那条消息,修正假设
AI 对话到一半忘了重要上下文往早期消息中注入上下文
对话里有太多废话噪音擦除无关消息
想回顾跟 AI 讨论了什么可视化浏览和搜索会话
想分享一段对话一键导出为 Markdown
经常用同样的 prompt 模式保存到提示词库

快速开始

1. 下载 → 从 Releases 下载对应平台安装包

2. 打开 → 启动应用(无需配置,自动读取本地 AI 数据)

3. 编辑 → 浏览会话,点击任意消息,编辑保存

就这样。AI 在下次 --resume 时会基于修正后的记忆继续。

应用截图

会话浏览消息编辑
Claude 会话列表与对话详情编辑对话历史中的任意消息
修改追溯多平台(Codex)
每次编辑的前后对比 diffCodex CLI 会话统一视图
设置与主题提示词库
4套主题、语言切换、桌面行为标签化提示词管理,一键复制

功能特性

核心能力

  • 记忆操控 — 编辑 AI 对话历史中的任意消息,然后无缝继续
  • 擦除 & 注入 — 删除噪音或往历史消息中注入缺失的上下文
  • 修改追溯 — 每次编辑都有前后 diff 对比,完整可追溯

会话管理

  • 多平台统一 — Claude Code / Codex CLI / OpenCode / Kiro CLI / Kiro IDE / Gemini CLI 一个界面搞定
  • 仪表盘 — 跨平台会话统计
  • 收藏 & 归档 — 星标重要会话,归档不常用的
  • 会话别名 — 给会话起容易记的名字
  • 快捷命令--resume--fork 一键复制
  • Markdown 导出 — 完整对话导出为 .md 文件

使用体验

  • 5 套主题 — 石墨(深色)· 亚麻(浅色)· 海湾(深色)· 余烬(深色)· 暮光(深色)
  • 双语界面 — 简体中文 / English
  • 提示词库 — 保存、标签、搜索常用提示词,一键复制
  • 系统托盘 — 关闭到托盘、开机自启
  • 纯本地 — 零网络请求,数据不离开你的电脑

支持平台

平台恢复命令分支命令数据路径
Claude Codeclaude --resume <id>claude --resume <id> --fork-session~/.claude
Codex CLIcodex resume <id>~/.codex
OpenCodeopencode -s <id>opencode -s <id> --fork~/.local/share/opencode/opencode.db
Kiro CLIkiro-cli chat --resume-id <id>~/.kiro
Kiro IDE%APPDATA%\Kiro\User\globalStorage\kiro.kiroagent
Gemini CLIgemini --resume '<id>'~/.gemini

安装方式

桌面应用(推荐)

平台格式
Windows.exe 安装包 / .zip 便携版
macOS.dmg
Linux.AppImage / .deb

下载最新版 →

从源码构建

# 前置要求:Node.js 18+, Rust, Tauri CLI
# 参考 https://tauri.app/start/prerequisites/

git clone https://github.com/voidcraft-dev/memory-forge-rs
cd memory-forge-rs
npm install
npm run tauri build

开发模式:

npm run tauri dev

技术栈

层级技术
前端React 19 · TypeScript · Vite · Tailwind CSS v4 · shadcn/ui · React Router v7
后端Rust · rusqlite · serde
桌面Tauri v2
工具链Biome · Husky · lint-staged

项目结构

memory-forge-rs/
├── src/                    # React 前端
│   ├── app/routes/         # 页面组件
│   ├── features/
│   │   ├── desktop/        # Tauri API 桥接、状态管理、i18n
│   │   ├── session/        # 会话列表 & 详情视图
│   │   └── prompts/        # 提示词库 UI
│   └── components/         # 共享 UI(shadcn/ui)
├── src-tauri/              # Rust 后端
│   └── src/
│       ├── main.rs         # Tauri 命令注册 & 应用初始化
│       ├── database.rs     # SQLite(提示词库)
│       ├── settings.rs     # 设置持久化
│       └── shell.rs        # 托盘、窗口管理
└── package.json

参与贡献

  1. Fork 本仓库
  2. 创建功能分支 (git checkout -b feature/amazing-feature)
  3. 提交更改
  4. 推送并发起 Pull Request

开源协议

MIT

社区

LINUX DO

技术讨论、AI 工具体验分享——尽在 LINUX DO

QQ 交流群

QQ 交流群

作者

VoidCraftGitHub

Files in the repo

Repository payload19 top-level entries
  • .github
  • assets
  • docs
  • images
  • public
  • scripts
  • src
  • src-tauri
  • .gitignore
  • biome.jsonc
  • components.json
  • index.html
  • LICENSE
  • package-lock.json
  • package.json
  • README.md
  • tsconfig.json
  • tsconfig.node.json
  • vite.config.ts

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k