Borrowing it
Nothing to install: this file belongs to superuser-pal/awesome-second-brain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/superuser-pal/awesome-second-brain/main/.claude/commands/core/upgrade.mdgit clone --depth 1 https://github.com/superuser-pal/awesome-second-brainWrote 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/commands/superuser-pal/awesome-second-brain/upgrade)<a href="https://agentmods.dev/commands/superuser-pal/awesome-second-brain/upgrade"><img src="https://agentmods.dev/badge/commands/superuser-pal/awesome-second-brain/upgrade/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/commands/superuser-pal/awesome-second-brain/upgrade"><img src="https://agentmods.dev/badge/commands/superuser-pal/awesome-second-brain/upgrade.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.00000 | $0.02612 |
| Opus 5.5 | $0.00000 | $0.01045 |
| Sonnet 5.5 | $0.00000 | $0.00522 |
| Haiku 4.5 | $0.00000 | $0.00261 |
Grade A, and why
upgrade 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 2mo 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.
This is a copy
92% identical to om-vault-upgrade — 113 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Vault Upgrade
Import and migrate content from an existing Obsidian vault into this PAL Second Brain vault. Works with older obsidian-mind versions and arbitrary Obsidian vaults.
When to use: After setting up a new PAL Second Brain vault, to pull in your existing vault content. Also works for migrating any Obsidian vault into the PAL Second Brain structure.
Usage
/upgrade <path-to-source-vault>
/upgrade <path-to-source-vault> --dry-run
/upgrade --source <path-to-source-vault>
/upgrade --source <path-to-source-vault> --dry-run
Arguments:
<path-to-source-vault>— absolute or relative path to the vault to migrate FROM (positional or via--source)--dry-run— generate the migration plan without executing it (saves tothinking/)
Subagents
vault-migrator— classifies files (for arbitrary vaults) and executes the approved migration plan
Workflow
1. Validate & Detect
- Parse the source vault path from the user's input. Resolve relative paths.
- Verify the source path exists and is different from the current vault.
- Verify the source path contains
.mdfiles (is it actually a vault?). - Check for
vault-manifest.jsonin the source:- Found: read version directly. This is a known obsidian-mind vault.
- Not found: run version fingerprint detection from the target's
vault-manifest.json:- Check for
claude/MEMORIES.mdwithoutbrain/→ v1 - Check for
brain/+bases/without.claude/agents/→ v2 - Check for
.claude/agents/→ v3.x (refine by checking for specific files) - None match → arbitrary vault (not from obsidian-mind)
- Check for
- For arbitrary vaults, also detect the vault's organizational pattern (PARA, Zettelkasten, daily notes, flat, MOC-based, inbox). This shapes how the classifier interprets folder structure. Common patterns:
- PARA:
Projects/+Areas/+Resources/+04_ARCHIVE/ - Zettelkasten:
Permanent/+Fleeting/+Literature/, or many numeric-ID filenames - Daily Notes:
daily/orjournal/folder with date-named files - Flat: 80%+ of files in vault root
- MOC-based: files named
MOC - *.mdorIndex - *.md
- PARA:
- Report detection result to the user: "Detected obsidian-mind v2" or "This looks like a PARA-organized Obsidian vault — I'll map Projects → work/01_PROJECTS, Resources → reference, etc." or "This is a flat vault with no folder structure — I'll classify each note by its content."
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.
- 2mo ago First seen · 187 lines · 0 tokens per session scan A 9dacf4021dc8
upgrade is a command published in the GitHub repository superuser-pal/awesome-second-brain (16 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,612 tokens. A static security scan graded it A with 0 findings. It is 92% identical to om-vault-upgrade, differing in 113 lines, and is treated as a copy.
Other commands, from other repositories
ingest
Ingest a source (URL/file/text) into Raw Sources + compile 1015 Wiki pages, with mandatory user-purpose gate and mothership cross-linking.
lint
Run comprehensive wiki health check — orphans, broken links, contradictions, stale pages, index sync, MOC coverage, v2/v4/v5 frontmatter coverage, Core Context freshness, and cross-vault link integrity (mainVaultRelated/mainVaultCmds).
capture-tabs
Capture a Chrome research tab group or AI-chat research session into LLM Wiki Inbox markdown, then optionally route it through /inbox or /ingest.
wiki-lint
Run a health check on the wiki. Invoke with /wiki-lint or "lint the wiki".
okf
A command that exports a private knowledge wiki into an OKF-compatible bundle. OKF is a format for packaging knowledge, with a separate guarded mode for preparing material to share externally.
pdf-to-wiki
A workflow for sending a large PDF from Google Drive to NotebookLM, Google's document-analysis tool, and saving the resulting notes as Obsidian markdown files. It passes the file link rather than reading the PDF directly.