consolidate

consolidate is a skill for Claude Code, Codex from backchainai/backchain-plugins. It costs 107 tokens per session (2,018 once invoked), scanned A, original, Apache-2.0.

A review-and-cleanup workflow for project knowledge folders and Claude Code's automatically saved project notes.

In plain words
What is it for?
Use it to audit folders such as .memory, docs, staging, and archive, create an editable cleanup plan, and carry out approved actions.
Why use it?
It helps find stale, duplicated, misplaced, or abandoned information before deciding what should be kept, moved, or archived.

Skill for Claude CodeCodex

Part of the engram plugin — 3 skills, 3 commands 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 skills/backchainai/backchain-plugins/consolidate
Any agent
npx skills add backchainai/backchain-plugins --skill consolidate
Clone the repo
git clone --depth 1 https://github.com/backchainai/backchain-plugins

Made for: Claude Code, Codex.

Or install engram, the plugin that ships this one along with the rest of its 3 skills, 3 commands.

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/skills/backchainai/backchain-plugins/consolidate.svg)](https://agentmods.dev/skills/backchainai/backchain-plugins/consolidate)
Your own site
<a href="https://agentmods.dev/skills/backchainai/backchain-plugins/consolidate"><img src="https://agentmods.dev/badge/skills/backchainai/backchain-plugins/consolidate.svg" alt="Measured on agentmods" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,018 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.00107 $0.02018
Opus 5 $0.00053 $0.01009
Sonnet 5 $0.00021 $0.00404
Haiku 4.5 $0.00011 $0.00202

Measured 4d ago against content hash c52bf09c6f5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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.

engram/skills/consolidate/SKILL.md · 158 lines

How it starts

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

Consolidate

Audit knowledge directories and Claude Code auto memory for stale, misplaced, or duplicated content. Produce an editable plan file the user reviews, then execute approved actions. Designed to complement, not replace, native auto-memory: this skill never modifies MEMORY.md directly and never deletes auto-memory entries — it focuses on graduation (promoting stable entries to permanent rules) and on knowledge directories outside auto-memory's scope.

Relationship with auto memory

Native Claude Code auto memory writes implicit learnings to ~/.claude/projects/<project>/memory/. This skill complements it:

Concern Native auto memory consolidate (this skill)
Capture implicit learnings Yes No — defer to native
Maintain MEMORY.md index Yes (manual edits via /memory) No — never modify directly
Graduate feedback → rules / CLAUDE.md No Yes — primary responsibility
Audit project knowledge directories No Yes — user-declared scan roots
Manage staging-directory lifecycle No Yes — age-based classification
Detect stray operational knowledge No Yes

Do not:

  • Recommend DELETE or ARCHIVE for files inside ~/.claude/projects/<project>/memory/. Use the RULES or CLAUDEMD actions to graduate stable entries; deletion of the source file then happens as part of graduation, not as cleanup.
  • Modify MEMORY.md.
  • Touch any lock files in the auto-memory directory.

Scan roots

Before scanning, the skill needs a list of knowledge directories to inspect. If the user has not declared scan roots in their project's CLAUDE.md or in conversation, ask them. Sensible defaults to suggest:

.memory/
docs/
outputs/                                    # or whatever the project uses for staging
archive/                                    # or whatever the project uses for archive
~/.claude/projects/<project>/memory/

Read the full file on GitHub · 158 lines

Files

What ships with it

3 files 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. 4d ago First seen · 158 lines · 107 tokens per session scan A c52bf09c6f5e

Subscribe to this mod's changes

consolidate is a skill published in the GitHub repository backchainai/backchain-plugins (4 stars, last pushed 29d ago), licensed Apache-2.0. It adds 107 tokens to every session and 2,018 once invoked, about $0.0005 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.