clone

A context-copying tool packages an agent’s memory and related setup so it can be moved to another vault. It excludes the vault’s notes, projects, logs, and other working files.

In plain words
What is it for?
Use it when transferring an agent’s memory, configuration, and OneBrain plugin to a new vault.
Why use it?
It avoids manually collecting the files that preserve an agent’s context when migrating it. It also lets you choose whether to include deleted memory files.

Skill for Claude CodeCodex

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 skills/onebrain-ai/onebrain/clone
Any agent
npx skills add onebrain-ai/onebrain --skill clone
Clone the repo
git clone --depth 1 https://github.com/onebrain-ai/onebrain

Made for: Claude Code, Codex.

Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,565 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.00068 $0.01565
Opus 5 $0.00034 $0.00783
Sonnet 5 $0.00014 $0.00313
Haiku 4.5 $0.00007 $0.00156

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

Security

Grade A, and why

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

.claude/plugins/onebrain/skills/clone/SKILL.md · 165 lines

How it starts

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

Clone

Package your agent's full context for transfer to a new vault.

What gets cloned: Everything in the agent folder : MEMORY.md, MEMORY-INDEX.md, memory/, and CLONE.md once generated. Also includes onebrain.yml and the OneBrain plugin. What does NOT get cloned: your notes, projects, areas, knowledge, resources, archive, and logs.

Usage: /clone


Files Included in Clone Package

  • 05-agent/MEMORY.md
  • 05-agent/MEMORY-INDEX.md ← include MEMORY-INDEX
  • 05-agent/memory/ ← all memory files (was: context/ + memory/ separately; now merged)
  • onebrain.yml ← include onebrain.yml (has recap config)
  • .claude/plugins/onebrain/

Session Log Handling

When cloning, preserve recapped: and topics: fields on all session logs. Do NOT strip these fields — the new vault should not reprocess already-recapped logs.


Archive Folder Option

AskUserQuestion: "Include [archive_folder]/[agent_folder]/memory/ (deleted memory files)?" Options: include / skip

  • include: copy 06-archive/05-agent/memory/ into clone package (full history)
  • skip: omit archive folder (clean fresh-feeling vault)

Step 1: Regenerate CLONE.md

Write [agent_folder]/CLONE.md (overwrite if it exists):

---
tags: [agent-clone]
updated: YYYY-MM-DD
---

# Agent Clone Manifest

## Identity
- Source: [agent_folder]/MEMORY.md
- Agent name: [read from [agent_folder]/MEMORY.md `## Identity & Personality` section — value of **Agent:** field]
- Last updated: [TODAY'S DATE]

## Index
[If [agent_folder]/MEMORY-INDEX.md exists, include a note that MEMORY-INDEX.md is present. Otherwise write: (none)]

## Memory Notes
[For each .md file in agent_folder/memory/ (skip .gitkeep and non-.md files), list: - filename : first line of file body (after frontmatter). If no .md files exist, write: (none yet)]

Step 2: Display Clone Summary

Show the user what will be cloned: ────────────────────────────────────────────────────────────── 📦 Ready to Clone ────────────────────────────────────────────────────────────── ✅ [agent_folder]/MEMORY.md identity and personality ✅ [agent_folder]/MEMORY-INDEX.md memory index ✅ [agent_folder]/CLONE.md this manifest ✅ [agent_folder]/memory/ {N} files ✅ onebrain.yml vault configuration ✅ .claude/plugins/onebrain/ OneBrain plugin

Read the full file on GitHub · 165 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 165 lines · 68 tokens per session scan A 0a0d25ea8145

Subscribe to this mod's changes

clone is a skill published in the GitHub repository onebrain-ai/onebrain (25 stars, last pushed 4d ago), licensed Apache-2.0. It adds 68 tokens to every session and 1,565 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

excalidraw-diagram

Generate Excalidraw diagrams from text content. Supports three output modes - Obsidian (.md), Standard (.excalidraw), and Animated (.excalidraw with animation order). Triggers on "Excalidraw", "diagram", "standard excalidraw", "animate".

breferrari/obsidian-mind · 67 tokens

mermaid-visualizer

Transform text content into professional Mermaid diagrams for presentations and documentation. Use when users ask to visualize concepts, create flowcharts, or make diagrams from text. Supports process flows, system architectures, comparisons, mindmaps, and more with built-in syntax error prevention.

breferrari/obsidian-mind · 57 tokens

qmd

Search the vault using QMD semantic search. Use PROACTIVELY before reading files. Preference order: (1) MCP tools — mcpqmdquery, mcpqmdget, mcpqmdmultiget, mcpqmdstatus — if they appear in your tool menu, use them first; (2) CLI qmd --index ... as fallback; (3) Grep/Glob only when QMD is not installed. Trigger…

breferrari/obsidian-mind · 142 tokens

obsidian-cli

Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their…

breferrari/obsidian-mind · 102 tokens

deeppapernote

Generate a high-quality deep-reading note for a single paper and write it into an Obsidian-style vault. Use when the user gives a paper title, DOI, URL, arXiv ID, Zotero item, or local PDF and wants a polished Markdown note with strong structure, evidence-based analysis, and figure placeholders.

917Dhj/DeepPaperNote · 71 tokens

paper-glossary

Use when building reusable Obsidian glossary notes from an existing paper source manifest, optionally with a raw-sections override, especially when a reader needs a reviewed shortlist before glossary notes and article links are changed.

917Dhj/DeepPaperNote · 46 tokens