pin

pin is a command for coding agents from gf-labs/ramp. It costs 14 tokens per session (1,228 once invoked), scanned B, original, MIT.

A checkpoint command for a coding session that shows project status, saves a node in a knowledge graph, and can optionally copy information to MEMORY.md.

In plain words
What is it for?
Use it to review the current topic and graph, record a session checkpoint, and optionally save a memory snapshot.
Why use it?
It helps preserve your place and important context during a long session, reducing the need to reconstruct what happened later.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the ramp plugin — 11 commands, 2 hooks 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/gf-labs/ramp/pin
Clone the repo
git clone --depth 1 https://github.com/gf-labs/ramp

Or install ramp, the plugin that ships this one along with the rest of its 11 commands, 2 hooks.

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

agentmods badge for pin

README.md
[![agentmods](https://agentmods.dev/badge/commands/gf-labs/ramp/pin.svg)](https://agentmods.dev/commands/gf-labs/ramp/pin)
Your own site
<a href="https://agentmods.dev/commands/gf-labs/ramp/pin"><img src="https://agentmods.dev/badge/commands/gf-labs/ramp/pin.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,228 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00014 $0.01228
Opus 5 $0.00007 $0.00614
Sonnet 5 $0.00003 $0.00246
Haiku 4.5 $0.00001 $0.00123

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

Security

Grade B, and why

pin 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 4d 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.

!`FIRST=$(echo "$ARGUMENTS" | awk '{print tolower($1)}'); if [ -n "$FIRST" ] && { [ -f "$HOME/.claude/ramp/schemas/$FIRST.md" ] || [ -f ".claude/knowledge-graphs/schemas/$FIRST.md" ]; }; then TOPIC="$FIRST"; else TOPIC="
commands/pin.md · 103 lines

How it starts

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

Context

Requested topic: $ARGUMENTS

Active topic: !FIRST=$(echo "$ARGUMENTS" | awk '{print tolower($1)}'); if [ -n "$FIRST" ] && { [ -f "$HOME/.claude/ramp/schemas/$FIRST.md" ] || [ -f ".claude/knowledge-graphs/schemas/$FIRST.md" ]; }; then echo "$FIRST"; else echo "claude-code"; fi

Today's date: !date +%Y-%m-%d

Knowledge graph (active topic): !FIRST=$(echo "$ARGUMENTS" | awk '{print tolower($1)}'); if [ -n "$FIRST" ] && { [ -f "$HOME/.claude/ramp/schemas/$FIRST.md" ] || [ -f ".claude/knowledge-graphs/schemas/$FIRST.md" ]; }; then TOPIC="$FIRST"; else TOPIC="claude-code"; fi; cat ~/.claude/ramp/graphs/$TOPIC.md 2>/dev/null || echo "NO_TREE_FILE:$TOPIC"


Your role

Mid-session knowledge checkpoint for ramp. Work through the three steps below. Step 1 is display-only — proceed immediately. Steps 2 and 3 are interactive — wait for the user's reply before proceeding.

This command is a checkpoint, not a session close. After it completes, the session continues. Do not ask the user to run any session-close command or mark anything done.


Step 1 — Status (display only)

Read the loaded graph and render immediately — no questions:

## Pin — [topic] — [date] · Level: [level] · [XP] XP

Review due: [N nodes with next: date ≤ today] or "No nodes due"
Last saved: [updated: date from frontmatter]

If NO_TREE_FILE:[topic]: say "No knowledge graph found for [topic]. Run /ramp:up [topic] to create one." Stop.

Proceed to Step 2 immediately.


Step 2 — Node save

Scan the current conversation for evidence of demonstrated knowledge since the last save (check the updated: date from the graph as a reference point):

  • Tool use patterns (Write, Edit, Bash, MCP calls, Agent launches)
  • Exercises completed, configurations made, commands run
  • Teaching-level explanations given (not just "I've used this")
  • Artifacts created or modified

If no demonstrable activity detected: say "No new demonstrations detected." Skip to Step 3.

Read the full file on GitHub · 103 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. 4d ago First seen · 103 lines · 14 tokens per session scan B 36413aec3afd

Subscribe to this mod's changes

pin is a command published in the GitHub repository gf-labs/ramp (2 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 1,228 once invoked, about $0.0001 per session on Opus 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-08-31.