跳到正文
cccskills
免费在 GitHub 公开

conversation-memory

Keep long conversations coherent — summarization checkpoints, entity tracking, topic stacks, and graceful context handoffs. Use when dialogues run long or span sessions and the agent keeps losing the thread.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Conversation Memory

A conversation is a stream of context that eventually overflows. Conversation memory is the practice of compressing, indexing, and resurfacing dialogue so long interactions stay coherent without drowning in tokens.

Overview

The technique is checkpoints: at intervals, distill the conversation so far into a compact summary capturing decisions, open questions, entities, and tone. Between checkpoints, keep raw recent turns for fidelity. When the context fills, drop old raw turns but keep the summaries — the thread survives even as the details fade. Add entity tracking (who/what was mentioned and their status) and the agent can reference things from an hour ago as naturally as from a minute ago.

When to use

  • Conversations that run for dozens or hundreds of turns.
  • Multi-session dialogues where the user expects the agent to remember earlier sessions.
  • Support or advisory chats where decisions and commitments must be tracked.
  • Any flow where the agent says "as I mentioned earlier" and gets it wrong.

Core concepts

  • Rolling summary: a living document updated every N turns or at topic boundaries — decisions made, facts learned, open items. The single highest-leverage memory technique.
  • Recency window: the last K raw turns kept verbatim. Recent detail stays exact; old detail is summarized. Tune K to the task's need for precision.
  • Entity tracking: named people, projects, and items mentioned, each with current status. Prevents the agent from forgetting or confusing key nouns.
  • Topic stack: when the conversation branches, record the stack of open topics so the agent can return to a suspended thread gracefully.
  • Checkpoint triggers: summarize on turn count, topic shift, or user request ("let's pause — recap where we are"). Don't wait for overflow.
  • Handoff notes: a compact brief written at session end — context, decisions, next steps — so a fresh session or agent resumes cleanly.

Practical workflow

  1. Set a checkpoint cadence (e.g., every 20 turns or each topic change) and a summary template: decisions, facts, open items, entities.
  2. After each checkpoint, keep summaries in the system context and trim raw turns beyond the recency window.
  3. Maintain an entity list in the working context; update statuses as the conversation evolves.
  4. When the user references something old, retrieve from summaries first; quote the summary back to confirm ("Earlier you decided X — still true?").
  5. At session end, write handoff notes: state, pending decisions, suggested next step.
  6. On session start, load the last handoff and the entity list — not the full transcript.
Checkpoint summary template:
DECISIONS:  <what was decided, with rationale>
FACTS:      <durable facts learned about user/project>
OPEN:       <unresolved questions, pending items>
ENTITIES:   <name — status — last mentioned>
NEXT:       <suggested continuation>

Common pitfalls

  • Summarizing too late: waiting for the context to overflow. Summarize proactively at natural breakpoints.
  • Lossy summaries: dropping numbers, names, or commitments. Summaries must preserve specifics, not just vibes.
  • No entity tracking: the agent confuses two people or projects with similar names. Keep an explicit list.
  • Stale summaries: facts corrected later never update the summary. Treat summaries as editable, not append-only.
  • Full-transcript reload: dumping old transcripts into a new session wastes context and confuses recency. Use handoff notes.
  • Silent forgetting: dropping context without telling the user. When you compress, say so briefly — trust depends on it.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

查看 aicodedecode 的全部技能

报告此技能的问题