consolidate

consolidate is a command for Claude Code from major7apps/pensyve. It costs 9 tokens per session (422 once invoked), scanned A, original, Apache-2.0.

A memory maintenance command for Pensyve, a system that stores information across sessions. It promotes useful memories, lets weaker ones fade, and archives others.

In plain words
What is it for?
Use it to run a consolidation pass over stored memories.
Why use it?
It helps manage an accumulating memory store so important information remains easier to maintain.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the pensyve plugin — 3 skills, 7 commands, 2 agents, 5 hooks shipped together

Good fit Use it to run a consolidation pass over stored memories.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/major7apps/pensyve/consolidate
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.

Clone the repo
git clone --depth 1 https://github.com/major7apps/pensyve

Made for: Claude Code.

Or install pensyve, the plugin that ships this one along with the rest of its 3 skills, 7 commands, 2 agents, 5 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 consolidate

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/major7apps/pensyve/consolidate"><img src="https://agentmods.dev/badge/commands/major7apps/pensyve/consolidate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 422 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.00009 $0.00422
Opus 5.5 $0.00004 $0.00169
Sonnet 5.5 $0.00002 $0.00084
Haiku 4.5 $0.00001 $0.00042

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

Security

Grade A, and why

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

integrations/claude-code/commands/consolidate.md · 41 lines

What it actually says

/consolidate

Explain how to run consolidation against the user's existing Pensyve store. Consolidation promotes similar episodic records and updates retention values. It does not delete old rows or limit database size.

Instructions

When the user invokes /consolidate, follow these steps:

  1. Explain that consolidation can promote similar episodic records into semantic memories and update episodic retention. The archived counter describes retention updates below a threshold; those rows remain stored.
  2. State which interface is available. The current server exposes ten MCP tools, but none runs consolidation directly. The CLI also has no consolidate command. Python provides p.consolidate(), and a gateway provides POST /v1/consolidate. MCP episode closure can schedule consolidation in the background.
  3. Use the user's configured gateway and existing authentication if that access is available. Otherwise, provide the relevant instructions from the consolidation recipe. Use the same storage path and namespace for Python, or the same gateway credentials for REST, as the user's existing store. Do not assume a local gateway accesses the stdio server's store.
  4. If consolidation ran, report the returned status and counts. Report incomplete work or errors as returned, and describe archived as retained rows whose retention values changed. If only instructions were provided, say that consolidation has not run.

Constraints

  • Do not read or write Claude Code's own memory files for this operation.
  • Do not invent a pensyve_consolidate MCP tool or a CLI subcommand.
  • Do not promise that repeated runs have no effects or that consolidation removes stale data. Use the current API response and documented behavior.
  • Do not trigger consolidation from this command unless the user invoked it.
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 · -18 lines · -2 tokens per session 2271ea33f73f
  2. 2mo ago Changed 841711ff5b66
  3. 3mo ago First seen · 59 lines · 11 tokens per session scan A ae813bd5cde8

Subscribe to this mod's changes

consolidate is a command published in the GitHub repository major7apps/pensyve (101 stars, last pushed 3d ago), licensed Apache-2.0. It adds 9 tokens to every session and 422 once invoked, about $0.0000 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-08-30.

Related

consolidate compared with commands from other repositories

consolidate next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
consolidatemajor7apps/pensyveCommand1013d agoApache-2.0A9Claude Code
save-memory0xK3vin/MegaMemoryCommand9337mo agoMITA0Claude Code
bootstrap-memory0xK3vin/MegaMemoryCommand9337mo agoMITA0Claude Code
memory-bootstrapjscott3201/aionforge-memoryCommand124mo agoApache-2.0A15Claude Code
memory-sessionjscott3201/aionforge-memoryCommand124mo agoApache-2.0A19Claude Code
memory-handoffjscott3201/aionforge-memoryCommand124mo agoApache-2.0A15Claude Code
gsd:threadmrboups/xbrainCommand22mo agoMITA13Claude Code