wenlan-handoff

wenlan-handoff is a skill for Claude Code, Codex from wenlan-app/wenlan. It costs 43 tokens per session (2,918 once invoked), scanned A, original, Apache-2.0.

A work-session closing tool that saves important notes, updates a shared project brief, and writes a dated session record.

In plain words
What is it for?
It is for handing work to a future session, keeping the current project summary accurate, saving durable memories, and updating wiki pages.
Why use it?
It prevents decisions, progress, and related documentation from being lost when a coding session ends.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for handing work to a future session, keeping the current project summary accurate, saving durable memories, and updating wiki pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wenlan-app/wenlan/wenlan-handoff
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wenlan-app/wenlan --skill wenlan-handoff
Clone the repo
git clone --depth 1 https://github.com/wenlan-app/wenlan

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wenlan-handoff

README.md
[![agentmods](https://agentmods.dev/badge/skills/wenlan-app/wenlan/wenlan-handoff/github.svg)](https://agentmods.dev/skills/wenlan-app/wenlan/wenlan-handoff)
Your own site
<a href="https://agentmods.dev/skills/wenlan-app/wenlan/wenlan-handoff"><img src="https://agentmods.dev/badge/skills/wenlan-app/wenlan/wenlan-handoff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wenlan-handoff

Your own site · 80×15
<a href="https://agentmods.dev/skills/wenlan-app/wenlan/wenlan-handoff"><img src="https://agentmods.dev/badge/skills/wenlan-app/wenlan/wenlan-handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,918 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02918
Opus 5.5 $0.00017 $0.01167
Sonnet 5.5 $0.00009 $0.00584
Haiku 4.5 $0.00004 $0.00292

Measured today against content hash 549e03834608, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wenlan-handoff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin-agents/skills/wenlan-handoff/SKILL.md · 259 lines

How it starts

The opening of the file, as written. The whole thing — 259 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/wenlan-handoff

Close the session with three separate artifacts:

  1. A typed update to the daemon-owned Space Brief.
  2. Durable MCP captures in that Space.
  3. A chronological session log in ~/.wenlan/sessions/.

It also brings the wiki pages this session used up to date (step 7).

The daemon Brief is current-work authority. Its ~/.wenlan/sessions/_status/<space>.md projection is a one-way human receipt. Never read, edit, or overwrite that receipt as authority.

1. Resolve repository and Space

handoff_arg="<the Space name passed to /wenlan-handoff, empty when none>"
resolved="$("{{WENLAN_SKILLS_DIR}}/wenlan/scripts/resolve-space.sh" --cwd "$PWD" --arg "$handoff_arg" --new-repo-fallback 2>/dev/null)"
space="$(printf '%s\n' "$resolved" | cut -f1)"
source_layer="$(printf '%s\n' "$resolved" | cut -f2)"

If the user passed a Space name (/wenlan-handoff <space>), pass it as --arg <space> to resolve-space.sh.

Print space and source_layer. Explicit pins, defaults, and mappings still win. cwd-repo-new is the approved first-handoff fallback: use the canonical repository basename, which the user can override through normal Space config. Do not invent any other Space name.

Outside a Git repository, do not derive a new Space from the directory basename. If resolution still leaves space empty, skip the Brief read and typed update, do not issue Space-scoped captures, and continue with the unscoped session log and any unscoped durable captures. Outside a Git repository, a pin, explicit argument, default, or mapping still resolves a Space, and the Brief update and captures still run.

2. Read the Brief before composing deltas

W="$(command -v wenlan || echo "$HOME/.wenlan/bin/wenlan")"
brief_before=""
daemon_down=0
if [ -n "$space" ]; then
  "$W" --format json status >/dev/null 2>&1 || daemon_down=1
  if [ "$source_layer" = "cwd-repo-new" ]; then
    space_probe_status=0
    space_probe="$("$W" --format json spaces show "$space" 2>&1)" || space_probe_status=$?
    if [ "$space_probe_status" -eq 0 ]; then
      daemon_down=0
      brief_before="$("$W" --format json --space "$space" brief)"
      source_layer="cwd-repo"
    elif [ "$space_probe" = "Error: space '$space' not found" ]; then
      : # absent Space: the typed update creates it
    elif [ "$daemon_down" = 1 ]; then
      brief_before=""
      echo "Wenlan is not running; this handoff will be saved locally and sync when it starts"
    else
      printf "%s\n" "$space_probe" >&2
      exit "$space_probe_status"
    fi
  else
    brief_status=0
    brief_output="$("$W" --format json --space "$space" brief 2>&1)" || brief_status=$?
    if [ "$brief_status" -eq 0 ]; then
      daemon_down=0
      brief_before="$brief_output"
    elif [ "$daemon_down" = 1 ]; then
      brief_before=""
      echo "Wenlan is not running; this handoff will be saved locally and sync when it starts"
    else
      printf "%s\n" "$brief_output" >&2
      exit "$brief_status"
    fi
  fi
fi

Read the full file on GitHub · 259 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 259 lines · 43 tokens per session scan A 549e03834608

Subscribe to this mod's changes

wenlan-handoff is a skill published in the GitHub repository wenlan-app/wenlan (86 stars, last pushed today), licensed Apache-2.0. It adds 43 tokens to every session and 2,918 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-24.