setup

A first-time setup command for connecting a personal memory store to the user's GitHub account. GitHub is a service for hosting code and its history, while the memory store keeps information that can be synchronized across computers.

In plain words
What is it for?
Use it to connect or verify a private GitHub repository, handle account confirmation, and diagnose missing GitHub CLI login or setup.
Why use it?
It helps preserve the agent's saved memories between computers while requiring confirmation before creating a private repository.

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/shimeeuisuk/claude-memory-plugin/setup
Clone the repo
git clone --depth 1 https://github.com/shimeeuisuk/claude-memory-plugin
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 576 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.00027 $0.00576
Opus 5 $0.00014 $0.00288
Sonnet 5 $0.00005 $0.00115
Haiku 4.5 $0.00003 $0.00058

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

Security

Grade A, and why

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

commands/setup.md · 34 lines

What it actually says

너는 지금 claude-memory 플러그인의 최초 설정(setup) 을 수행한다. 목표: 사용자 본인의 GitHub에 개인 메모리 저장소를 연결해, 다른 PC에서도 기억이 이어지게 한다.

할 일

  1. 설정 스크립트 실행: 플러그인의 scripts/setup-store.sh 를 실행한다.

    bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-store.sh"
    
    • ${CLAUDE_PLUGIN_ROOT} 가 비어있으면, 이 명령어 파일 기준 상위의 scripts/setup-store.sh 경로를 찾아 실행.
  2. 출력 첫 줄의 STATUS= 표식을 읽고 분기 (스크립트는 항상 exit 0 — 에러로 취급하지 말 것):

    • STATUS=connected → 연결 완료. 어느 계정/어떤 repo인지 한 줄로 알리고, "이제 /claude-memory:remember 로 저장하면 자동 백업됩니다" 안내.
    • STATUS=needs-confirmation → 새 private repo를 만들기 전 동의 단계(에러 아님). 출력의 ACCOUNT= / REPO= 를 사용자에게 보여주고 "이 계정에 만들까요?" 라고 물어본다.
      • ⚠️ ACCOUNT= 가 사용자가 의도한 계정이 맞는지 꼭 확인하게 한다 (회사/개인 계정 혼동 방지).
      • 동의하면 → bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-store.sh" --yes 로 재실행.
      • 거절/계정이 틀리면 → 만들지 말고, gh auth switch 등으로 계정을 바꾸도록 안내.
    • STATUS=manual → gh 미설치/미로그인. 출력의 A/B 방법을 그대로 전달하고 gh auth login 또는 repo URL 직접 연결을 도와준다.
  3. 확인: 연결 후 cd ~/.claude-memory && git remote -v 로 origin이 사용자 본인 계정인지 확인해 보여준다.

주의

  • 이 저장소는 반드시 private. 개인 작업 기억이므로 공개 금지.
  • 친구·타인의 GitHub가 아니라 현재 로그인된 사용자 본인 계정이어야 한다 (스크립트가 보장).
  • 이미 연결돼 있으면 새로 만들지 말고 기존 연결을 그대로 쓴다 (멱등).
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 · 34 lines · 27 tokens per session scan A 6332c1ff2ac3

Subscribe to this mod's changes

setup is a command published in the GitHub repository shimeeuisuk/claude-memory-plugin (2 stars, last pushed 29d ago), licensed MIT. It adds 27 tokens to every session and 576 once invoked, about $0.0001 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.