Skip to content

fix: trim CLAUDE.md from 42.7k to 1.6k via ruler rule compression - #826

Merged
shunkakinoki merged 1 commit into
mainfrom
fix/claude-md-size
Feb 16, 2026
Merged

fix: trim CLAUDE.md from 42.7k to 1.6k via ruler rule compression#826
shunkakinoki merged 1 commit into
mainfrom
fix/claude-md-size

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Feb 15, 2026

Copy link
Copy Markdown
Owner

Changes

  • Update dotagents submodule to include trimmed tool-search.md (6.2k → 1.3k)
  • Reduces ~/.claude/CLAUDE.md from 42.7k to 37.9k chars (under 40k performance threshold)

Context

Recent dotagents updates caused Ruler's generated CLAUDE.md to exceed the 40k char limit, triggering the "Large CLAUDE.md will impact performance" warning. The tool-search.md rule was the largest verbatim source (6.2k) — condensed to a compact table format while preserving all essential guidance.

Generated with Claude Code


Summary by cubic

Shrink the generated ~/.claude/CLAUDE.md from 42.7k to ~1.6k by updating dotagents. This removes the performance warning and keeps us well under the 40k limit.

  • Dependencies
    • Update dotagents to include compact tool-search.md (6.2k → 1.3k) and disable Ruler skill expansion.

Written for commit 0f42a25. Summary will update on new commits.

Copilot AI review requested due to automatic review settings February 15, 2026 22:18
@mesa-dot-dev

mesa-dot-dev Bot commented Feb 15, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @shunkakinoki, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a performance warning related to the size of the CLAUDE.md file. It achieves this by updating the dotagents submodule, which now includes a significantly condensed version of tool-search.md. This change ensures that the generated CLAUDE.md remains within optimal character limits, preventing potential performance impacts.

Highlights

  • Submodule Update: Updated the dotagents submodule to incorporate a trimmed tool-search.md file.
  • Performance Optimization: Reduced the size of ~/.claude/CLAUDE.md from 42.7k to 37.9k characters, bringing it below the 40k performance threshold and resolving a warning.
Changelog
  • dotagents
    • Updated submodule reference to a newer commit (e8cbeb00eb432d8ef55342e62ac2dec8d2129c4a) which includes a trimmed tool-search.md.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai

coderabbitai Bot commented Feb 15, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

The pull request advances the dotagents submodule reference to a newer commit pointer. This is a routine submodule dependency update with no modifications to the primary codebase's code or functionality.

Changes

Cohort / File(s) Summary
Submodule Update
.gitmodules / dotagents
Advanced submodule commit pointer from e47cacf2 to e8cbeb00 to incorporate upstream changes in the dotagents module.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • #528: Introduces and configures the dotagents submodule reference.
  • #631: Performs a similar dotagents submodule pointer advancement.

Suggested labels

enhancement

Poem

🐰 A hop toward progress, so small yet precise,
A pointer advanced, dependencies spiced,
The dotagents module now stands up tall,
With a whisker-twitch update, change nothing at all! ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title states it trims CLAUDE.md from 42.7k to 1.6k, but the objectives show the actual size reduction is 42.7k to 37.9k. The title is misleading about the specific change being made. Revise the title to accurately reflect the actual change: update dotagents submodule to reduce CLAUDE.md size from 42.7k to 37.9k characters via compression.
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main
Description check ✅ Passed The pull request description clearly explains the motivation (CLAUDE.md exceeding 40k char limit), the solution (trimming tool-search.md from 6.2k to 1.3k), and the expected outcome (reducing file size from 42.7k to 37.9k chars).

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/claude-md-size

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mesa-dot-dev

mesa-dot-dev Bot commented Feb 15, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Trimmed ~/.claude/CLAUDE.md from 42.7k to 1.6k by updating the dotagents submodule and disabling Ruler skill expansion, removing the "Large CLAUDE.md will impact performance" warning.

What changed?

  • dotagents: Updated the submodule to include a more compact tool-search.md (reduced from 6.2k to 1.3k) and applied further pruning by disabling skill expansion. This directly leads to the significant reduction in the size of ~/.claude/CLAUDE.md.

Description generated by Mesa. Update settings

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the dotagents submodule to reduce the size of the generated ~/.claude/CLAUDE.md file from 42.7k to 37.9k characters, bringing it below the 40k performance threshold. The reduction is achieved by condensing the tool-search.md rule from 6.2k to 1.3k characters using a compact table format.

Changes:

  • Update dotagents submodule commit reference to include the trimmed tool-search.md file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the dotagents submodule to a new commit. As described in the pull request, this change is intended to reduce the size of a generated file to improve performance by trimming a dependency. The change itself is a straightforward submodule pointer update and appears correct given the clear context provided. No issues were found in this change.

@shunkakinoki shunkakinoki changed the title fix: update dotagents submodule to trim CLAUDE.md below 40k limit fix: trim CLAUDE.md from 42.7k to 1.6k via ruler rule compression Feb 15, 2026
@shunkakinoki
shunkakinoki enabled auto-merge (squash) February 15, 2026 23:19
@shunkakinoki
shunkakinoki merged commit fc1acae into main Feb 16, 2026
32 checks passed
@shunkakinoki
shunkakinoki deleted the fix/claude-md-size branch February 16, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants