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 capturegit 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/capture)<a href="https://agentmods.dev/skills/wenlan-app/wenlan/capture"><img src="https://agentmods.dev/badge/skills/wenlan-app/wenlan/capture/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/capture"><img src="https://agentmods.dev/badge/skills/wenlan-app/wenlan/capture.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.00060 | $0.02825 |
| Opus 5.5 | $0.00024 | $0.01130 |
| Sonnet 5.5 | $0.00012 | $0.00565 |
| Haiku 4.5 | $0.00006 | $0.00282 |
Grade B, and why
capture 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 2d 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:
- capture — 92% identical, 281 lines differ
How it starts
The opening of the file, as written. The whole thing — 251 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/capture
Capture a single memory in the moment. Active verb: agent captures the moment of insight, like a photograph.
Run echo $CODEX_THREAD_ID once; when it is non-empty, pass
session: "codex:<that id>" on capture and write_page.
Resolve the active space
The /capture skill accepts one optional inline token of the form
space:<name> anywhere in the argument string. The bundled resolver strips it
and returns the rest as the content. It prints the resolved Space line itself:
raw_args="<the full argument string passed to /capture>"
# 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" --args "$raw_args")"
space="$(printf '%s\n' "$resolved" | cut -f1)"
source_layer="$(printf '%s\n' "$resolved" | cut -f2)"
content="$(printf '%s\n' "$resolved" | cut -f3-)"
If content is empty, ask the user what they want to capture before calling
the tool. Pass space="$space" to the capture MCP tool only when space is
non-empty.
The resolver line reports the proposed client context. After capture, relay
the tool's returned space, space_source, and write_outcome; those fields
describe what the daemon actually persisted and are authoritative.
Unknown spaces are not auto-created. Register one through the resolved CLI
binary, or omit space to store uncategorized:
W="$(command -v wenlan || echo "$HOME/.wenlan/bin/wenlan")"
"$W" spaces add <space>
Memory or page
Default to one memory. Save a page instead only when the user asks for one in
their own words: "save this as a page", "save this as a note", "write this up",
"存成頁面", "存成筆記", "寫成一頁", or /capture text that starts with "page:" or
"note:". Proactive captures are always memories; never create a page on your
own initiative, and never save the same thing as both a memory and a page in
one turn. Turning many memories into pages is a different job: that is
$wenlan steep.
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.
- 2d ago Changed · +1 lines a9bc0f844119
- 19d ago Changed · +7 lines 4974af9d2c0f
- 20d ago Changed · +7 lines f6c808c74710
- 24d ago Changed 36979827182c
- 1mo ago Changed · +16 lines 077bf0c6a9bc
- 1mo ago Changed · +17 lines d59fbfa2ab76
- 1mo ago Changed · +31 lines · +13 tokens per session 9f29ce696e81
- 1mo ago Changed · +35 lines · +3 tokens per session 8aac1fffb207
- 1mo ago First seen · 137 lines · 44 tokens per session scan B 0fedac1f799b
capture is a skill published in the GitHub repository wenlan-app/wenlan (502 stars, last pushed today), licensed Apache-2.0. It adds 60 tokens to every session and 2,825 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.
capture compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| capturewenlan-app/wenlan | Skill | 502 | today | Apache-2.0 | B | 60 | Claude Code, Codex |
| statskalinbogatzevski/captain-memo | Skill | 5 | 6d ago | Apache-2.0 | A | 36 | Claude Code |
| searchkalinbogatzevski/captain-memo | Skill | 5 | 6d ago | Apache-2.0 | A | 49 | Claude Code |
| doctorkalinbogatzevski/captain-memo | Skill | 5 | 6d ago | Apache-2.0 | A | 52 | Claude Code |
| observationskalinbogatzevski/captain-memo | Skill | 5 | 6d ago | Apache-2.0 | A | 30 | Claude Code |
| recallkalinbogatzevski/captain-memo | Skill | 5 | 6d ago | Apache-2.0 | A | 36 | Claude Code |
| captain-memokalinbogatzevski/captain-memo | Skill | 5 | 6d ago | Apache-2.0 | A | 151 | Claude Code |