link-project

A command that links a code repository to a selected folder in an Obsidian-style vault. A symlink is a filesystem shortcut, so the folder can be accessed from both locations.

In plain words
What is it for?
Use it to choose a vault folder, select a local repository path, and create and verify the link.
Why use it?
It avoids copying project files between the repository and the vault, keeping both paths pointed at the same files.

Command

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/technicalpickles/pickled-claude-plugins/link-project
Clone the repo
git clone --depth 1 https://github.com/technicalpickles/pickled-claude-plugins
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 798 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.00009 $0.00798
Opus 5 $0.00005 $0.00399
Sonnet 5 $0.00002 $0.00160
Haiku 4.5 $0.00001 $0.00080

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

Security

Grade A, and why

link-project 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 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.

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.

plugins/second-brain/commands/link-project.md · 151 lines

How it starts

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

Create a symlink from current repo to a folder in your vault.

Step 1: Check Configuration

Read ~/.claude/second-brain.md for vault names and paths.

If missing:

Second brain not configured. Run /second-brain:setup first.

Use the symlink path ~/.claude/vaults/{name} to access vaults.

Step 2: Select Vault

If multiple vaults configured, ask which one:

Use AskUserQuestion: Question: "Which vault should this project connect to?" Options: List configured vaults

If only one vault, use it automatically.

Step 3: Browse Vault Structure

Show top-level folders in vault:

ls -d {vault}/*/ | head -10

Ask user to select or specify path:

"Which folder in your vault? (or type a path)"

Options:

  1. Areas/
  2. Projects/
  3. Resources/
  4. (type custom path)

May need to drill down into subfolders.

Step 4: Determine Local Path

Suggest default based on vault folder name:

Vault folder: Areas/gusto/ASYNC/
Suggested local path: docs/ASYNC/

Use this path? [Yes] [Custom path]
# Create parent directory if needed
mkdir -p {local_parent}

# Create symlink
ln -s "{vault_path}" "{local_path}"

# Verify
ls -la "{local_path}"

Step 6: Write Local Config

Create .claude/second-brain.local.md:

# Second Brain Connection

Vault: {vault_name}

Symlinks:
- {local_path}/ → {vault_relative_path}/

If file exists, append new symlink to list.

Step 7: Check Gitignore

git check-ignore .claude/second-brain.local.md

If not ignored (exit code 1):

⚠ .claude/second-brain.local.md is not gitignored.

This file contains host-specific paths and shouldn't be committed.

Options:
1. Add to .git/info/exclude (this repo only)
2. Add to global gitignore (~/.config/git/ignore)
3. Skip (I'll handle it)

If option 1:

echo ".claude/second-brain.local.md" >> .git/info/exclude

If option 2:

mkdir -p ~/.config/git
echo ".claude/second-brain.local.md" >> ~/.config/git/ignore

Read the full file on GitHub · 151 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. 2d ago First seen · 151 lines · 9 tokens per session scan A fb621c178bbc

Subscribe to this mod's changes

link-project is a command published in the GitHub repository technicalpickles/pickled-claude-plugins (10 stars, last pushed 5d ago), licensed MIT. It adds 9 tokens to every session and 798 once invoked, about $0.0000 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-31.