Skip to content

aptratcn/skill-smart-context

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Context - 智能上下文管理器 🧠

对话太长AI就失忆?Smart Context自动记住关键信息,需要时精准召回

Version License Zero Deps

❓ 你有没有遇到过?

对话轮数 AI的状态
1-20轮 记得一切 ✅
20-50轮 开始遗忘 ⚠️
50-100轮 严重退化 ❌
100+轮 基本失忆 🔴

Smart Context 解决这个问题。

🚀 快速开始

git clone https://github.com/aptratcn/skill-smart-context.git

# 保存关键信息
node scripts/smart-context.mjs --save "用户偏好TypeScript" --tag preference --importance 3

# 需要时精准召回
node scripts/smart-context.mjs --recall "TypeScript"

# 查看摘要
node scripts/smart-context.mjs --summary

✨ 核心特性

  • 零依赖 — 纯Node.js,无npm安装
  • 三层存储 — 工作记忆 / 会话记忆 / 长期记忆
  • 智能召回 — 按相关度排序,自动时间衰减
  • 重要性分级 — 1-3级,高级别自动进入长期记忆
  • 自动清理 — 过期记忆一键清理

💡 使用场景

用户: 我更喜欢用PostgreSQL
AI:  → 自动保存偏好

...50轮对话后...

用户: 我之前说了用什么数据库?
AI: [自动召回] PostgreSQL(65轮前)

License

MIT


Created by 小白 🤍
"对话太长AI就失忆?Smart Context记着呢"

About

Smart Context Manager - Solve AI memory loss in long conversations. Trigger on: 'long conversation', 'context lost', 'save context', 'recall', 'what were we discussing'

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors