This walks you through configuring how GrepAI splits your code into chunks for embedding and search. The default is 512 tokens with 50 token overlap, which works fine for most codebases, but you might want smaller chunks (384) for precise results in concise languages like Rust, or larger chunks (768) for verbose Java where you need to capture entire methods. The guide explains the tradeoffs clearly: smaller chunks give you precision but lose context, larger chunks do the opposite, and overlap prevents you from losing important code at boundaries. Worth reading if your search results feel fragmented or noisy, since tweaking these numbers and re-indexing can make a real difference.

skills.sh installs
729
GitHub stars
20
last updated
Aug 21, 2026

Install

$ npx -y skills add yoanbernabeu/grepai-skills --skill grepai-chunking --agent claude-code

Installs into .claude/skills of the current project.

Files

GrepAI Chunking Configuration

This skill covers how GrepAI splits code files into chunks for embedding, and how to optimize chunking for your codebase.

When to Use This Skill

  • Optimizing search accuracy
  • Adjusting for code style (verbose vs. concise)
  • Troubleshooting search results
  • Understanding how indexing works

What is Chunking?

Chunking is the process of splitting source files into smaller segments for embedding:

┌─────────────────────────────────────┐
│         Large Source File           │
│         (1000+ tokens)              │
└─────────────────────────────────────┘
                  ↓
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Chunk 1 │ │ Chunk 2 │ │ Chunk 3 │
│ ~512    │ │ ~512    │ │ ~512    │
│ tokens  │ │ tokens  │ │ tokens  │
└─────────┘ └─────────┘ └─────────┘
                  ↓
          Each chunk gets
          its own embedding

Why Chunking Matters

Embedding models have optimal input sizes:

  • Too large chunks: Less precise search results
  • Too small chunks: Lost context, fragmented results
  • Just right: Good balance of precision and context

Configuration

Basic Settings

Sponsors

Details

Repository
github.com/yoanbernabeu/grepai-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from yoanbernabeu/grepai-skills

All 27
1cap-go avatarcapgo-organization-managementcap-go/capgo-skillsGuides the agent through Capgo account lookup and organization administration. Use when listing organizations, managing members, changing security settings, or 725skills.sh installs
2hamelsmu avatargenerate-synthetic-datahamelsmu/evals-skillsCreate diverse synthetic test inputs for LLM pipeline evaluation using dimension-based tuple generation. Use when bootstrapping an eval dataset, when real user 723skills.sh installs
3mrgoonie avataraestheticmrgoonie/claudekit-skillsCreate aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating desi722skills.sh installs
4ruvnet avatarbrowser-replayruvnet/rufloReplay a recorded session trajectory against the same URL or a mutated variant; uses browser-selectors embedding similarity to recover from DOM drift721skills.sh installs
5alirezarezvani avatarbrand-guidelinesalirezarezvani/claude-skillsWhen the user wants to apply, document, or enforce brand guidelines for any product or company. Also use when the user mentions 'brand guidelines,' 'brand color720skills.sh installs
6alirezarezvani avatardocker-developmentalirezarezvani/claude-skillsDocker and container development agent skill and plugin for Dockerfile optimization, docker-compose orchestration, multi-stage builds, and container security ha720skills.sh installs