Agent skill

MemPalace Task Handoff

by MemPalace in MemPalace/mempalace

Creates, hands off, claims, executes and closes agent tasks through the MemPalace logstream, with approval of the exact task before it is recorded.

MITAuto-check passedAgent Workflows

Install MemPalace Task Handoff

skills CLI
$ npx skills add MemPalace/mempalace --skill mempalace-task -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install MemPalace/mempalace mempalace-task --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/MemPalace/mempalace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mempalace-task .claude/skills/mempalace-task && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mempalace-task
GitHub stars
59k
Token cost
~1.9k tokens
SKILL.md length
948 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Creates, hands off, claims, executes and closes agent tasks through the MemPalace logstream, with approval of the exact task before it is recorded.

  • Works in 4 steps: Confirm mempalace --version succeeds. → Confirm the MemPalace MCP tools are… → Establish the current agent's stable… → …
  • Delegating a piece of work to another agent through MemPalace
  • SKILL.md covers Verify the coordination seam, Create a task, Receive and execute a pasted… and Controlled headless mode, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Tasks belong in the logstream, not in memory drawers, and the canonical lifecycle is in the public coordination protocol. Before anything else the agent checks that `mempalace --version` works and that `mempalace task --help` and `mempalace_task_create` exist, otherwise it explains the runtime is incompatible, hands off to the `mempalace` setup skill and proposes an upgrade that needs your explicit authorization. It also confirms the MCP tools are connected to the intended shared palace and uses a stable `host:harness:project` identity without impersonating another agent.

A task needs a project routing name, requesting and destination identities, an exact goal, a target branch, an exact hexadecimal base commit id, never a branch or tag, and a definition of done, all resolved from the worker's own checkout. Because logstream events are immutable, the agent shows the exact normalized task and gets approval before appending it, then creates it through `mempalace_task_create` rather than a raw `task.request`. A pasted handoff can wake a turn-based agent, but a logstream event alone cannot.

When your agent uses it

  • Delegating a piece of work to another agent through MemPalace
  • Preparing a ready-to-paste task handoff for another agent
  • Claiming and closing a MemPalace task id
  • Launching a supported headless agent on a task in controlled mode

Example prompts

  • “Delegate the auth refactor on branch feature/auth-refresh to my other agent through MemPalace.”
  • “Prepare a ready-to-paste handoff for another agent with the exact base commit and definition of done.”
  • “Show me the exact normalized task before you record it in the logstream.”
  • “Claim the MemPalace task I was given and report back when it is closed.”

Requirements

  • The `mempalace` CLI with task support and its MCP tools connected
  • A shared MemPalace palace

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Confirm mempalace --version succeeds.
  2. Confirm the MemPalace MCP tools are connected and the active palace is the
  3. Establish the current agent's stable host:harness:project identity.
  4. Check the destination agent's monitoring status when possible. A pasted

What it can do on your machine

Read from SKILL.md and the folder at commit d439d1e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

MemPalace Task Handoff loads about 1.9k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 948 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from MemPalace/mempalace at commit d439d1e, republished under its MIT licence (© MemPalace). 948 words, ~1,857 tokens.

Download SKILL.mdSave it as .claude/skills/mempalace-task/SKILL.md (or your agent's skills folder).
name
mempalace-task
description
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.

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

  1. Confirm mempalace --version succeeds. Also confirm mempalace task --help and mempalace_task_create exist; if either is missing, do not assume the older runtime has update-awareness commands. Explain that it is incompatible, hand off to the mempalace setup 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) plus npx skills update mempalace mempalace-recall mempalace-task. Require explicit authorization before running anything.
  2. Confirm the MemPalace MCP tools are connected and the active palace is the intended shared brain.
  3. Establish the current agent's stable host:harness:project identity. Never impersonate another agent. Never mint a second harness suffix to split windows.
  4. 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:

bash
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>...:

  1. Fetch the exact task.request by correlation_id=<id> with mempalace_event_list; do not work from the short pasted line alone.
  2. Verify it is addressed to this agent (or is a broadcast explicitly being accepted), and verify the workspace, branch, and base commit before edits.
  3. Claim the request with mempalace_event_ack(status=claimed). Claiming is a watch trigger: arm mempalace 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 existing status=claimed from your own identity first; lowest-HLC wins on a simultaneous claim.
  4. Do the work and run the stated verification.
  5. Deliver a patch with mempalace_patch_submit. If blocked or failed, send a verbatim task.reply instead. Silence is not a valid outcome.
  6. The requester fetches and verifies the artifact, applies it with explicit user-visible intent, runs verification, then acknowledges applied or failed.

For a remote-only shared-brain client, inbox monitoring is MCP-backed: use mempalace_event_wait with the stable destination identity and carry the last event id forward as since_event_id. Use mempalace_event_list for the wake-up sweep. Do not run the local SQLite mempalace logstream watch command unless this machine owns the palace or a deliberately synchronized replica.

Show full SKILL.md (297 more words)Show less

Controlled headless mode

Only when the user explicitly asks to launch an agent, first prepare a trusted, clean Git checkout on the task's exact branch and base commit. Then run:

bash
mempalace task launch <task-id> --runner codex --workspace <path>
mempalace task launch <task-id> --runner claude --workspace <path>

Those commands resolve a task from a local palace. On a remote-only MCP client, fetch the single full task.request with mempalace_event_list, save that exact event object as JSON on the destination machine, and launch without consulting an unrelated local palace:

bash
mempalace task launch --task-file <task-request.json> --runner codex --workspace <path>

The task file is a transport snapshot, not a replacement task: do not edit or reconstruct it. Headless launch always occurs on the destination machine that owns the trusted checkout; the requester cannot remotely spawn a process merely by appending to the hub.

This resolves the stored request, proves the workspace is a clean Git checkout on the stored branch with HEAD equal to the stored base commit, validates the addressed identity and its conventional *-codex or *-claude harness suffix, and starts the selected runner without a shell. Use --agent <identity> only to accept a broadcast; it must never override a task addressed to somebody else. The launcher does not bypass sandboxing, approvals, or harness permissions. Do not add dangerous permission flags on the user's behalf.

Task creation and process launch are separate actions. The pasteable handoff is the portable default; headless launch is an explicit controlled-mode adapter.

Unhappy paths

  • Task missing or duplicated: stop rather than guessing which request to execute.
  • Wrong identity: refuse it and tell the user who the task addresses.
  • Base commit mismatch: do not edit; ask the requester to supersede the task with a corrected request.
  • Destination not monitoring: give the user the Ready to paste line and explain that a human wake-up is required.
  • MCP/logstream unavailable: run mempalace status and return to setup; never silently replace coordination with a memory drawer.

© MemPalace, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/mempalace-task of MemPalace/mempalace.

Open the folder on GitHubat commit d439d1e

Compare with similar skills

MemPalace Task Handoff next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

MemPalace Task Handoff compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
MemPalace Task Handoff this skillMemPalace/mempalace59k—~1.9kAutomated safety check: PassMIT
agtx One-Shot Project Runnerfynnfluegge/agtx1.7k—~3.8kAutomated safety check: PassApache-2.0
Agent Manager Fleet TUIYoanWai/agent-manager576—~1kAutomated safety check: PassApache-2.0
Agtx Task Sweepfynnfluegge/agtx1.7k—~1.7kAutomated safety check: PassApache-2.0
OMA Multi-Agent Orchestratorfirst-fluke/oh-my-agent1.3k—~3.1kAutomated safety check: PassMIT
TMA1 Peer Sessionstma1-ai/tma1119—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Runs a whole project unattended on an agtx kanban board, decomposing the goal, starting tasks, unblocking workers and merging each result.

    1.7k GitHub stars~3.8k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • Agent Manager Fleet TUI

    YoanWai/agent-manager

    Runs several coding-agent CLIs as real tmux sessions in one terminal UI, color-coded by whether each is working, waiting, idle or blocked.

    576 GitHub stars~1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Agtx Task Sweep

    fynnfluegge/agtx

    Breaks a conversation's results into feature-level tasks and pushes them to the agtx kanban board, where each task gets its own worktree and agent session.

    1.7k GitHub stars~1.7k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • OMA Multi-Agent Orchestrator

    first-fluke/oh-my-agent

    Splits a complex feature into prioritized tasks, spawns specialist CLI subagents in parallel, tracks them through shared memory and verifies each result.

    1.3k GitHub stars~3.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • TMA1 Peer Sessions

    tma1-ai/tma1

    Lists recent sessions of peer coding agents such as Codex, OpenClaw or Copilot CLI, or your own past sessions, so you can act on their work without copying between terminals.

    119 GitHub stars~1.1k tokensUpdated 20 days ago
    Agent WorkflowsAuto-check passed
  • Orca CLI

    stablyai/orca

    Operate Orca-managed worktrees, folder contexts, terminals, repos, automations, artifacts, skill sharing, worktree comments, and Orca's embedded browser…

    87k GitHub starsUsed in 2 repos~593 tokens
    Agent WorkflowsAuto-check passed

More from MemPalace/mempalace

  • MemPalace Memory Search

    MemPalace/mempalace

    Mines project files and conversation exports into a local, searchable memory palace and recalls past work by semantic search through the mempalace CLI.

    59k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Installs and configures MemPalace as a private local palace, a shared-brain hub or a client of an existing hub, including MCP registration and version-correct initialization.

    59k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • MemPalace Recall Protocol

    MemPalace/mempalace

    Makes the agent search the user's MemPalace memory before answering about past work, people, projects or earlier decisions.

    59k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • MemPalace Memory

    MemPalace/mempalace

    Gives an agent a local memory palace over MCP: verbatim conversation memory, semantic search and a temporal knowledge graph, with a per-session recall protocol.

    59k GitHub stars~2.7k tokensUpdated today
    Auto-check passed

Categories

Questions about MemPalace Task Handoff

What does MemPalace Task Handoff do?

Creates, hands off, claims, executes and closes agent tasks through the MemPalace logstream, with approval of the exact task before it is recorded. Tasks belong in the logstream, not in memory drawers, and the canonical lifecycle is in the public coordination protocol. Before anything else the agent checks that `mempalace --version` works and that `mempalace task --help` and `mempalace_task_create` exist, otherwise it explains the runtime is incompatible, hands off to the `mempalace` setup skill and proposes an upgrade that needs your explicit authorization.

When should I use MemPalace Task Handoff?

MemPalace Task Handoff fits situations like: delegating a piece of work to another agent through MemPalace; preparing a ready-to-paste task handoff for another agent; claiming and closing a MemPalace task id; launching a supported headless agent on a task in controlled mode.

How do I install MemPalace Task Handoff in Claude Code?

Run `npx skills add MemPalace/mempalace --skill mempalace-task -a claude-code`. Or copy the skill folder (skills/mempalace-task in MemPalace/mempalace) into .claude/skills/mempalace-task in your project. Claude Code loads it when a task matches its description.

How do I install MemPalace Task Handoff in Codex?

Run `npx skills add MemPalace/mempalace --skill mempalace-task -a codex`. Or copy the skill folder (skills/mempalace-task in MemPalace/mempalace) into .agents/skills/mempalace-task in your project. Codex loads it when a task matches its description.

Can I use MemPalace Task Handoff in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add MemPalace/mempalace --skill mempalace-task -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mempalace-task, .gemini/skills/mempalace-task, .github/skills/mempalace-task and .opencode/skills/mempalace-task in your project.

What does MemPalace Task Handoff need to run?

SKILL.md names no scripts, command-line tools or credentials: MemPalace Task Handoff is instructions for the agent only. Our summary lists: The `mempalace` CLI with task support and its MCP tools connected; A shared MemPalace palace.

Does MemPalace Task Handoff access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is MemPalace Task Handoff safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does MemPalace Task Handoff use?

MemPalace Task Handoff is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does MemPalace Task Handoff use?

About 1.9k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to MemPalace Task Handoff?

Skills that share tags, products or a category with MemPalace Task Handoff: agtx One-Shot Project Runner (fynnfluegge/agtx, 1.7k stars), Agent Manager Fleet TUI (YoanWai/agent-manager, 576 stars), Agtx Task Sweep (fynnfluegge/agtx, 1.7k stars) and OMA Multi-Agent Orchestrator (first-fluke/oh-my-agent, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains MemPalace Task Handoff?

MemPalace (a GitHub organization) maintains it in MemPalace/mempalace, which has 59,455 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 7, 2026.

Source: MemPalace/mempalace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.