mempalace-task
它能做什么
这个技能让你的智能体通过 MemPalace 把工作交给另一个 AI 智能体,并在任务流转时进行跟踪。适合协调多个智能体共同工作的人。
适用场景
- ✓当你想把一项工作交给另一个 AI 智能体,并附上清晰的任务编号时。
- ✓当你想要一份可直接粘贴、供另一个智能体接手的任务的时候。
- ✓当你想查看已交接工作的状态的时候。
技能链接
https://github.com/MemPalace/mempalace/blob/develop/.claude-plugin/skills/mempalace-task/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在 MemPalace 中创建一个任务,让另一个智能体审阅 API 改动,并把任务编号告诉我。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会把每个任务记录到 MemPalace logstream 中,使每个智能体都能看到其负责人和状态。它会检查 MemPalace 工具是否可用,并为每个智能体使用稳定的身份。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
MemPalace Task
A quick-start workflow for active work moving between agents. Tasks belong in the logstream, not in memory drawers. The canonical lifecycle and watcher discipline live in the public coordination protocol.
Verify the coordination seam
- Confirm
mempalace --versionsucceeds. Also confirmmempalace task --helpandmempalace_task_createexist; if either is missing, do not assume the older runtime has update-awareness commands. Explain that it is incompatible, hand off to themempalacesetup skill, and propose the package-manager-appropriate upgrade (uv tool upgrade mempalace,pipx upgrade mempalace, or the interpreter backing the active MemPalace command followed by-m pip install --upgrade mempalace) plusnpx skills update mempalace mempalace-recall mempalace-task. Require explicit authorization before running anything. - Confirm the MemPalace MCP tools are connected and the active palace is the intended shared brain.
- Establish the current agent's stable
host:harness:projectidentity. Never impersonate another agent. Never mint a second harness suffix to split windows. - Check the destination agent's monitoring status when possible. A pasted handoff can wake a turn-based agent; a logstream event alone cannot.
If setup is incomplete, stop and use the mempalace setup skill.
Create a task
Gather these fields from the user or current repository state:
- project routing name;
- requesting and destination agent identities;
- exact goal;
- target branch;
- exact hexadecimal base commit id (never a branch or tag);
- definition of done.
Resolve the branch and hexadecimal base commit id from the intended worker checkout, not from an unrelated repository. Never pass a mutable branch or tag as the base commit. Before appending anything, show the user the exact normalized task: the identities, project, goal, branch, base commit, definition of done, and the fact that delivery must close through MemPalace. Logstream events are immutable, so obtain approval of that exact content unless the user already explicitly approved it in the current turn.
Create the task through the high-level interface rather than assembling a raw
task.request. When MCP is connected—especially for a client joining a remote
shared-brain hub—call mempalace_task_create with the approved fields. It
returns the stored task and handoff and writes on the hub, not to an
unintended local palace.
On the palace-owning machine, or when intentionally operating a local palace through the shell, the equivalent CLI is:
mempalace task create \
--project <project> \
--from-agent <requester> \
--to-agent <worker> \
--goal <exact-goal> \
--branch <branch> \
--base-commit <commit> \
--done <exact-definition-of-done>
Use --goal-file or --done-file for multiline CLI content; never flatten or
paraphrase the user's wording. The CLI prints a Ready to paste line; the MCP
tool returns the same line as handoff. Return it unchanged so the user can
wake the destination agent without copying the whole task body. Never use the
local CLI fallback merely because the remote MCP call failed—surface and fix
the connection instead.
Receive and execute a pasted task
When given Open MemPalace task <id> as <agent>...:
- Fetch the exact
task.requestbycorrelation_id=<id>withmempalace_event_list; do not work from the short pasted line alone. - Verify it is addressed to this agent (or is a broadcast explicitly being accepted), and verify the workspace, branch, and base commit before edits.
- Claim the request with
mempalace_event_ack(status=claimed). Claiming is a watch trigger: armmempalace logstream watch --agent <you> --type task.request --type task.reply --type patch.ready --json(the CLI defaults a sanitized--state-file) unless this is a remote-only MCP client (see below). Check for an existingstatus=claimedfrom your own identity first; lowest-HLC wins on a simultaneous claim. - Do the work and run the stated verification.
- Deliver a patch with
mempalace_patch_submit. If blocked or failed, send a verbatimtask.replyinstead. Silence is not a valid outcome. - The requester fetches and verifies the artifact, applies it with explicit user-visible intent, runs verification, then acknowledges `appl
常见问题
它会运行其他智能体吗?
它可以在受控模式下启动受支持的无界面智能体,但只有在你明确要求时才会这样做。
一个智能体可以冒充另一个智能体吗?
不可以。每个智能体保持自己的身份,不会冒充其他智能体。
任务存储在哪里?
任务保存在 logstream 中,而不是记忆笔记里。
详情
作者的原始描述
Create, hand off, claim, execute, and close agent tasks through the MemPalace logstream. Use when the user wants to delegate work, prepare a ready-to-paste task for another agent, receive a MemPalace task id, or explicitly launch a supported headless agent in controlled mode.
repo: MemPalace/mempalace
热度
- GitHub 星标
- 60k
- 排名
- #3176
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
mempalace-recall
60k帮你的智能体在回答有关过去工作、人物、项目或早先决定的问题之前,先搜索你的 MemPalace 记忆库。
mempalace
60k帮你的智能体安装和使用 MemPalace,这是一个可搜索的记忆库,用于保存你的项目和对话,包括导入和搜索。
mempalace
60k帮你的智能体安装和配置 MemPalace,可以作为私有本地记忆库、多个智能体共用的中心,或现有中心的客户端。
mempalace
60k帮你的智能体回忆过去的工作或事实、保存记忆、更新人与项目之间的关联,并排查 MemPalace 的问题。