promote

promote is a command for Claude Code from cbuntingde/kimi-memory. It costs 23 tokens per session (1,058 once invoked), scanned A, original, MIT.

A command for moving selected project memories into a shared store that can be used across projects.

In plain words
What is it for?
It helps operators promote memory records by ID, review what will move, and then perform the move while keeping the record ID and origin details.
Why use it?
It fixes memories that were saved only for one project when they should be available everywhere. A dry run lets you review the changes before applying them.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node src/cli.js promote-to-global --memory-id <id> [--memory-id <id> ...] # dry run.

Good fit It helps operators promote memory records by ID, review what will move, and then perform the move while keeping the record ID and origin details.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/cbuntingde/kimi-memory
agentmods
npx agentmods add commands/cbuntingde/kimi-memory/promote

Made for: Claude Code.

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 promote

README.md
[![agentmods](https://agentmods.dev/badge/commands/cbuntingde/kimi-memory/promote/github.svg)](https://agentmods.dev/commands/cbuntingde/kimi-memory/promote)
Your own site
<a href="https://agentmods.dev/commands/cbuntingde/kimi-memory/promote"><img src="https://agentmods.dev/badge/commands/cbuntingde/kimi-memory/promote/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.

agentmods 80×15 button for promote

Your own site · 80×15
<a href="https://agentmods.dev/commands/cbuntingde/kimi-memory/promote"><img src="https://agentmods.dev/badge/commands/cbuntingde/kimi-memory/promote.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 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,058 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00023 $0.01058
Opus 5.5 $0.00009 $0.00423
Sonnet 5.5 $0.00005 $0.00212
Haiku 4.5 $0.00002 $0.00106

Measured 2mo ago against content hash 0a1432720a0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

commands/promote.md · 101 lines

How it starts

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

/kimi-memory:promote

Promote project memories into the cross-project store. Use when auto-extract under-classified a fact (it stayed in the project DB when it should have gone to global) or when the operator is reconciling a project cache manually.

Usage

Two paths, with different safety defaults:

  • MCP tool memory_promote_to_global(cwd, memory_ids) — moves immediately. There is no dry run on this path, so confirm with the user before calling it.
  • CLI node src/cli.js promote-to-global --memory-id <id> — dry run by default; re-run with --apply to perform the move.
node src/cli.js promote-to-global --memory-id <id> [--memory-id <id> ...]   # dry run
node src/cli.js promote-to-global --memory-id <id> --apply                 # actually move

On the CLI, the dry run lists what would be moved and exits without touching either database. Review the list, then re-run with --apply to perform the move.

What this does

The plugin stores project memories under $KIMI_CODE_HOME/kimi-memory/<project-key>/memory.sqlite and cross-project memories under $KIMI_CODE_HOME/kimi-memory/_global/memory.sqlite. This command moves a row from the project DB to the global DB:

  1. The source row is removed from the project DB.
  2. The row is rewritten into _global/memory.sqlite with project_key = '_global'. The id is preserved across the move so any caller holding the id keeps working.
  3. provenance.promoted_from records the originating project key; provenance.promoted_at records the move timestamp.

The move is a two-phase commit with compensation: the global DB is written first, then the source DB is deleted; if the source-DB step fails, the global writes are rolled back so the operation is atomic from the caller's view.

Procedure

  1. Confirm the user wants to promote. Cross-project memory is visible from every project — promoting the wrong fact pollutes global recall.
  2. Identify the source memory ids. Use memory_recall(scope: "project", query: ...) or memory_list(scope: "project") to find the row. Confirm the title and content are genuinely cross-project (user preference, environment fact, reusable procedure) before promoting.
  3. Move the rows. The MCP tool moves immediately — it has no dry run — and returns moved (each entry carrying id, new_global_id — the same value — type, and title), skipped (ids that did not exist, were duplicates, or matched a secret shape), and the counts moved_count / skipped_count:
    memory_promote_to_global(cwd: <project>, memory_ids: [...])
    
    If you want a preview first, use the CLI instead; it is dry-run by default and needs --apply to move:
    node src/cli.js promote-to-global --cwd <project> --memory-id <id>          # preview
    node src/cli.js promote-to-global --cwd <project> --memory-id <id> --apply  # move
    
  4. Confirm by calling memory_recall(scope: "global", query: ...) and showing the user the row is now visible from any project.

Read the full file on GitHub · 101 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. 2mo ago Changed · +11 lines 0a1432720a0a
  2. 2mo ago First seen · 90 lines · 23 tokens per session scan A 674104b4e4dc

Subscribe to this mod's changes

promote is a command published in the GitHub repository cbuntingde/kimi-memory (0 stars, last pushed 2mo ago), licensed MIT. It adds 23 tokens to every session and 1,058 once invoked, about $0.0001 per session on Opus 5.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-09-04.

Related

promote compared with commands from other repositories

promote next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
promotecbuntingde/kimi-memoryCommand02mo agoMITA23Claude Code
cancel-ralphanthropics/claude-plugins-officialCommand49ktodayApache-2.0A4Claude Code
wsdanielmiessler/LifeOSCommand21k14d agoMITA0Claude Code
engage.actionshypnguyen1209/offensive-claudeCommand4361mo agoMITA11Claude Code
promote-lessonskumaran-is/claude-code-onboardingCommand372d agoMITA25Claude Code
focusData-Wise/claude-pluginsCommand7yesterdayMITA0Claude Code
stuckData-Wise/claude-pluginsCommand7yesterdayMITA0Claude Code