init

A setup command that creates the PaperLoom research-note workspace, an Obsidian vault for storing papers, findings, authors, topics, and related views.

In plain words
What is it for?
It helps initialize a new vault at a chosen path while preserving files that already exist.
Why use it?
It removes the manual work of creating folders, templates, configuration, and starter files before using PaperLoom.

Command

Part of the claude-paperloom plugin — 4 commands, 4 agents shipped together

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.

agentmods
npx agentmods add commands/trapoom555/claude-paperloom/init
Clone the repo
git clone --depth 1 https://github.com/trapoom555/claude-paperloom

Or install claude-paperloom, the plugin that ships this one along with the rest of its 4 commands, 4 agents.

Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 519 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00519
Opus 5 $0.00017 $0.00260
Sonnet 5 $0.00007 $0.00104
Haiku 4.5 $0.00003 $0.00052

Measured 3d ago against content hash a90161687070, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init 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 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.

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.

commands/init.md · 42 lines

What it actually says

/paperloom:init

Scaffold the Obsidian vault that PaperLoom uses. All filesystem work is done by scripts/init_vault.py — this command just resolves the path and shells out.

Inputs

  • $ARGUMENTS — optional vault path. Precedence: argument > ${CLAUDE_PLUGIN_CONFIG:vault_path} > ~/PaperLoom.

Steps

  1. Pick the vault path per the precedence above. Pass the raw path to the script — the script expands ~ and env vars itself.

  2. Bootstrap the plugin venv if it doesn't already exist, then run the scaffolder:

    if [ ! -x "${CLAUDE_PLUGIN_ROOT}/.venv/bin/python3" ]; then
      python3 -m venv "${CLAUDE_PLUGIN_ROOT}/.venv" \
        && "${CLAUDE_PLUGIN_ROOT}/.venv/bin/pip" install -r "${CLAUDE_PLUGIN_ROOT}/requirements.txt"
    fi
    "${CLAUDE_PLUGIN_ROOT}/.venv/bin/python3" "${CLAUDE_PLUGIN_ROOT}/scripts/init_vault.py" "<vault-path>"
    

    The script:

    • Resolves the absolute path, prints it ("Using vault: /Users/...").
    • Creates papers/ findings/ authors/ fields/ views/ .sources/.
    • Copies CLAUDE.md, index.md, log.md and the five view pages from templates/ if missing. Never overwrites.
    • Seeds .obsidian/ from the bundled templates/dot-obsidian/ (Dataview plugin files + community-plugins.json pre-enabling it, plus baseline app.json / appearance.json / core-plugins.json). Existing files are never overwritten.
    • Appends one line to log.md.
    • Prints a created/skipped report.
  3. Relay the script's stdout to the user verbatim. Remind them to turn off Obsidian's Restricted Mode once on first vault open so the bundled Dataview plugin can load.

Guardrails

  • Do NOT write to the vault yourself. The script is the single writer.
  • If the script exits non-zero, surface its stderr and stop.
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. 3d ago First seen · 42 lines · 34 tokens per session scan A a90161687070

Subscribe to this mod's changes

init is a command published in the GitHub repository trapoom555/claude-paperloom (95 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 519 once invoked, about $0.0002 per session on Opus 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-08-30.