Melech Handoff logo

Melech Handoff

Community
AdirD
melech-handoff

List and continue coding-agent transcripts across Cursor, Claude Code, Codex, Gemini, and other local agents. Use when finding a recent transcript, resuming prior work, or invoking `/melech-handoff`.

Overview

PublisherAdirD
Repositoryagent-shell-hamelech
Skill namemelech-handoff
Stars
46
Forks
5
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by AdirD on GitHub. Read the source before you install it.

Installation

Install the Melech Handoff AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/AdirD/agent-shell-hamelech/tree/main/skills/melech-handoff
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AdirD/agent-shell-hamelech.git /tmp/agent-shell-hamelech
mkdir -p .claude/skills
cp -r /tmp/agent-shell-hamelech/skills/melech-handoff .claude/skills/melech-handoff
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Melech Handoff in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Melech Handoff on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Melech Handoff is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Melech Handoff

Find and resume coding-agent sessions without putting handoff files in the repository or making the user copy transcript paths between chats.

Two modes only: list and cont. The script only discovers, lists, and looks up transcripts. The agent does the intelligent retrieval.

text
/melech-handoff
/melech-handoff list
/melech-handoff cont [session-id-prefix | objective]

Resolve the mode from the invocation. Do not ask which mode they want.

  • Bare /melech-handoff or /melech-handoff list → list
  • /melech-handoff plus a session id / unique id prefix → cont
  • /melech-handoff cont … → cont

Set HANDOFF_SCRIPT to scripts/handoff.py beside this file. Run it with Python 3.9 or newer. Treat its JSON output as the source of truth; do not recreate transcript discovery with an unbounded home-directory search.

List

Run:

bash
python3 "$HANDOFF_SCRIPT" list --cwd "$PWD" --limit 12

Show the rows newest first as compact Markdown cards. Do not use a table: CLI table renderers crush the metadata columns and cannot display multiline glimpses. Use the script fields; do not invent dates, agents, worktrees, or counts.

text
### `<short_id>` · <topic>
<provider> · <age>
`<worktree>` · <stats.user_messages> user msgs · ~<stats.approx_tokens> tokens

1. <third-to-last user message>
2. <second-to-last user message>
3. <latest user message>

age is the compact time since the transcript was last written, such as 8m ago, 3h ago, or 2d ago; this is the only timestamp shown because the list is ordered by recent activity. Exact created and modified values remain in the script output for lookup or debugging. worktree is main for the repository's main worktree and otherwise the worktree directory name. stats.approx_tokens is a cheap chars / 4 estimate, not a tokenizer result. topic is a short hint derived from the first meaningful human request. glimpse contains up to the three latest human user messages as real numbered lines. Preserve the newlines when rendering the card; do not duplicate messages when fewer than three exist. Each message may use up to 160 characters. Do not remove the cap because individual transcript turns can be thousands of characters. Tool results and metadata-only user records are ignored.

list is read-only. Show enough information for the user to invoke /melech-handoff cont <id>, then stop. Do not start working or read full transcripts.

Continue

If the argument begins with a session ID or unique ID prefix, run:

bash
python3 "$HANDOFF_SCRIPT" lookup --cwd "$PWD" --id "<id-prefix>"

Any remaining text is the continuation objective.

If there is no ID, run list without a query. The script does not pretend to understand the objective. Choose distinctive terms from the objective and search only the returned primary_transcript_path files with rg.

  • One clear transcript match: run lookup on its id, then continue.
  • Several plausible matches: use one combined AskQuestion picker with the matching candidates. After the pick, run lookup.
  • No argument: show the five newest rows in one combined AskQuestion picker. Each option starts with <age> · <provider> · <topic> · <short_id>, followed by worktree, stats, and the three-line glimpse. If undisplayed rows remain, append an Older sessions… option that opens the next five rows using the same layout. Do not add multiple questions to one picker because that requires one answer per question.
  • If the user selects the picker's automatic Other option and enters text, treat that text as the continuation objective and relevance query. Search the returned primary_transcript_path candidates for distinctive terms, independent of recency. Continue a single clear match; otherwise show one refreshed picker containing only the strongest relevant candidates.
  • After a session is picked, run lookup.
  • No match among the listed candidates: say so. Do not broaden into an unbounded home-directory scan.

lookup returns primary_transcript_path, the text file to consult. If anything about the task or current state is unclear, search that transcript for relevant keywords such as task names, filenames, IDs, errors, and tool names. Then read a small window around matching lines to reconstruct intent and state. Avoid reading linearly end-to-end: JSONL transcripts can be large and individual lines can contain large payloads.

Use the continuation objective to decide what context is relevant. The agent, not the Python script, makes that judgment.

Do not write a card and do not invent a long recap. Follow retrieval constraints in the objective, such as “don’t read all.”

Continue the work directly once the target is clear. Do not ask whether the user wants you to proceed.

Boundaries

  • Do not write files under ~/.melech/handoffs/. List and continue from transcripts only.
  • Scope defaults to the current worktree root, not sibling worktrees.
  • Provider locations come only from references/providers.json.
  • Database, encrypted, protobuf-only, and compressed-only histories are recorded but unsupported.
  • Transcript and handoff contents are private local history. Never publish, upload, or paste them externally without explicit user instruction.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Melech Handoff AI skill do?

List and continue coding-agent transcripts across Cursor, Claude Code, Codex, Gemini, and other local agents. Use when finding a recent transcript, resuming prior work, or invoking `/melech-handoff`.

Why use Melech Handoff on TypingMind?

Because you install it once and use it with any model. Melech Handoff is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Melech Handoff in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AdirD/agent-shell-hamelech/tree/main/skills/melech-handoff. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Melech Handoff?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Melech Handoff?

As many as you like. As long as a model supports skills, you can use Melech Handoff with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Melech Handoff AI skill free?

Yes. It is published on GitHub by AdirD under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇