code-consolidator

code-consolidator is an agent for Claude Code from RoniLeor/specWeaver. It costs 44 tokens per session (1,373 once invoked), scanned A, original, MIT.

A documentation-focused coding agent for organizing technical documentation in large codebases. It looks for repeated or inconsistent material and follows the repository's existing documentation structure.

In plain words
What is it for?
Use it after completing features or when reviewing documentation, especially in repositories with a structured docs folder.
Why use it?
It reduces duplicated, scattered, or unclear documentation and makes related guidance easier to maintain.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the TodoWrite tool.

Part of the specweaver plugin — 3 commands, 5 agents shipped together

Good fit Use it after completing features or when reviewing documentation, especially in repositories with a structured docs folder.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ronileor/specweaver/code-consolidator
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/RoniLeor/specWeaver

Made for: Claude Code.

Or install specweaver, the plugin that ships this one along with the rest of its 3 commands, 5 agents.

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 code-consolidator

README.md
[![agentmods](https://agentmods.dev/badge/agents/ronileor/specweaver/code-consolidator/github.svg)](https://agentmods.dev/agents/ronileor/specweaver/code-consolidator)
Your own site
<a href="https://agentmods.dev/agents/ronileor/specweaver/code-consolidator"><img src="https://agentmods.dev/badge/agents/ronileor/specweaver/code-consolidator/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 code-consolidator

Your own site · 80×15
<a href="https://agentmods.dev/agents/ronileor/specweaver/code-consolidator"><img src="https://agentmods.dev/badge/agents/ronileor/specweaver/code-consolidator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 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,373 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.00044 $0.01373
Opus 5.5 $0.00018 $0.00549
Sonnet 5.5 $0.00009 $0.00275
Haiku 4.5 $0.00004 $0.00137

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

Security

Grade A, and why

code-consolidator 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 1mo 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.

plugins/specweaver/agents/code-consolidator.md · 138 lines

How it starts

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

You are an elite Documentation Architect specializing in creating precise, consolidated, and well-structured technical documentation. Your expertise lies in analyzing existing documentation patterns and maintaining consistency across large codebases.

Your Core Mission

You analyze the project's documentation structure (primarily in /docs/) and ensure all documentation follows established patterns, eliminates duplication, and provides maximum clarity with minimum verbosity.

Critical Context Awareness

This project follows a specific documentation architecture:

Main Documentation Hub: /docs/readme.md - Central index with all links Documentation Standard: All docs use lowercase filenames (e.g., readme.md, not README.md) Structure:

  • /docs/backend/ - Backend systems, guides, API reference, configuration
  • /docs/frontend/ - Frontend architecture, components, state management, guides
  • /docs/docker/ - Infrastructure and deployment
  • /docs/guides/ - General development guides

Recent Consolidation: Backend docs underwent 51% reduction in duplication (Jan 2025), frontend docs fully merged with zero duplication.

Your Operational Framework

Phase 1: Deep Analysis (MANDATORY)

Before creating or modifying ANY documentation:

  1. Map Existing Structure:

    • Read /docs/readme.md to understand the complete documentation hierarchy
    • Identify the relevant documentation category (backend/frontend/docker/guides)
    • Locate existing documentation that covers similar topics
    • Check the appropriate index file (/docs/backend/index.md or /docs/frontend/readme.md)
  2. Pattern Recognition:

    • Analyze 3-5 existing documentation files in the target category
    • Extract common patterns: heading structure, code example format, linking conventions
    • Note the tone, depth level, and organization style
    • Identify any project-specific conventions (e.g., emoji usage, callout boxes)
  3. Duplication Detection:

    • Search for existing content covering the same feature/system
    • Identify overlapping sections across multiple files
    • Map content relationships and dependencies
    • Flag consolidation opportunities

Read the full file on GitHub · 138 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. 1mo ago First seen · 138 lines · 44 tokens per session scan A ff5c7f0a5063

Subscribe to this mod's changes

code-consolidator is an agent published in the GitHub repository RoniLeor/specWeaver (3 stars, last pushed 11mo ago), licensed MIT. It adds 44 tokens to every session and 1,373 once invoked, about $0.0002 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-31.

Related

Other agents, from other repositories

perf-orchestrator

Coordinate /perf investigations across all phases, enforcing non-negotiable perf rules.

composio-community/awesome-claude-plugins · 21 tokens

test-writer-fixer

Use this agent when code changes have been made and you need to write new tests, run existing tests, analyze failures, and fix them while maintaining test integrity. This agent should be triggered proactively after code modifications to ensure comprehensive test coverage and suite health. Examples:\n\n \nContext: The…

composio-community/awesome-claude-plugins · 0 tokens

agent-sdk-verifier-py

Use this agent to verify that a Python Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a Python Agent SDK app has been created or modified.

composio-community/awesome-claude-plugins · 55 tokens

agent-sdk-verifier-ts

Use this agent to verify that a TypeScript Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a TypeScript Agent SDK app has been created or modified.

composio-community/awesome-claude-plugins · 56 tokens

backend-architect

Use this agent when designing APIs, building server-side logic, implementing databases, or architecting scalable backend systems. This agent specializes in creating robust, secure, and performant backend services. Examples:\n\n \nContext: Designing a new API\nuser: "We need an API for our social sharing…

composio-community/awesome-claude-plugins · 0 tokens

frontend-developer

Use this agent when building user interfaces, implementing React/Vue/Angular components, handling state management, or optimizing frontend performance. This agent excels at creating responsive, accessible, and performant web applications. Examples:\n\n \nContext: Building a new user interface\nuser: "Create a…

composio-community/awesome-claude-plugins · 0 tokens