mrblackman

Git Grep First For Windows AI Agent — AI skill for Claude Code

AI community

The 1-Line Prompt Fix that saves 99.6% tokens and speeds up code search by 400x on Windows for Cursor, Claude Code, and Copilot.

How to install Git Grep First For Windows AI Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mrblackman/git-grep-first-for-windows-ai-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Git Grep First For Windows AI Agent does

The 1-Line Prompt Fix that saves 99.6% tokens and speeds up code search by 400x on Windows for Cursor, Claude Code, and Copilot.

Alternatives in AI

  • Ccstatusline — by sirmalloc - A highly customizable status line formatter for Claude Code CLI that displays model info, git b 5.5k ★
  • Codesight — Universal AI context generator 979 ★
  • Kindly Web Search MCP Server — Kindly Web Search MCP Server: Web search + robust content retrieval for AI coding tools (Claude Code, Codex, C 377 ★

README

git-grep-first ⚡

Eliminating the Windows AI Agent Shell Trap: Slashes Token Bloat by 99% and Eliminates Context Poisoning

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-mrblackman-yellow.svg?style=flat&logo=buy-me-a-coffee)](https://buymeacoffee.com/mrblackman) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)]() [![Tested on](https://img.shields.io/badge/Tested%20on-Cursor%20%7C%20Claude%20Code%20%7C%20Antigravity%20%7C%20Copilot%20%7C%20Cline-orange.svg)]()

**Author:** Mustafa KILINC ([@mrblackman](https://github.com/mrblackman)) **Repository:** [github.com/mrblackman/git-grep-first-for-windows-ai-agent](https://github.com/mrblackman/git-grep-first-for-windows-ai-agent)


🚀 The 10-Second Instant Fix

You don't need complex configurations or external packages. **Just copy and paste the prompt below directly into your AI coding assistant (Cursor, Claude Code, Antigravity, Copilot, Cline, or Windsurf):**

From now on, whenever you search for code, functions, symbols, or text inside this repository on Windows:

1. NEVER use PowerShell's 'Select-String' or 'Get-ChildItem -Recurse'.
2. ALWAYS use:
   git grep -n ""
3. For newly created, unstaged, or untracked files, use:
   git grep --untracked -n ""

Rationale: 'Select-String' is blind to .gitignore, crawls node_modules/bin/obj, and dumps 40,000+ minified tokens into your context window. 'git grep' is instant, respects .gitignore, and searches tracked and untracked files with zero token bloat.

Please permanently write this rule into this project's agent instructions file (e.g., .cursorrules, CLAUDE.md, AGENTS.md, or .clinerules depending on our environment).

*That's it. Your agent will permanently configure its search policy, prioritize `git grep`, and immediately stop freezing your terminal.*


💥 The Problem: Th