honcho-memory
它能做什么
该技能把你的 AI 助手连接到 Honcho,这是一种从过往对话中了解你的记忆服务。适用于希望助手跨聊天记住偏好和上下文的人。
适用场景
- ✓开始新对话,希望助手回想它已经了解你的内容的时候。
- ✓希望回复能考虑你过往偏好或上下文的时候。
- ✓询问助手它记得你哪些内容的时候。
技能链接
https://github.com/plastic-labs/honcho/blob/main/integrations/cursor/skills/honcho-memory/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“根据我们过去的对话,你记得我哪些事情?”
每周 5 个新技能,1 分钟读完。
工作原理
在回复之前,助手会向 Honcho 查询它对你的了解。每次对话结束后,它会保存这些消息,让 Honcho 随时间从中学习。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Honcho memory
Honcho is connected to you as an MCP server (honcho). You feed it the turns of
your conversations; in the background it reasons over them and builds a
representation of the user. You can read that representation at any time and ask
it questions in natural language.
Everything below works in both Cursor and Grok Bot. Nothing here depends on
hooks, rules or local files: the skill plus the MCP tools are the whole system.
If you are a Grok Bot, also apply the honcho-grok-bot skill, which sets the
peer and session names for Bots.
The loop: recall, respond, record
- Resolve where memory lives (once per conversation, see below).
- Recall before you respond. Call
get_peer_contextfor the user peer at the start of a conversation and read it as if it were a note from a colleague who knows the user. When a specific question would help ("how does this user like tests written?"), askchat. - Record after every exchange. Append the user's message and your reply
with
add_messages_to_session. This is the only non-optional step: Honcho learns from nothing else. Exception: if the context injected at session start says automatic capture is on, the plugin's hooks are already recording prompts and replies for this conversation; skip this step and only store conclusions.
Reasoning happens asynchronously. Never wait or poll after recording.
Where memory lives
Workspace, peers and sessions are explicit arguments on every tool call, so
resolve them once at the start of a conversation and reuse them. Every id may
contain only letters, digits, _ and -; lowercase everything else and
replace other characters with -.
Workspace. Call get_metadata with workspace_id: "cursor" and no other
scope. If the result has a default_workspace key, that is the workspace to
use; otherwise use cursor. The honcho-setup skill writes that pointer when
the user chooses to share memory with another tool.
User peer. Call get_metadata on the chosen workspace. Use its user_peer
value. If there is none, ask the user once what Honcho should call them (a
short handle, no spaces), then store it on the workspace so every future
conversation, and every other Bot or editor on this account, finds the same
answer. set_metadata replaces the whole metadata object, so read the current
metadata first and write it back with user_peer added, never just the one
key. One stable peer id per
person: never invent a new one per conversation.
Your peer. In Cursor, cursor. In Grok Bot, your Bot's name in kebab-case
(the honcho-grok-bot skill has the details).
Session. In Cursor, one session per project. If the context injected at
session start names a session, use that name. Otherwise derive it: when the
project has a git origin remote, cursor-<owner>-<repo> from that URL (so
two clones of one repo share a session and two projects that happen to share
a folder name do not); when it has no remote, cursor-<folder-name> from the
workspace root. Lowercase and replace other characters with - (My Project
gives cursor-my-project). Keep using it across days; a project is one
coherent context. In Grok Bot, follow the honcho-grok-bot skill.
First use of a session. create_session, then add_peers_to_session with
two entries: the user peer with observe_me: true, observe_others: false, and
your peer with observe_me: false, observe_others: false. Honcho builds one
model, the user's. Creating a session or peer that already exists is harmless,
so you can do this whenever you are unsure.
Recording well
- Record the user's words verbatim. Record your reply as prose; drop code blocks longer than a dozen lines and say what they contained.
- Replace anything that looks like a secret (API keys, tokens, passwords,
connection strings) with
[redacted]before sending. - Do not record raw tool output or file contents the user did not write. Summarize tool activity in one line if it matters to the story.
- Batch when you can: one
add_messages_to_sessioncall with several messages beats several calls.
Recalling well
Three reads, cheapest first:
get_peer_contextfor the user peer: the synthesized picture of the user plus matching conclusions. Near-instant. Use at the start of every conversation and whenever the topic shifts.search: past messages matching a query, across the workspace or one session. Near-instant. Use for "what did
常见问题
它能在 Cursor 和 Grok Bot 中使用吗?
能。该技能的编写适用于两者,使用它们共享的 Honcho 连接。
新的记忆会立即生效吗?
不一定。Honcho 会在后台对消息进行推理,因此新学到的内容需要一些时间。
我需要先做设置吗?
需要。必须先把 Honcho 连接到你的助手上,设置步骤另有说明。
详情
作者的原始描述
Use Honcho as your persistent memory of the user. Apply at the start of every conversation (recall what Honcho knows), whenever personalization or past context would help, when the user asks what you remember or know about them, and after every exchange (record the turn). Works the same in Cursor and in Grok Bot.
repo: plastic-labs/honcho
热度
- GitHub 星标
- 7.9k
- 排名
- #12745
- 许可证
- AGPL-3.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
honcho-grok-bot
7.9k帮助你的 Grok Bot 一致地使用 Honcho 记忆,按照同一账号下其他 Bot 的方式为其身份和聊天会话命名。
honcho-setup
7.9k帮你的智能体连接 Honcho 记忆、完成登录、选择记忆工作区,并检查连接是否正常工作。
honcho-memory
7.9k帮你的智能体在开始工作前检查关于你和项目的已存记忆,并为之后的会话保存有用的结论。
honcho-cli
7.9k帮你的智能体从命令行检查 Honcho 记忆设置,查看已存的对等方记忆和会话,并确认记忆循环是否正常。