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.
npx skills add wenlan-app/wenlan --skill handoffgit clone --depth 1 https://github.com/wenlan-app/wenlanWrote 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.
[](https://agentmods.dev/skills/wenlan-app/wenlan/handoff)<a href="https://agentmods.dev/skills/wenlan-app/wenlan/handoff"><img src="https://agentmods.dev/badge/skills/wenlan-app/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.
<a href="https://agentmods.dev/skills/wenlan-app/wenlan/handoff"><img src="https://agentmods.dev/badge/skills/wenlan-app/wenlan/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.02076 |
| Opus 5.5 | $0.00016 | $0.00830 |
| Sonnet 5.5 | $0.00008 | $0.00415 |
| Haiku 4.5 | $0.00004 | $0.00208 |
Grade B, and why
handoff scanned grade B with 1 finding 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 3d ago.
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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
resolver="$(find "$HOME/.codex/plugins/cache" -path '*/wenlan/*/bin/resolve-space.sh' 2>/dev/null | head -1)" Copies of this mod
1 near-identical copy found in the catalogue:
- handoff — 94% identical, 40 lines differ
How it starts
The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/handoff
Close the session with three separate artifacts:
- A typed update to the daemon-owned Space Brief.
- Durable MCP captures in that Space.
- A chronological session log in
~/.wenlan/sessions/.
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 /handoff, empty when none>"
# The resolver ships inside the installed plugin; the relative path only
# exists in a wenlan checkout.
resolver="$(find "$HOME/.codex/plugins/cache" -path '*/wenlan/*/bin/resolve-space.sh' 2>/dev/null | head -1)"
resolved="$("${resolver:-plugin-codex/bin/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 (/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
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3d ago Changed · +3 lines · -2 tokens per session 7accd8de64d7
- 4d ago First seen · 201 lines · 41 tokens per session scan B 95fb152b0255
handoff is a skill published in the GitHub repository wenlan-app/wenlan (82 stars, last pushed yesterday), licensed Apache-2.0. It adds 39 tokens to every session and 2,076 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.
Other skills, from other repositories
forget
Delete a Wenlan memory by exact id from Codex. Destructive and confirmation gated. Invoked as /forget .
curate
Review pending Wenlan captures, revisions, or daemon refinements from Codex. Use for explicit audit walks after /brief or /handoff surfaces pending work. Invoked as /curate captures, /curate revisions, or /curate refinements.
recall
Search Wenlan's local memory from Codex by query. Targeted lookup, not session orientation. Invoked as /recall .
capture
Save a durable memory to Wenlan from Codex. Use proactively when the user states a preference, makes a decision, corrects you, or shares a durable fact. Invoked as /capture .
handoff
End a Codex work session. Stores durable captures, writes a narrative session log, and automatically applies typed item-level deltas to the current Space Brief. Invoked as /handoff.
lint
Lint Wenlan memory quality and hygiene, check vocabulary, or resolve every finding into a ready repair, review item, system action, or blocker.